/**
 * Newsletter signup pop-up — shell only.
 *
 * Pairs with includes/newsletter-popup.php and assets/js/newsletter-popup.js.
 * The WS Form inside inherits ws-form-styles.css (inputs, labels, the red
 * submit button) ... nothing in here touches the fields.
 *
 * Tokens are literal hex on purpose: they mirror homepage-2026.css and
 * single-product-2026.css, which use hex, not the oklch tokens in main.css.
 */

.pu-signup {
    position: fixed;
    inset: 0;
    /* .pu-atc (sticky add-to-cart) is z-index 60, .pu-nav is 50 — sit above both */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.pu-signup[hidden] {
    display: none !important;
}

.pu-signup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 25, 23, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pu-signup__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #F2EDE1;
    color: #1B1917;
    border-top: 4px solid #DA291C;
    padding: 36px 32px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.pu-signup.is-open .pu-signup__backdrop,
.pu-signup.is-open .pu-signup__card {
    opacity: 1;
    transform: none;
}

.pu-signup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: #2D2D2D;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.pu-signup__close:hover,
.pu-signup__close:focus-visible {
    color: #DA291C;
    outline: none;
}

/* Kicker — same recipe as the site's .pu-kicker eyebrow */
.pu-signup__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #DA291C;
}
.pu-signup__kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: #DA291C;
    flex-shrink: 0;
}

.pu-signup__title {
    margin: 0 0 12px;
    font-family: 'Barlow Condensed', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 6vw, 46px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #2D2D2D;
}

.pu-signup__body {
    margin: 0 0 22px;
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #4A4744;
}

/* Body scroll lock while the dialog is up */
body.pu-signup-open {
    overflow: hidden;
}

/* ── Mobile: bottom sheet above the sticky add-to-cart bar ── */
@media (max-width: 767px) {
    .pu-signup {
        align-items: flex-end;
        padding: 0;
    }
    .pu-signup__card {
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 30px 22px calc(26px + env(safe-area-inset-bottom, 0px));
        transform: translateY(100%);
    }
    .pu-signup__title {
        font-size: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pu-signup__backdrop,
    .pu-signup__card {
        transition: none;
        transform: none;
    }
}
