/* Festive Christmas Mode */

/* ---- Snow canvas ---- */
.fcm-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 99998;
}

/* ---- Banner ---- */
.fcm-banner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	padding: 10px 44px 10px 16px;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	box-sizing: border-box;
	width: 100%;
	/* Candy-cane stripe along the bottom edge */
	border-bottom: 4px solid transparent;
	border-image: repeating-linear-gradient(135deg, #fff 0 10px, #c8102e 10px 20px) 4;
}
.fcm-banner-count {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 2px 12px;
	font-size: 13px;
}
.fcm-banner-close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	font-size: 22px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	opacity: 0.8;
}
.fcm-banner-close:hover {
	opacity: 1;
}

/* ---- Lights ---- */
.fcm-lights {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	overflow: hidden !important;
	pointer-events: none !important;
	z-index: 99997;
	background: none !important;
}
body.admin-bar .fcm-lights {
	top: 32px;
}
@media (max-width: 782px) {
	body.admin-bar .fcm-lights {
		top: 46px;
	}
}
/* The wire */
.fcm-lights::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	height: 2px;
	background: #1f2a1f;
}
/* The glass bulb */
.fcm-lights .fcm-bulb {
	--c: #ff3b3b;
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	box-sizing: border-box !important;
	width: 12px !important;
	height: 18px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 11px 13px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38% !important;
	background:
		radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95) 0 9%, rgba(255, 255, 255, 0) 26%),
		radial-gradient(ellipse at 50% 45%, var(--c) 0 58%, rgba(0, 0, 0, 0.35) 135%) !important;
	background-color: var(--c) !important;
	box-shadow: 0 0 10px 2px var(--c);
	transform-origin: 50% -8px;
	animation: fcm-twinkle 1.6s ease-in-out infinite alternate;
}
.fcm-lights .fcm-bulb:nth-child(odd) { transform: rotate(-5deg); }
.fcm-lights .fcm-bulb:nth-child(even) { transform: rotate(5deg); }
/* The socket */
.fcm-lights .fcm-bulb::before {
	content: "";
	position: absolute;
	top: -9px;
	left: 50%;
	width: 7px;
	height: 10px;
	margin-left: -3.5px;
	border-radius: 2px 2px 1px 1px;
	background: repeating-linear-gradient(180deg, #2d3b2d 0 2px, #1a241a 2px 3px);
}
.fcm-lights--multicolor .fcm-bulb:nth-child(4n + 1) { --c: #ff3b3b; }
.fcm-lights--multicolor .fcm-bulb:nth-child(4n + 2) { --c: #2ecc40; }
.fcm-lights--multicolor .fcm-bulb:nth-child(4n + 3) { --c: #ffd23f; }
.fcm-lights--multicolor .fcm-bulb:nth-child(4n + 4) { --c: #3aa6ff; }
.fcm-lights--warm .fcm-bulb { --c: #ffc15e; }
.fcm-lights--white .fcm-bulb { --c: #f4f8ff; }
.fcm-lights .fcm-bulb:nth-child(3n) { animation-delay: -0.5s; }
.fcm-lights .fcm-bulb:nth-child(3n + 1) { animation-delay: -1s; animation-duration: 1.9s; }
.fcm-lights .fcm-bulb:nth-child(5n) { animation-delay: -1.4s; }

@keyframes fcm-twinkle {
	from { filter: brightness(0.75) saturate(0.95); box-shadow: 0 0 4px 1px var(--c); }
	to   { filter: brightness(1.1) saturate(1.1);   box-shadow: 0 0 12px 3px var(--c); }
}

/* ---- Shortcode ---- */
.fcm-countdown {
	display: inline-block;
	font-weight: 700;
	color: #c8102e;
}

/* ---- Respect reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
	.fcm-lights .fcm-bulb {
		animation: none;
	}
}

/* Don't print the decorations */
@media print {
	.fcm-snow, .fcm-lights, .fcm-banner {
		display: none !important;
	}
}
