/**
 * SelfVital Countdown - frontend styles.
 *
 * Colours, typography, spacing and borders come from the block supports, so this
 * file only defines layout and the accessibility helper.
 */

.sv-countdown {
	--sv-countdown-gap: 1rem;
	--sv-countdown-value-size: 2em;

	/* Containing block for the visually hidden live region. */
	position: relative;
}

.sv-countdown[hidden],
.sv-countdown [hidden] {
	display: none !important;
}

.sv-countdown__units {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sv-countdown-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sv-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3ch;
}

.sv-countdown__value {
	font-size: var(--sv-countdown-value-size);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.sv-countdown__label {
	font-size: 0.75em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.sv-countdown__expired-message,
.sv-countdown__fallback,
.sv-countdown__notice {
	margin: 0;
}

/* Same technique as the core .screen-reader-text helper, scoped to this block. */
.sv-countdown__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}
