/* Black Friday banner (inc/black-friday.php): a slim full-width band under the header on the homepage, kept short so the hero stays above the fold. */
.bb-bf {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, var(--bb-night) 0%, var(--bb-purple-dark) 55%, var(--bb-purple) 100%);
	color: #fff;
}
.bb-bf::before { /* soft yellow glow, decoration only */
	content: "";
	position: absolute;
	left: -120px;
	top: -200px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(closest-side, rgba(254, 216, 0, .25), rgba(254, 216, 0, 0));
}
.bb-bf__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 32px;
	max-width: 1368px;
	margin: 0 auto;
	padding: 10px 24px;
}
.bb-bf p { margin: 0; }
/* a decorative menorah at the far left, in the party yellow; the message takes the space between it and the code */
.bb-bf__menorah { flex: 0 0 auto; width: 56px; height: auto; color: var(--bb-yellow); }
.bb-bf__msg { flex: 1 1 260px; }
@media (max-width: 600px) { .bb-bf__menorah { width: 40px; } }
/* message: tag at the left, headline above the small print */
.bb-bf__msg { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; }
.bb-bf__label {
	grid-row: 1 / span 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bb-yellow);
	color: var(--bb-night);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .1em;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: nowrap;
}
.bb-bf__title {
	color: #fff;
	font-family: var(--bb-heading-font);
	font-size: clamp(1.5rem, 2.4vw, 1.9rem);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.1;
	text-transform: uppercase;
}
.bb-bf__text { font-size: .95rem; line-height: 1.3; }
.bb-bf__action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bb-bf__code {
	display: flex;
	align-items: center;
	gap: 4px 12px;
	padding: 4px 8px 4px 14px;
	border: 2px dashed var(--bb-yellow); /* a coupon edge */
	border-radius: var(--bb-radius);
	background: rgba(255, 255, 255, .08);
}
.bb-bf__code-label { font-size: .75rem; letter-spacing: .05em; line-height: 1.15; text-transform: uppercase; }
.bb-bf__code-row { display: flex; align-items: center; gap: 4px 12px; }
.bb-bf__code-value {
	color: var(--bb-yellow);
	font-family: var(--bb-heading-font);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.1;
	user-select: all;
}
.bb-bf__copy {
	min-height: 44px;
	padding: 0 16px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.bb-bf__copy:not([hidden]) { display: inline-flex; align-items: center; }
.bb-bf__copy:hover, .bb-bf__copy:focus-visible { background: #fff; color: var(--bb-purple-dark); }
.bb-bf__status { color: var(--bb-yellow); font-size: .85rem; font-weight: 700; }
.bb-bf__status:empty { display: none; }
.bb-bf__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 24px;
	border: 2px solid var(--bb-yellow);
	border-radius: 999px;
	background: var(--bb-yellow);
	color: var(--bb-night);
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.bb-bf__cta:hover, .bb-bf__cta:focus-visible { border-color: #fff; background: #fff; color: var(--bb-purple-dark); }
.bb-bf a:focus-visible, .bb-bf button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Tablets: the message on top, code and button on one line under it. */
@media (max-width: 1000px) {
	.bb-bf__inner { gap: 8px 24px; }
}
/* Phones: headline, then tag and small print on one line; code box and button side by side. */
@media (max-width: 640px) {
	.bb-bf__inner { padding: 10px 16px; gap: 8px; }
	.bb-bf__msg { grid-template-columns: auto 1fr; gap: 2px 10px; }
	.bb-bf__title { grid-column: 1 / -1; grid-row: 1; font-size: 1.55rem; }
	.bb-bf__label { grid-column: 1; grid-row: 2; padding: 3px 10px; font-size: .7rem; }
	.bb-bf__text { grid-column: 2; grid-row: 2; font-size: .88rem; line-height: 1.25; }
	.bb-bf__action { width: 100%; flex-wrap: nowrap; gap: 8px; }
	.bb-bf__code { flex: 1 1 auto; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 2px 6px 2px 12px; }
	.bb-bf__code-label { font-size: .68rem; }
	.bb-bf__code-value { font-size: 1.45rem; }
	.bb-bf__copy { padding: 0 12px; font-size: .85rem; }
	.bb-bf__cta { flex: 0 0 auto; padding: 0 18px; }
}

/* The banner takes room above the hero, so the hero window (mouse and trackpad layout) gets that much shorter and still ends above the fold. */
body.bb-bf-on .bb-cine { --cine-box-h: clamp(360px, calc(64svh - 76px), 620px); }
