/* Scheduled Sales: Omnibus line, countdown, category badge. Colours from the settings. */

/* rem, not em: the theme enlarges the main price, the note stays small everywhere. */
.tss-omnibus {
	display: block;
	margin-top: .25em;
	font-size: .8rem;
	font-weight: normal;
	line-height: 1.4;
	opacity: .8;
}

.tss-omnibus .amount {
	font-size: inherit;
	font-weight: bold;
}

.tss-countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4em .6em;
	margin: .25em 0 .9em;
	line-height: 1.2;
}

.tss-countdown[hidden] {
	display: none;
}

.tss-countdown-label {
	color: var(--tss-accent, #c0392b);
	font-size: .9em;
	font-weight: bold;
}

/* Date mode: a single line, the date in bold. */
.tss-countdown-date {
	display: inline-block;
	padding: .35em .75em;
	border-radius: 4px;
	background: var(--tss-accent, #c0392b);
	color: var(--tss-accent-text, #fff);
	font-size: .9em;
}

.tss-countdown-units {
	display: inline-flex;
	gap: .3em;
}

/* One box per unit: the number on top, its name below. */
.tss-unit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.6em;
	padding: .3em .35em .25em;
	border-radius: 4px;
	background: var(--tss-accent, #c0392b);
	color: var(--tss-accent-text, #fff);
}

.tss-unit b {
	font-size: 1.15em;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.tss-unit small {
	font-size: .62em;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .85;
}

/* Cart, mini cart, checkout: one short line with a clock, in the accent colour. */
.tss-countdown-compact {
	flex-wrap: nowrap;
	gap: .4em;
	margin: .3em 0 0;
	color: var(--tss-accent, #c0392b);
	font-size: .8rem;
	font-weight: normal;
}

.tss-countdown-icon {
	flex: 0 0 auto;
}

.tss-countdown-time {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tss-countdown-loop {
	margin: .3em 0;
	font-size: .75em;
}

.tss-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 10;
	padding: .4em .8em;
	border-radius: 4px;
	background: var(--tss-badge-bg, var(--tss-accent, #c0392b));
	color: var(--tss-accent-text, #fff);
	font-weight: bold;
	line-height: 1.2;
}
