/* ============================================================
   HXS Seasonal: the shared stage (see seasonal.js).
   Loaded with whichever theme is live; the theme's own sheet
   (halloween.css, winter.css) loads after it.
   ============================================================ */

/* The page layer: the first thing in <body>, zero height and in normal flow,
   so it scrolls with the content (this theme scrolls <body>, not the window).
   z-index 1 puts it over the section backgrounds; the script raises cards,
   buttons and text to z-index 1 as well, and being later in the page they paint
   over it, so whatever moves passes behind them. The footer, sticky order bar
   and navbar are higher still. Never takes a click. */
.hxs-ss-layer {
    position: relative;
    height: 0;
    z-index: 1;
    pointer-events: none;
}
.hxs-ss-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}
.hxs-ss-sprite {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}
.hxs-ss-layer.is-still .hxs-ss-sprite { display: none; }

/* A raised card is its own stacking level, so a dropdown opened inside it would
   slide under the next card. Bring the card forward while anything in it is
   open or focused. */
[data-hxs-ss-lift]:focus-within,
[data-hxs-ss-lift]:has(.show) {
    z-index: 5 !important;
}

/* The "hide the animations" button. Bottom left, clear of the live chat
   launcher (bottom right). Each theme sets the three tone variables. */
.hxs-ss-toggle {
    --ss-tone: 148, 163, 184;
    --ss-ink: #e2e8f0;
    --ss-bg: rgba(15, 18, 26, 0.88);
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1031;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px 0 10px;
    border-radius: 20px;
    border: 1px solid rgba(var(--ss-tone), 0.35);
    background: var(--ss-bg);
    color: var(--ss-ink);
    font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--ss-tone), 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, bottom 0.28s cubic-bezier(.22, .61, .36, 1);
}
.hxs-ss-toggle.is-lifted { bottom: calc(var(--hxs-ss-lift, 0px) + 12px); }
.hxs-ss-toggle:hover {
    border-color: rgba(var(--ss-tone), 0.7);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 22px rgba(var(--ss-tone), 0.25);
}
.hxs-ss-toggle:focus-visible {
    outline: 2px solid rgb(var(--ss-tone));
    outline-offset: 3px;
}
.hxs-ss-toggle svg {
    width: 20px;
    height: 20px;
    flex: none;
}
.hxs-ss-toggle[aria-pressed="false"] svg { opacity: 0.45; }

/* Collapse to the icon on narrow screens and sit above the sticky order bar. */
@media (max-width: 782px) {
    .hxs-ss-toggle {
        bottom: 96px;
        left: 12px;
        width: 40px;
        padding: 0;
        justify-content: center;
    }
    .hxs-ss-toggle.is-lifted { bottom: max(96px, calc(var(--hxs-ss-lift, 0px) + 12px)); }
    .hxs-ss-toggle span { display: none; }
}

@media print {
    .hxs-ss-layer, .hxs-ss-toggle { display: none !important; }
}
