/* ==========================================================================
   Christmas mode (temporary). Loaded only while Christmas mode is on.
   Every decoration has pointer-events: none so it can never block a tap or click.
   ========================================================================== */

:root {
	--sz-xmas-green: #15402b;
	--sz-xmas-green-2: #1d5a3c;
	--sz-xmas-red: #b3262d;
	--sz-xmas-gold: #f2c14e;
}

/* Deadline notice (shared) ----------------------------------------------- */

.sz-xmas-notice [hidden] { display: none !important; }
.sz-xmas-notice.is-empty { display: none !important; }
.sz-xmas-notice__text { flex: 1 1 auto; min-width: 0; }
.sz-xmas-chip, .sz-xmas-panel, .sz-buy__assure .sz-xmas-assure { flex-wrap: nowrap !important; align-items: flex-start; }
.sz-xmas-notice__icon { display: inline-grid; place-items: center; color: var(--sz-xmas-red); flex: none; }
.sz-xmas-notice__icon svg { display: block; }
.sz-xmas-count {
	display: inline-block;
	margin-left: 6px;
	padding: 0.05em 0.6em;
	border-radius: 999px;
	background: var(--sz-xmas-gold);
	color: #2a1f05;
	font-weight: 700;
	font-size: 0.86em;
	white-space: nowrap;
	vertical-align: 0.05em;
}

/* Top bar ------------------------------------------------------------------ */

.sz-xmas-bar {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(90deg, var(--sz-xmas-green), var(--sz-xmas-green-2) 50%, var(--sz-xmas-green));
}
.sz-xmas-bar__slides { display: grid; }
.sz-xmas-bar__slide {
	grid-area: 1 / 1;
	align-self: center;
	transition: opacity 0.5s ease, transform 0.5s ease;
}
.sz-xmas-bar__slide:not(.is-current) { opacity: 0; transform: translateY(6px); pointer-events: none; visibility: hidden; }
.sz-xmas-bar .sz-xmas-bar__slide a { display: inline; padding: 0; color: inherit; }
.sz-xmas-bar__deadline strong { color: var(--sz-xmas-gold); font-weight: 700; }
.sz-xmas-bar__star { color: var(--sz-xmas-gold); margin-right: 6px; }

/* Falling snow: one tall patterned layer moved with transform only (cheap on phones). */
.sz-xmas-bar__snow,
.sz-xmas--snow .sz-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -160px;
	bottom: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(circle at 12px 18px, rgba(255, 255, 255, 0.9) 1.4px, transparent 2px),
		radial-gradient(circle at 64px 70px, rgba(255, 255, 255, 0.7) 1px, transparent 1.6px),
		radial-gradient(circle at 118px 30px, rgba(255, 255, 255, 0.85) 1.8px, transparent 2.4px),
		radial-gradient(circle at 170px 110px, rgba(255, 255, 255, 0.6) 1.2px, transparent 1.8px),
		radial-gradient(circle at 40px 128px, rgba(255, 255, 255, 0.75) 1.5px, transparent 2.1px),
		radial-gradient(circle at 210px 54px, rgba(255, 255, 255, 0.8) 1.1px, transparent 1.7px),
		radial-gradient(circle at 92px 146px, rgba(255, 255, 255, 0.55) 2px, transparent 2.6px);
	background-size: 240px 160px;
	animation: sz-xmas-snow 14s linear infinite;
	will-change: transform;
}
.sz-xmas-bar__snow { opacity: 0.55; }

@keyframes sz-xmas-snow {
	from { transform: translateY(0); }
	to { transform: translateY(160px); }
}

/* Fairy lights under the header -------------------------------------------- */

.sz-xmas-lights {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 20px;
	margin-top: -3px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='20' viewBox='0 0 128 20'%3E%3Cpath d='M0 2Q16 9 32 2T64 2T96 2T128 2' fill='none' stroke='%23324238' stroke-width='1.2'/%3E%3Cg%3E%3Crect x='14.5' y='5' width='3' height='3' rx='.6' fill='%23324238'/%3E%3Cellipse cx='16' cy='12' rx='3.2' ry='4.6' fill='%23e5383b'/%3E%3Crect x='46.5' y='5' width='3' height='3' rx='.6' fill='%23324238'/%3E%3Cellipse cx='48' cy='12' rx='3.2' ry='4.6' fill='%23f2c14e'/%3E%3Crect x='78.5' y='5' width='3' height='3' rx='.6' fill='%23324238'/%3E%3Cellipse cx='80' cy='12' rx='3.2' ry='4.6' fill='%2340a060'/%3E%3Crect x='110.5' y='5' width='3' height='3' rx='.6' fill='%23324238'/%3E%3Cellipse cx='112' cy='12' rx='3.2' ry='4.6' fill='%233a86e8'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.55'%3E%3Cellipse cx='15' cy='10.5' rx='1' ry='1.6'/%3E%3Cellipse cx='47' cy='10.5' rx='1' ry='1.6'/%3E%3Cellipse cx='79' cy='10.5' rx='1' ry='1.6'/%3E%3Cellipse cx='111' cy='10.5' rx='1' ry='1.6'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 128px 20px;
}
.sz-xmas-lights__glow {
	position: absolute;
	inset: 0;
	background-repeat: repeat-x;
	background-size: 128px 20px;
	opacity: 0.25;
	animation: sz-xmas-twinkle 2.4s ease-in-out infinite alternate;
}
.sz-xmas-lights__glow--a {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='20' viewBox='0 0 128 20'%3E%3Ccircle cx='16' cy='12' r='8' fill='%23ff5a5f' opacity='.45'/%3E%3Ccircle cx='80' cy='12' r='8' fill='%2360d080' opacity='.45'/%3E%3C/svg%3E");
}
.sz-xmas-lights__glow--b {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='20' viewBox='0 0 128 20'%3E%3Ccircle cx='48' cy='12' r='8' fill='%23ffd166' opacity='.5'/%3E%3Ccircle cx='112' cy='12' r='8' fill='%2370a8ff' opacity='.45'/%3E%3C/svg%3E");
	animation-delay: -1.2s;
}
@keyframes sz-xmas-twinkle {
	from { opacity: 0.15; }
	to { opacity: 1; }
}

