/**
 * The hours as a scale (aieo/opening-hours, layout «scale»; the designer, 24 Nov 2026): one line a day on the same scale,
 * from the week's earliest opening to its latest closing, today's line bold with a mark for the time now; the times stay
 * as text. store-hours.js moves the mark and today's line on a page left open or served from a cache.
 */
.aieo-hours-scale {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border-top: 1px solid var(--wp--preset--color--fg, CanvasText);
	font-size: var(--wp--preset--font-size--md, 1rem);
	font-variant-numeric: tabular-nums;
}
.aieo-hours-scale th,
.aieo-hours-scale td {
	padding: 7px 0;
	border-bottom: 1px solid var(--wp--preset--color--line, color-mix(in srgb, CanvasText 18%, Canvas));
	font-weight: 400;
	text-align: start;
	vertical-align: middle;
}
.aieo-hours-scale th { width: 6.4rem; padding-inline-end: 8px; }
.aieo-hours-scale td:last-child { width: 8.4rem; padding-inline-start: 12px; text-align: end; white-space: nowrap; }
.aieo-hours-scale__b { position: relative; height: 10px; }
.aieo-hours-scale__b i {
	position: absolute;
	top: 50%;
	inset-inline-start: calc(var(--a) * 100%);
	width: calc((var(--b) - var(--a)) * 100%);
	height: 2px;
	margin-top: -1px;
	background: var(--wp--preset--color--muted, color-mix(in srgb, CanvasText 62%, Canvas));
}
.aieo-hours-scale tr.is-today th,
.aieo-hours-scale tr.is-today td { font-weight: 700; }
.aieo-hours-scale tr.is-today .aieo-hours-scale__b i {
	height: 8px;
	margin-top: -4px;
	background: var(--wp--preset--color--fg, CanvasText);
}
.aieo-hours-scale__now {
	position: absolute;
	top: -5px;
	bottom: -5px;
	inset-inline-start: calc(var(--n) * 100%);
	width: 3px;
	margin-inline-start: -1.5px;
	background: var(--wp--preset--color--accent, Highlight);
	box-shadow: 0 0 0 2px var(--wp--preset--color--bg, Canvas);
}
.aieo-hours-scale tr:not(.is-today) .aieo-hours-scale__now { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.aieo-hours-scale__b i { transform-origin: 0 50%; animation: aieo-hs-grow 900ms calc(260ms + var(--d, 0) * 60ms) cubic-bezier(.16, 1, .3, 1) both; }
	.aieo-hours-scale__now { animation: aieo-hs-drop 420ms 1100ms cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes aieo-hs-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes aieo-hs-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
	.aieo-hours-scale th { width: 5.8rem; }
	.aieo-hours-scale td:last-child { width: 7.6rem; }
}
