/* ==== Email-signup modal and toast ==========================================
   Markup: properties/readytheme_contentsection/__KJ_email_signup_modal.mvt (called by the
   global header on every page). JS: email-signup-modal.js.
   Moved from the content section's inline <style> (backlog PERF-2).
   =========================================================================== */

/*#__KJ_email_signup_modal {
    position: fixed;
    width: 100%;
    display: flex;
    height: 100%;
    overflow: hidden;
    z-index: 99999;
}*/

.email-modal-container {
    width: 500px;
    color: #4A5568;
    margin-left: 250px;
}

.email-modal-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;                     /* baseline */
    height: -webkit-fill-available;   /* older iOS Safari */
    height: 100dvh;                   /* iOS 15.4+, Chrome 108+ */
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    overscroll-behavior: contain;
}

.email-modal-tab-container {
    display: flex;
}

.email-modal-tab {
    width: 50%;
    text-align: center;
    padding: 10px 0;
    background: #EDF2F7;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    box-shadow: 0px -4px 9px 5px rgba(0, 0, 0, 0.05) inset;
}

.email-modal-tab.email-modal-tab-active {
    background: white;
    color: #4299E1;
    font-weight: 700;
    box-shadow: none;
}

.email-modal-inner-container {
    background: white;
    padding: 0px 40px 20px 40px;
}

.email-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}


.email-modal-inner {
    display: flex;
    align-items: center;
    position: relative;
    height: auto;
    box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
}

.email-modal-header-text {
    margin-left: 20px;
    font-size: 20px;
    font-weight: 700;
}

.email-modal-exit-container > span {
    font-size: 48px;
    font-weight: 700;
    line-height: 24px;
    cursor: pointer;
    color: #718096;
    padding: 0 15px;
}

.email-modal-exit:hover {
    color: #2D3748;
}

.email-modal-exit-container {
    background: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 5;
}

#email-modal-wrapper input {
    height: 40px;
    border-radius: 5px;
    border: 2px solid #EDF2F7;
    padding: 10px;
    font-size: 18px;
}

#email-modal-wrapper .email-modal-pw input {
    border-radius: 5px 0 0 5px;
}

#email-modal-wrapper label {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
}

.modal-show-password {
    cursor: pointer;
    background: #EDF2F7;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 0 5px 5px 0;
}

.email-modal-input-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.email-modal-submit {
    background: #2B6CB0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 24px;
}

.email-modal-submit-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.email-modal-submit:hover {
    background: #3182CE;
}

.email-modal-submit:active {
    background: #4299E1;
}

.email-modal-inner-container form > span {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}

.email-modal-inner-container form > span:hover {
    text-decoration: underline;
}

#email-modal-wrapper input:active, #email-modal-wrapper input:focus {
    box-shadow: none;
    outline: none;
    border: 2px solid #CBD5E0;
}

.email-modal-loading {
    display: none;
    border: 6px solid #d9d9d9;
    border-radius: 50%;
    border-top: 6px solid #72acf3;
    width: 30px;
    height: 30px;
    -webkit-animation: modalSpinningAnimation 0.5s linear infinite; /* Safari */
    animation: modalSpinningAnimation 0.5s linear infinite;
    margin-right: 10px;
    flex-shrink: 0;
}

.email-modal-processing {
    display: block;
}

@-webkit-keyframes modalSpinningAnimation {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes modalSpinningAnimation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.email-modal-error-notification {
    color: #E53E3E;
    display: flex;
    align-items: center;
}

.email-modal-error-notification > span {
    margin-right: 20px;
    font-size: 24px;
    position: relative;
    top: 3px;
}

.email-modal-notification {
    background: white;
    padding: 0 40px 20px 40px;
}


.email-modal-notification-success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    position: relative;
}

.email-modal-notification-text {
    text-align: center;
    padding: 40px 0px;
    font-size: 18px;
}

.email-modal-notification-close {
    cursor: pointer;
    text-align: center;
    font-size: 18px;
}

.email-modal-notification-close:hover {
    text-decoration: underline;
}

.email-modal-notification-success {
    height: 100px;
    width: 100px;
    border-radius: 50px;
    background: #2ecc71;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: 0.5s growBig cubic-bezier(0.65, 0.05, 0.36, 1);
    overflow: hidden;
    position: relative;
    transform: translate3d(0, 0, 0);
}

