/*
 * Campaign promotions (#1038): the one-line bar above the site header and the popup.
 * Colours come from the Campaign's theme tokens through custom properties set on each element
 * (inc/campaign-promotions.php); the fallbacks are the BFCM tones. System fonts; no remote assets.
 */
.wsg-promo-bar,
.wsg-promo-popup {
	--wsg-promo-base: #0d0d0e;
	--wsg-promo-accent: #d8261c;
	--wsg-promo-ink: #fff;
	--wsg-promo-muted: #c9c5be;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Bar: one line, scrolls away with the page; the site header below keeps its sticky top. */
.wsg-promo-bar { background: var(--wsg-promo-base); color: var(--wsg-promo-ink); font-size: 14px; line-height: 1.2; }
.wsg-promo-bar[hidden] { display: none; }
.wsg-promo-bar__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 40px;
	padding: 0 max(16px, calc((100% - 1290px) / 2));
	color: inherit;
	text-decoration: none;
}
.wsg-promo-bar__link:hover,
.wsg-promo-bar__link:focus { color: inherit; }
.wsg-promo-bar__link:focus-visible { outline: 2px solid var(--wsg-promo-ink); outline-offset: -4px; }
.wsg-promo-bar__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wsg-promo-accent); }
.wsg-promo-bar__text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wsg-promo-bar__cta { flex: none; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wsg-promo-bar__link:hover .wsg-promo-bar__cta { text-decoration-thickness: 2px; }

@media (max-width: 689.98px) {
	.wsg-promo-bar { font-size: 12.5px; }
	.wsg-promo-bar__link { justify-content: flex-start; gap: 8px; height: 36px; }
}

/* Popup: a modal <dialog>, opened by assets/js/campaign-promotions.js. */
.wsg-promo-popup {
	width: min(440px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 4px;
	background: var(--wsg-promo-base);
	color: var(--wsg-promo-ink);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}
.wsg-promo-popup::backdrop { background: rgba(13, 13, 14, .6); }
.wsg-promo-popup__inner { position: relative; padding: 52px 32px 32px; text-align: center; }
.wsg-promo-popup__close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--wsg-promo-ink);
	font: 400 28px/1 inherit;
	cursor: pointer;
}
.wsg-promo-popup__close:hover { background: rgba(255, 255, 255, .08); }
.wsg-promo-popup__close:focus-visible { outline: 2px solid var(--wsg-promo-ink); outline-offset: -2px; }
.wsg-promo-popup__sun { display: block; width: 44px; height: 44px; margin: 0 auto 20px; border-radius: 50%; background: var(--wsg-promo-accent); }
.wsg-promo-popup__title {
	margin: 0;
	font-family: "Avenir Next Condensed", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--wsg-promo-ink);
	text-wrap: balance;
}
.wsg-promo-popup__title:is(:lang(ja), :lang(ko), :lang(zh)) {
	font-family: inherit;
	font-size: 24px;
	line-height: 1.3;
	text-transform: none;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.wsg-promo-popup__title:lang(ja) { word-break: auto-phrase; }
.wsg-promo-popup__body { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--wsg-promo-muted); }
.wsg-promo-popup__body:lang(ko) { word-break: keep-all; }
.wsg-promo-popup__cta {
	display: block;
	margin-top: 24px;
	padding: 14px 20px;
	border-radius: 2px;
	background: var(--wsg-promo-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
}
.wsg-promo-popup__cta:hover,
.wsg-promo-popup__cta:focus { color: #fff; filter: brightness(.92); }
.wsg-promo-popup__cta:focus-visible { outline: 2px solid var(--wsg-promo-ink); outline-offset: 3px; }
html.wsg-promo-popup-open { overflow: hidden; }

@media (max-width: 689.98px) {
	.wsg-promo-popup__inner { padding: 48px 24px 24px; }
	.wsg-promo-popup__title { font-size: 28px; }
	.wsg-promo-popup__title:is(:lang(ja), :lang(ko), :lang(zh)) { font-size: 21px; }
}
