/**
 * AVIX — components
 *
 * Buttons, badges, forms, carousels, cards, accordions, dialogs, empty
 * states and the homepage pattern helpers.
 */

/* -------------------------------------------------------------------------
 * Buttons.
 * ---------------------------------------------------------------------- */

.avx-btn {
	--avx-btn-bg: var(--avx-ink);
	--avx-btn-fg: var(--avx-base);
	--avx-btn-bd: var(--avx-ink);

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.875rem 2rem;
	background: var(--avx-btn-bg);
	color: var(--avx-btn-fg);
	border: 1px solid var(--avx-btn-bd);
	border-radius: 0;
	font-family: var(--avx-font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	line-height: 1.1;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--avx-t-fast), color var(--avx-t-fast), border-color var(--avx-t-fast);
}

/*
 * A solid button already rests on black, so hovering to the accent — which is
 * also black — would do nothing visible. Hover lifts to the softer black and
 * pressing returns it to full black, which reads as the press committing.
 */
.avx-btn:hover,
.avx-btn:focus-visible {
	--avx-btn-bg: var(--avx-accent-strong);
	--avx-btn-bd: var(--avx-accent-strong);
	--avx-btn-fg: var(--avx-base);
}

.avx-btn:active {
	--avx-btn-bg: var(--avx-ink);
	--avx-btn-bd: var(--avx-ink);
}

/*
 * The light button sits on the black hero, where darkening it would make it
 * disappear. It goes the other way instead.
 */
.avx-btn--light:hover,
.avx-btn--light:focus-visible {
	--avx-btn-bg: var(--avx-surface);
	--avx-btn-bd: var(--avx-surface);
	--avx-btn-fg: var(--avx-ink);
}

.avx-btn[disabled],
.avx-btn[aria-disabled="true"],
.avx-btn.is-busy {
	cursor: not-allowed;
	opacity: 0.55;
	pointer-events: none;
}

.avx-btn--ghost {
	--avx-btn-bg: transparent;
	--avx-btn-fg: var(--avx-ink);
	--avx-btn-bd: var(--avx-ink);
}

/*
 * The outline button for dark artwork. .avx-btn--ghost draws itself in ink,
 * which vanishes on a photograph; this one is the same button in paper.
 */
.avx-btn--ghost-light {
	--avx-btn-bg: transparent;
	--avx-btn-fg: var(--avx-base);
	--avx-btn-bd: var(--avx-base);
}

.avx-btn--ghost-light:hover,
.avx-btn--ghost-light:focus-visible {
	--avx-btn-bg: var(--avx-base);
	--avx-btn-fg: var(--avx-ink);
	--avx-btn-bd: var(--avx-base);
}

.avx-btn--quiet {
	--avx-btn-bg: transparent;
	--avx-btn-fg: var(--avx-ink);
	--avx-btn-bd: var(--avx-line);
}

.avx-btn--light {
	--avx-btn-bg: var(--avx-base);
	--avx-btn-fg: var(--avx-ink);
	--avx-btn-bd: var(--avx-base);
}

.avx-btn--sm {
	min-height: 2.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.75rem;
}

.avx-btn--block {
	width: 100%;
}

.avx-btn .avx-icon {
	margin-block: -0.15rem;
}

.avx-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: 0;
	padding: 0.35rem 0;
	color: inherit;
	font-size: 0.875rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	min-height: 2.25rem;
}

.avx-link-btn:hover {
	color: var(--avx-accent);
}

/* -------------------------------------------------------------------------
 * Badges, chips and stock states.
 * ---------------------------------------------------------------------- */

/* Deliberately inline-block rather than inline-flex. A badge whose figure is
   isolated in a <bdi> — "<bdi>25%</bdi> off" — is two flex items, and flex
   both strips the word space between them and, under RTL, reverses them into
   "off 25%". Laying the label out as ordinary text lets <bdi> do its job: the
   figure stays LTR inside an RTL line, and the words keep their written
   order. */
.avx-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	font-family: var(--avx-font-display);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	line-height: 1.2;
	text-transform: uppercase;
	background: var(--avx-base);
	color: var(--avx-ink);
	border: 1px solid var(--avx-ink);
}

/*
 * Three treatments, no colour. In a monochrome brand a badge earns attention
 * through fill, so the loudest claim (a real discount) is a solid black block
 * and the quieter ones are outlined. Two outlined chips can sit side by side —
 * they carry different words, which is what the customer actually reads.
 */
.avx-badge--solid {
	background: var(--avx-ink);
	border-color: var(--avx-ink);
	color: var(--avx-base);
}

.avx-badge--outline {
	background: var(--avx-base);
	border-color: var(--avx-ink);
	color: var(--avx-ink);
}

.avx-badge--muted {
	background: var(--avx-surface);
	border-color: var(--avx-line);
	color: var(--avx-muted);
}

.avx-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.avx-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.25rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--avx-line);
	background: var(--avx-base);
	font-size: 0.8125rem;
	text-decoration: none;
	transition: border-color var(--avx-t-fast);
}

.avx-chip:hover,
.avx-chip:focus-visible {
	border-color: var(--avx-ink);
}

