/* aieo/category-chips, variant "swatch" (11.3.11): the designer's «Shop by colour.» (home B). One row of round
 * chips spread across the width, each the term's colour or picture with its name and count under it; the last one,
 * when asked, opens the Navigator. The chip's size and shape are the theme's swatch tokens; the colour is the term's
 * (printed on the chip as --aieo-chip-colour or --aieo-chip-image), else the page's subtle ground: no colour of the
 * block's own. A ring of the text's colour on hover and focus. On a phone (below 48rem) the row slides sideways,
 * from the page's edge, with no bar and no script. Loaded only where the look renders. */
.aieo-chip-swatches {
	margin: 0;
}
.aieo-chip-swatches__list {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4, 1rem);
	margin: 0;
	padding: 0.75rem 0.375rem 0.625rem;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.aieo-chip-swatches__list::-webkit-scrollbar {
	display: none;
}
.aieo-chip-swatches__list > li {
	flex: none;
	margin: 0;
}
.aieo-chip-swatches .aieo-chip-swatches__chip {
	position: relative;
	display: grid;
	grid-template-rows: auto 1.25em auto;
	justify-items: center;
	gap: var(--wp--preset--spacing--2, 0.5rem);
	box-sizing: border-box;
	width: 5.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--fg, currentColor);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.aieo-chip-swatches__dot {
	display: grid;
	place-items: center;
	width: calc(var(--wp--custom--rooster--swatch--size, 40px) * 1.6);
	height: calc(var(--wp--custom--rooster--swatch--size, 40px) * 1.6);
	border-radius: var(--wp--custom--rooster--swatch--shape, 50%);
	background-color: var(--aieo-chip-colour, var(--wp--preset--color--subtle, transparent));
	background-image: var(--aieo-chip-image, none);
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
	transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms;
}
.aieo-chip-swatches__chip:hover .aieo-chip-swatches__dot,
.aieo-chip-swatches__chip:focus-visible .aieo-chip-swatches__dot {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent), 0 0 0 3px var(--wp--preset--color--bg, Canvas), 0 0 0 5px currentColor;
}
.aieo-chip-swatches .aieo-chip-swatches__chip:focus-visible {
	outline: none;
}
.aieo-chip-swatches__name {
	overflow: hidden;
	max-width: 100%;
	text-overflow: ellipsis;
}
.aieo-chip-swatches__count {
	color: var(--wp--preset--color--muted, currentColor);
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
	font-variant-numeric: tabular-nums;
}
.aieo-chip-swatches__chip--navigator .aieo-chip-swatches__dot {
	background: var(--wp--preset--color--bg, Canvas);
	box-shadow: inset 0 0 0 1px currentColor;
}
.aieo-chip-swatches__chip--navigator svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
	stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
	.aieo-chip-swatches__chip:hover .aieo-chip-swatches__dot {
		transform: scale(1.06);
	}
}
@media (prefers-reduced-motion: reduce) {
	.aieo-chip-swatches__dot {
		transition: none;
	}
}
@media (max-width: 47.999rem) {
	.aieo-chip-swatches__list {
		justify-content: flex-start;
		gap: var(--wp--preset--spacing--3, 0.75rem);
		margin-inline: calc(-1 * var(--wp--custom--rooster--container-gutter, 1rem));
		padding-inline: var(--wp--custom--rooster--container-gutter, 1rem);
	}
	.aieo-chip-swatches .aieo-chip-swatches__chip {
		width: 4.75rem;
	}
	.aieo-chip-swatches__dot {
		width: calc(var(--wp--custom--rooster--swatch--size, 40px) * 1.4);
		height: calc(var(--wp--custom--rooster--swatch--size, 40px) * 1.4);
	}
}
