/* White Friday 2026 pop-up: a modal on desktop, a small bottom banner on phones
   (Google penalises pop-ups that cover the page on mobile). */
.wf_popup[hidden], .wf_popup [hidden] { display: none !important; }
.wf_popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.wf_popup .wf_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	animation: wf_fade .25s ease-out;
}
.wf_popup .wf_card {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: var(--brand-accent);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	animation: wf_in .3s cubic-bezier(.2, .8, .3, 1);
}
/* The sale artwork is square, so its card is narrower than the 16:9 teaser. */
.wf_popup.is-live .wf_card { max-width: 560px; }
.wf_popup .wf_art { display: block; line-height: 0; }
.wf_popup .wf_art img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px 20px 0 0;
}
.wf_popup .wf_bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px 4px;
}
.wf_popup .wf_title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #000;
}
.wf_popup .wf_sub {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #000;
}
.wf_popup .wf_countdown { font-weight: 700; color: #000; }
.wf_popup .wf_button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border-radius: 999px;
	background: #000;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease;
}
.wf_popup .wf_button:hover { background: #222; transform: translateY(-1px); }
.wf_popup .wf_button:focus-visible,
.wf_popup .wf_close:focus-visible,
.wf_popup .wf_art:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.wf_popup .wf_terms {
	margin: 0;
	padding: 6px 24px 16px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.3;
	color: rgba(0, 0, 0, .7);
}
.wf_popup .wf_close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .75);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.wf_popup .wf_close:hover { background: #000; }

@keyframes wf_fade { from { opacity: 0; } }
@keyframes wf_in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* Phones: no artwork and no backdrop, just a banner at the bottom that leaves
   the page usable. */
@media (max-width: 760px) {
	.wf_popup {
		inset: auto 0 0 0;
		padding: 0 12px 12px;
		pointer-events: none;
	}
	.wf_popup .wf_backdrop, .wf_popup .wf_art { display: none; }
	.wf_popup .wf_card {
		pointer-events: auto;
		max-width: none !important;
		border-radius: 16px;
		box-shadow: 0 -4px 30px rgba(0, 0, 0, .25);
		animation-name: wf_up;
	}
	.wf_popup .wf_bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px 60px 0 16px;
	}
	/* Black, so it stands out on the yellow and the white pages alike. */
	.wf_popup .wf_card { background: #000; }
	.wf_popup .wf_title { font-size: 17px; color: var(--brand-accent); }
	.wf_popup .wf_sub, .wf_popup .wf_countdown { font-size: 13px; color: #fff; }
	.wf_popup .wf_terms { padding: 6px 16px 12px; color: rgba(255, 255, 255, .6); }
	.wf_popup .wf_button { justify-content: center; margin-right: -44px; background: var(--brand-accent); color: #000; }
	.wf_popup .wf_button:hover { background: var(--brand-accent-2); }
	.wf_popup .wf_close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 24px; background: rgba(255, 255, 255, .15); }
	.wf_popup .wf_button:focus-visible, .wf_popup .wf_close:focus-visible { outline-color: var(--brand-accent); }
}
@keyframes wf_up { from { transform: translateY(110%); } }

@media (prefers-reduced-motion: reduce) {
	.wf_popup .wf_backdrop, .wf_popup .wf_card { animation: none; }
	.wf_popup .wf_button { transition: none; }
}
