/* aieo/data-table `presentation: plain` (the multi-look demo's spec table, 22 Nov 2026; AIEO_Spec_Table): the
 * products as rows, the chosen facts as columns. Ruled as Rooster Zero's ruled table, from the same tokens: no outer
 * border, a rule under each row and none under the last, the head's rule in the text colour, cells padded by the
 * table's pad above and below and a step apart. The table fills its box and scrolls inside it where its words need
 * more room (a phone): never wider than the page. Where the browser ties an animation to scrolling, the box shades
 * the edge that hides more, in the text's colour. No colour of its own; loaded only where the table renders. */
.aieo-spec-table {
	margin-block: 0;
}
/* Positioned, so what a cell hides for a screen reader (its .screen-reader-text, WooCommerce's «Original price was»,
 * absolutely placed) is held and clipped by the box too, and never widens the page past it. */
.aieo-spec-table__scroll {
	position: relative;
	max-width: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
}
.aieo-spec-table__scroll:focus-visible {
	outline: var(--wp--custom--rooster--focus-ring, 2px solid currentColor);
	outline-offset: 2px;
}
.aieo-spec-table__table {
	display: table;
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.aieo-spec-table__caption {
	margin-block-end: var(--wp--preset--spacing--3, 0.75rem);
	caption-side: top;
	text-align: start;
	font-weight: 600;
}
.aieo-spec-table__table :is(th, td) {
	padding: var(--wp--custom--rooster--table--pad, 0.625rem) var(--wp--preset--spacing--4, 1rem) var(--wp--custom--rooster--table--pad, 0.625rem) 0;
	border: 0;
	border-block-end: var(--wp--custom--rooster--rule-thin, 1px) solid var(--wp--custom--rooster--table--rule, color-mix(in srgb, currentColor 25%, transparent));
	text-align: start;
	vertical-align: top;
}
.aieo-spec-table__table :is(th, td):last-child {
	padding-inline-end: 0;
}
.aieo-spec-table__table thead th {
	border-block-end: var(--wp--custom--rooster--table--head, 1px) solid var(--wp--preset--color--fg, currentColor);
	font-weight: 500;
	white-space: nowrap;
}
.aieo-spec-table__table tbody th {
	font-weight: inherit;
}
.aieo-spec-table__table tbody th a {
	color: inherit;
}
/* A measure, a code and a price keep their words together; a name wraps. */
.aieo-spec-table__table td {
	white-space: nowrap;
}
.aieo-spec-table__table tbody tr:last-child :is(th, td) {
	border-block-end: 0;
}
@supports (animation-timeline: scroll()) {
	.aieo-spec-table__scroll {
		--aieo-spec-shade: color-mix(in srgb, currentColor 30%, transparent);
		animation: aieo-spec-table-edges linear both;
		animation-timeline: scroll(self inline);
	}
	@keyframes aieo-spec-table-edges {
		0% {
			box-shadow: inset -0.875rem 0 0.75rem -0.75rem var(--aieo-spec-shade);
		}
		2%,
		98% {
			box-shadow: inset 0.875rem 0 0.75rem -0.75rem var(--aieo-spec-shade), inset -0.875rem 0 0.75rem -0.75rem var(--aieo-spec-shade);
		}
		100% {
			box-shadow: inset 0.875rem 0 0.75rem -0.75rem var(--aieo-spec-shade);
		}
	}
}