.avx-chip--clear {
	border-style: dashed;
	font-weight: 700;
}

.avx-stock {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.8125rem;
}

/*
 * Availability is carried by an icon and by words, never by colour alone —
 * which is what lets it work in a monochrome palette. "Only 2 left" earns its
 * urgency from weight; "In stock" sits back a tone; "Out of stock" recedes.
 */
.avx-stock--success { color: var(--avx-ink-soft); }

.avx-stock--warning {
	color: var(--avx-ink);
	font-weight: 700;
}

.avx-stock--muted { color: var(--avx-muted); }

/* -------------------------------------------------------------------------
 * Forms.
 * ---------------------------------------------------------------------- */

.avx-field {
	display: grid;
	gap: 0.35rem;
}

.avx-field__label,
.avx-label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
	color: var(--avx-muted);
}

.avx-input,
.avx-select,
.avx-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.875rem;
	background: var(--avx-base);
	border: 1px solid var(--avx-line);
	border-radius: 0;
	font-size: 1rem; /* 16px stops iOS zooming on focus. */
	color: var(--avx-ink);
	transition: border-color var(--avx-t-fast), box-shadow var(--avx-t-fast);
	appearance: none;
}

textarea {
	min-height: 7rem;
	resize: vertical;
}

.avx-input:focus,
.avx-select:focus,
input:focus,
select:focus,
textarea:focus {
	border-color: var(--avx-ink);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--avx-ink);
}

.avx-select,
select {
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 1.05rem center, right 0.7rem center;
	background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
	background-repeat: no-repeat;
	padding-inline-end: 2.25rem;
}

.avx-rtl .avx-select,
.avx-rtl select {
	background-position: left 0.7rem center, left 1.05rem center;
	background-image: linear-gradient(135deg, transparent 50%, currentColor 50%), linear-gradient(45deg, currentColor 50%, transparent 50%);
	padding-inline-end: 0.875rem;
	padding-inline-start: 2.25rem;
}

input[aria-invalid="true"],
.woocommerce-invalid input.input-text,
.woocommerce-invalid select {
	border-color: var(--avx-error);
	box-shadow: inset 0 0 0 1px var(--avx-error);
}

.avx-required {
	border: 0;
	text-decoration: none;
	color: var(--avx-error);
}

.avx-field-error {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	color: var(--avx-error);
}

/* Quantity stepper. */
.avx-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--avx-line);
}

.avx-qty__btn {
	display: grid;
	place-items: center;
	width: 2.75rem;
	min-height: 3rem;
	color: inherit;
}

.avx-qty__btn:hover {
	background: var(--avx-base-warm);
}

.avx-qty .qty,
.avx-qty__input {
	width: 3.25rem;
	min-height: 3rem;
	border: 0;
	border-inline: 1px solid var(--avx-line);
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
	appearance: textfield;
}

.avx-qty input::-webkit-outer-spin-button,
.avx-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Search form. */
.avx-search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.avx-search-form__icon {
	position: absolute;
	inset-inline-start: 0.875rem;
	color: var(--avx-muted);
	pointer-events: none;
	display: grid;
	place-items: center;
}

.avx-search-form__input {
	padding-inline-start: 2.75rem;
}

.avx-search-form__submit {
	position: absolute;
	inset-inline-end: 0.35rem;
	min-height: 2.4rem;
	padding: 0.4rem 0.9rem;
	background: var(--avx-ink);
	color: var(--avx-base);
	border: 0;
	font-family: var(--avx-font-display);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
}

/* -------------------------------------------------------------------------
 * Grid children.
 *
 * WordPress's layout styles add a top margin to every child of a flow layout.
 * Inside these grids that margin breaks the 1px hairline seams and the
 * alignment, so it is cleared for grid children specifically.
 * ---------------------------------------------------------------------- */

.avx-benefits > *,
.avx-cat-grid > *,
.avx-collection-grid > *,
.avx-product-grid > *,
.avx-carousel__track > *,
.avx-footer__cols > *,
.avx-thankyou__facts > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* -------------------------------------------------------------------------
 * Product card.
 * ---------------------------------------------------------------------- */

.avx-product-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1rem;
}

@media (min-width: 48rem) {
	.avx-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.5rem 1.5rem;
	}
}

@media (min-width: 64rem) {
	.avx-product-grid {
		grid-template-columns: repeat(var(--avx-cols, 4), minmax(0, 1fr));
	}
}

.avx-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.avx-card__media {
	position: relative;
	aspect-ratio: var(--avx-ratio-product);
	background: var(--avx-surface);
	overflow: hidden;
	margin-bottom: 0.875rem;
}

.avx-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--avx-t-base), transform var(--avx-t-slow);
}

.avx-card__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.avx-card:hover .avx-card__img--secondary,
.avx-card:focus-within .avx-card__img--secondary {
	opacity: 1;
}

.avx-card:hover .avx-card__img--primary,
.avx-card:focus-within .avx-card__img--primary {
	transform: scale(1.03);
}

.avx-card.is-unavailable .avx-card__media {
	opacity: 0.68;
}

