/* 1в1 с Shopify: shop.nooria-swiss.com, assets/membership-modal.css (без неиспользуемого .timer) */

.membership-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.membership-modal.active {
    display: flex;
}

.membership-modal__overlay {
    position: absolute;
    inset: 0;
    background: #0009;
    backdrop-filter: blur(4px);
}

.membership-modal__window {
    position: relative;
    max-width: 952px;
    max-height: 560px;
    width: 100%;
    margin: 0 16px;
    overflow: hidden;
    display: flex;
    background-color: #fff;
    gap: 24px;
}

.membership-modal__window .background-image {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg,#1f3357,#436fbd 195.09%);
    padding: 0;
    display: flex;
}

.membership-modal__window .background-image img {
    object-fit: contain;
    margin-top: auto;
    min-width: 379px;
    min-height: 438px;
    width: 100%;
}

.membership-modal__window .modal-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    width: 100%;
}

.membership-modal__window .modal-content .close-button {
    margin-left: auto;
    padding: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.membership-modal__window .modal-content .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.membership-modal__window .modal-content .content .head,
.membership-modal__window .modal-content .content form {
    max-width: 336px;
    width: 100%;
}

.membership-modal__window .modal-content .content .head h4 {
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 32px;
    text-align: center;
    text-transform: uppercase;
    color: #1f3357;
    margin: 0;
}

.membership-modal__window .modal-content .content .head p {
    font-style: normal;
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #1f3357;
    margin: 16px 0 46px;
}

.membership-modal__window .modal-content .content form {
    display: flex;
    flex-direction: column;
}

.membership-modal__window .modal-content .content form label {
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #1f3357;
    margin-bottom: 8px;
}

.membership-modal__window .modal-content .content form input {
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    padding: 18.5px 16px;
    border: 1px solid rgba(158,158,158,1);
    max-height: 48px;
}

.membership-modal__window .modal-content .content form input::placeholder {
    color: #9e9e9e;
}

.membership-modal__window .modal-content .content form button {
    background: var(--Bg-Radial);
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 11.5px 0;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: .3s ease background-color;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.membership-modal__window .modal-content .content form button:hover {
    background-color: #0d2547;
}

.membership-modal__window .modal-content .content form button:disabled {
    background-color: #193661b3;
    cursor: unset;
}

.membership-modal__window .modal-content .content form button .loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.membership-modal__window .modal-content .content form button .loader:after {
    content: unset;
}

@keyframes rotation {
    0% {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.membership-modal__window .modal-content .content form small {
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    color: #1f3357;
}

@media screen and (max-width: 768px) {
    .membership-modal__window {
        flex-direction: column;
        gap: 0;
        max-width: 373px;
        max-height: unset;
        margin-top: 20px;
    }

    .membership-modal__window .background-image img {
        max-height: 320px;
        min-height: unset;
        min-width: unset;
        object-fit: cover;
        object-position: bottom;
    }

    .membership-modal__window .modal-content .content {
        padding-top: 0;
    }

    .membership-modal__window .modal-content .content .head p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 18px;
    }

    .membership-modal__window .modal-content {
        padding: 12px;
        position: relative;
    }

    .membership-modal__window .modal-content .content form input {
        max-height: 30px;
        font-size: 12px;
    }

    .membership-modal__window .modal-content .content form button {
        font-size: 14px;
    }

    .membership-modal__window .modal-content .content .head h4 {
        font-size: 16px;
        line-height: 20px;
    }

    .membership-modal__window .modal-content .close-button {
        position: absolute;
        right: 10px;
        top:0;
    }
}
