/**
 * Phoenix Countdown Bar – frontend styles
 * Top bar pushes page down; close button collapses it and reclaims space.
 * Colors match Phoenix Biolabs black & gold theme.
 */

/* Hide Klaviyo "Extra 10% Off?" teaser while countdown bar is active */
body.phoenix-countdown-bar-active [class*="Teaser-pointer"] {
	display: none !important;
}

/* Wrapper: in-flow block so page moves down; when closed, hidden and space reclaimed */
.phoenix-countdown-bar-wrap {
	display: block;
	width: 100%;
	background: #0d0d0d;
	color: #fff;
	position: relative;
	box-sizing: border-box;
	transition: max-height 0.25s ease, opacity 0.2s ease;
	overflow: hidden;
}

.phoenix-countdown-bar-wrap.is-closed {
	max-height: 0 !important;
	opacity: 0;
	margin: 0;
	padding: 0;
	border: none;
	visibility: hidden;
}

.phoenix-countdown-bar-inner {
	position: relative;
	padding: 6px 44px 6px 14px;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0;
}

/* Thin accent line at top (gold – brand accent) */
.phoenix-countdown-bar-accent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: #c9a227;
}

.phoenix-countdown-bar-content {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

/* Single inline row: headline | timer | labels | message | close – identical to reference */
#phoenix-countdown-bar-wrap .phoenix-countdown-bar-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 8px !important;
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap !important;
	font-size: 0.7rem;
	line-height: 1.3 !important;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-headline {
	font-weight: 500;
	font-size: 0.7rem;
	color: #fff;
	letter-spacing: 0.01em;
	white-space: nowrap !important;
	display: inline !important;
}

/* Timer: one horizontal line – numbers + labels, small (match reference) */
#phoenix-countdown-bar-wrap .phoenix-countdown-bar-timer,
.phoenix-countdown-bar-product-timer {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: baseline !important;
	gap: 0 2px !important;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	font-size: 0.7rem;
	color: #fff;
	letter-spacing: 0.02em;
	line-height: 1.3 !important;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-timer-inner {
	display: inline !important;
	white-space: nowrap !important;
	font-size: 0.7rem;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-time,
.phoenix-countdown-bar-product-timer .phoenix-countdown-bar-time {
	display: inline-block !important;
	min-width: 1.35em;
	text-align: center;
	vertical-align: baseline;
	font-size: inherit;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-sep,
.phoenix-countdown-bar-product-timer .phoenix-countdown-bar-sep {
	display: inline !important;
	opacity: 0.85;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 400;
	vertical-align: baseline;
}

/* Top bar: hide Days/Hours/Mins/Secs to save space */
#phoenix-countdown-bar-wrap .phoenix-countdown-bar-labels {
	display: none !important;
}

.phoenix-countdown-bar-product .phoenix-countdown-bar-labels {
	display: none;
}

/* Match reference: no CTA button in top bar */
#phoenix-countdown-bar-wrap .phoenix-countdown-bar-cta {
	display: none !important;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-secondary {
	display: inline !important;
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: 0.01em;
	max-width: 380px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#phoenix-countdown-bar-wrap .phoenix-countdown-bar-cta {
	display: inline-block !important;
	background: transparent;
	color: #c9a227;
	padding: 4px 10px;
	border: 1px solid rgba(201, 162, 39, 0.6);
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.phoenix-countdown-bar-cta:hover {
	background: rgba(201, 162, 39, 0.15);
	color: #d4af37;
	border-color: #c9a227;
}

/* Close button – compact */
.phoenix-countdown-bar-close {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	color: rgba(255, 255, 255, 0.5);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 3px;
	transition: background 0.2s, color 0.2s;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.phoenix-countdown-bar-close:hover {
	background: rgba(201, 162, 39, 0.15);
	color: #fff;
}

/* Product page countdown block – black & gold to match site */
.phoenix-countdown-bar-product {
	margin: 1em 0;
	padding: 1em;
	background: #0d0d0d;
	border-radius: 8px;
	border-left: 4px solid #c9a227;
}

.phoenix-countdown-bar-product-headline {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
}


.phoenix-countdown-bar-product.expired .phoenix-countdown-bar-product-timer {
	opacity: 0.7;
}

/* Ensure timer numbers are visible on dark background */
.phoenix-countdown-bar-product .phoenix-countdown-bar-time,
.phoenix-countdown-bar-product .phoenix-countdown-bar-sep {
	color: #fff;
}
