/* Black Friday top bar (template-parts/bf-banner.php) */
body.hz-bf-on #page { position: relative; }

.hz-bf {
	--hz-accent: #6EEDD8;
	position: relative;
	z-index: 1001;
	background: #111111;
	color: #FFFFFF;
	font-family: inherit;
	overflow: hidden;
	max-height: 140px;
	animation: hz-bf-drop .6s cubic-bezier(.2,.8,.2,1) both;
}
.hz-bf.is-closing { animation: hz-bf-collapse .35s ease-in forwards; }

.hz-bf__in {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	height: 52px;
	padding: 0 64px;
	box-sizing: border-box;
}
.hz-bf__top,
.hz-bf__bottom { display: flex; align-items: center; gap: 18px; }

.hz-bf__pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hz-accent);
	color: #0B0B0B;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: .1em;
	padding: 5px 10px 5px 8px;
	border-radius: 999px;
	white-space: nowrap;
	animation: hz-bf-pulse 2.2s ease-out infinite;
}
.hz-bf__tag { display: block; animation: hz-bf-wiggle 4s ease-in-out infinite; }

.hz-bf__msgs { width: 300px; height: 22px; overflow: hidden; position: relative; }
.hz-bf__msg {
	display: none;
	margin: 0;
	font-size: 15px;
	line-height: 22px;
	font-weight: 500;
	color: #E5E5E5;
	white-space: nowrap;
}
.hz-bf__msg.is-active { display: block; animation: hz-bf-msg .45s cubic-bezier(.2,.8,.2,1) both; }
.hz-bf__msg strong { color: #FFFFFF; font-weight: 800; }
.hz-bf__msg strong.hz-bf__glow { color: var(--hz-accent); animation: hz-bf-glow 2.4s ease-in-out infinite; }
.hz-bf__sm { display: none; }

.hz-bf__timer {
	display: flex;
	align-items: center;
	gap: 4px;
	font-variant-numeric: tabular-nums;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
}
.hz-bf__unit {
	display: inline-flex;
	align-items: baseline;
	overflow: hidden;
	background: #262626;
	border-radius: 6px;
	padding: 4px 7px;
}
.hz-bf__unit small { color: #A3A3A3; font-weight: 500; font-size: 11px; margin-left: 2px; }
.hz-bf__tick { display: inline-block; }
.hz-bf__tick.is-ticking { animation: hz-bf-tick .35s cubic-bezier(.2,.8,.2,1) both; }
.hz-bf__colon { color: #737373; animation: hz-bf-dot 1s steps(2, jump-none) infinite; }

.hz-bf__cta,
.hz-bf__cta:visited {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hz-accent);
	color: #0B0B0B;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease;
}
.hz-bf__cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 35%;
	height: 100%;
	background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.75), rgba(255,255,255,0));
	transform: skewX(-20deg);
	animation: hz-bf-shine 3.4s ease-in-out infinite;
	pointer-events: none;
}
.hz-bf__cta:hover,
.hz-bf__cta:focus { color: #0B0B0B; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(110,237,216,.4); }
.hz-bf__cta:hover .hz-bf__arrow { animation: hz-bf-nudge .6s ease-in-out infinite; }
.hz-bf__cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.hz-bf__x {
	position: absolute;
	right: 12px;
	top: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #A3A3A3;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .15s, background .15s;
}
.hz-bf__x:hover { color: #FFFFFF; background: #262626; }
.hz-bf__x:focus-visible { outline: 2px solid #FFFFFF; outline-offset: -2px; }

/* Mobile / tablet: two rows (matches the theme's lg breakpoint) */
@media (max-width: 991.98px) {
	.hz-bf__in {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		height: auto;
		padding: 10px 16px 12px;
	}
	.hz-bf__top { gap: 8px; padding-right: 40px; min-height: 36px; }
	.hz-bf__bottom { justify-content: space-between; gap: 8px; }
	.hz-bf__pill { font-size: 10px; padding: 4px 8px; }
	.hz-bf__tag { display: none; }
	.hz-bf__msgs { width: auto; flex: 1; min-width: 0; height: 20px; }
	.hz-bf__msg { font-size: 14px; line-height: 20px; font-weight: 600; }
	.hz-bf__lg { display: none; }
	.hz-bf__sm { display: inline; }
	.hz-bf__timer { gap: 3px; font-size: 13px; }
	.hz-bf__colon { display: none; }
	.hz-bf__unit { padding: 4px 6px; }
	.hz-bf__unit small { font-size: 10px; margin-left: 1px; }
	.hz-bf__cta { min-height: 36px; padding: 0 12px; font-size: 13px; gap: 4px; }
	.hz-bf__cta .hz-bf__arrow { animation: hz-bf-nudge 1.2s ease-in-out infinite; }
	.hz-bf__cta:hover, .hz-bf__cta:focus { transform: none; box-shadow: none; }
	.hz-bf__cta:active { transform: scale(.96); }
	.hz-bf__x { top: 6px; right: 4px; height: 40px; }
}

@keyframes hz-bf-drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hz-bf-collapse { from { max-height: 140px; opacity: 1; } to { max-height: 0; opacity: 0; } }
@keyframes hz-bf-shine { 0% { left: -60%; } 55%, 100% { left: 140%; } }
@keyframes hz-bf-pulse { 0% { box-shadow: 0 0 0 0 rgba(110,237,216,.65); } 70% { box-shadow: 0 0 0 9px rgba(110,237,216,0); } 100% { box-shadow: 0 0 0 0 rgba(110,237,216,0); } }
@keyframes hz-bf-wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-16deg); } 92% { transform: rotate(12deg); } 96% { transform: rotate(-6deg); } }
@keyframes hz-bf-msg { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hz-bf-tick { from { transform: translateY(-45%); opacity: .15; } to { transform: none; opacity: 1; } }
@keyframes hz-bf-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes hz-bf-glow { 0%, 100% { text-shadow: 0 0 0 rgba(110,237,216,0); } 50% { text-shadow: 0 0 14px rgba(110,237,216,.8); } }
@keyframes hz-bf-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
	.hz-bf, .hz-bf *, .hz-bf__cta::after { animation: none !important; transition: none !important; }
}
