/**
 * Countdown — Common base CSS (loads for every style).
 *
 * Only shared structure lives here. The per-style files paint the boxes,
 * digits and separators. An --captwiki-cd-accent variable lets the Accent
 * Color control re-theme every style at once.
 *
 * @package captain-widgets-kit
 * @since   1.3.0
 */

.captwiki-countdown {
	--captwiki-cd-accent: #6366f1;
	display: block;
	box-sizing: border-box;
}

.captwiki-countdown *,
.captwiki-countdown *::before,
.captwiki-countdown *::after {
	box-sizing: border-box;
}

.captwiki-countdown__timer {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 16px;
}

.captwiki-countdown__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 84px;
	line-height: 1;
	text-align: center;
}

.captwiki-countdown__digits {
	display: block;
	font-size: 40px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	line-height: 1.1;
	color: #111827;
}

.captwiki-countdown__label {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b7280;
}

.captwiki-countdown__sep {
	display: flex;
	align-items: center;
	align-self: center;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	color: #9ca3af;
}

.captwiki-countdown__message {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color: #111827;
}

.captwiki-countdown.is-expired .captwiki-countdown__timer {
	display: none;
}
