/**
 * Rok veljavnosti — the two places a batch explains itself.
 *
 * Plain text on purpose (Avemed, 2026-10-16). The first version was a tinted
 * box with a red edge, a red sentence and a clock icon, and shoppers read it
 * as a warning that something was wrong with the product. It is a date, so
 * it is set like the other facts under the price: ink, no box, no accent.
 *
 *   Rok veljavnosti: 31.12.2026      label bold, date regular
 *   Zaloga po tej ceni: 22           muted, the count bold
 *
 * Both lines small and the same size, as Avemed asked ("enako kot Zaloga
 * po tej ceni") — the size of the Omnibus "Najnižja cena" line above.
 */

.av-expiry-notice {
	display: flex;
	flex-direction: column;
	margin: 8px 0;
	color: inherit;
	font-size: 0.75rem;
	line-height: 1.4;
}

/* Emptied by the variation script, or never filled — must not hold space. */
.av-expiry-notice--empty {
	display: none;
}

.av-expiry-notice__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.av-expiry-notice__lead {
	font-weight: 400;
}

.av-expiry-notice__label {
	font-weight: 600;
}

.av-expiry-notice__date {
	font-variant-numeric: tabular-nums;
}

.av-expiry-notice__stock {
	opacity: 0.7;
}

.av-expiry-notice__count {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

/* ── Cart, side cart and checkout ────────────────────────────────────────
   One quiet line under the product name, the same muted tone as the stock
   line on the product page. */
.av-expiry-cart-note {
	font-size: 0.85em;
	opacity: 0.7;
	margin-top: 4px;
}

/* The batch line's quantity is fixed — see Avemed_Expiry_Batch::cart_item_quantity.
   Sized like the input it replaces so the column keeps its rhythm. */
.av-expiry-qty {
	display: inline-block;
	min-width: 2.5em;
	padding: 0 0.4em;
	font-variant-numeric: tabular-nums;
	text-align: center;
}
