/**
 * White Christmas
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the GNU General Public License version 2 (GPLv2)
 * that is bundled with this package in the file LICENSE.
 * It is also available through the world-wide-web at this URL:
 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade this module to newer
 * versions in the future. If you need help, contact leo@prestachamps.com
 *
 * @author    PrestaChamps
 * @copyright PrestaChamps
 * @license   GNU General Public License version 2 (GPLv2)
 */

/**
 * White Christmas 5.0 â€” shared front styles
 *
 * Copyright (C) 2025-2026 PrestaChamps <leo@prestachamps.com>
 * Licensed under the GNU General Public License version 2 (GPLv2).
 * https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * Shared, effect-agnostic front styles: the z-index layer system every effect
 * shares, the shared canvas element, and the overlay/UI helper classes F2/F3/F4
 * attach their DOM/SVG effects to. The per-effect look (snowflakes, lights,
 * santa, snowman, promo bar) ships with each effect; keep that out of here.
 *
 * Layer system (mirrors WhiteChristmas.layers in wc-engine.js). The values sit
 * UNDER the band where cookie banners and modals live (Bootstrap modal 1050,
 * most consent bars >= 1000) and nowhere near the 2147483646 the 3.x code used.
 * Every ambient layer is click-through (pointer-events: none).
 */
:root {
    --wc-layer-canvas: 900;   /* ambient particles: body snow, stars, trail, gifts */
    --wc-layer-overlay: 920;  /* DOM/SVG overlays: lights strip, snowman, top snow */
    --wc-layer-ui: 950;       /* interactive chrome: the promo / shipping-cutoff bar */
}

/* The one shared full-screen particle canvas the engine creates on demand. */
#wc-shared-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--wc-layer-canvas);
}

/* Full-screen, click-through container for DOM/SVG effects (lights, snowman). */
.wc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--wc-layer-overlay);
    overflow: hidden;
}

/* Fixed layer for interactive chrome (promo bar). Opt back into pointer events
 * on the clickable child, not the whole layer, so the rest stays click-through. */
.wc-ui-layer {
    position: fixed;
    pointer-events: none;
    z-index: var(--wc-layer-ui);
}

.wc-ui-layer > * {
    pointer-events: auto;
}

/* Nothing in the module should ever intercept clicks it does not own. */
.wc-click-through {
    pointer-events: none;
}

/* Respect the OS reduced-motion preference for any CSS-animated effect. The
 * engine already skips motion-heavy canvas effects when the shop honours the
 * flag; this covers DOM/SVG effects that animate purely in CSS. */
@media (prefers-reduced-motion: reduce) {
    .wc-animated {
        animation: none !important;
        transition: none !important;
    }
}

/* demo9 hotfix: lift top effects above sticky header (2026-10-28): Hummingbird header is sticky z-index:1021 and opaque,
   which covered the top-of-page snow drift and the lights garland (z-index:920).
   Lift them above the header so they are visible. Demo-only; proper fix is in the module. */
.wc-topsnow,.wc-lights{z-index:1030 !important;}