.avx-card__badges {
	position: absolute;
	inset-block-start: 0.625rem;
	inset-inline-start: 0.625rem;
	z-index: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.avx-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.avx-card__category {
	margin: 0;
	font-size: 0.6875rem;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	color: var(--avx-muted);
}

.avx-card__title {
	margin: 0;
	font-family: var(--avx-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
}

.avx-card__link {
	text-decoration: none;
}

/* The whole card is clickable, but only the title is a real link. */
.avx-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.avx-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
}

.avx-card__price {
	margin: 0;
	font-weight: 700;
	font-size: 0.9375rem;
}

.avx-card__price del {
	color: var(--avx-muted);
	font-weight: 400;
	margin-inline-end: 0.35rem;
}

.avx-card__price ins {
	text-decoration: none;
	color: var(--avx-accent);
}

.avx-card__variants {
	margin: 0;
	font-size: 0.75rem;
	color: var(--avx-muted);
}

.avx-card__stock {
	margin-top: 0.15rem;
	font-size: 0.75rem;
}

.avx-card__actions {
	margin-top: 0.875rem;
	position: relative;
	z-index: 2;
	opacity: 1;
}

/* On pointer devices the action reveals on hover to keep the grid calm;
   on touch and for keyboard users it is always visible. */
@media (hover: hover) and (min-width: 64rem) {
	.avx-card__actions {
		opacity: 0;
		transition: opacity var(--avx-t-fast);
	}

	.avx-card:hover .avx-card__actions,
	.avx-card:focus-within .avx-card__actions {
		opacity: 1;
	}
}

/*
 * A campaign block ships without artwork. An <img> with no source collapses to
 * nothing, which leaves half the section as blank white and reads as a broken
 * layout rather than an empty slot. Holding the shape makes it obvious that a
 * picture belongs there, and the rule stops applying the moment one is set.
 */
.avx-campaign__media:empty {
	aspect-ratio: 4 / 3;
	background: var(--avx-surface);
}

.avx-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------------------
 * Category tiles.
 * ---------------------------------------------------------------------- */

.avx-cat-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 48rem) {
	.avx-cat-grid {
		grid-template-columns: repeat(var(--avx-cols, 3), minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.avx-cat-tile__link {
	position: relative;
	display: block;
	text-decoration: none;
	overflow: hidden;
}

.avx-cat-tile__media {
	display: block;
	aspect-ratio: var(--avx-ratio-campaign);
	background: var(--avx-surface);
	overflow: hidden;
}

.avx-cat-tile__img,
.avx-cat-tile__media svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--avx-t-slow);
}

.avx-cat-tile__link:hover .avx-cat-tile__img,
.avx-cat-tile__link:focus-visible .avx-cat-tile__img {
	transform: scale(1.04);
}

.avx-cat-tile__body {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	padding: 1.5rem 1.25rem 1.25rem;
	color: #fff;
	background: linear-gradient(to top, rgba(16, 16, 16, 0.78) 0%, rgba(16, 16, 16, 0.15) 70%, rgba(16, 16, 16, 0) 100%);
	display: grid;
	gap: 0.2rem;
}

.avx-cat-tile__name {
	font-family: var(--avx-font-display);
	font-size: clamp(1.05rem, 2.4vw, 1.5rem);
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
}

.avx-cat-tile__count {
	font-size: 0.75rem;
	opacity: 0.85;
}

.avx-cat-tile__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.35rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	justify-self: start;
}

/* -------------------------------------------------------------------------
 * Carousel.
 * ---------------------------------------------------------------------- */

.avx-carousel {
	position: relative;
}

.avx-carousel__track {
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(64vw, 15rem);
	gap: 1rem;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.avx-carousel__track > * {
	scroll-snap-align: start;
}

@media (min-width: 48rem) {
	.avx-carousel__track {
		/*
		 * A definite track size, not minmax(0, …): with minmax the browser is
		 * free to shrink every column to fit, which silently turns a carousel
		 * of four into a row of eight thumbnails.
		 */
		grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
		gap: 1.5rem;
	}
}

.avx-carousel__controls {
	display: none;
	gap: 0.5rem;
	position: absolute;
	inset-block-start: -3.5rem;
	inset-inline-end: 0;
}

@media (min-width: 48rem) {
	html.avx-js .avx-carousel__controls {
		display: flex;
	}
}

.avx-carousel__btn {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--avx-line);
	background: var(--avx-base);
	color: var(--avx-ink);
	transition: border-color var(--avx-t-fast), background var(--avx-t-fast);
}

.avx-carousel__btn:hover:not([disabled]) {
	border-color: var(--avx-ink);
	background: var(--avx-ink);
	color: var(--avx-base);
}

.avx-carousel__btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* -------------------------------------------------------------------------
 * Accordions.
 * ---------------------------------------------------------------------- */

.avx-accordions {
	margin-block-start: var(--wp--preset--spacing--50, 1.5rem);
	border-top: 1px solid var(--avx-line);
}

.avx-accordion {
	border-bottom: 1px solid var(--avx-line);
}

.avx-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	min-height: 3.25rem;
	cursor: pointer;
	list-style: none;
	font-family: var(--avx-font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
}

.avx-accordion__summary::-webkit-details-marker {
	display: none;
}