@keyframes growBig {
    0% { transform: scale3d(0, 0, 0); }
    100% { transform: scale3d(1, 1, 1); }
}

.email-modal-notification-success > span {
    font-size: 64px;
    position: absolute;
    top: 10px;
    color: white;
    z-index: 1;
}

.email-modal-inner-circle {
    background: #2ecc71;
    width: 100%;
    height: 100%;
    transform: translate3d(0px, 0, 0);
    z-index: 2;
    position: relative;
    animation: 0.3s moveRight 0.5s linear forwards;
    transform: translate3d(0, 0, 0);
}

@keyframes moveRight {
    0% { transform: translate3d(0px, 0, 0); }
    100% { transform: translate3d(100px, 0, 0); }
}

.email-modal-outer-circle {
    background: #C6F6D5;
    border-radius: 50px;
    animation: 0.3s growHuge 0.5s linear forwards;
    width: 100px;
    position: absolute;
    height: 100px;
    z-index: 0;
    opacity: 0;
    transform: translate3d(0, 0, 0);
}

@keyframes growHuge {
    0% { transform: scale3d(1, 1, 1); opacity: 1; }
    99% { transform: scale3d(4, 4, 4); opacity: 0; }
    100% { display: none; }
}

.email-modal-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.email-modal-cta-logo img {
    width: 100px;
}

.email-modal-cta-logo {
    display: flex;
    justify-content: center;
}

.email-modal-cta-text-block {
    text-align: center;
    font-size: 24px;
    color: black;
    margin-bottom: 20px;
    line-height: 1.25;
}

.email-modal-cta-text-block.email-modal-cta-text-huge {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.email-modal-cta-text-block.email-modal-cta-text-small {
    font-size: 14px;
    line-height: 1;
}

.email-modal-cta-text {
    margin: 20px 0;
}

.email-modal-disclaimer {
    font-size: 10px;
    margin-bottom: 20px;
}

.email-toast-wrapper {
    position: fixed;
    z-index: 999998 !important;
    background: #0066CC;
    left: 10px;
    bottom: 10px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 10px 10px 10px 15px;
    border-radius: 4px;
    box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
    cursor: pointer;
}

.email-toast-close {
    font-size: 36px;
    font-weight: 700;
    margin-left: 10px;
    line-height: 24px;
    position: relative;
    top: -2px;
}

.email-no-thanks {
    font-size: 18px;
    margin-top: 5px;
    text-align: center;
    cursor: pointer;
}

.email-no-thanks:hover {
    text-decoration: underline;
}

.email-modal-splash-container {
    width: 250px;
    height: 100%;
    background-position: bottom;
    background-size: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .email-modal-container {
        height: 100%;
        width: 100%;
        background: white;
        overflow: scroll;
    }

    .email-modal-splash-container {
        display: none;
    }

    .email-modal-container {
        margin-left: 0px;
        height: 100vh;
    }

    .email-modal-cta-text {
        margin: 10px 0;
    }

    .email-modal-cta-text-block {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .email-modal-cta-text-block.email-modal-cta-text-huge {
        font-size: 48px;
    }

    .email-modal-wrapper {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }

    .email-modal-inner {
        width: 100%;
        height: 100%;
        box-shadow: none;
    }

    .email-modal-container {
        margin-left: 0;
        width: 100%;
        height: 100%;        /* replaces height: 100vh */
        max-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;
    }

    .email-modal-exit-container > span {
        top: 10px;   /* was 40px */
    }
}

.email-modal-cta-promo-main {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.email-modal-cta-promo-coupon-code {
    display: flex;
    justify-content: center;
}

.email-modal-cta-promo-coupon-code > span {
    background: hsl(0deg 0% 96%);
    padding: 10px 20px;
    font-size: 24px;
    font-weight: 700;
}

.html-overflow-hidden,
.html-overflow-hidden body {
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.email-modal-disclaimer a {
    color: #2B6CB0;
    font-weight: 700;
    text-decoration: underline;
}

.email-modal-submit span {
    font-size: 11px;
}

.email-modal-submit {
    display: flex;
    flex-direction: column;
}

.email-modal-submit span:nth-of-type(1) {
    font-size: 24px;
}
