/*!
 * sc-order-blackout.css — HOTFIX-02 (2026-10-31)
 *
 * Styles for the blackout "Premium Soft Notice" card and the inline date
 * info plates. ALL rules are isolated under .sc-order-blackout-* class
 * prefixes — no global element selectors, nothing affects catalog/cards.
 *
 * HOTFIX-02 — CLIPPING FIX:
 *   The site header is <header class="fixed top-0 left-0 right-0 z-50
 *   bg-background/95 backdrop-blur-sm"> (~64px, inner h-16), verified in
 *   assets/index-Dac3ekk5.js. The old card sat at top ≈ 10px with
 *   z-index:40 — spatially UNDER the opaque fixed header, clipping the top
 *   of the text. Now the header height is measured at runtime by
 *   sc-order-blackout.js and exposed as the custom property --sc-ob-top
 *   (= headerHeight + 12px) on the card BEFORE it enters the DOM, so the
 *   card is always placed BELOW the header — no overlap with the header,
 *   its menu or cart buttons at any width. Fallback 92px (80 + 12) if the
 *   header cannot be measured. Recomputed on resize (debounced).
 *
 * Z-INDEX DECISION (unchanged, verified in assets/index-DEEwf7B9.css):
 *   Radix dialogs/overlays use Tailwind .z-50; the custom reviews modal
 *   uses z-index:9999. The notice keeps z-index:40 — BELOW every modal
 *   layer so a dialog opening later always stacks above it. Since the card
 *   now sits spatially below the header, it never fights the header's
 *   z-50 stacking context either.
 */

/* ------------------------------------------------------------------ */
/* Floating notice card                                               */
/* ------------------------------------------------------------------ */
.sc-order-blackout-notice {
    position: fixed;
    /* --sc-ob-top is set by JS = measured header height + 12px; the
       fallback (92px) already clears the site's fixed header. */
    top: calc(var(--sc-ob-top, 92px) + env(safe-area-inset-top, 0px));
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    z-index: 40;
    width: min(300px, calc(100vw - 32px));
    padding: 14px 36px 14px 14px;
    background: #faf7ef;
    color: #444c00;
    border: 1px solid rgba(68, 76, 0, 0.22);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(38, 42, 16, 0.14), 0 2px 6px rgba(38, 42, 16, 0.08);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    overflow: hidden;
    pointer-events: auto;
    /* card only — page scroll is never blocked */
    animation: sc-ob-notice-in 320ms ease-out both;
}

/* One-time soft sheen sweep (single pass, no loop). */
.sc-order-blackout-notice::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    transform: skewX(-12deg);
    pointer-events: none;
    animation: sc-ob-notice-sheen 380ms ease-out 120ms 1 both;
}

@keyframes sc-ob-notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sc-ob-notice-sheen {
    from {
        left: -60%;
    }

    to {
        left: 120%;
    }
}

.sc-order-blackout-notice__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sc-order-blackout-notice__head svg {
    flex: 0 0 auto;
    color: #444c00;
}

.sc-order-blackout-notice__title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.sc-order-blackout-notice__text {
    font-weight: 600;
    color: #3d4400;
}

.sc-order-blackout-notice__caption {
    margin-top: 3px;
    font-size: 12.5px;
    color: rgba(68, 76, 0, 0.75);
}

/* Anchored to the card corner so the full 44×44 box stays inside the card
   (overflow: hidden would clip an ::after overlay that extends outside). */
.sc-order-blackout-notice__close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: rgba(68, 76, 0, 0.6);
    cursor: pointer;
    transition: background-color 160ms ease-out, color 160ms ease-out;
}

.sc-order-blackout-notice__close:hover,
.sc-order-blackout-notice__close:focus-visible {
    background: rgba(68, 76, 0, 0.1);
    color: #444c00;
}

/* ------------------------------------------------------------------ */
/* Inline info plate under date inputs                                */
/* ------------------------------------------------------------------ */
.sc-order-blackout-plate {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(68, 76, 0, 0.07);
    border: 1px solid rgba(68, 76, 0, 0.25);
    border-radius: 8px;
    color: #444c00;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* Mobile ≤ 768px: spans available width, 12px side insets.           */
/* The card is always below the measured header (see --sc-ob-top),    */
/* full text visible, no horizontal overflow.                         */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .sc-order-blackout-notice {
        right: 12px;
        left: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        padding: 12px 34px 12px 12px;
    }
}

/* ------------------------------------------------------------------ */
/* Desktop ≥ 769px: top-right, below header, unobtrusive              */
/* ------------------------------------------------------------------ */
@media (min-width: 769px) {
    .sc-order-blackout-notice {
        right: calc(env(safe-area-inset-right, 0px) + 24px);
        width: 320px;
        padding: 16px 40px 16px 16px;
        font-size: 14.5px;
    }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: no entrance/sheen animation, no transitions        */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {

    .sc-order-blackout-notice,
    .sc-order-blackout-notice::after {
        animation: none;
    }

    .sc-order-blackout-notice__close {
        transition: none;
    }
}