.avx-accordion__marker {
	transition: transform var(--avx-t-fast);
}

.avx-accordion[open] .avx-accordion__marker {
	transform: rotate(45deg);
}

.avx-accordion__body {
	padding-block-end: 1.5rem;
	font-size: 0.9375rem;
	color: var(--avx-ink-soft);
}

/* -------------------------------------------------------------------------
 * Empty, error and loading states.
 * ---------------------------------------------------------------------- */

.avx-empty {
	text-align: center;
	padding: clamp(3rem, 8vw, 5.5rem) 1rem;
	border: 1px dashed var(--avx-line);
}

.avx-empty--compact {
	padding: 2.5rem 1rem;
}

.avx-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	border: 1px solid var(--avx-line);
	color: var(--avx-muted);
	margin-bottom: 1.25rem;
}

.avx-empty__title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.avx-empty__text {
	margin: 0 auto;
	max-width: 40ch;
	color: var(--avx-muted);
}

.avx-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.avx-error-summary {
	border: 1px solid var(--avx-error);
	background: var(--avx-base-warm);
	padding: 1rem 1.25rem;
	margin-block-end: 1.5rem;
}

.avx-error-summary__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	color: var(--avx-error);
	text-transform: none;
}

.avx-error-summary__list {
	margin: 0;
	padding-inline-start: 1.25rem;
	font-size: 0.9375rem;
}

.avx-error-summary__list a {
	color: var(--avx-error);
}

.avx-loading {
	position: relative;
	min-height: 8rem;
}

.avx-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: none;
}

/* -------------------------------------------------------------------------
 * Homepage pattern helpers.
 * ---------------------------------------------------------------------- */

.avx-hero {
	position: relative;
	isolation: isolate;
}

.avx-hero .wp-block-cover__inner-container {
	max-width: var(--avx-max);
	margin-inline: auto;
	width: 100%;
}

.avx-hero__eyebrow {
	font-family: var(--avx-font-display);
	font-size: 0.75rem;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.avx-hero__title {
	text-transform: uppercase;
	letter-spacing: -0.025em;
	line-height: 0.98;
	margin: 0 0 1rem;
	max-width: 18ch;
}

.avx-hero__text {
	max-width: 46ch;
	margin: 0 0 1.75rem;
}

/* Mobile / desktop hero pairing. */
.avx-hero__media--desktop { display: none; }
.avx-hero__media--mobile { display: block; }

@media (min-width: 48rem) {
	.avx-hero__media--desktop { display: block; }
	.avx-hero__media--mobile { display: none; }
}

.avx-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1px;
	background: var(--avx-line);
	border: 1px solid var(--avx-line);
}

.avx-benefit {
	background: var(--avx-base);
	padding: 1.75rem 1.25rem;
	display: grid;
	gap: 0.5rem;
	justify-items: center;
	text-align: center;
}

.avx-benefit__title {
	font-family: var(--avx-font-display);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
	margin: 0;
}

.avx-benefit__text {
	margin: 0;
	font-size: 0.875rem;
	color: var(--avx-muted);
	max-width: 30ch;
}

/* Editorial image treatments registered as block styles. */
.is-style-avx-zoom-hover img {
	transition: transform var(--avx-t-slow);
}

.is-style-avx-zoom-hover:hover img {
	transform: scale(1.04);
}

.is-style-avx-reveal img {
	clip-path: inset(0 0 0 0);
	animation: avx-reveal var(--avx-t-slow) both;
}

@keyframes avx-reveal {
	from { clip-path: inset(0 0 100% 0); }
	to { clip-path: inset(0 0 0 0); }
}

.is-style-avx-panel {
	border: 1px solid var(--avx-line);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}

.is-style-avx-inset {
	background: var(--avx-base-warm);
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.is-style-avx-checks ul,
ul.is-style-avx-checks {
	list-style: none;
	padding-inline-start: 0;
	display: grid;
	gap: 0.5rem;
}

ul.is-style-avx-checks li {
	position: relative;
	padding-inline-start: 1.6rem;
}

ul.is-style-avx-checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.45em;
	width: 0.7rem;
	height: 0.35rem;
	border-inline-start: 2px solid var(--avx-accent);
	border-block-end: 2px solid var(--avx-accent);
	transform: rotate(-45deg);
}

.is-style-avx-hairline {
	border-top: 1px solid var(--avx-line);
	opacity: 1;
}

/* -------------------------------------------------------------------------
 * Newsletter.
 * ---------------------------------------------------------------------- */

.avx-newsletter__form {
	display: grid;
	gap: 0.75rem;
	max-width: 32rem;
}

@media (min-width: 30rem) {
	.avx-newsletter__row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.5rem;
	}
}

.avx-newsletter__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.8125rem;
	color: var(--avx-muted);
}

.avx-newsletter__consent input {
	width: 1.15rem;
	height: 1.15rem;
	min-height: 0;
	margin-block-start: 0.15rem;
	flex: none;
	accent-color: var(--avx-ink);
}