/* Home page --------------------------------------------------------------- */

.sz-xmas-chip {
	display: inline-flex;
	gap: 8px;
	margin: 0 0 18px;
	padding: 8px 14px 8px 11px;
	border-radius: 14px;
	background: var(--sz-paper);
	box-shadow: 0 1px 2px rgba(28, 40, 48, 0.08), inset 0 0 0 1px color-mix(in srgb, var(--sz-xmas-red) 25%, transparent);
	font-size: var(--sz-t-sm);
	font-weight: 550;
	line-height: 1.35;
}
.sz-xmas-chip strong { color: var(--sz-xmas-red); }
.sz-xmas-chip .sz-xmas-notice__icon { margin-top: 1px; }

/* A sprig of holly on the large hero canvas. */
.sz-xmas--snow .sz-hero__piece--a::after {
	content: "";
	position: absolute;
	z-index: 3;
	top: -22px;
	left: -18px;
	width: 74px;
	height: 56px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 56'%3E%3Cg stroke='%230f3a22' stroke-width='1' stroke-linejoin='round'%3E%3Cpath d='M36 30C30 24 22 22 10 24c4 2 2 6 6 7-3 2-1 5-4 7 9 2 18-1 24-8z' fill='%23236b3f'/%3E%3Cpath d='M38 29c4-8 12-13 24-14-3 3 0 6-3 8 3 1 2 5 5 6-8 5-18 5-26 0z' fill='%232e7d4b'/%3E%3C/g%3E%3Cpath d='M36 30C28 28 20 27 13 29M38 29c7-4 14-7 21-8' stroke='%23153d26' stroke-width='.8' fill='none'/%3E%3Ccircle cx='33' cy='33' r='5' fill='%23c8242c'/%3E%3Ccircle cx='41' cy='35' r='5' fill='%23b31d25'/%3E%3Ccircle cx='37' cy='27.5' r='5' fill='%23d32f36'/%3E%3Ccircle cx='35.5' cy='26' r='1.4' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='31.5' cy='31.5' r='1.2' fill='%23fff' opacity='.5'/%3E%3Ccircle cx='39.5' cy='33.5' r='1.2' fill='%23fff' opacity='.5'/%3E%3C/svg%3E") no-repeat center / contain;
	filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.25));
}
@media (max-width: 860px) {
	.sz-xmas--snow .sz-hero__piece--a::after { width: 54px; height: 41px; top: -16px; left: -12px; }
}

/* Canvas Studio buy box, product pages, basket, checkout -------------------- */

.sz-buy__assure .sz-xmas-assure { color: var(--sz-ink); font-weight: 550; }
.sz-buy__assure .sz-xmas-assure strong { color: var(--sz-xmas-red); }
.sz-buy__assure .sz-xmas-assure .sz-xmas-notice__icon { color: var(--sz-xmas-red); }

.sz-xmas-panel {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0;
	padding: 12px 16px;
	border-radius: var(--sz-r-ui);
	background: color-mix(in srgb, var(--sz-xmas-green) 7%, var(--sz-paper));
	border: 1px solid color-mix(in srgb, var(--sz-xmas-green) 22%, transparent);
	font-size: var(--sz-t-sm);
	line-height: 1.45;
}
.sz-xmas-panel strong { color: var(--sz-xmas-red); }
.sz-xmas-panel .sz-xmas-notice__icon { margin-top: 1px; }
.sz-xmas-panel--cart { margin-top: 0; }

/* Footer: snow drifts along the top edge and gentle snowfall --------------- */

.sz-xmas--snow .sz-footer { position: relative; isolation: isolate; overflow: hidden; }
.sz-xmas--snow .sz-footer::before { opacity: 0.35; animation-duration: 18s; }
.sz-xmas--snow .sz-footer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 14px;
	pointer-events: none;
	background:
		radial-gradient(circle at 14px -2px, var(--sz-paper) 12px, transparent 12.5px) 0 0 / 28px 14px repeat-x,
		radial-gradient(circle at 30px -6px, var(--sz-paper) 14px, transparent 14.5px) 9px 0 / 46px 14px repeat-x;
}

/* Respect "reduce motion": keep the decoration, stop it moving. */
@media (prefers-reduced-motion: reduce) {
	.sz-xmas-bar__snow,
	.sz-xmas--snow .sz-footer::before,
	.sz-xmas-lights__glow { animation: none !important; }
	.sz-xmas-lights__glow { opacity: 0.6; }
	.sz-xmas-bar__slide { transition: none; }
}

/* Print: no decoration. */
@media print {
	.sz-xmas-lights, .sz-xmas-bar__snow, .sz-hero__piece--a::after { display: none !important; }
}

/* Snow switched off in the Customiser. */
.sz-xmas:not(.sz-xmas--snow) .sz-xmas-bar__snow { display: none; }

/* Room for the fairy lights above the Canvas Studio preview tabs. */
.sz-xmas--lights .sz-stage { padding-top: 28px; }

/* Hidden notices stay hidden even where a display value is set above (e.g. during a sale). */
.sz-xmas-notice[hidden] { display: none !important; }
