/* Christmas decoration. Everything is decorative: pointer-events none (except the close button). */
.xmas { position: fixed; inset: 0; pointer-events: none; z-index: 1350; overflow: hidden; } /* above the header (1000) and the menu/cart drawers (1200-1300), below cookie banner, chat and toasts (9997+) */
.xmas[hidden] { display: none !important; }

.xmas__snow { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Light garland (built by christmas.js at real pixel width) */
.xmas__garland { position: absolute; top: 0; left: 0; width: 100%; height: 54px; }
.xmas__garland canvas { display: block; }
.xmas__lights { position: absolute; top: 0; left: 0; }
.xmas__garland svg { display: block; }
.xmas__bulb { animation: xmas-glow 2.2s ease-in-out infinite; }
@keyframes xmas-glow { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.xmas__halo { animation: xmas-halo 2.2s ease-in-out infinite; }
@keyframes xmas-halo { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Santa waving from the bottom-left corner */
.xmas__climber { position: absolute; left: 14px; bottom: -4px; width: 150px; pointer-events: none; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.xmas__climber.is-visible { transform: translateY(0); }
.xmas__climber svg { display: block; width: 100%; height: auto; overflow: visible; }
.xmas__peekbob { animation: xmas-peekbob 3s ease-in-out infinite; }
@keyframes xmas-peekbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.xmas__wave2 { animation: xmas-wave .55s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 152px 192px; }
.xmas__pom { animation: xmas-pom 2.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes xmas-pom { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes xmas-wave { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
.xmas__close {
    position: absolute; top: 8px; left: 4px; width: 22px; height: 22px; padding: 0;
    border: 1px solid rgba(201, 0, 52, .25); border-radius: 50%; background: #fff8f0; color: #c90034;
    font: 600 14px/1 sans-serif; cursor: pointer; pointer-events: auto; opacity: .85;
}
.xmas__close:hover { opacity: 1; }

@media (max-width: 720px) {
    .xmas__climber { width: 112px; left: 8px; }
    .xmas__close { top: 4px; left: 0; width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .xmas__snow, .xmas__climber { display: none; }
    .xmas__bulb, .xmas__halo, .xmas__peekbob, .xmas__wave2, .xmas__pom { animation: none; }
}

/* ---------- Snow resting on anything pink or red (caps are added by christmas.js) ---------- */
.xmas-cap--dome { clip-path: ellipse(50% 118% at 50% 100%); }
.xmas-cap { position: absolute; z-index: 3; pointer-events: none; background: url(../../img/xmas-snowcap.svg) repeat-x left bottom / auto 100%; }

/* ---------- Gift bow ---------- */
.gl-card:not(.gl-card--compact)::after {
    content: ''; position: absolute; width: 104px; height: 78px; pointer-events: none; z-index: 4;
    background: url(../../img/xmas-bow.svg) no-repeat center / contain;
    filter: drop-shadow(0 4px 4px rgba(60, 0, 15, .3));
}
.gl-card:not(.gl-card--compact) { position: relative; }
.gl-card:not(.gl-card--compact)::after { top: -34px; left: 50%; margin-left: -52px; }

/* ---------- Add-to-cart confetti ---------- */
.xmas__confetti { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2000; }
.xmas__confetti i { position: absolute; display: block; will-change: transform, opacity; }

@media (max-width: 720px) {
}