.avx-form-status {
	margin: 0;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.avx-form-status--success { color: var(--avx-success); }
.avx-form-status--error { color: var(--avx-error); }

/* -------------------------------------------------------------------------
 * Breadcrumbs and pagination.
 * ---------------------------------------------------------------------- */

.avx-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8125rem;
	color: var(--avx-muted);
}

.avx-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.avx-breadcrumbs a {
	text-decoration: none;
}

.avx-breadcrumbs a:hover {
	text-decoration: underline;
}

.avx-breadcrumbs__sep {
	display: inline-flex;
	color: var(--avx-line);
}

.avx-rtl .avx-breadcrumbs__sep svg {
	transform: scaleX(-1);
}

.avx-pagination {
	margin-block-start: var(--wp--preset--spacing--70, 2.5rem);
}

.avx-pagination__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
}

.avx-pagination a,
.avx-pagination span {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: 0.5rem;
	border: 1px solid var(--avx-line);
	font-size: 0.875rem;
	text-decoration: none;
	transition: border-color var(--avx-t-fast), background var(--avx-t-fast);
}

.avx-pagination a:hover {
	border-color: var(--avx-ink);
}

.avx-pagination .current {
	background: var(--avx-ink);
	border-color: var(--avx-ink);
	color: var(--avx-base);
	font-weight: 700;
}

.avx-pagination .dots {
	border-color: transparent;
}

/* -------------------------------------------------------------------------
 * Lightbox.
 * ---------------------------------------------------------------------- */

.avx-lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--avx-z-dialog);
}

.avx-lightbox__panel {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
}

.avx-lightbox__stage {
	max-width: min(100%, 60rem);
	max-height: 90dvh;
	overflow: auto;
}

.avx-lightbox__stage img {
	width: 100%;
	height: auto;
	background: var(--avx-base);
}

.avx-lightbox__close {
	position: absolute;
	inset-block-start: 1rem;
	inset-inline-end: 1rem;
	background: var(--avx-base);
	color: var(--avx-ink);
	z-index: 1;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Star rating.
 * ---------------------------------------------------------------------- */

.avx-stars {
	display: inline-flex;
	gap: 1px;
	color: var(--avx-line);
}

.avx-stars__star.is-filled {
	color: var(--avx-ink);
}

.avx-stars__star.is-filled svg {
	fill: currentColor;
}

.avx-rating-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	text-decoration: none;
	color: var(--avx-muted);
}

.avx-rating-link:hover {
	color: var(--avx-ink);
}

/* -------------------------------------------------------------------------
 * Hero art direction.
 *
 * The Cover block's own background image is the desktop artwork. The first
 * inner Image block (.avx-hero__mobile-media) is the mobile artwork: it sits
 * as a full-bleed layer below the content and replaces the Cover background
 * on small screens. Delete that Image block if one image is enough.
 * ---------------------------------------------------------------------- */

.avx-hero .avx-hero__mobile-media {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: 0;
	pointer-events: none;
}

.avx-hero .avx-hero__mobile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The measure and alignment are set here rather than through the block's own
 * constrained layout, because that emits physical margin-left / margin-right
 * with !important — which cannot mirror, and cannot be overridden without
 * another !important. Logical properties flip for Arabic on their own.
 */
.avx-hero .avx-hero__content {
	position: relative;
	z-index: 1;
	max-inline-size: 42rem;
	margin-inline: 0 auto;
}

@media (min-width: 48rem) {
	.avx-hero .avx-hero__mobile-media {
		display: none;
	}
}

@media (max-width: 47.99rem) {
	/* Only hide the desktop layer when mobile artwork was actually supplied. */
	.avx-hero:has(.avx-hero__mobile-media img) .wp-block-cover__image-background,
	.avx-hero:has(.avx-hero__mobile-media img) .wp-block-cover__video-background {
		opacity: 0;
	}

	.avx-hero {
		min-height: 72svh;
	}
}

/* Before any artwork is uploaded the hero would render as a flat grey wash
   (a 30% overlay over nothing). Making the overlay solid keeps the empty
   state looking deliberate rather than broken. */
.avx-hero:not(:has(.wp-block-cover__image-background)):not(:has(.wp-block-cover__video-background)):not(:has(.avx-hero__mobile-media img)) .wp-block-cover__background {
	opacity: 1;
}

/* Cover videos: muted, and paused when the visitor prefers reduced motion.
   The control the script adds is the only way playback starts in that case. */
.avx-hero__video-toggle {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-end: 1rem;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: rgba(255, 255, 255, 0.92);
	color: var(--avx-ink);
}

/* -------------------------------------------------------------------------
 * Collection cards.
 * ---------------------------------------------------------------------- */

.avx-collection-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

