
/* =========================================================
   MAPLEVISA NEWSLETTER POPUP
   ========================================================= */

.mv-newsletter-popup {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.mv-newsletter-popup.mv-popup-visible {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


/* BACKDROP */

.mv-newsletter-popup-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(17, 24, 39, .52);
}


/* BOX */

.mv-newsletter-popup-box {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 560px;

    padding: 42px 42px 36px;

    border: 1px solid #e1e5e9;

    border-radius: 5px;

    background: #f6f8fa;

    box-shadow:
        0 24px 70px
        rgba(17, 24, 39, .20);
}


/* CLOSE */

.mv-newsletter-popup-close {

    position: absolute;

    top: 15px;

    right: 17px;

    width: 34px;

    height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #475467;

    font-size: 29px;

    line-height: 1;

    font-weight: 300;

    cursor: pointer;
}


.mv-newsletter-popup-close:hover {

    color: #111827;
}


/* LABEL */

.mv-newsletter-popup-kicker {

    margin-bottom: 14px;

    font-size: 12px;

    line-height: 1.3;

    font-weight: 700;

    letter-spacing: .13em;

    color: #1267a5;
}


/* TITLE */

.mv-newsletter-popup-box h2 {

    margin: 0 0 13px;

    font-size: 35px;

    line-height: 1.1;

    letter-spacing: -.035em;

    font-weight: 650;

    color: #111827;
}


/* COPY */

.mv-newsletter-popup-copy {

    max-width: 460px;

    margin: 0 0 25px;

    font-size: 16px;

    line-height: 1.65;

    color: #5d6675;
}


/* FORM */

.mv-newsletter-popup-form {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 10px;
}


.mv-newsletter-popup-form input[type="email"] {

    width: 100%;

    min-width: 0;

    height: 50px;

    padding: 0 15px;

    border: 1px solid #c9d0d8;

    border-radius: 3px;

    background: #ffffff;

    color: #111827;

    font-size: 15px;

    box-shadow: none;
}


.mv-newsletter-popup-form input[type="email"]:focus {

    border-color: #1267a5;

    outline: 2px solid rgba(18, 103, 165, .17);

    outline-offset: 1px;
}


/* SUBSCRIBE */

.mv-newsletter-popup-submit {

    min-width: 125px;

    height: 50px;

    padding: 0 20px;

    border: 1px solid #111827;

    border-radius: 3px;

    background: #111827 !important;

    color: #ffffff !important;

    font-size: 14px;

    font-weight: 650;

    cursor: pointer;
}


.mv-newsletter-popup-submit:hover,
.mv-newsletter-popup-submit:focus {

    border-color: #0c4f81;

    background: #0c4f81 !important;

    color: #ffffff !important;
}


/* CONSENT */

.mv-newsletter-popup-consent {

    margin: 13px 0 0;

    font-size: 12px;

    line-height: 1.55;

    color: #5d6675;
}


/* MESSAGE */

.mv-newsletter-popup-message {

    display: none;

    margin-top: 15px;

    font-size: 14px;

    line-height: 1.5;

    font-weight: 600;
}


.mv-newsletter-popup-message.mv-popup-success {

    display: block;

    color: #17653a;
}


.mv-newsletter-popup-message.mv-popup-error {

    display: block;

    color: #9b1c1c;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .mv-newsletter-popup {

        align-items: flex-end;

        padding: 12px;
    }


    .mv-newsletter-popup-box {

        max-width: none;

        padding: 35px 22px 27px;

        border-radius: 5px;
    }


    .mv-newsletter-popup-box h2 {

        font-size: 30px;
    }


    .mv-newsletter-popup-copy {

        font-size: 15px;
    }


    .mv-newsletter-popup-form {

        grid-template-columns: 1fr;
    }


    .mv-newsletter-popup-submit {

        width: 100%;
    }

}

