/**
 * RSM Event Countdown — front-end styles.
 */

.rsmspark-cw-event-countdown {
	position: static;
	margin: 0 auto;
	max-width: 100%;
	text-align: center;
	background: var(--rsmspark-cw-event-countdown-bg, rgba(0, 0, 0, 0.5));
	color: var(--rsmspark-cw-event-countdown-text, #fff);
	padding: 1.5rem 1.75rem;
	border-radius: var(--rsmspark-cw-radius, 10px);
}

.rsmspark-cw-event-countdown__title {
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	margin: 0 0 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rsmspark-cw-event-countdown-title, inherit);
}

.rsmspark-cw-event-countdown__display {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 0.5rem 1.5rem;
}

.rsmspark-cw-event-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 4.75rem;
}

.rsmspark-cw-event-countdown__value {
	font-size: clamp(2.75rem, 8vw, 4.5rem);
	line-height: 1;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.rsmspark-cw-event-countdown__label {
	font-size: clamp(0.65rem, 1.4vw, 0.8rem);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.9;
	margin-top: 0.35rem;
	font-weight: 600;
}

.rsmspark-cw-event-countdown__expired,
.rsmspark-cw-event-countdown__static {
	margin: 0;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 600;
}

.rsmspark-cw-event-countdown__static {
	display: none;
}

.rsmspark-cw-event-countdown--expired .rsmspark-cw-event-countdown__display,
.rsmspark-cw-event-countdown--expired .rsmspark-cw-event-countdown__static {
	display: none;
}

.rsmspark-cw-event-countdown--invalid {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fcd34d;
}

.rsmspark-cw-event-countdown__validation {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.rsmspark-cw-event-countdown__display {
		display: none !important;
	}

	.rsmspark-cw-event-countdown:not(.rsmspark-cw-event-countdown--expired) .rsmspark-cw-event-countdown__static {
		display: block;
	}
}

@media (max-width: 480px) {
	.rsmspark-cw-event-countdown__value {
		font-size: clamp(2.25rem, 12vw, 3rem);
	}

	.rsmspark-cw-event-countdown__unit {
		min-width: 3.75rem;
	}

	.rsmspark-cw-event-countdown__display {
		gap: 0.35rem 1rem;
	}
}
