/**
 * WI event countdown — shared component.
 *
 * Every selector is prefixed with .wi-event-countdown, so nothing here can
 * reach registration forms, the 26rem rail, the footer or existing grid card
 * layout.
 */

.wi-event-countdown {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	white-space: nowrap;
	/* Equal-width digits: the value must not reflow its neighbours each second. */
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

.wi-event-countdown-value {
	font-weight: 700;
}

.wi-event-countdown--panel {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 12px 10px;
}

.wi-event-countdown--panel .wi-event-countdown-value {
	font-size: 1.35em;
}

/* --- Modern room header (center slot) --------------------------------- */

#webinarHeader .wi-event-countdown--room {
	flex: 0 0 auto;
	/* The header row stretches/baseline-aligns its children by default, which left
	 * this single-line counter pinned to the top instead of level with the title
	 * and host name. align-self only affects this element. */
	align-self: center;
	padding: 4px 0;
	/* Stays below the .wi-h4 siblings so the measured header height is unchanged. */
	font-size: 15px;
	line-height: 1.2;
}

#webinarHeader .wi-event-countdown--room .wi-event-countdown-label {
	opacity: 0.75;
}

@media ( max-width: 991px ) {
	#webinarHeader .wi-event-countdown--room .wi-event-countdown-label {
		display: none;
	}
}

@media ( max-width: 756px ) {
	#webinarHeader .wi-event-countdown--room {
		display: none;
	}
}

/* --- Registration block ----------------------------------------------- */

.wi-event-countdown--reg {
	width: 100%;
	text-align: center;
}

/* --- Grid card -------------------------------------------------------- */

.wi-event-countdown--grid {
	gap: 4px;
	opacity: 0.85;
}

/* --- Admin header ----------------------------------------------------- */

.editTop .wi-event-countdown--admin {
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
}

.editTop .wi-event-countdown--admin .wi-event-countdown-label {
	opacity: 0.7;
	font-weight: 400;
}

.editTop .wi-event-countdown--admin .wi-event-countdown-value {
	font-size: 20px;
}

/* --- Light bar around the countdown -------------------------------------
 * Decided look (Tobias 2026-11-12): a light orange bar, not a filled button,
 * so it never competes with the registration button. Used on the grid card
 * between date and time, and on the registration page under the date line.
 * The bar carries its own colors, so a dark host page cannot swallow it.
 * ---------------------------------------------------------------------- */

.wi-cd-bar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 2px 0 4px 4px;
	padding: 4px 9px;
	border-radius: 9px;
	background: rgba(249, 105, 53, .13);
	color: #c2410c;
	font-size: 11.5px;
	line-height: 1.35;
	font-weight: 500;
}

.wi-cd-bar .wi-cd-bar__clock {
	flex: 0 0 auto;
	background: none;
	padding: 0;
	border-radius: 0;
	color: inherit;
}

.wi-cd-bar .wi-event-countdown {
	gap: 4px;
	/* The reg variant is full width elsewhere; inside the bar it follows its text. */
	width: auto;
	text-align: left;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	opacity: 1;
}

.wi-cd-bar .wi-event-countdown-label {
	opacity: .9;
}

.wi-cd-bar .wi-event-countdown-value {
	font-weight: 700;
}

/* Registration page: same look, one step larger, so it reads under the date. */
.wi-cd-bar--reg {
	margin: 8px 0 2px;
	padding: 5px 11px;
	font-size: 13px;
}

.wi-cd-bar--reg .wi-cd-bar__clock {
	width: 15px;
	height: 15px;
}
