/* ===========================================================
   Stock + delivery estimate — Figma 163:1161

   Two independent inline elements so a layout can place them apart. When
   they sit next to each other the hairline between them comes from the
   container's gap, not from either shortcode.
   =========================================================== */

.product-stock,
.product-delivery-date {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	line-height: 1.7;
	white-space: nowrap;
}

/* ---------- Stock ---------- */

.product-stock {
	font-weight: 700;
}

.product-stock__icon {
	display: inline-flex;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.product-stock__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Each state carries its own word as well as its own colour, so the meaning
   never rests on colour alone. */
.product-stock--in        { color: var(--kw-success, #00b87a); }
.product-stock--backorder { color: var(--kw-warn, #f5a623); }
.product-stock--out       { color: var(--kw-ink-muted, #6b7280); }

/* ---------- Delivery ---------- */

.product-delivery-date {
	font-weight: 600;
	color: var(--kw-ink-muted, #6b7280);
	gap: 4px;
}

.product-delivery-date__value {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 400px) {
	.product-stock,
	.product-delivery-date {
		white-space: normal;
	}
}

/* The pair, as the design lays it out: stock, hairline, delivery. */
.product-availability-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 12px 0 12px;
}

.product-availability-row__sep {
	width: 1px;
	height: 16px;
	flex-shrink: 0;
	background: var(--kw-line, #dce2e5);
}
