/* Black Friday 2026 popup — markup in /popup-blackfriday.html, behavior in
   /assets/js/popup-blackfriday.js. Temporarily replaces the holiday popup
   (/popup.html + /assets/css/popup.css, both kept for the switch back).
   Desktop: 720×405 card, everything scales with the card width (cqw units,
   1cqw = 7.2px at full size). Phones (≤ 640px): taller card, fixed sizes. */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400&display=swap");

.bfpop {
	--bf-gold: #c9a86a;
	--bf-gold-line: rgba(201, 168, 106, 0.55);
	--bf-cream: #e6dcc6;

	width: min(720px, calc(100vw - 40px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
	color: #fff;
}

.bfpop::backdrop {
	background: rgba(10, 24, 31, 0.6);
}

.bfpop[open] {
	animation: bfpop-in 0.35s ease-out;
}

@keyframes bfpop-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.bfpop__card {
	container-type: inline-size;
	position: relative;
	aspect-ratio: 720 / 405;
	max-height: calc(100vh - 40px);
	background: #1c3a47 url("/assets/img/popup/blackfriday-2026.jpg") right center / cover no-repeat;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.bfpop__card:focus {
	outline: none;
}

/* Close button (same as the holiday popup) */
.bfpop__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	color: #1b2730;
	font-size: 0;
	cursor: pointer;
}

.bfpop__close svg { width: 12px; height: 12px; }
.bfpop__close:hover { background: #f1ece3; }
.bfpop__close:focus-visible { outline: 2px solid var(--bf-gold); outline-offset: 2px; }

.bfpop__body {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3cqw 6cqw 2.2cqw;
	text-align: center;
	box-sizing: border-box;
}

/* never squash a line to fit; sizes below are set to fit the 720×405 card */
.bfpop__body > * {
	flex-shrink: 0;
}

.bfpop__eyebrow {
	margin: 0 0 1.4cqw;
	font-family: "poppins", sans-serif;
	font-weight: 500;
	font-size: 1.55cqw;
	line-height: 1.3;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--bf-gold);
}

.bfpop__title {
	margin: 0;
	padding-bottom: 0.06em; /* keep the "y" inside the gradient */
	font-family: "Playfair Display", "butler", Georgia, serif;
	font-weight: 400;
	font-size: 8.4cqw;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	color: #d4b77d;
	background: linear-gradient(180deg, #ecd6a4 0%, #d2b277 45%, #a8854f 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.bfpop__event {
	margin: 0.4cqw 0 2.2cqw;
	font-family: "poppins", sans-serif;
	font-weight: 500;
	font-size: 1.6cqw;
	line-height: 1.3;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--bf-cream);
}

.bfpop__dot {
	display: inline-block;
	margin: 0 1em;
}

/* Spend / bonus tiers */
.bfpop__tiers {
	width: 54.5cqw;
	margin: 0 0 3cqw !important;
	padding: 0 !important;
	list-style: none !important;
	border-top: 1px solid var(--bf-gold-line);
}

.bfpop__tiers li {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: baseline;
	column-gap: 2.6cqw;
	margin: 0 !important;
	padding: 0.75cqw 0 !important;
	border-bottom: 1px solid var(--bf-gold-line);
}

.bfpop__spend { text-align: right; }
.bfpop__bonus { text-align: left; }

.bfpop__label {
	margin-right: 0.7em;
	font-family: "poppins", sans-serif;
	font-weight: 500;
	font-size: 1.3cqw;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
}

.bfpop__amt {
	font-family: "Playfair Display", "butler", Georgia, serif;
	font-weight: 400;
	font-size: 3cqw;
	line-height: 1.15;
	color: #fff;
}

.bfpop__bonus .bfpop__amt { color: var(--bf-gold); }

.bfpop__arrow {
	font-family: "poppins", sans-serif;
	font-size: 1.4cqw;
	color: var(--bf-gold);
}

/* Button: the site's white masthead button (white, teal #005f71 text) */
.bfpop__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 29cqw;
	height: 6.1cqw;
	padding: 0 2cqw;
	background: #fff;
	color: #005f71;
	font-family: "poppins", sans-serif;
	font-weight: 500;
	font-size: 1.6cqw;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s, color 0.2s;
}

.bfpop__btn:hover,
.bfpop__btn:focus-visible {
	background: #f1ece3;
	color: #005f71;
}

.bfpop__fine {
	margin: 1.8cqw 0 0;
	font-family: "poppins", sans-serif;
	font-weight: 300;
	font-size: 1.4cqw;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
}

.bfpop__fine span { display: block; }

/* Phones ------------------------------------------------------------------- */
@media (max-width: 640px) {
	.bfpop {
		width: min(380px, calc(100vw - 24px));
	}

	.bfpop__card {
		aspect-ratio: auto;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		overflow-y: auto;
		background-position: 85% center;
	}

	.bfpop__close {
		top: 12px;
		right: 12px;
	}

	.bfpop__body {
		height: auto;
		padding: 52px 20px 28px;
	}

	.bfpop__eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 10px; }
	.bfpop__title { font-size: 50px; }
	.bfpop__event { font-size: 11px; letter-spacing: 0.24em; margin: 4px 0 20px; }
	.bfpop__tiers { width: 100%; margin-bottom: 24px !important; }
	.bfpop__tiers li { column-gap: 12px; padding: 7px 0 !important; }
	.bfpop__label { font-size: 9px; }
	.bfpop__amt { font-size: 22px; }
	.bfpop__arrow { font-size: 11px; }
	.bfpop__btn { width: 100%; height: 50px; font-size: 13px; padding: 0 16px; }
	.bfpop__fine { font-size: 11px; margin-top: 18px; }
}

/* Lock page scroll while open */
html.bfpop-lock,
html.bfpop-lock body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.bfpop[open] { animation: none; }
}
