/**
 * PCSeal flash-sale countdown widget styling.
 * Uses the theme's CSS custom properties (defined in assets/style.css)
 * with safe fallbacks in case this file loads before/without them.
 */

.pcseal-countdown {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: var(--surface, #131a2b);
	border: 1px solid var(--line, #232d47);
	border-radius: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pcseal-countdown-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted, #8b96ad);
	white-space: nowrap;
}

.pcseal-countdown-units {
	display: flex;
	align-items: center;
	gap: 6px;
}

.pcseal-countdown-days,
.pcseal-countdown-hours,
.pcseal-countdown-minutes,
.pcseal-countdown-seconds {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 40px;
	padding: 4px 6px;
	background: var(--accent, #29a3ff);
	border-radius: 8px;
	line-height: 1.1;
}

.pcseal-countdown-num {
	font-family: ui-monospace, monospace;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ink, #eef2fb);
	box-shadow: var(--glow-blue-soft);
}

.pcseal-countdown-unit {
	font-size: 0.62rem;
	font-weight: 600;
	/* --gold-tint is a translucent background-tint token (rgba), not an
	   opaque text color — using it directly here renders near-invisible
	   text on the accent box, so use --ink dimmed via opacity instead to
	   keep the num/unit visual hierarchy without the contrast bug. */
	color: var(--ink, #eef2fb);
	opacity: 0.72;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.pcseal-countdown-seconds {
	background: var(--gold, #ff7a45);
}

.pcseal-countdown-seconds .pcseal-countdown-unit {
	color: var(--ink, #eef2fb);
	opacity: 1;
}

.pcseal-countdown.pcseal-countdown-ended {
	display: flex;
	justify-content: center;
	color: var(--muted, #8b96ad);
	font-weight: 600;
	background: var(--surface-2, #1c2540);
}

@media (max-width: 480px) {
	.pcseal-countdown {
		flex-wrap: wrap;
		gap: 6px;
	}

	.pcseal-countdown-days,
	.pcseal-countdown-hours,
	.pcseal-countdown-minutes,
	.pcseal-countdown-seconds {
		min-width: 34px;
	}
}
