/* =========================================================
   NOVAEL — ACCOUNT / GUEST CHECKOUT GATE
========================================================= */

.novael-checkout-gate {
    position: fixed;

    z-index: 200000;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

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


.novael-checkout-gate.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* Backdrop */

.novael-checkout-gate__backdrop {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background:
        rgba(17,17,15,.58);

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* Dialog */

.novael-checkout-gate__dialog {
    position: relative;

    z-index: 2;

    width: min(560px,100%);

    padding:
        46px
        48px
        38px;

    border:
        1px solid
        rgba(17,17,15,.15);

    border-radius: 14px;

    background: var(--bg);
    color: var(--text);

    box-shadow:
        0 28px 80px
        rgba(0,0,0,.18);
}


/* Close */

.novael-checkout-gate__close {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid
        rgba(17,17,15,.24);

    border-radius: 50%;

    background: transparent;
    color: var(--text);

    font-size: 25px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;
}


/* Typography */

.novael-checkout-gate__eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #9f2f27;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .13em;
}


.novael-checkout-gate h2 {
    max-width: 430px;

    margin:
        0
        0
        18px;

    font-family: var(--font-main);

    font-size: 36px;
    font-weight: 800;

    line-height: .98;
    letter-spacing: -.035em;
}


.novael-checkout-gate__intro {
    max-width: 450px;

    margin:
        0
        0
        25px;

    color: #4f4b44;

    font-size: 13px;
    line-height: 1.65;
}


/* Benefits */

.novael-checkout-gate__benefits {
    display: grid;

    gap: 11px;

    margin-bottom: 30px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}


.novael-checkout-gate__benefits > div {
    display: flex;
    align-items: center;

    gap: 9px;
}


.novael-checkout-gate__benefits span {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--text);
    color: #fff;

    font-size: 10px;
}


/* Actions */

.novael-checkout-gate__actions {
    display: grid;

    gap: 8px;
}


.novael-checkout-gate__account,
.novael-checkout-gate__guest {
    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        20px;

    border-radius: 8px;

    font-family: var(--font-main);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .08em;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.novael-checkout-gate__account {
    border:
        1px solid
        var(--text);

    background: var(--text);
    color: #fff;
}


.novael-checkout-gate__account:hover {
    background: #292824;

    transform: translateY(-1px);
}


.novael-checkout-gate__guest {
    border:
        1px solid
        rgba(17,17,15,.28);

    background: transparent;
    color: var(--text);
}


.novael-checkout-gate__guest:hover {
    border-color: var(--text);

    background:
        rgba(17,17,15,.035);
}


/* Note */

.novael-checkout-gate__note {
    display: block;

    max-width: 420px;

    margin:
        16px
        auto
        0;

    color: var(--muted);

    font-size: 9px;
    line-height: 1.55;

    text-align: center;
}


/* Lock body */

html.novael-checkout-gate-open,
html.novael-checkout-gate-open body {
    overflow: hidden;
}


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

@media (max-width: 767px) {

    .novael-checkout-gate {
        align-items: flex-end;

        padding: 0;
    }


    .novael-checkout-gate__dialog {
        width: 100%;

        padding:
            34px
            20px
            26px;

        border:
            0;

        border-top:
            1px solid
            rgba(17,17,15,.15);

        border-radius:
            18px
            18px
            0
            0;
    }


    .novael-checkout-gate__close {
        top: 14px;
        right: 14px;

        width: 34px;
        height: 34px;
    }


    .novael-checkout-gate__eyebrow {
        margin-bottom: 10px;

        font-size: 8px;
    }


    .novael-checkout-gate h2 {
        max-width: 300px;

        margin-bottom: 15px;

        padding-right: 30px;

        font-size: 27px;

        line-height: 1;
    }


    .novael-checkout-gate__intro {
        margin-bottom: 21px;

        font-size: 12px;

        line-height: 1.6;
    }


    .novael-checkout-gate__benefits {
        gap: 9px;

        margin-bottom: 24px;

        font-size: 11px;
    }


    .novael-checkout-gate__account,
    .novael-checkout-gate__guest {
        min-height: 52px;

        font-size: 9px;
    }


    .novael-checkout-gate__note {
        margin-top: 14px;

        font-size: 8px;
    }

}
