.popup {
    display: none;
    position: fixed;
    left: 0rem;
    top: 0rem;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.popup__shade {
    position: fixed;
    left: 0rem;
    top: 0rem;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(20, 20, 43, 0.24);
}

.popup__wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 6rem 0rem;
    box-sizing: border-box;
}

.popup__content {
    background-color: white;
    position: relative;
    z-index: 2;
    color: var(--color__dark);
    animation-name: fadeInUp;
    animation-duration: 240ms;
    animation-fill-mode: both;
}

/* CUSTOM START */

.popup__content {
    width: 100%;
    padding: 3.5rem 4rem 4rem;
    border-radius: 1.5rem;
}

#call-back .popup__content {
    max-width: 46.68rem;
}

#installment .popup__content {
    max-width: 57rem;
}

#feedback .popup__content {
    max-width: 58rem;
    padding: 4rem 4.5rem;
}

.popup__title {
    font-weight: 700;
}

.popup__desc {
    color: rgba(20, 20, 43, 0.7);
}

.input__wrap {
    width: 100%;
    margin-bottom: 0 !important;
}

#call-back .input__wrap.--50,
#installment .input__wrap.--50,
#feedback .input__wrap.--50 {
    width: calc(50% - 0.5rem);
}

.popup__input {
    height: 5rem;
    padding: 0 2rem;
    font-weight: 600;
}

.popup__input::placeholder {
    color: rgba(20, 20, 43, 0.32);
}

.popup__input:focus {
    box-shadow: 0px 0.5rem 2rem rgba(0, 0, 0, 0.08);
    border: 0.125rem solid var(--color__fill-2) !important;
    background-color: white;
}

.input__wrap.--tel .input__title {
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgba(20, 20, 43, 0.4);
}

.input__wrap.--tel .popup__input {
    height: 5rem;
    padding: 2.25rem 2rem 1rem;
    font-weight: 700;
}

.popup__textarea.input.--fill {
    padding-top: 1.5rem !important;
    resize: none;
}

.popup__textarea::placeholder {
    color: rgba(20, 20, 43, 0.32);
}

.popup__textarea:focus {
    box-shadow: 0px 0.5rem 2rem rgba(0, 0, 0, 0.08);
    border: 0.125rem solid var(--color__fill-2) !important;
    background-color: white;
}

.popup__btn {
    height: 4.5rem !important;
    font-size: 1.25rem;
    font-weight: 600;
}

.popup__checkbox .checkbox__trigger {
    box-shadow: inset 0px 0px 0px 0.1875rem var(--color__fill-2);
}

.popup__checkbox input:checked + * > .checkbox__trigger {
    background-color: var(--color__fill-2) !important;
    top: -0.15rem;
}

.popup__checkbox .checkbox__label {
    color: var(--color__dark) !important;
}

.popup__checkbox .checkbox__label a {
    font-weight: 700;
    text-decoration: none;
}

.popup__btn-group .popup__checkbox {
    flex: 0 1 15.37rem;
}

.popup__btn-group .checkbox__label {
    padding-top: 2px;
}

.popup__btn-group .popup__btn-wrap {
    flex: 0 1 22rem;
}

/* CUSTOM END */

.popup__close {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    right: -3rem;
    top: 0rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.5rem;
    cursor: pointer;
    transition: all ease .24s;
}

.popup__close:hover {
    opacity: .56;
}

.popup__content.--base {
    max-width: 60rem;
}

a.js-popup {
    color: var(--color__dark);
}

.order__row {
    width: calc(100% + 2rem);
}

.order__coll {
    flex: 1;
    margin-right: 2rem;
}

.order__coll.--mw-33 {
    max-width: calc(33% - 2rem);
    margin-top: 2.25rem;
}

