.profile-content-inner-mid {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.profile-content-inner-mid:last-child {
    padding-bottom: 3rem;
}

.profile-content-inner-mid-block-wrapper {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 2rem;
}

.profile-content-block-inner span,
label {
    display: block;
}

#gender-hidden {
    display: none;
}

.profile-content-block form {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.profile-content-block span,
label {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.profile-content-block input {
    border: 0.1rem solid rgba(0, 0, 0, 30%);
    border-radius: 0.5rem;
    padding-left: 2rem;
    max-width: 40rem;
    width: 100%;
    height: 5rem;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.gender-dropdown {
    position: absolute;
    top: 100%;

    left: 0;
    width: 100%;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    max-height: 0rem;
    border: 0.1rem solid rgba(0, 0, 0, 0%);
    background-color: #ffffff;
    z-index: 100;
    overflow: hidden;
    transition: 0.3s all ease;
}

.gender-dropdown.active {
    max-height: 12rem;
    transition: 0.3s all ease;
    border: 0.1rem solid rgba(0, 0, 0, 30%);
}

.gender-dropdown li {
    padding: 2rem;
    font-size: 1.4rem;
    cursor: pointer;
}

.gender-dropdown li:first-child {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 30%);
}

.gender-dropdown {
    position: absolute;
    top: 100%;

    left: 0;
    width: 100%;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    max-height: 0rem;
    border: 0.1rem solid rgba(0, 0, 0, 0%);
    background-color: #ffffff;
    z-index: 100;
    overflow: hidden;
    transition: 0.3s all ease;
}

.gender-dropdown.active {
    max-height: 12rem;
    transition: 0.3s all ease;
    border: 0.1rem solid rgba(0, 0, 0, 30%);
}

.gender-dropdown li {
    padding: 2rem;
    font-size: 1.4rem;
    cursor: pointer;
}

.gender-dropdown li:first-child {
    border-bottom: 0.1rem solid rgba(0, 0, 0, 30%);
}

.hidden-shown {
    padding-right: 4.7rem;
}

.profile-content-block {
    position: relative;
}

.profile-content-block button {
    position: absolute;
    width: 3.7rem;
    height: 4.3rem;
    top: 2.7rem;
    right: 0.15rem;
    border-radius: 0.5rem;
    z-index: 60;
    border: none;
    background: transparent;
    cursor: pointer;
}

.content-block {
    border: 0.1rem solid rgba(0, 0, 0, 30%);
    border-radius: 0.5rem;
    max-width: 40rem;
    width: 100%;
    height: auto;
}

.content-block-title-wrapper {
    margin-bottom: 1rem;
}

.delivery-content-mid-left-blocks {
    width: 100%;
    padding-bottom: 5rem;
    display: -ms-grid;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 4rem;
    max-width: unset;
}

.content-block-main-wrapper-text {
    text-align: left;
    font-size: 1.4rem;
    max-width: unset;
    width: 100%;
    display: block;
    overflow: hidden;
    resize: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.content-block-main-wrapper-text:focus-within {
    cursor: text;
}

.save-button {
    max-width: 19rem;
    width: 100%;
}

.content-block {
    margin-right: 0;
}

.content-link {
    border: 0.1rem solid rgba(0, 0, 0, 30%);
    border-radius: 0.5rem;
    max-width: 40rem;
    width: 100%;
    height: auto;
    margin-right: 0;
    background: #fff;
    cursor: pointer;
    min-height: 10rem;
}

.content-block.current-input {
    border-color: #c50003;
}

.profile-content-inner-mid-block-wrapper-hidden {
    display: -ms-grid;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
    overflow: hidden;
    height: fit-content;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.profile-content-inner-mid-block-wrapper-hidden.shown {
    max-height: 77rem;
    transition: max-height 0.3s ease;
}

/* MEDIA QUERIES  ===================================*/

@media screen and (max-width: 920px) {
    .profile-content-inner-mid-block-wrapper,
    .delivery-content-mid-left-blocks {
        column-gap: 2rem;
    }
}

@media screen and (max-width: 720px) {
    .profile-content-inner-mid-block-wrapper,
    .delivery-content-mid-left-blocks {
        gap: 2rem;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 520px) {
    .profile-content-inner-mid-block-wrapper {
        grid-template-columns: 1fr;
    }

    .delivery-content-mid-left-blocks {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: column;
    }

    .profile-content-block input,
    .content-link,
    .content-block {
        max-width: unset;
    }

    .profile-content-inner-bottom-second {
        display: -ms-grid;
        display: grid;
        grid-template-columns: 1fr;
    }

    .save-button {
        justify-self: center;
        align-self: center;
        max-width: unset;
    }
}

@media screen and (max-width: 500px) {
    .profile-content-block button {
        top: 3.7rem;
    }
}