@media (min-width: 48rem) {
	.avx-collection-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avx-collection-card--wide {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.avx-collection-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.avx-collection-card--wide {
		grid-column: span 2;
		grid-row: span 2;
	}
}

.avx-collection-card {
	position: relative;
	overflow: hidden;
	background: var(--avx-surface);
	min-height: 18rem;
	display: grid;
}

.avx-collection-card__media {
	margin: 0;
	height: 100%;
}

.avx-collection-card__media img {
	width: 100%;
	height: 100%;
	min-height: 18rem;
	object-fit: cover;
}

.avx-collection-card--wide .avx-collection-card__media img {
	min-height: 26rem;
}

.avx-collection-card__body {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	padding: 2rem 1.5rem 1.5rem;
	color: #fff;
	background: linear-gradient(to top, rgba(16, 16, 16, 0.8) 0%, rgba(16, 16, 16, 0.15) 75%, rgba(16, 16, 16, 0) 100%);
}

.avx-collection-card__label {
	margin: 0 0 0.4rem;
	font-family: var(--avx-font-display);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	opacity: 0.9;
}

.avx-collection-card__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.15rem, 2.6vw, 1.75rem);
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.avx-collection-card__text {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	max-width: 40ch;
	opacity: 0.92;
}

.avx-collection-card__body a {
	color: #fff;
}

/* -------------------------------------------------------------------------
 * Featured campaign.
 * ---------------------------------------------------------------------- */

.avx-section--campaign {
	padding-block: 0;
}

.avx-campaign {
	gap: 0 !important;
}

.avx-campaign__media figure,
.avx-campaign__media img {
	margin: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 47.99rem) {
	.avx-campaign {
		flex-wrap: wrap !important;
	}
}

/* -------------------------------------------------------------------------
 * SEO copy block.
 * ---------------------------------------------------------------------- */

.avx-seo {
	background: var(--avx-base-warm);
}

.avx-seo__body {
	color: var(--avx-ink-soft);
}

/* On small screens the copy is clamped until the visitor expands it. */
@media (max-width: 47.99rem) {
	html.avx-js .avx-seo__body {
		max-height: 12rem;
		overflow: hidden;
		mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
	}

	html.avx-js .avx-seo__body.is-expanded {
		max-height: none;
		mask-image: none;
	}
}

