/**
 * Storefront spot ticker.
 *
 * Enqueued by Frontend\SpotTickerShortcode only on pages that render a
 * ticker, so these rules never load on a page that has no use for them.
 *
 * The ticker is dropped on arbitrary pages — a homepage, a header block, a
 * sidebar — under a theme we do not control, so the rules here stay
 * deliberately thin: layout, spacing and a de-emphasised timestamp. Colour
 * and type are inherited from the theme rather than asserted, because a
 * ticker that fights its host looks more broken than one that is plain.
 */

.gc-spot-ticker {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
	margin: 0 0 1em;
}

.gc-spot-ticker__label {
	font-weight: 700;
}

.gc-spot-ticker__list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gc-spot-ticker__item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0;
}

.gc-spot-ticker__metal {
	opacity: 0.75;
}

.gc-spot-ticker__price {

	/* Tabular figures so a digit changing on a poll does not reflow the
	   row — the price updates in place, and the line either side of it
	   should not move when it does. */
	font-feature-settings: "tnum";
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	white-space: nowrap;
}

.gc-spot-ticker__stamp {
	font-size: 0.85em;
	opacity: 0.65;
}