.order__btn {
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 991px) {

    .popup__content {
        max-width:  100% !important;
        width: 94% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 24px !important;
        padding-top: 20px !important;
    }

    .popup__shade {
        background: rgba(0, 0, 0, 0.20);
    }

    .popup__wrap {
        padding: 64px 1rem;
        align-items: flex-start;
    }

    .popup__close {
        right: 0;
        /* top: -3rem; */
        top: -24px;
    }

    #feedback-mob .popup__close {
        width: 10px;
        margin-right: 12px;
        height: 22px;
        position: relative;
        top: -2px;
        left: 0;
        right: 0;
        background-size: 100% 100%;
        display: inline-block;
        background-image: url('data:image/svg+xml,<svg width="9" height="12" viewBox="0 0 9 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path id="Vector 155" d="M7.5 11L2 6.00057L7.5 1.0006" stroke="%2314142B" stroke-width="2"/></svg>')
    }

    .popup__content {
        box-shadow: 0px 8px 28px 0px rgba(0, 0, 0, 0.08);
        transform: translate3d(0, 0, 0);
    }

    .popup .input__group {
        flex-direction: column;
    }

    .popup .input__group .input__wrap {
        width: 100% !important;
    }

    .popup .popup__btn-group .popup__checkbox {
        flex: unset;
    }
    
    .popup .popup__btn-group  {
        flex-direction: column;
        gap: 24px;
    }

    .popup .popup__btn-group .popup__btn-wrap {
        flex: unset;
        width: 100%;
    }

    .popup .popup__input.--tel {
        padding: 2.5rem 1.5rem 1rem;
    }

    .popup .input__title.--tel {
        left: 1.5rem;
    }
    
    /* #feedback-mob */

    #feedback-mob .popup__title {
        font-size: 1.23077rem !important;
        line-height: 1.84615rem !important;
        font-weight: 600 !important;
    }

    #feedback-mob .popup__content:after {
        content: '';
        position: absolute;
        top: -20px;
        right: 30px;
        border: 10px solid transparent;
        border-bottom: 10px solid var(--color__white);
    }

    #feedback-mob .popup__content-head {
        margin-bottom: 20px;
    }


    #feedback-mob .popup__content-contacts {
        grid-gap: 14px;
    }

    #feedback-mob .popup__content-contacts-item  {
        gap: 16px;
    }

    #feedback-mob .popup__content-contacts-item-title {
        display: block;
    }

    #feedback-mob .popup__content-contacts-item-icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    #feedback-mob .popup__content-contacts-item-title {
        font-size: 16px;
        line-height: 24px; 
        font-weight: 600;
        transition: all .3s ease;
        color: var(--color__dark);
        text-decoration: none;
    }

    #feedback-mob .popup__content-contacts-item-title:hover {
        opacity: .64;
        transition: all .3s ease;
    }

    #feedback-mob .popup__content-contacts-item-title.--phone {
        font-size: 20px;
        line-height: 24px;
        font-weight: 700;
    }

    #feedback-mob .popup__content-contacts-item-hours {
        line-height: 16px;
        font-size: 11px; 
        opacity: .4;
    }

    #feedback-mob .popup__btn {
        margin-top: 20px;
        border-radius: 8px;
        font-size: 14px !important;
        line-height: 24px !important;
        height: 48px !important;
    } 

    .popup__btn .popup__btn-thumb.--svg__feedback-mob-btn {
        display: inline-block;
        width: 24px;
        height: 24px;
        top: -2px;
        position: relative;
        margin-right: 10px;
    }

    .popup__epilog-title {
        margin-top: 16px;
        color: #14142B;
        text-align: center;
        font-size: 11px;
        line-height: 16px;
        letter-spacing: -0.33px;
    }
    
    .popup__epilog-title span {
        opacity: .7;
    }

    .popup__epilog-title b {
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {

    .order__coll {
        flex: inherit;
        width: 100%;
        max-width: 100% !important;
    }

    #feedback .popup__content {
        padding: 3.5rem 4rem 4rem;
        max-width: 58rem;
    }
}

@media screen and (max-width: 640px) {

    #call-back .input__wrap.--50,
    #installment .input__wrap.--50,
    #feedback .input__wrap.--50 {
        width: 100%;
    }

    .popup__btn-group .popup__checkbox,
    .popup__btn-group .popup__btn-wrap {
        flex: 1 1 100%;
    }

    #call-back .popup__content,
    #installment .popup__content,
    #feedback .popup__content {
        padding: 2.5rem 2rem 3rem;
    }
}

@media screen and (max-width: 340px) {
    #feedback-mob .popup__content-contacts-item-title.--phone {
        /* font-size: 16px; */
    }
}
