/* ==========================================================================
   Holiday Cheer — the Christmas / Holiday Deals category and the Christmas Overstock Sale
   page, both of which carry body.wwg-holiday-cheer. It used to be scoped to
   body.term-christmas, which only a product category can have; the class is added by
   custom-wwg-holiday-cheer.php to every page the dressing applies to.
   Loaded by includes/functions/custom-wwg-holiday-cheer.php.
   ========================================================================== */

@font-face {
	font-family: 'Mountains of Christmas';
	src: url('../../fonts/mountains-of-christmas-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

body.wwg-holiday-cheer {
	--xmas-red: #c8102e;
	--xmas-red-dark: #9e0c24;
	--xmas-green: #1f5a3c;
	--xmas-green-dark: #133a27;
	--xmas-gold: var(--wwg-bone-xdark, #E8B15E);
	--xmas-cream: var(--wwg-bone-xlight, #FCF6ED);
	--xmas-candy: repeating-linear-gradient(-45deg, var(--xmas-red) 0 6px, #fff 6px 12px);
}

/* ---- 1. Snow: wwg-holiday-snow.js (CSS-animated flakes, shared with the home page and product pages) ---- */

/* ---- 2. Festive banner header ---- */
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain {
	position: relative;
	overflow: hidden;
	padding: 72px 0 48px;
	color: var(--xmas-cream);
	background:
		radial-gradient(ellipse at 50% 120%, rgba(232, 177, 94, .28), transparent 60%),
		url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g stroke='%23fff' stroke-opacity='.08' stroke-width='1.4' stroke-linecap='round'><path d='M12 2v20M3.3 7l17.4 10M3.3 17 20.7 7'/></g></svg>") 0 0 / 46px 46px,
		linear-gradient(135deg, var(--xmas-green-dark) 0%, var(--xmas-green) 55%, #24694a 100%) !important;
	text-align: center;
}
/* candy-cane edge replaces the plain rule under the title */
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain::after {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: none;
	height: 8px;
	margin: 0;
	background: var(--xmas-candy);
}
/* the banner says it all, no breadcrumb trail here */
body.wwg-holiday-cheer #wwg_archive_header .wwg-breadcrumbs {
	display: none;
}
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1 {
	margin: 0;
	color: var(--xmas-cream);
	font-family: 'Mountains of Christmas', var(--wwg-font-display) !important; /* base sets headings with !important */
	font-weight: 700;
	font-size: 64px !important;
	line-height: 1.1 !important;
	letter-spacing: .01em !important;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 0 24px rgba(232, 177, 94, .35);
}
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::before,
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::after {
	content: '';
	display: inline-block;
	width: .9em;
	height: .56em;
	margin: 0 .25em;
	vertical-align: middle;
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'><path fill='%231f6b45' d='M30 22c-6-1-10-6-12-12 2 1 4 0 5-2-3-1-4-4-4-6 4 3 9 4 12 9 1 4 0 8-1 11z'/><path fill='%23175237' d='M34 22c6-1 10-6 12-12-2 1-4 0-5-2 3-1 4-4 4-6-4 3-9 4-12 9-1 4 0 8 1 11z'/><circle cx='28' cy='26' r='5' fill='%23c8102e'/><circle cx='36' cy='26' r='5' fill='%23b00d27'/><circle cx='32' cy='31' r='5' fill='%23d6213b'/><circle cx='26.5' cy='24.5' r='1.4' fill='%23fff' fill-opacity='.6'/><circle cx='34.5' cy='24.5' r='1.4' fill='%23fff' fill-opacity='.6'/><circle cx='30.5' cy='29.5' r='1.4' fill='%23fff' fill-opacity='.6'/></svg>") center / contain no-repeat;
}
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::after {
	transform: scaleX(-1);
}
/* The sprigs flank the title as a whole: a flex row, so when a title has to wrap it wraps inside
   its own box, and a sprig never drops onto a line by itself. (2026-12-04) */
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1 {
	display: flex;
	align-items: center;
	justify-content: center;
}
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::before,
body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::after {
	flex: none;
}
/* The Overstock Sale's title is long enough that at 64px, sprigs and all, it would wrap just above
   the 900px breakpoint where the title drops to 44px. So it scales down with the window there
   instead, and stays on one line until the phone size takes over. (user, 2026-12-04) */
body.page-template-page-overstock-sale #wwg_archive_header.wwg_archive_header_plain h1 {
	font-size: min(64px, calc(100vw / 15)) !important;
}

/* String lights along the top of the banner (bulbs injected by the JS) */
.wwg-xmas-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 44px;
	display: flex;
	justify-content: space-around;
	pointer-events: none;
	/* the wire: a scallop between each bulb */
	background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 20' preserveAspectRatio='none'><path d='M0 2 Q28 22 56 2' fill='none' stroke='%230b2418' stroke-width='2'/></svg>") 0 0 / var(--xmas-bulb-gap, 56px) 20px repeat-x;
}
.wwg-xmas-lights span {
	position: relative;
	top: 12px;
	width: 12px;
	height: 18px;
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	background: var(--bulb, #ffd75e);
	box-shadow: 0 4px 14px 2px var(--bulb, #ffd75e);
	animation: wwg-xmas-twinkle 2.4s ease-in-out infinite;
}
.wwg-xmas-lights span::before { /* socket */
	content: '';
	position: absolute;
	top: -5px;
	left: 3px;
	width: 6px;
	height: 6px;
	border-radius: 1px;
	background: #0b2418;
}
.wwg-xmas-lights span:nth-child(4n+1) { --bulb: #ff4d4d; }
.wwg-xmas-lights span:nth-child(4n+2) { --bulb: #ffd75e; animation-delay: .6s; }
.wwg-xmas-lights span:nth-child(4n+3) { --bulb: #5fe08a; animation-delay: 1.2s; }
.wwg-xmas-lights span:nth-child(4n+4) { --bulb: #6ec3ff; animation-delay: 1.8s; }
.wwg-xmas-lights span:nth-child(3n) { animation-duration: 3.1s; }
/* Opacity and filter only, so the GPU runs it. Animating box-shadow here restyled and repainted the
   page 60 times a second for as long as it was open. The glow dims with the bulb's opacity instead. */
@keyframes wwg-xmas-twinkle {
	0%, 100% { opacity: 1; filter: brightness(1.1); }
	50%      { opacity: .45; filter: brightness(.7); }
}

/* ---- 3. Product cards: savings tag, warm glow on hover ---- */
body.wwg-holiday-cheer .wwg_grid_item_product > a {
	transition: transform .25s ease;
}
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink {
	transition: box-shadow .25s ease;
}
/* The savings tag itself, wherever it is shown: the deal cards here and on the Christmas
   Overstock Sale page. Where it sits belongs to whatever is showing it, so that stays in the
   rule below. */
body.wwg-holiday-cheer .wwg-xmas-off {
	display: inline-flex;
	align-items: baseline;
	gap: .3em;
	padding: 6px 10px 6px;
	border-radius: 4px;
	background: #c8102e;
	box-shadow: inset 0 0 0 1px rgba(246, 211, 138, .55), 0 3px 8px rgba(0, 0, 0, .28);
	color: #fff;
	font-family: var(--wwg-font-body, 'Source Sans Pro', sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}
/* On a product card it hangs at the top right of the photo. */
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink .wwg-xmas-off {
	position: absolute;
	z-index: 3;
	top: 12px;
	right: 12px;
}
body.wwg-holiday-cheer .wwg-xmas-off-upto {
	font-size: .72em;
	font-weight: 600;
	letter-spacing: .08em;
	color: #fbe6b8;
}
body.wwg-holiday-cheer .wwg-xmas-off-amt {
	font-size: 1.2em;
	letter-spacing: .01em;
}
/* Overstock Sale: a variation that has sold out keeps its card, greyed, with a Sold Out tag where
   its savings tag was (custom-wwg-sale-page.php). The tag is what marks the card, through :has(),
   because the card's markup is the shared grid-item template's. */
body.wwg-holiday-cheer .wwg-xmas-off.wwg-sale-soldout {
	background: #4a4a4a;
	box-shadow: 0 3px 8px rgba(0, 0, 0, .28);
}
body.wwg-holiday-cheer .wwg_grid_item_product:has(.wwg-sale-soldout) .wwg_grid_item_imglink img,
body.wwg-holiday-cheer .wwg_grid_item_product:has(.wwg-sale-soldout) .wwg_grid_item_info {
	filter: grayscale(1);
	opacity: .5;
}
@keyframes wwg-xmas-jingle {
	0%   { transform: rotate(0); }
	20%  { transform: rotate(14deg); }
	40%  { transform: rotate(-10deg); }
	60%  { transform: rotate(6deg); }
	80%  { transform: rotate(-3deg); }
	100% { transform: rotate(0); }
}
body.wwg-holiday-cheer .wwg_grid_item_product > a:hover,
body.wwg-holiday-cheer .wwg_grid_item_product > a:focus-visible {
	transform: translateY(-4px);
}
body.wwg-holiday-cheer .wwg_grid_item_product > a:hover .wwg_grid_item_imglink,
body.wwg-holiday-cheer .wwg_grid_item_product > a:focus-visible .wwg_grid_item_imglink {
	box-shadow: 0 0 0 2px var(--xmas-gold), 0 12px 32px rgba(232, 177, 94, .55);
}

/* Dice cards: the acrylic and resin d20 photos sit small in a big white frame next to the gemstone
   sets (which already fill theirs), so zoom them in on the die. Just this page; the files are untouched.
   The image box already clips (overflow: hidden), so the scale crops rather than spills. */
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink img[src*="/acrylic-dice-"][src*="-macro-"] {
	transform: scale(1.45);
	transform-origin: 49% 48%;
}
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink img[src*="/resin-dice-"] {
	transform: scale(1.27);
	transform-origin: 49% 49%;
}
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink img[src*="/acrylic-dice-wyrmwood-logo-set"] {
	transform: scale(1.05);
	transform-origin: 51% 52%;
}

/* No savings tag on ribbon cards (Exclusive Offer: Table Accessory Bundles; Free Pieces: Chess Board) or the watch */
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink:has(.wwg-xmas-ribbon) .wwg-xmas-off,
body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink:has(.wwg-xmas-no-sale) .wwg-xmas-off {
	content: none;
	display: none;
}

/* "Only 3 left!" gift tag, tied on at the bottom-left of the image (wwg_grid_item_image_extras) */
body.wwg-holiday-cheer .wwg-xmas-left {
	position: absolute;
	z-index: 3;
	left: 12px;
	bottom: 14px;
	display: inline-flex;
	align-items: baseline;
	gap: .28em;
	padding: 7px 14px 7px 27px;
	background: var(--xmas-red);
	color: #fff;
	clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
	font-family: 'Mountains of Christmas', var(--wwg-font-display);
	font-weight: 700;
	font-size: 21px;
	line-height: 1;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
	transform-origin: 0 50%;
	transform: rotate(-5deg);
	animation: wwg-xmas-tag 3.2s ease-in-out infinite;
	pointer-events: none;
}
body.wwg-holiday-cheer .wwg-xmas-left::before { /* the tag's eyelet */
	content: '';
	position: absolute;
	left: 11px;
	top: 50%;
	width: 6px;
	height: 6px;
	margin-top: -3px;
	border-radius: 50%;
	background: var(--xmas-cream);
	box-shadow: 0 0 0 2px var(--xmas-gold);
}
body.wwg-holiday-cheer .wwg-xmas-left::after { /* stitched edge */
	content: '';
	position: absolute;
	inset: 3px 3px 3px 10px;
	border: 1.5px dashed rgba(255, 255, 255, .7);
	border-left: 0;
	border-radius: 0 3px 3px 0;
	pointer-events: none;
}
body.wwg-holiday-cheer .wwg-xmas-left-only {
	font-size: .78em;
	color: var(--xmas-gold);
}
@keyframes wwg-xmas-tag {
	0%, 100% { transform: rotate(-5deg); }
	50%      { transform: rotate(-2deg) scale(1.05); }
}

/* "Christmas Shipping" tag on the Tabletop Accessories cards that ship in time (not the Chess Board):
   bottom-left of the image, same green-and-gold pill as Giveaway!, but just a label. */
body.wwg-holiday-cheer .wwg-xmas-ships {
	position: absolute;
	z-index: 3;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: 5px 13px 5px 10px;
	border: 2px solid var(--xmas-gold);
	border-radius: 999px;
	background: var(--xmas-green);
	color: #fff;
	font-family: 'Mountains of Christmas', var(--wwg-font-display);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	letter-spacing: .02em;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	pointer-events: none;
}
body.wwg-holiday-cheer .wwg-xmas-ships-icon {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: .85em;
}
body.wwg-holiday-cheer .wwg_grid_item_imglink:has(.wwg-xmas-ships) .wwg-xmas-left {
	bottom: 54px; /* sit above the shipping tag */
}
@media (max-width: 900px) {
	body.wwg-holiday-cheer .wwg-xmas-ships { bottom: 8px; left: 8px; font-size: 14px; padding: 4px 9px 4px 7px; }
	body.wwg-holiday-cheer .wwg_grid_item_imglink:has(.wwg-xmas-ships) .wwg-xmas-left { bottom: 42px; }
}

/* Ribbon ("Free Pieces Included!" on Chess Board, "Exclusive Offer" on watch + bundles): a flat band along the bottom edge of the image,
   gold-trimmed like gift ribbon. Sits still, no hanging or swaying. */
body.wwg-holiday-cheer .wwg-xmas-ribbon {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 7px 12px 8px;
	background: linear-gradient(180deg, rgba(31, 90, 60, .92) 0%, rgba(19, 58, 39, .94) 100%);
	border-top: 2px solid var(--xmas-gold);
	box-shadow: inset 0 3px 0 rgba(19, 58, 39, .9), inset 0 4px 0 rgba(232, 177, 94, .45);
	color: var(--xmas-cream);
	font-family: 'Mountains of Christmas', var(--wwg-font-display);
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
	letter-spacing: .02em;
	text-align: center;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
	pointer-events: none;
}
body.wwg-holiday-cheer .wwg_grid_item_imglink:has(.wwg-xmas-ribbon) .wwg-xmas-left {
	bottom: 48px; /* sit above the ribbon */
}
body.wwg-holiday-cheer .wwg-xmas-ribbon > span::before,
body.wwg-holiday-cheer .wwg-xmas-ribbon > span::after {
	content: '\2726';
	margin: 0 .5em;
	font-size: .6em;
	vertical-align: .2em;
	color: var(--xmas-gold);
}

/* ---- 5. Small touches ---- */
/* holly divider above each deals section */
body.wwg-holiday-cheer #wwg_archive_col_results > h2 {
	position: relative;
	padding-top: 56px;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 32px;
	background:
		url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'><path fill='%231f6b45' d='M30 22c-6-1-10-6-12-12 2 1 4 0 5-2-3-1-4-4-4-6 4 3 9 4 12 9 1 4 0 8-1 11z'/><path fill='%23175237' d='M34 22c6-1 10-6 12-12-2 1-4 0-5-2 3-1 4-4 4-6-4 3-9 4-12 9-1 4 0 8 1 11z'/><circle cx='28' cy='26' r='5' fill='%23c8102e'/><circle cx='36' cy='26' r='5' fill='%23b00d27'/><circle cx='32' cy='31' r='5' fill='%23d6213b'/><circle cx='26.5' cy='24.5' r='1.4' fill='%23fff' fill-opacity='.6'/><circle cx='34.5' cy='24.5' r='1.4' fill='%23fff' fill-opacity='.6'/><circle cx='30.5' cy='29.5' r='1.4' fill='%23fff' fill-opacity='.6'/></svg>") center / 52px 32px no-repeat,
		linear-gradient(var(--xmas-gold), var(--xmas-gold)) left center / calc(50% - 40px) 2px no-repeat,
		linear-gradient(var(--xmas-gold), var(--xmas-gold)) right center / calc(50% - 40px) 2px no-repeat;
}
/* ...except the first section, which sits right under the banner */
body.wwg-holiday-cheer #wwg_archive_col_results > h2:first-of-type {
	padding-top: 40px;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2:first-of-type::before {
	display: none;
}
/* candy-cane underlines */
body.wwg-holiday-cheer #wwg_archive_col_results p a,
body.wwg-holiday-cheer .wwg_grid_item_product > a:hover .wwg_grid_item_info_title,
body.wwg-holiday-cheer .wwg_grid_item_product > a:focus-visible .wwg_grid_item_info_title {
	text-decoration: none;
	background-image: var(--xmas-candy);
	background-size: 100% 4px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	padding-bottom: 5px;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
	body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain {
		padding: 60px 0 36px;
	}
	body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1 {
		font-size: 44px !important;
	}
	body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::before,
	body.wwg-holiday-cheer #wwg_archive_header.wwg_archive_header_plain h1::after {
		display: none; /* no room for the sprigs beside the title on phones */
	}
	body.wwg-holiday-cheer #wwg_archive_col_results > h2 {
		font-size: 36px !important;
	}
	body.wwg-holiday-cheer .wwg-xmas-ribbon {
		padding: 6px 8px 7px;
		font-size: 16px;
	}
	body.wwg-holiday-cheer .wwg_grid_item_imglink:has(.wwg-xmas-ribbon) .wwg-xmas-left {
		bottom: 42px;
	}
	body.wwg-holiday-cheer .wwg-xmas-left {
		font-size: 19px; /* a touch smaller so it still fits on 2-up phone cards */
	}
	body.wwg-holiday-cheer .wwg_grid_item_product .wwg_grid_item_imglink .wwg-xmas-off {
		top: 8px;
		right: 8px;
		padding: 5px 7px;
		font-size: 12px;
	}
}

/* ---- Respect reduced motion: no twinkle, no lift ---- */
@media (prefers-reduced-motion: reduce) {
	body.wwg-holiday-cheer .wwg-xmas-left { animation: none; }
	.wwg-xmas-lights span { animation: none; }
	body.wwg-holiday-cheer .wwg_grid_item_product > a { transition: none; transform: none !important; }
}

/* Festive deal headings: small kicker over a big deal line, savings in red */
body.wwg-holiday-cheer #wwg_archive_col_results > h2 {
	font-size: 46px !important;
	line-height: 1.15;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-kicker {
	display: block;
	margin-bottom: 6px;
	font-size: 0.55em;
	color: var(--xmas-green, #1f6b45);
	letter-spacing: 0.02em;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-headline {
	display: block;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 0.9em;
	margin-right: 4px;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-deal {
	font-weight: 700;
	font-size: 1.18em;
	color: #c8102e;
	text-shadow: 0 2px 0 rgba(212, 175, 55, 0.35);
	white-space: nowrap;
}
/* "Arrives in time for Christmas! (order by <Wyrmwood Settings date>)" badge, next to the deal line on the sections that ship in time */
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0 10px;
	padding: 7px 16px 7px 12px;
	vertical-align: middle;
	position: relative;
	top: -4px;
	border: 2px solid #E8B15E;
	border-radius: 999px;
	background: linear-gradient(135deg, #1f6b45 0%, #133a27 100%);
	box-shadow: 0 4px 12px rgba(19, 58, 39, .25);
	color: #FCF6ED;
	font-family: "Source Sans Pro", "Source Sans 3", Jost, sans-serif;
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: 0;
	text-shadow: none;
	white-space: nowrap;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives-icon {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 18px;
}
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives strong { font-weight: 700; color: #fff; }
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives-text > span { font-weight: 600; color: #F3D08E; }
@media (max-width: 767px) {
	body.wwg-holiday-cheer #wwg_archive_col_results > h2 {
		font-size: 30px !important;
	}
	body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives {
		display: flex;
		width: fit-content;
		max-width: 100%;
		margin: 10px 0 0;
		top: 0;
		padding: 6px 12px 6px 10px;
		font-size: 14px;
		white-space: normal;
	}
	body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-arrives-icon { font-size: 15px; }
}

/* Every card gets a festive blurb here (custom-wwg-holiday-cheer.php); show it in full rather than
   clipping it at three lines like the rest of the shop does. */
body.wwg-holiday-cheer p.wwg_grid_item_desc {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

/* "Starting at" deals: small label on top, then old (struck) + sale price side by side, both large */
body.wwg-holiday-cheer p.wwg_grid_item_price:has(.wwg-xmas-prices) {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-label {
	font-size: var(--wwg-text-sm-size, 14px);
	line-height: var(--wwg-text-sm-line, 20px);
	font-weight: 400;
	color: var(--wwg-color-text-secondary, #6b6461);
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 10px;
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-was,
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-now,
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-reg {
	font-size: 24px;
	line-height: 30px;
	font-weight: 700;
	margin: 0;
	background: none;
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-was {
	color: var(--wwg-color-text-secondary, #6b6461);
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-was::before {
	content: none;
}
/* Items with no sale price: same size, regular text colour */
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-reg {
	color: var(--wwg-color-text-primary, #2b2929);
}
body.wwg-holiday-cheer p.wwg_grid_item_price .wwg-xmas-now {
	color: #c8102e;
	text-decoration: none;
}


/* ---- Holiday Cheer button + sleigh flyover + "Now playing" card (wwg-holiday-cheer.js) ---- */
body.wwg-holiday-cheer .wwg-xmas-cheer-btn {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin: 16px auto 0;
	padding: 9px 22px 10px;
	border: 2px solid var(--xmas-gold);
	border-radius: 999px;
	background: var(--xmas-red);
	color: #fff;
	font-family: 'Mountains of Christmas', var(--wwg-font-display);
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
	box-shadow: 0 0 0 4px rgba(232, 177, 94, .18), 0 6px 18px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
body.wwg-holiday-cheer .wwg-xmas-cheer-btn:hover,
body.wwg-holiday-cheer .wwg-xmas-cheer-btn:focus-visible {
	background: var(--xmas-red-dark);
	transform: translateY(-2px);
	box-shadow: 0 0 0 4px rgba(232, 177, 94, .35), 0 10px 24px rgba(0, 0, 0, .3);
}
body.wwg-holiday-cheer .wwg-xmas-cheer-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
body.wwg-holiday-cheer .wwg-xmas-cheer-btn:active {
	transform: translateY(0) scale(.97);
}
.wwg-xmas-cheer-bell {
	display: inline-block;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: .8em;
	transform-origin: 50% 10%;
	animation: wwg-xmas-jingle 1s ease-in-out 1.5s 2;
}
body.wwg-holiday-cheer .wwg-xmas-cheer-btn:hover .wwg-xmas-cheer-bell {
	animation: wwg-xmas-jingle .9s ease-in-out infinite;
}

/* the sleigh: crosses the top of the window, left to right, on a gentle climb */
.wwg-xmas-sleigh {
	position: fixed;
	top: 70px;
	left: 0;
	z-index: 99999;
	width: 560px;
	pointer-events: none;
	animation: wwg-xmas-fly 8s linear forwards;
	will-change: transform;
}
.wwg-xmas-sleigh svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .18));
}
.wwg-xmas-sleigh-arc { animation: wwg-xmas-arc 8s ease-in-out forwards; }
.wwg-xmas-sleigh-bob { animation: wwg-xmas-bob 1.4s ease-in-out infinite alternate; }
@keyframes wwg-xmas-fly {
	from { transform: translateX(-100%); }
	to   { transform: translateX(100vw); }
}
@keyframes wwg-xmas-arc {
	0%   { transform: translateY(70px) rotate(-4deg); }
	50%  { transform: translateY(0) rotate(-1deg); }
	100% { transform: translateY(-30px) rotate(-3deg); }
}
@keyframes wwg-xmas-bob {
	from { transform: translateY(-6px); }
	to   { transform: translateY(6px); }
}
/* galloping reindeer */
.wwg-xmas-sleigh .wwg-r { animation: wwg-xmas-hop .5s ease-in-out infinite alternate; }
.wwg-xmas-sleigh .wwg-r-front path,
.wwg-xmas-sleigh .wwg-r-back path {
	fill: none;
	stroke: #6b4423;
	stroke-width: 4.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.wwg-xmas-sleigh .wwg-r-front path.far,
.wwg-xmas-sleigh .wwg-r-back path.far { stroke: #4e3119; }
.wwg-xmas-sleigh .wwg-r-front {
	transform-box: view-box;
	transform-origin: 56px 42px;
	animation: wwg-xmas-leg-f .5s ease-in-out infinite alternate;
}
.wwg-xmas-sleigh .wwg-r-back {
	transform-box: view-box;
	transform-origin: 24px 42px;
	animation: wwg-xmas-leg-b .5s ease-in-out infinite alternate;
}
@keyframes wwg-xmas-hop    { from { transform: translateY(2px); }    to { transform: translateY(-3px); } }
@keyframes wwg-xmas-leg-f  { from { transform: rotate(-40deg); }     to { transform: rotate(25deg); } }
@keyframes wwg-xmas-leg-b  { from { transform: rotate(35deg); }      to { transform: rotate(-30deg); } }

/* stardust off the back of the sleigh */
.wwg-xmas-spark {
	position: fixed;
	z-index: 99998;
	color: #f6d38a;
	line-height: 1;
	pointer-events: none;
	text-shadow: 0 0 6px rgba(255, 215, 120, .9), 0 0 2px rgba(150, 100, 20, .8);
	animation: wwg-xmas-spark 1.4s ease-out forwards;
}
@keyframes wwg-xmas-spark {
	0%   { opacity: 1; transform: translate(0, 0) scale(1); }
	100% { opacity: 0; transform: translate(var(--dx, -30px), var(--dy, 40px)) scale(.3) rotate(90deg); }
}

/* "Now playing" card: the official YouTube player, bottom-left, with a close button */
.wwg-xmas-nowplaying {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 10000;
	width: 356px;
	max-width: calc(100vw - 32px);
	padding: 10px;
	box-sizing: border-box;
	border: 2px solid #E8B15E;
	border-radius: 12px;
	background: linear-gradient(135deg, #133a27 0%, #1f5a3c 100%);
	color: #FCF6ED;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .35s ease, transform .35s ease;
}
.wwg-xmas-nowplaying.is-in { opacity: 1; transform: none; }
.wwg-xmas-np-head {
	display: flex;
	align-items: center;
	gap: 8px;
}
/* video lives in a clipping body: collapsed = just the green title bar. The iframe keeps its full size
   (clipped, not resized or display:none) so the music carries on either way. */
.wwg-xmas-np-body {
	max-height: 210px;
	overflow: hidden;
	margin-top: 8px;
	transition: max-height .3s ease, margin-top .3s ease;
}
.wwg-xmas-nowplaying.is-collapsed .wwg-xmas-np-body {
	max-height: 0;
	margin-top: 0;
}
.wwg-xmas-np-title { cursor: pointer; }
.wwg-xmas-np-toggle {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 14px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
	transition: transform .3s ease, background-color .2s ease;
	transform: rotate(180deg);
}
.wwg-xmas-nowplaying.is-collapsed .wwg-xmas-np-toggle { transform: none; }
.wwg-xmas-np-toggle:hover,
.wwg-xmas-np-toggle:focus-visible { background: rgba(255, 255, 255, .25); }
.wwg-xmas-np-note {
	flex: none;
	font-size: 20px;
	color: #E8B15E;
	animation: wwg-xmas-bob .6s ease-in-out infinite alternate;
}
.wwg-xmas-np-title {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	line-height: 1.3;
	opacity: .85;
}
.wwg-xmas-np-title strong {
	display: block;
	font-size: 13px;
	font-weight: 600;
	opacity: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wwg-xmas-np-close {
	flex: none;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}
.wwg-xmas-np-close:hover,
.wwg-xmas-np-close:focus-visible { background: #c8102e; }
.wwg-xmas-np-video {
	position: relative;
	height: 200px; /* YouTube's minimum player height */
	border-radius: 6px;
	overflow: hidden;
	background: #000;
}
.wwg-xmas-np-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 900px) {
	body.wwg-holiday-cheer .wwg-xmas-cheer-btn { font-size: 19px; padding: 8px 18px 9px; margin-top: 12px; }
	.wwg-xmas-sleigh { width: 340px; top: 60px; }
	.wwg-xmas-nowplaying { left: 12px; bottom: 12px; max-width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
	.wwg-xmas-cheer-bell,
	body.wwg-holiday-cheer .wwg-xmas-cheer-btn:hover .wwg-xmas-cheer-bell { animation: none; }
}

/* ---- "Giveaway!" pill on the mug + candle cards, and its info bubble (wwg-holiday-cheer.js) ---- */
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn { /* over the bottom-left of the mug + candle card images */
	position: absolute;
	z-index: 4;
	bottom: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin: 0;
	padding: 5px 7px 5px 13px;
	border: 2px solid var(--xmas-gold);
	border-radius: 999px;
	background: var(--xmas-green);
	color: #fff;
	font-family: 'Mountains of Christmas', var(--wwg-font-display);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: none;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn:hover,
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn:focus-visible,
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn[aria-expanded="true"] {
	background: var(--xmas-green-dark);
	transform: translateY(-1px);
}
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}
.wwg-xmas-giveaway-gift {
	display: inline-block;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: .85em;
	transform-origin: 50% 80%;
	animation: wwg-xmas-jingle 1s ease-in-out 3s 2;
}
body.wwg-holiday-cheer .wwg-xmas-giveaway-btn:hover .wwg-xmas-giveaway-gift {
	animation: wwg-xmas-jingle .9s ease-in-out infinite;
}
.wwg-xmas-giveaway-i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-left: 2px;
	border-radius: 50%;
	background: var(--xmas-cream);
	color: var(--xmas-green);
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-shadow: none;
}
.wwg-xmas-giveaway-bubble {
	position: absolute;
	z-index: 10000;
	width: 360px;
	max-width: calc(100vw - 24px);
	padding: 10px;
	border: 2px solid var(--xmas-gold, #E8B15E);
	border-radius: 14px;
	background: var(--xmas-cream, #FCF6ED);
	color: var(--wwg-color-text-primary, #2b2929);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
	text-align: left;
	animation: wwg-xmas-pop .18s ease-out;
}
.wwg-xmas-giveaway-bubble[hidden] { display: none; }
.wwg-xmas-giveaway-bubble::before { /* the little pointer up at the pill */
	content: '';
	position: absolute;
	top: -9px;
	left: calc(var(--arrow-x, 50%) - 8px);
	width: 16px;
	height: 16px;
	border-left: 2px solid var(--xmas-gold, #E8B15E);
	border-top: 2px solid var(--xmas-gold, #E8B15E);
	background: var(--xmas-cream, #FCF6ED);
	transform: rotate(45deg);
}
.wwg-xmas-giveaway-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}
.wwg-xmas-giveaway-copy {
	padding: 10px 6px 2px;
	font-size: 15px;
	line-height: 1.45;
}
.wwg-xmas-giveaway-copy p { margin: 0 0 8px; }
.wwg-xmas-giveaway-copy p:last-child { margin-bottom: 4px; }
.wwg-xmas-giveaway-copy strong { color: var(--xmas-red, #c8102e); font-weight: 700; }
.wwg-xmas-giveaway-copy .wwg-xmas-giveaway-title {
	margin-bottom: 6px;
	color: var(--xmas-green, #1f5a3c);
	font-family: 'Mountains of Christmas', var(--wwg-font-display, serif);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.1;
}
.wwg-xmas-giveaway-bubble .wwg-xmas-giveaway-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 1;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 20px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}
.wwg-xmas-giveaway-bubble .wwg-xmas-giveaway-close:hover { background: rgba(0, 0, 0, .75); }
@keyframes wwg-xmas-pop {
	from { opacity: 0; transform: translateY(-4px) scale(.98); }
	to { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
	body.wwg-holiday-cheer .wwg-xmas-giveaway-btn { bottom: 8px; left: 8px; font-size: 15px; padding: 4px 5px 4px 10px; }
	.wwg-xmas-giveaway-i { width: 17px; height: 17px; font-size: 12px; }
	.wwg-xmas-giveaway-copy { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.wwg-xmas-giveaway-gift,
	body.wwg-holiday-cheer .wwg-xmas-giveaway-btn:hover .wwg-xmas-giveaway-gift,
	.wwg-xmas-giveaway-bubble { animation: none; }
}

/* the same pill once in the Dice Deals heading (covers every dice set), next to the Christmas badge */
body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-giveaway-btn--section {
	position: relative;
	top: -4px;
	bottom: auto;
	left: auto;
	margin: 0 0 0 10px;
	padding: 7px 8px 7px 14px;
	vertical-align: middle;
	font-size: 22px;
	white-space: nowrap;
}
@media (max-width: 767px) {
	body.wwg-holiday-cheer #wwg_archive_col_results > h2 .wwg-xmas-giveaway-btn--section {
		display: flex;
		width: fit-content;
		top: 0;
		margin: 10px 0 0;
		padding: 5px 6px 5px 12px;
		font-size: 18px;
	}
}

/* hover mode (mouse): bubble follows the pill hover, so no × and it never steals the pointer */
.wwg-xmas-giveaway-bubble.is-hover { pointer-events: none; }
.wwg-xmas-giveaway-bubble.is-hover .wwg-xmas-giveaway-close { display: none; }

/* Tabletop Accessories cards (marker .wwg-xmas-sec-ships) get the % off tag in the usual top-right spot and no "Only N left!" tag (wwg_holiday_cheer_tag_kind() / the low-stock hook). */
