/* aieo/category-chips, variant "button" (11.3.10): the designer's square sub-category chips (archive B; the owner,
 * 11 Nov 2026: the look and the counts change, the terms are the strip's). One row that wraps; the current page's
 * chip in ink with the page's colour on it, the number of products beside each name. On a phone (below 48rem) one row
 * that slides sideways (the default; `--wrap` keeps the rows): no bar and no script, the next chip cut at the edge;
 * inside a group with the page's side padding the row runs to the screen's edges and starts where the text starts. A
 * browser that knows scroll-initial-target opens the row on the current chip. The shape is the theme's button shape;
 * no colour of the block's own: the theme's tokens, else the text's own colour. Loaded only where the look renders. */
.aieo-subcats {
	margin: 0;
}
.aieo-subcats__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.aieo-subcats__list > li {
	margin: 0;
}
.aieo-subcats .aieo-subcats__chip {
	/* The containing block of its count's words for screen readers (absolutely placed, 1 px): outside the row
	 * that scrolls, they widened the phone's page by every chip past the edge. */
	/* The name and its smaller count share one baseline (the owner, 12 Nov 2026: the numbers were "not totally
	 * vertically properly aligned with the category text"); the line is centred in the chip's 44 px by the padding:
	 * the height less the borders less the line (1.25 at the chip's size), halved. */
	position: relative;
	display: inline-flex;
	align-items: baseline;
	gap: var(--wp--preset--spacing--2);
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: calc((2.75rem - 2px - 1.25em) / 2) var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
	border-radius: var(--wp--custom--rooster--shape--button, 0);
	background: transparent;
	color: var(--wp--preset--color--fg, currentColor);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 160ms, border-color 160ms, color 160ms;
}
.aieo-subcats .aieo-subcats__chip:hover {
	border-color: var(--wp--preset--color--fg, currentColor);
	background: color-mix(in srgb, currentColor 6%, transparent);
	color: var(--wp--preset--color--fg, currentColor);
}
.aieo-subcats .aieo-subcats__chip[aria-current] {
	border-color: var(--wp--preset--color--fg, CanvasText);
	background: var(--wp--preset--color--fg, CanvasText);
	color: var(--wp--preset--color--bg, Canvas);
}
.aieo-subcats__count {
	color: var(--wp--preset--color--muted, currentColor);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}
.aieo-subcats__chip[aria-current] .aieo-subcats__count {
	color: inherit;
	opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
	.aieo-subcats .aieo-subcats__chip {
		transition: none;
	}
}
@media (max-width: 47.999rem) {
	.aieo-subcats:not(.aieo-subcats--wrap) .aieo-subcats__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		padding-block: 4px;
	}
	.aieo-subcats:not(.aieo-subcats--wrap) .aieo-subcats__list::-webkit-scrollbar {
		display: none;
	}
	.aieo-subcats:not(.aieo-subcats--wrap) .aieo-subcats__list > li {
		flex: none;
	}
	.has-global-padding > .aieo-subcats:not(.aieo-subcats--wrap) .aieo-subcats__list {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 0px)) calc(-1 * var(--wp--style--root--padding-right, 0px));
		padding-inline: var(--wp--style--root--padding-left, 0px) var(--wp--style--root--padding-right, 0px);
		scroll-padding-inline: var(--wp--style--root--padding-left, 0px) var(--wp--style--root--padding-right, 0px);
	}
	.aieo-subcats .aieo-subcats__chip[aria-current] {
		scroll-initial-target: nearest;
	}
}
