.promo-topbar {
	width: 100%;
	padding: 6px 12px;
	text-align: center;
	font-size: 24px;
	font-weight: 500;
	position: sticky;
	top: 0;
	z-index: 10000;
}

.promo-topbar__inner {
	margin-inline: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

/* Constrain inner width only when CTA is present, so text+button stay grouped.
   Without CTA, let the text use the full banner width (legacy behavior). */
.promo-topbar--has-cta .promo-topbar__inner {
	max-width: 1200px;
}

/* No CTA — extra vertical breathing room. */
.promo-topbar:not(.promo-topbar--has-cta) {
	padding-block: 10px;
}

.promo-topbar__text {
	margin: 0;
}

.promo-topbar__flag {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	transform: translateY(0.06em);
}

.promo-topbar__code-pill {
	display: inline-block;
	padding: 6px 10px;
	margin: 0px 3px;
	border-radius: 5px;
	background: #8f6703;
	line-height: 1;
	color: #f5f0e6;
}

.promo-topbar__divider {
	display: none;
	width: 1px;
	height: 27px;
	background: currentColor;
	opacity: 0.6;
	flex-shrink: 0;
}

.promo-topbar__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #141313;
	color: #fff;
	font-weight: 400;
	font-size: 14px;
	line-height: normal;
	padding: 6px 10px;
	border-radius: 4px;
	white-space: nowrap;
	text-decoration: none;
	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.promo-topbar__cta:hover,
.promo-topbar__cta:focus {
	background: #000;
	color: #f3981f;
}

/* Layout variant when CTA present — text+button row, justified center on desktop */
.promo-topbar--has-cta .promo-topbar__text {
	font-weight: 700;
}

/* Offset sticky banner below the WP admin bar when logged in */
body.admin-bar .promo-topbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .promo-topbar {
		top: 46px;
	}
}

/* Default — orange gradient with shadow */
.promo-topbar--default {
	padding: 8px 12px;
	background: linear-gradient(92.95deg, #f3981f, #e57625);
	box-shadow: 0px 2px 21px 0px rgba(243, 152, 31, 0.39);
	color: #141313;
}
.promo-topbar.promo-topbar--default .promo-topbar__text {
	color: #141313;
}

/* Secondary — golden shimmer on solid dark base */
.promo-topbar--secondary {
	color: #fff;
	background-color: rgb(21, 18, 18);
	background-image: linear-gradient(
		to right,
		rgba(197, 175, 8, 0.15) 20%,
		#c5af08 50%,
		rgba(197, 175, 8, 0.15) 80%
	);
}
.promo-topbar.promo-topbar--secondary .promo-topbar__text {
	color: #fff;
}

/* Birthday — pixel-faithful port of legacy bd-topbar (Birthday LP) */
.promo-topbar--birthday {
	background-image: linear-gradient(115.23deg, #f3981f 0%, #e57625 100%);
	box-shadow: 0 2px 21.2px rgba(243, 152, 31, 0.39);
	padding: 6px 10px;
	color: #141313;
	position: relative;
	z-index: 5;
}
.promo-topbar--birthday .promo-topbar__inner {
	max-width: 976px;
	justify-content: space-between;
	gap: 12px;
}
.promo-topbar.promo-topbar--birthday .promo-topbar__text {
	font-weight: 700;
	font-size: 12px;
	line-height: normal;
	color: #141313;
	width: 226px;
	flex-shrink: 0;
	text-align: left;
}
.promo-topbar--birthday .promo-topbar__text strong {
	font-weight: 900;
	text-decoration: underline;
}
.promo-topbar--birthday .promo-topbar__divider {
	background: #141313;
	opacity: 1;
}
.promo-topbar--birthday .promo-topbar__cta {
	background: #141313;
	color: #ffffff;
}
.promo-topbar--birthday .promo-topbar__cta:hover,
.promo-topbar--birthday .promo-topbar__cta:focus {
	background: #000;
	color: #ffaf45;
}

@media (max-width: 767px) {
	.promo-topbar {
		font-size: 14px;
		padding: 6px 10px;
	}
	.promo-topbar__inner {
		gap: 10px;
	}
	.promo-topbar--has-cta .promo-topbar__text {
		font-size: 12px;
		text-align: left;
	}
}

@media (min-width: 768px) {
	.promo-topbar--has-cta .promo-topbar__inner {
		gap: 30px;
	}
	.promo-topbar--has-cta .promo-topbar__divider {
		display: block;
	}
	.promo-topbar--has-cta .promo-topbar__cta {
		font-size: 16px;
		padding: 6px 20px;
	}

	.promo-topbar.promo-topbar--birthday {
		background-image: linear-gradient(149.91deg, #f3981f 0%, #e57625 100%);
	}
	.promo-topbar.promo-topbar--birthday .promo-topbar__inner {
		justify-content: center;
	}
	.promo-topbar.promo-topbar--birthday .promo-topbar__text {
		width: auto;
		font-size: 18px;
		text-align: center;
		white-space: nowrap;
	}
}

/* Coupon Campaign — warm amber gradient, dark text, no CTA */
.promo-topbar--coupon-campaign {
	background: linear-gradient(92.95deg, #ff9242 0%, #ffc271 100%);
	color: #0a0a0b;
}
.promo-topbar--coupon-campaign .promo-topbar__inner {
	max-width: 300px;
}
body .promo-topbar.promo-topbar--coupon-campaign .promo-topbar__text {
	color: #0a0a0b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
}

.promo-topbar--coupon-campaign .cc-topbar__desktop {
	display: none;
}
@media (min-width: 768px) {
	.promo-topbar--coupon-campaign .promo-topbar__inner {
		max-width: none;
	}
	body .promo-topbar.promo-topbar--coupon-campaign .promo-topbar__text {
		font-size: 14px;
	}
	.promo-topbar--coupon-campaign .cc-topbar__br {
		display: none;
	}
	.promo-topbar--coupon-campaign .cc-topbar__mobile {
		display: none;
	}
	.promo-topbar--coupon-campaign .cc-topbar__desktop {
		display: inline;
	}
}