@media (min-width: 48rem) {
	.avx-seo__toggle-wrap,
	html.avx-js .avx-seo__toggle-wrap {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Newsletter section (rendered by the companion plugin).
 * ---------------------------------------------------------------------- */

.avx-newsletter {
	padding-block: var(--wp--preset--spacing--80, 3.5rem);
}

.avx-newsletter--warm {
	background: var(--avx-base-warm);
}

.avx-newsletter__inner {
	max-width: var(--avx-max);
	margin-inline: auto;
	padding-inline: var(--avx-gutter);
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 62rem) {
	.avx-newsletter__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 3rem;
		align-items: start;
	}
}

.avx-newsletter__title {
	margin: 0 0 0.5rem;
	font-size: var(--wp--preset--font-size--xx-large, 1.875rem);
	text-transform: uppercase;
	letter-spacing: -0.02em;
}

.avx-newsletter__text {
	margin: 0;
	color: var(--avx-muted);
	max-width: 44ch;
}

/* -------------------------------------------------------------------------
 * Contact form (rendered by the companion plugin).
 * ---------------------------------------------------------------------- */

.avx-contact-form {
	display: grid;
	gap: 1rem;
	max-width: 38rem;
}

.avx-contact-form__row {
	display: grid;
	gap: 1rem;
}

@media (min-width: 36rem) {
	.avx-contact-form__row--split {
		grid-template-columns: 1fr 1fr;
	}
}

.avx-legal-review-note {
	border-inline-start: 3px solid var(--avx-warning);
	padding-inline-start: 0.875rem;
}

/* -------------------------------------------------------------------------
 * Hero slider.
 *
 * The track is a scroll-snapping row: one slide wide, snap-mandatory, with
 * the scrollbar hidden. That alone gives swiping, trackpad scrolling and
 * keyboard scrolling, with or without JavaScript. assets/js/hero-slider.js
 * adds the dots, the arrows and the auto-advance on top.
 *
 * Height comes from one of two places. The default ("tall") is the
 * viewport-height hero the theme shipped with, so swapping the single cover
 * for a slider does not change the shape of an existing homepage. Choosing a
 * ratio instead sets --avx-hslider-ratio, and the slide becomes that shape at
 * whatever width it has — which is what a shop wants when every slide is a
 * finished banner drawn to a fixed canvas.
 * ---------------------------------------------------------------------- */

.avx-hslider {
	--avx-hslider-ratio: 16 / 9;
	--avx-hslider-ratio-sm: 16 / 9;

	position: relative;
	isolation: isolate;
	background: var(--avx-ink);
	color: var(--avx-base);
}

.avx-hslider__viewport {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.avx-hslider__viewport::-webkit-scrollbar {
	display: none;
}

/* The track is focusable so a keyboard can scroll it; the ring has to be
   visible against artwork of any colour, hence the inset double outline. */
.avx-hslider__viewport:focus-visible {
	outline: 2px solid var(--avx-base);
	outline-offset: -4px;
	box-shadow: inset 0 0 0 6px var(--avx-ink);
}

.avx-hslider__slide {
	position: relative;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	display: grid;
	aspect-ratio: var(--avx-hslider-ratio-sm);
	overflow: hidden;
}

.avx-hslider--tall-sm .avx-hslider__slide {
	aspect-ratio: auto;
	min-height: 72svh;
}

@media (min-width: 48rem) {
	.avx-hslider__slide {
		aspect-ratio: var(--avx-hslider-ratio);
		min-height: 0;
	}

	.avx-hslider--tall .avx-hslider__slide {
		aspect-ratio: auto;
		min-height: 78vh;
	}
}

/* Media, scrim and words all occupy the same grid cell and stack by order. */
.avx-hslider__media,
.avx-hslider__link,
.avx-hslider__scrim,
.avx-hslider__content {
	grid-area: 1 / 1;
}

.avx-hslider__media,
.avx-hslider__link {
	display: block;
	block-size: 100%;
	inline-size: 100%;
}

.avx-hslider__img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.avx-hslider__scrim {
	background: var(--avx-ink);
	pointer-events: none;
}

.avx-hslider__content {
	position: relative;
	z-index: 1;
	align-self: end;
	inline-size: 100%;
	max-inline-size: var(--avx-max);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--80, 3.5rem) var(--avx-gutter);
	display: grid;
	justify-items: start;
	text-align: start;
}

/*
 * Alignment is set with logical properties rather than the editor's own
 * justification, which emits physical margins marked !important — those
 * cannot mirror for Arabic and cannot be overridden without another
 * !important. These flip on their own.
 */
.avx-hslider__content--center {
	justify-items: center;
	text-align: center;
}

.avx-hslider__content--end {
	justify-items: end;
	text-align: end;
}

.avx-hslider__content > * {
	max-inline-size: 42rem;
}

/*
 * The dots sit over the bottom of the slide, so the words have to end above
 * them. Without this the last button and the dot row collide on a phone,
 * where the content block reaches much closer to the bottom edge.
 */
.avx-hslider:has(.avx-hslider__controls) .avx-hslider__content {
	padding-block-end: calc(var(--wp--preset--spacing--80, 3.5rem) + 2.5rem);
}

.avx-hslider__eyebrow {
	font-family: var(--avx-font-display);
	font-size: 0.75rem;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.avx-hslider__title {
	font-family: var(--avx-font-display);
	font-size: var(--wp--preset--font-size--display-1, clamp(2.75rem, 8vw, 6rem));
	text-transform: uppercase;
	letter-spacing: -0.025em;
	line-height: 0.98;
	margin: 0 0 1rem;
	max-inline-size: 18ch;
}

.avx-hslider__text {
	font-size: var(--wp--preset--font-size--large, 1.125rem);
	max-inline-size: 46ch;
	margin: 0 0 1.75rem;
}

.avx-hslider__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.avx-hslider__slide--placeholder {
	background: var(--avx-ink);
}

/* ---- controls ---- */

/*
 * The controls sit on a dark pill rather than straight on the artwork. A
 * slide can be any photograph or any finished banner, including a white one —
 * and white dots on a white banner are simply not there. The pill is the only
 * way to promise the same contrast on every slide the owner will ever upload.
 *
 * Both inline insets are set and the width is max-content, so the auto inline
 * margins centre it. That centres in Arabic too, with nothing to mirror.
 */
.avx-hslider__controls {
	position: absolute;
	inset-block-end: 1.25rem;
	inset-inline: var(--avx-gutter);
	inline-size: max-content;
	max-inline-size: 100%;
	margin-inline: auto;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
}

.avx-hslider__dots {
	display: flex;
	align-items: center;
	gap: 0.125rem;
}

/*
 * The dot itself is 8px, but the button around it is 24px — the smallest
 * target WCAG 2.5.8 accepts — so it can be hit on a phone without the row
 * looking like a row of buttons.
 */
.avx-hslider__dot {
	display: grid;
	place-items: center;
	inline-size: 1.5rem;
	block-size: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.avx-hslider__dot::before {
	content: "";
	inline-size: 0.5rem;
	block-size: 0.5rem;
	border-radius: 50%;
	background: var(--avx-base);
	opacity: 0.55;
	transition: opacity var(--avx-t-fast), transform var(--avx-t-fast);
}

.avx-hslider__dot:hover::before,
.avx-hslider__dot:focus-visible::before {
	opacity: 0.8;
}

.avx-hslider__dot[aria-current="true"]::before {
	opacity: 1;
	transform: scale(1.3);
}

.avx-hslider__arrow,
.avx-hslider__pause {
	display: grid;
	place-items: center;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--avx-base);
	cursor: pointer;
	opacity: 0.8;
	transition: background-color var(--avx-t-fast), opacity var(--avx-t-fast);
}

.avx-hslider__arrow:hover,
.avx-hslider__arrow:focus-visible,
.avx-hslider__pause:hover,
.avx-hslider__pause:focus-visible {
	background: rgba(255, 255, 255, 0.22);
	opacity: 1;
}

/* The pause control shows one glyph at a time: a pause bar while it is
   running, a play triangle once the visitor has stopped it. */
.avx-hslider__pause .avx-icon--play,
.avx-hslider.is-stopped .avx-hslider__pause .avx-icon--pause {
	display: none;
}

.avx-hslider.is-stopped .avx-hslider__pause .avx-icon--play {
	display: block;
}

@media (max-width: 29.99rem) {
	.avx-hslider__arrow {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Scrolling text strip.
 *
 * The track holds several copies of the same row and slides by exactly one
 * copy, which puts the next copy where the last one began — so the loop has
 * no seam. How many copies is worked out in PHP from the length of the text:
 * two is only enough when one copy is already wider than the screen, and
 * three short promises on a wide monitor are nowhere near.
 *
 * --avx-marquee-direction is what makes it work in both reading directions;
 * rtl.css flips the sign rather than needing a second set of keyframes.
 * ---------------------------------------------------------------------- */

.avx-marquee {
	--avx-marquee-duration: 24s;

	/* One copy's share of the track, set per block in PHP from how many
	   copies it needed. The direction is a sign rtl.css flips. */
	--avx-marquee-step: 50%;
	--avx-marquee-direction: -1;

	position: relative;
	overflow: hidden;
	background: var(--avx-ink);
	color: var(--avx-base);
}

.avx-marquee__track {
	display: flex;
	inline-size: max-content;
	animation: avx-marquee var(--avx-marquee-duration) linear infinite;
}

/* Hovering or tabbing in holds it still long enough to finish reading. */
.avx-marquee:hover .avx-marquee__track,
.avx-marquee:focus-within .avx-marquee__track {
	animation-play-state: paused;
}

.avx-marquee__row {
	display: flex;
	align-items: center;
	flex: none;
}

.avx-marquee__item,
.avx-marquee__sep {
	white-space: nowrap;

	/* Each line is a self-contained token: an English promise on an Arabic
	   page should keep its own word order, the way badges do. */
	unicode-bidi: plaintext;
}

.avx-marquee__sep {
	opacity: 0.45;
	padding-inline: 1.25rem;
}

.avx-marquee__link {
	color: inherit;
	text-decoration: none;
	display: block;
}

.avx-marquee--small {
	font-family: var(--avx-font-display);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	padding-block: 0.7rem;
}

.avx-marquee--large {
	font-family: var(--avx-font-display);
	font-size: clamp(1.25rem, 3.5vw, 2.25rem);
	font-weight: 700;
	letter-spacing: var(--avx-track-wide);
	text-transform: uppercase;
	padding-block: 0.6rem;
}

.avx-marquee--large .avx-marquee__sep {
	padding-inline: 1.75rem;
}

@keyframes avx-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(calc(var(--avx-marquee-step) * var(--avx-marquee-direction))); }
}

/*
 * Text that never stops moving is a genuine problem for people with
 * vestibular disorders and for anyone who reads slowly. Asked for reduced
 * motion, the strip becomes ordinary centred text: the duplicate row is
 * dropped so nothing repeats, and the first one wraps instead of overflowing.
 */
@media (prefers-reduced-motion: reduce) {
	.avx-marquee__track {
		animation: none;
		inline-size: 100%;
		justify-content: center;
	}

	/* One copy is all that is wanted when nothing is moving; the rest exist
	   only to keep the loop seamless. */
	.avx-marquee__row:not(:first-child) {
		display: none;
	}

	.avx-marquee__row {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 0.25rem;
		padding-inline: var(--avx-gutter);
	}

	.avx-marquee__item,
	.avx-marquee__sep {
		white-space: normal;
	}
}

/* -------------------------------------------------------------------------
 * Brand strip.
 * ---------------------------------------------------------------------- */

.avx-brands__track {
	/* Narrower than a product card, and as many as fit. */
	grid-auto-columns: minmax(7.5rem, 1fr);
}

.avx-brands__item {
	scroll-snap-align: start;
}

.avx-brands__link {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 0.6rem;
	min-block-size: 7rem;
	padding: 1rem 0.75rem;
	border: 1px solid var(--avx-line);
	color: inherit;
	text-decoration: none;
	transition: border-color var(--avx-t-fast), background-color var(--avx-t-fast);
}

.avx-brands__link:hover,
.avx-brands__link:focus-visible {
	border-color: var(--avx-ink);
	background: var(--avx-base-warm);
}

.avx-brands__logo {
	max-block-size: 2.75rem;
	inline-size: auto;
	max-inline-size: 100%;
	object-fit: contain;

	/* Brand logos arrive in every colour there is. Draining them keeps the
	   row reading as one band rather than a ransom note, and colour returns
	   on hover so nothing is permanently misrepresented. */
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter var(--avx-t-fast), opacity var(--avx-t-fast);
}

.avx-brands__link:hover .avx-brands__logo,
.avx-brands__link:focus-visible .avx-brands__logo {
	filter: none;
	opacity: 1;
}

.avx-brands__name {
	font-family: var(--avx-font-display);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--avx-track-wider);
	text-transform: uppercase;
	text-align: center;
	unicode-bidi: plaintext;
}

/* -------------------------------------------------------------------------
 * Questions and answers.
 * ---------------------------------------------------------------------- */

/*
 * A narrow column, header and all. Constraining only the questions and
 * leaving the heading at full width lands them on two different left edges,
 * which reads as a mistake rather than a layout.
 */
.avx-faq {
	max-inline-size: 56rem;
	margin-inline: auto;
}

.avx-faq .avx-accordion__summary {
	font-size: 0.875rem;
}

.avx-faq .avx-accordion__body p:last-child {
	margin-block-end: 0;
}
