.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all .3s ease-in-out;

}

.popup-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-wrapper {
    padding: 0;
    width: 100%;
    max-width: 480px;
    position: relative;


    overflow: auto;
    max-height: 100%;
}

.popup {
    height: auto;
    overflow-y: visible;
    padding: 32px;

    box-sizing: content-box;

    max-width: 100%;
    background: #ffffff;
    border-radius: 24px;
    margin: 20px 0;
}


.popup__title {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    margin: 24px 0 32px;
    letter-spacing: -0.72px;
}

.popup-close {
    position: absolute;
    top: 28px;
    right: 8px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    background: #F8F9FB;
    border-radius: 12px;
    transition: background .3s ease-in-out;
}

.popup-close:hover {
    background: #091733;
}

.popup-close svg path {
    transition: fill .3s ease-in-out;
}

.popup-close:hover svg path {
    fill: #ffffff;
}

.popup__form {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    color: var(--color-text);
    box-shadow: none;
    padding: 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    position: relative;
    border-radius: 0;
}

.popup-wrapper {
    transition: all .4s ease-in-out;
    transform: translateY(0);
}

.hidden .popup-wrapper {
    transform: translateY(100px);
}

.popup__form label {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    gap: 6px;
    color: var(--color-text);
    font-weight: 400;
    margin: 0 0 6px 0;
    position: relative;
    align-items: center;
}

.required-label {
    width: 5px;
    height: 5px;
    border-radius: 100%;
    background: #D62238;
}

.hint {
    margin-left: 7px;
    position: relative;
    cursor: pointer;
    margin-top: -2px;
}

.hint__text {
    position: absolute;
    transition: all 0.5s ease-in-out;
    background: #FFFFFF;
    border-radius: 15px;
    padding: 15px;
    width: 348px;
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.08));
    transform: translateY(-132%) translateX(-166px);
    visibility: hidden;
    opacity: 0;
    z-index: 20;
}

#error_telegram_invalid_name {
    color: var(--color-red);
    display: none;
}

.popup__form input {
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    color: var(--color-text);
    border-radius: 8px;
    border: 1px solid #DEDEE0;
    background: #FFF;
    width: 100%;
}

.popup__form input.error {
    border-color: #F5222D;
}

.popup__form .note {
    color: #98a0ae;
}

.popup__form .buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;
}

.popup-overlay .success-icon {
    margin-left: -16px;
}

.popup__form .form-group {
    width: 100%;
}

.form-group p {
    margin: 0;
}

@media screen and (max-height: 480px) {
    .popup-overlay:not(#order-tarif-popup-success):not(#popup-review) .popup-wrapper {
        top: 0;
        max-height: 100%;
        overflow: auto;
        height: 100%;
        position: absolute;
        overflow-x: hidden;
    }
}

.popup__form .btn {
    margin: 0;
}

@media screen and (max-width: 480px) {
    .popup-overlay:not(#order-tarif-popup-success):not(#popup-review) .popup-wrapper {
        min-height: 100%;
    }

    #popup-review .popup-wrapper {
        height: auto;
        top: auto;
        bottom: auto;
        border-radius: 24px;
        padding-left: 16px;
    }

    .popup {
        margin: 0;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .popup__title {
        font-size: 24px;
        line-height: 32px;
        margin-top: 16px;
        font-size: 17px;
        font-weight: 700;
        line-height: 22px;
        letter-spacing: -0.51px;
    }

    .popup-close {
        position: fixed;
        right: 8px;
        top: 8px;
    }

    .popup__form .buttons {
        justify-content: space-between;
        flex-direction: column;
        margin: 0;
    }

    .popup__form .buttons .btn {
        width: 100%;
    }

    .popup-logo {
        width: 48px;
        height: 48px;
    }
}

#tarif-compare .popup-wrapper {
    top: 0;

    overflow-y: auto;
    height: 100%;
    position: relative;
}

.popup-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup-wrapper::-webkit-scrollbar {
    display: none;
}

#popup-video, #popup-video .popup, #popup-video .popup-wrapper {
    padding: 0;
    margin: 0;
    overflow: hidden;
    width: 100%;
}

#popup-video .popup-wrapper, #popup-video .popup-wrapper iframe {
    max-width: 800px;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#popup-video .popup-close {
    top: 8px;
}

#popup-review .popup-wrapper {
    padding: 0 5px 0 32px
}

#popup-review .popup {
    padding-top: 32px;
    padding-bottom: 32px;
}

#popup-review .popup {
    padding-right: 27px;
}

#chat-widget-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 9999 !important;
    right: 0px !important;
    bottom: 0px !important;
}