/* HQ Countdown Timer — Styles */

.hq-countdown-timer {
	width:      100%;
	text-align: center;
	box-sizing: border-box;
	padding:    32px 16px;
}

.hq-cd-title {
	margin:      0 0 24px;
	font-size:   1.15em;
	font-weight: 600;
	opacity:     0.85;
	line-height: 1.4;
}

/* ── Units row */
.hq-cd-units {
	display:         flex;
	justify-content: center;
	gap:             20px;
	flex-wrap:       wrap;
}

.hq-cd-unit {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	gap:            10px;
	min-width:      80px;
}

.hq-cd-box {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           100%;
	min-width:       80px;
	aspect-ratio:    1;
	padding:         12px 8px;
	box-shadow:      0 4px 16px rgba(0,0,0,0.12);
	transition:      transform 0.1s ease;
}

.hq-cd-number {
	font-weight:    800;
	line-height:    1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	font-family:    inherit;
}

/* Flip animation for seconds */
.hq-cd-flip {
	animation: hq-cd-flip 0.15s ease-in-out;
}
@keyframes hq-cd-flip {
	0%   { transform: scaleY(1); }
	50%  { transform: scaleY(0.85); }
	100% { transform: scaleY(1); }
}

/* ── Label */
.hq-cd-label {
	font-size:      0.75em;
	font-weight:    600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity:        0.65;
}

/* ── Separator (colon between units) */
.hq-cd-sep {
	font-size:   2em;
	font-weight: 700;
	line-height: 1;
	opacity:     0.5;
	align-self:  center;
	padding-bottom: 20px; /* offset for label row */
}

/* ── Expired message */
.hq-cd-expired {
	font-size:   1.2em;
	font-weight: 600;
	padding:     16px;
}
.hq-cd-expired[hidden] { display: none; }

/* ── Editor helpers */
.hq-cd-no-date {
	font-size:   0.9em;
	opacity:     0.6;
	font-style:  italic;
	margin:      0 0 16px;
}
.hq-cd-editor-note {
	font-size:   11px;
	opacity:     0.45;
	margin-top:  12px;
}

.hq-color-row  { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.hq-color-label { flex:1; font-size:12px; font-weight:500; }
.hq-color-row input[type="color"] { width:40px; height:32px; padding:2px; border:1px solid #ccc; border-radius:4px; cursor:pointer; background:none; }

@media (max-width: 480px) {
	.hq-cd-units   { gap: 12px; }
	.hq-cd-unit    { min-width: 64px; }
	.hq-cd-box     { min-width: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.hq-cd-flip { animation: none; }
}
