/*
Theme Name: A&E BioLabs
Author: A&E BioLabs
Description: Custom block theme for the A&E BioLabs catalog and order-request site.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
Version: 0.16.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aebiolabs
*/

/*
 * Keep this file minimal. Styling order of preference:
 * theme.json → block style variations → this file.
 */

/*
 * Header: a glowing blue line along the bottom edge, brightest in the middle
 * and fading out at both ends, with a soft haze spilling below it.
 */
.aeb-site-header {
	position: relative;
	z-index: 10;
	/* A faint blue hue: strongest behind the wordmark, a softer echo on the right. */
	background-image:
		radial-gradient(ellipse 55% 160% at 0% 0%, color-mix(in srgb, var(--wp--preset--color--primary) 13%, transparent), transparent 70%),
		radial-gradient(ellipse 45% 140% at 100% 100%, color-mix(in srgb, var(--wp--preset--color--primary) 7%, transparent), transparent 70%);
}

.aeb-site-header::after,
.aeb-site-header::before {
	content: "";
	position: absolute;
	pointer-events: none;
}

.aeb-site-header::after {
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	/* Toned down from full brightness so the line glows rather than shines. */
	background: linear-gradient(
		90deg,
		transparent,
		rgb(30 144 255 / 0.4) 20%,
		rgb(77 179 255 / 0.6) 50%,
		rgb(30 144 255 / 0.4) 80%,
		transparent
	);
}

.aeb-site-header::before {
	top: 100%;
	right: 10%;
	left: 10%;
	height: 1.5rem;
	background: radial-gradient(ellipse 50% 100% at 50% 0, rgb(30 144 255 / 0.14), transparent 70%);
}

/* Wordmark: glowing flask, "A&E" in white and "BioLabs" in the blue gradient. */
.aeb-wordmark a {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.aeb-wordmark__mark {
	display: inline-flex;
	flex: 0 0 auto;
	width: 1.05em;
	height: 1.05em;
	color: var(--wp--preset--color--primary-bright);
	filter: drop-shadow(0 0 6px rgb(30 144 255 / 0.7));
	transition: filter 0.2s ease;
}

.aeb-wordmark__mark svg {
	width: 100%;
	height: 100%;
}

.aeb-wordmark a:hover,
.aeb-wordmark a:focus-visible {
	color: var(--wp--preset--color--contrast);
}

.aeb-wordmark a:hover .aeb-wordmark__mark,
.aeb-wordmark a:focus-visible .aeb-wordmark__mark {
	filter: drop-shadow(0 0 10px rgb(77 179 255 / 0.95));
}

/*
 * Nav: an underline grows from the centre on hover; the current page keeps
 * it, with a soft glow (the blue bar under "Home" in the mockup).
 */
.aeb-site-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.35rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.aeb-site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary-bright);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.aeb-site-header .wp-block-navigation-item__content:hover,
.aeb-site-header .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

.aeb-site-header .wp-block-navigation-item__content:hover::after,
.aeb-site-header .wp-block-navigation-item__content:focus-visible::after,
.aeb-site-header .current-menu-item > .wp-block-navigation-item__content::after,
.aeb-site-header .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

.aeb-site-header .current-menu-item > .wp-block-navigation-item__content::after,
.aeb-site-header .wp-block-navigation-item__content[aria-current="page"]::after {
	background: var(--wp--preset--color--primary);
	box-shadow: 0 0 8px rgb(30 144 255 / 0.9);
}

@media (min-width: 600px) {
	.aeb-site-header .wp-block-navigation__container {
		gap: var(--wp--preset--spacing--40);
	}
}

/*
 * Phone menu (full-screen overlay): large left-aligned links with thin
 * dividers; the current page gets the blue accent strip used on headings.
 */
.aeb-site-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40);
	background-image: radial-gradient(ellipse 90% 45% at 100% 0, rgb(30 144 255 / 0.14), transparent 70%);
}

.aeb-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: var(--wp--preset--spacing--50);
}

.aeb-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.aeb-site-header .is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

/* Core resets link padding in the overlay with a long selector; match it. */
.aeb-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 1rem 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-align: left;
	text-transform: uppercase;
}

.aeb-site-header .is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

.aeb-site-header .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
.aeb-site-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--primary-bright) 0,
		var(--wp--preset--color--primary-bright) 3px,
		rgb(30 144 255 / 0.28) 3px,
		rgb(30 144 255 / 0.08) 30%,
		transparent 60%
	);
	color: var(--wp--preset--color--primary-bright);
}

.aeb-site-header .wp-block-navigation__responsive-container-open,
.aeb-site-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--contrast);
}

/* Header utility row: "Cart (n)" above the nav row, as in the mockup. */
.aeb-header-right {
	align-items: flex-end;
}

/* Mini-cart shown as: [blue icon] Cart [count badge]. */
.aeb-mini-cart .wc-block-mini-cart__button {
	gap: 0.4rem;
	padding: 0.25rem 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.aeb-mini-cart .wc-block-mini-cart__button:hover,
.aeb-mini-cart .wc-block-mini-cart__button:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

.aeb-mini-cart .wc-block-mini-cart__quantity-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.aeb-mini-cart .wc-block-mini-cart__icon {
	margin: 0;
	color: var(--wp--preset--color--primary-bright);
}

/* Dark text on bright blue passes WCAG AA; white on blue would not. */
.aeb-mini-cart .wc-block-mini-cart__badge {
	position: static;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: none;
	min-width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	padding: 0 0.3rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary-bright) !important;
	box-shadow: 0 0 8px rgb(30 144 255 / 0.55);
	color: var(--wp--preset--color--base) !important;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	visibility: visible;
}

.aeb-mini-cart--added .wc-block-mini-cart__badge {
	animation: aeb-cart-badge-pulse 0.7s ease-out 0.3s 2;
}

@keyframes aeb-cart-badge-pulse {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 8px rgb(30 144 255 / 0.55);
	}

	40% {
		transform: scale(1.35);
		box-shadow: 0 0 16px rgb(77 179 255 / 0.95);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aeb-wordmark__mark,
	.aeb-site-header .wp-block-navigation-item__content,
	.aeb-site-header .wp-block-navigation-item__content::after {
		transition: none;
	}

	.aeb-mini-cart--added .wc-block-mini-cart__badge {
		animation: none;
	}
}

/* Header product search with live dropdown. */
.aeb-product-search {
	position: relative;
}

.aeb-product-search .wp-block-search__inside-wrapper {
	width: 14rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
}

.aeb-product-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
}

.aeb-product-search .wp-block-search__input {
	padding: 0.4rem 0 0.4rem 1rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
}

.aeb-product-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.aeb-product-search .wp-block-search__input:focus {
	outline: none;
}

.aeb-product-search .wp-block-search__button {
	margin: 0;
	padding: 0.4rem 0.75rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--primary);
}

.aeb-product-search .wp-block-search__button:hover,
.aeb-product-search .wp-block-search__button:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

.aeb-search-results {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	z-index: 100;
	width: max(100%, 18rem);
	max-height: 22rem;
	margin: 0;
	padding: 0.35rem 0;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: var(--wp--preset--color--surface);
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
}

.aeb-search-results li > a,
.aeb-search-results__empty {
	display: block;
	padding: 0.5rem 1rem;
	font-size: var(--wp--preset--font-size--small);
}

.aeb-search-results li > a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.aeb-search-results li > a:hover,
.aeb-search-results [aria-selected="true"] > a {
	background: var(--wp--preset--color--border);
	color: var(--wp--preset--color--primary-bright);
}

.aeb-search-results__all {
	margin-top: 0.35rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.aeb-search-results__all > a {
	color: var(--wp--preset--color--primary) !important;
}

.aeb-search-results__empty {
	color: var(--wp--preset--color--muted);
}

/*
 * Phones: title, cart and menu button on one row; full-width search below.
 * The wrapper groups are flattened so their children can be reordered.
 */
@media (max-width: 599px) {
	.aeb-site-header .aeb-header-row {
		flex-wrap: wrap;
		row-gap: var(--wp--preset--spacing--30);
	}

	body .aeb-site-header .aeb-header-right,
	body .aeb-site-header .aeb-header-utility,
	body .aeb-site-header .aeb-header-nav-row {
		display: contents;
	}

	.aeb-site-header .aeb-header-row .wp-block-site-title {
		order: 1;
		margin-right: auto;
		font-size: var(--wp--preset--font-size--large);
	}

	.aeb-site-header .aeb-header-row .aeb-mini-cart {
		order: 2;
	}

	.aeb-site-header .aeb-header-row .wp-block-navigation {
		order: 3;
	}

	.aeb-site-header .aeb-header-row .aeb-product-search {
		order: 4;
		flex-basis: 100%;
	}

	.aeb-product-search .wp-block-search__inside-wrapper {
		width: 100%;
	}

	.aeb-search-results {
		left: 0;
		width: 100%;
	}
}

/*
 * Tablets: too narrow for wordmark, nav and search on one line, so the
 * wordmark and cart share the top row and nav + search fill the second.
 */
@media (min-width: 600px) and (max-width: 899px) {
	.aeb-site-header .aeb-header-row {
		flex-wrap: wrap;
		row-gap: var(--wp--preset--spacing--30);
	}

	body .aeb-site-header .aeb-header-right,
	body .aeb-site-header .aeb-header-utility {
		display: contents;
	}

	.aeb-site-header .aeb-header-row .wp-block-site-title {
		order: 1;
		margin-right: auto;
	}

	.aeb-site-header .aeb-header-row .aeb-mini-cart {
		order: 2;
	}

	.aeb-site-header .aeb-header-row .aeb-header-nav-row {
		order: 3;
		flex-basis: 100%;
		justify-content: space-between;
	}
}

/* The footer sits directly under the page content, with no gap above it. */
.wp-site-blocks > footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Footer: thin dividers between nav links. */
.aeb-site-footer .wp-block-navigation-item + .wp-block-navigation-item {
	padding-left: var(--wp--preset--spacing--30);
	border-left: 1px solid var(--wp--preset--color--border);
}

.aeb-site-footer .wp-block-social-links .wp-social-link:hover {
	color: var(--wp--preset--color--primary-bright);
}

/*
 * WooCommerce block forms (cart, checkout) on the dark theme.
 * WooCommerce defaults to white inputs with dark text, while labels inherit
 * the theme's white text — which made labels invisible.
 */
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-combobox .wc-block-components-combobox-control input {
	background-color: var(--wp--preset--color--surface) !important;
	color: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--border) !important;
}

.wc-blocks-components-select .wc-blocks-components-select__select {
	color: var(--wp--preset--color--contrast);
}

.wc-blocks-components-select .wc-blocks-components-select__select option {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--muted);
}

.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
	color: var(--wp--preset--color--muted) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select .wc-blocks-components-select__container:focus-within {
	border-color: var(--wp--preset--color--primary) !important;
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary) !important;
	outline: none;
}

.wc-block-components-text-input.has-error input,
.wc-blocks-components-select.has-error .wc-blocks-components-select__container {
	border-color: var(--wp--preset--color--error) !important;
}

.wc-block-components-validation-error {
	color: var(--wp--preset--color--error);
}

/* Checkboxes: outlined box that fills blue with a tick when checked. */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0.25rem 0 0;
	border: 2px solid var(--wp--preset--color--muted) !important;
	border-radius: 0.35rem;
	background: transparent !important;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:hover {
	border-color: var(--wp--preset--color--primary-bright) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--wp--preset--color--primary) !important;
	background: var(--wp--preset--color--primary) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-bright);
	outline-offset: 2px;
}

.wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: transparent;
	pointer-events: none;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked + .wc-block-components-checkbox__mark {
	fill: var(--wp--preset--color--base);
}

.wc-block-components-radio-control .wc-block-components-radio-control__input,
.aeb-order-request__method input[type="radio"] {
	accent-color: var(--wp--preset--color--primary);
	background-color: transparent;
	border-color: var(--wp--preset--color--muted);
}

/*
 * Billing address is never collected — no payment is taken here — so the
 * "use same address for billing" toggle is hidden and stays on.
 */
.wc-block-checkout__use-address-for-billing {
	display: none !important;
}

/*
 * A single shipping rate or payment method is not a choice, so drop the radio
 * button and selection box. The :has() checks keep real choices intact if more
 * rates or gateways are added later.
 */
.wc-block-checkout__shipping-option .wc-block-components-radio-control:has( .wc-block-components-radio-control__option:only-child ) .wc-block-components-radio-control__input,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control:has( .wc-block-components-radio-control-accordion-option:only-child ) > .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option > .wc-block-components-radio-control__input {
	display: none;
}

.wc-block-checkout__shipping-option .wc-block-components-radio-control:has( .wc-block-components-radio-control__option:only-child ) .wc-block-components-radio-control__option,
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control:has( .wc-block-components-radio-control-accordion-option:only-child ) > .wc-block-components-radio-control-accordion-option > .wc-block-components-radio-control__option {
	padding: 0.85rem 1rem;
	cursor: default;
}

.wc-block-checkout__shipping-option .wc-block-components-radio-control:has( .wc-block-components-radio-control__option:only-child ),
.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control:has( .wc-block-components-radio-control-accordion-option:only-child ) {
	border: 0;
	background: none;
}

/* Order request: payment method choice as stacked, tappable rows. */
.aeb-order-request__methods {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	border: 0;
}

.aeb-order-request__methods legend {
	margin-bottom: var(--wp--preset--spacing--20);
	padding: 0;
	font-weight: 600;
}

.aeb-order-request__method {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	cursor: pointer;
}

.aeb-order-request__method:has(input:checked) {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
}

.aeb-order-request__method input[type="radio"] {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--wp--preset--color--primary);
}

/*
 * Order confirmation: the how-to-pay card (aebiolabs-core): rows of
 * label / value / Copy, the Cash App button, and the QR code. On computers
 * the QR code sits beside the details, ready to scan with a phone; on touch
 * screens (the phone that would do the scanning) it is behind a toggle.
 */
.aeb-pay {
	position: relative;
	box-sizing: border-box;
	max-width: 56rem;
	margin-block: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40) clamp(1rem, 4vw, 2rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 85%, transparent);
	box-shadow: 0 24px 60px color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
}

.aeb-pay::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary-bright), transparent);
	opacity: 0.7;
}

.aeb-pay > *,
.aeb-pay__main > * {
	margin-block: 0;
}

.aeb-pay__title {
	font-size: var(--wp--preset--font-size--larger);
}

.aeb-pay__intro {
	margin-top: 0.5rem !important;
	color: var(--wp--preset--color--muted);
}

.aeb-pay__intro strong {
	color: var(--wp--preset--color--contrast);
}

.aeb-pay__body {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.aeb-pay__rows {
	display: grid;
	margin: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
}

.aeb-pay__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 0.2rem 0.75rem;
	padding: 0.75rem 1rem;
}

.aeb-pay__row + .aeb-pay__row {
	border-top: 1px solid var(--wp--preset--color--border);
}

.aeb-pay__label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aeb-pay__value {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
}

.aeb-pay__text {
	min-width: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.aeb-pay__extra {
	display: block;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
}

.aeb-pay__copy {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.35rem;
	min-height: 2.25rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	color: var(--wp--preset--color--primary-bright);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aeb-pay__copy[hidden] {
	display: none;
}

.aeb-pay__copy::before {
	content: "";
	width: 1em;
	height: 1em;
	background-color: currentColor;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>') center / contain no-repeat;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>') center / contain no-repeat;
}

.aeb-pay__copy:hover,
.aeb-pay__copy:focus-visible {
	border-color: var(--wp--preset--color--primary-bright);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
	color: var(--wp--preset--color--contrast);
}

.aeb-pay__copy.is-copied {
	border-color: var(--wp--preset--color--primary-bright);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
	color: var(--wp--preset--color--contrast);
}

.aeb-pay__copy.is-copied::before {
	mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
	-webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
}

.aeb-pay__hint,
.aeb-pay__how {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.aeb-pay__hint {
	margin-top: 0.6rem !important;
}

.aeb-pay__action {
	display: flex;
	margin-top: var(--wp--preset--spacing--40) !important;
}

.aeb-pay__action .wp-block-button__link {
	justify-content: center;
	width: 100%;
}

.aeb-pay__how {
	margin-top: var(--wp--preset--spacing--30) !important;
}

.aeb-pay__qr-toggle {
	display: none;
	margin-top: var(--wp--preset--spacing--30) !important;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.aeb-pay__qr-toggle summary {
	width: fit-content;
	color: var(--wp--preset--color--primary-bright);
	cursor: pointer;
}

.aeb-pay__qr-toggle .aeb-pay__qr-image {
	margin-top: var(--wp--preset--spacing--30);
}

.aeb-pay__qr-image {
	display: block;
	width: 180px;
	height: auto;
	padding: 0.6rem;
	border-radius: 0.75rem;
	background: var(--wp--preset--color--contrast);
}

/* Large QR code: hidden on touch screens (see below). */
.aeb-pay__qr {
	margin: 0;
	text-align: center;
}

.aeb-pay__qr .aeb-pay__qr-image {
	box-shadow: 0 0 28px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}

.aeb-pay__qr figcaption {
	max-width: 180px;
	margin-top: 0.75rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.aeb-pay__next {
	margin-top: var(--wp--preset--spacing--40) !important;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

@media (min-width: 600px) {
	.aeb-pay__row {
		grid-template-columns: 8.5rem minmax(0, 1fr);
	}

	.aeb-pay__action .wp-block-button__link {
		width: auto;
	}
}

@media (min-width: 782px) {
	.aeb-pay--has-qr .aeb-pay__body {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: start;
	}
}

@media (pointer: coarse) {
	.aeb-pay__qr-toggle {
		display: block;
	}

	.aeb-pay__qr {
		display: none;
	}

	.aeb-pay--has-qr .aeb-pay__body {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * Order confirmation "Additional information" (the 21+ answer): WooCommerce's
 * phone layout drops the padding, so the text touches the box edge. Keep the
 * question / answer columns and padding at every width.
 */
.wc-block-order-confirmation-additional-fields .wc-block-components-additional-fields-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) max-content;
}

.wc-block-order-confirmation-additional-fields .wc-block-components-additional-fields-list :is(dt, dd) {
	display: block;
	margin: 0;
	padding: 1rem;
}

/* Honeypot: hidden from people, left visible to bots. */
.wc-block-components-address-form__aeb-website-url,
.wc-block-components-address-form__aeb-website-url input,
#order-aeb-website-url {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------------------------------------------------------------------------
 * Home page sections. Mobile-first: single column by default, wider layouts
 * added at min-width breakpoints.
 * ------------------------------------------------------------------------ */

/* Placeholder boxes for artwork the client still owes us. */
.aeb-placeholder {
	display: grid;
	place-items: center;
	min-height: 10rem;
	margin: 0;
	padding: var(--wp--preset--spacing--40);
	border: 2px dashed var(--wp--preset--color--border);
	border-radius: 0.75rem;
	color: var(--wp--preset--color--muted);
}

/* Hero: text sits over the background image (left side on desktop). */
.aeb-hero {
	position: relative;
	background-color: var(--wp--preset--color--base);
	/* Keep the product side of the image in frame as the viewport narrows. */
	background-position: 72% center;
	background-size: cover;
	background-repeat: no-repeat;
	isolation: isolate;
}

/* Glow stand-in when no hero image is set. */
.aeb-hero:not(.aeb-hero--has-image) {
	background-image: radial-gradient(120% 90% at 85% 10%, rgb(30 144 255 / 0.22), transparent 60%);
}

/*
 * Darkens the image behind the text so the copy stays readable. On phones the
 * text sits over the whole image, so the veil is heavier there; from 900px the
 * copy moves left and the veil clears towards the product side.
 */
.aeb-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		rgb(5 7 13 / 0.78) 0%,
		rgb(5 7 13 / 0.7) 60%,
		rgb(5 7 13 / 0.62) 100%
	);
}

.aeb-hero__title {
	text-wrap: balance;
}

/* Accent word on its own line, larger, with an electric-blue gradient. */
.aeb-hero__accent {
	display: block;
	color: var(--wp--preset--color--primary-bright);
	font-size: 1.3em;
	line-height: 1;
}

/* Shared electric-blue gradient text. Falls back to solid blue. */
:root {
	--aeb-text-gradient: linear-gradient(
		100deg,
		color-mix(in srgb, var(--wp--preset--color--primary-bright) 45%, white) 0%,
		var(--wp--preset--color--primary-bright) 35%,
		var(--wp--preset--color--primary) 100%
	);
}

.aeb-gradient-text {
	color: var(--wp--preset--color--primary-bright);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.aeb-hero__accent,
	.aeb-gradient-text {
		background-image: var(--aeb-text-gradient);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
	}
}

/*
 * Electric call-to-action button: rectangular, softly rounded, glowing.
 * The fill is a deepened blue rather than the bright brand blue so white
 * text clears WCAG AA (white on #1E90FF is only 3.2:1); the "electric" look
 * comes from the bright border and the glow around it.
 */
.aeb-button-electric .wp-block-button__link,
.aeb-product-summary .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid var(--wp--preset--color--primary-bright);
	border-radius: 0.4rem;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--wp--preset--color--primary) 60%, black) 0%,
		color-mix(in srgb, var(--wp--preset--color--primary) 80%, black) 100%
	);
	box-shadow:
		0 0 12px rgb(30 144 255 / 0.45),
		0 6px 22px rgb(30 144 255 / 0.35);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Chevron drawn as a mask so it scales with the text and inherits its colour. */
.aeb-button-electric .wp-block-button__link::after {
	content: "";
	width: 1.35em;
	height: 1.35em;
	flex: 0 0 auto;
	background-color: currentColor;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m9 5 7 7-7 7" fill="none" stroke="black" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m9 5 7 7-7 7" fill="none" stroke="black" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
	transition: transform 0.2s ease;
}

/* Hover/focus: tighter bright halo plus a wider soft spread. */
.aeb-button-electric .wp-block-button__link:hover,
.aeb-button-electric .wp-block-button__link:focus-visible,
.aeb-product-summary .single_add_to_cart_button:not(.disabled):hover,
.aeb-product-summary .single_add_to_cart_button:focus-visible {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary-bright) 70%, white);
	box-shadow:
		0 0 0 1px var(--wp--preset--color--primary-bright),
		0 0 18px rgb(77 179 255 / 0.75),
		0 10px 34px rgb(77 179 255 / 0.45);
	transform: translateY(-1px);
}

.aeb-button-electric .wp-block-button__link:hover::after,
.aeb-button-electric .wp-block-button__link:focus-visible::after {
	transform: translateX(0.2rem);
}

@media (prefers-reduced-motion: reduce) {
	.aeb-button-electric .wp-block-button__link,
	.aeb-button-electric .wp-block-button__link::after,
	.aeb-product-summary .single_add_to_cart_button {
		transition: none;
	}
}

/* Check list: blue tick instead of a bullet. */
.aeb-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aeb-check-list li {
	position: relative;
	padding-left: 1.85rem;
}

.aeb-check-list li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 1.15rem;
	height: 1.15rem;
	background-color: var(--wp--preset--color--primary);
	/* Inline tick so no image file is needed. */
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* Trust bar */
/*
 * Trust bar: a little more room below it (replaces the 1rem block gap), and
 * a dim blue edge that fades out at both ends with a faint haze beneath,
 * like the header, so it reads as separate from Featured Products.
 */
.aeb-trust-bar {
	position: relative;
	margin-block-end: var(--wp--preset--spacing--40);
}

.aeb-trust-bar::after,
.aeb-trust-bar::before {
	content: "";
	position: absolute;
	pointer-events: none;
}

.aeb-trust-bar::after {
	right: 0;
	bottom: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent) 20%,
		color-mix(in srgb, var(--wp--preset--color--primary-bright) 60%, transparent) 50%,
		color-mix(in srgb, var(--wp--preset--color--primary) 40%, transparent) 80%,
		transparent
	);
}

.aeb-trust-bar::before {
	top: 100%;
	right: 10%;
	left: 10%;
	height: var(--wp--preset--spacing--40);
	background: radial-gradient(ellipse 50% 100% at 50% 0, color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent), transparent 70%);
}

.aeb-trust-bar__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.aeb-trust-bar__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.25;
}

.aeb-trust-bar__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--primary);
	filter: drop-shadow(0 0 6px rgb(30 144 255 / 0.45));
}

.aeb-trust-bar__label {
	display: grid;
}

.aeb-trust-bar__label > span {
	text-wrap: balance;
}

@media (max-width: 599px) {
	/* Phone: copy covers the whole image, so veil it a little further. */
	.aeb-hero::before {
		background: linear-gradient(
			180deg,
			rgb(5 7 13 / 0.7) 0%,
			rgb(5 7 13 / 0.6) 100%
		);
	}

	.aeb-trust-bar__item {
		letter-spacing: 0.03em;
	}

	.aeb-trust-bar__icon svg {
		width: 42px;
		height: 42px;
	}

	/* The truck's drawing sits wider and shorter, so it keeps a bigger box. */
	.aeb-trust-bar__icon--truck svg {
		width: 46px;
		height: 46px;
	}
}

.aeb-trust-bar__line1 {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.aeb-trust-bar__list .aeb-gradient-text {
	font-weight: 700;
}

/* Section headings with a "view all" link */
/*
 * Home page: one subtle blue hue on the whole main area, so it runs
 * unbroken behind every section and through the gaps between them. A very
 * faint tint, a soft glow behind Featured Products (upper left) and a
 * softer one behind the shipping card (lower right). The hero's own image
 * covers the top.
 */
.aeb-home {
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 1%, var(--wp--preset--color--base));
	background-image:
		radial-gradient(ellipse 60% 22% at 10% 48%, color-mix(in srgb, var(--wp--preset--color--primary) 5%, transparent), transparent 70%),
		radial-gradient(ellipse 55% 20% at 92% 88%, color-mix(in srgb, var(--wp--preset--color--primary) 3%, transparent), transparent 70%);
}

/*
 * Products page (and category / search results): the same subtle hue on the
 * main area. The page grows with the catalogue, so the glows sit at fixed
 * distances rather than percentages: one behind the heading and first row,
 * a softer one further down on the right.
 */
.aeb-catalog {
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 1%, var(--wp--preset--color--base));
	background-image:
		radial-gradient(ellipse 60vw 32rem at 10% 12rem, color-mix(in srgb, var(--wp--preset--color--primary) 5%, transparent), transparent 70%),
		radial-gradient(ellipse 55vw 30rem at 92% 60rem, color-mix(in srgb, var(--wp--preset--color--primary) 3%, transparent), transparent 70%);
}

.aeb-section__link a {
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

/*
 * Featured product cards: the image bleeds to the card edge with the product
 * name laid over its lower edge (as in the mockup), then the tagline (short
 * description), price and button below. The children are placed explicitly,
 * so the grid holds even if WooCommerce reorders its wrappers. The stretchy
 * third row keeps the price pinned just above the button, so prices and
 * buttons line up across cards whatever the tagline length.
 */
.aeb-product-grid .wc-block-product-template,
.aeb-product-grid .wp-block-post-template {
	gap: var(--wp--preset--spacing--30);
}

.aeb-product-grid li.wc-block-product,
.aeb-product-grid li.wp-block-post {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto 1fr auto;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: var(--wp--preset--color--base);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	/* Lets the product name scale with the card's width (cqi units). */
	container-type: inline-size;
}

.aeb-product-grid li.wc-block-product:hover,
.aeb-product-grid li.wp-block-post:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 18px rgb(30 144 255 / 0.25);
}

/* Image and title share the first row, so the title sits over the image. */
.aeb-product-grid .wc-block-components-product-image {
	grid-area: 1 / 1;
	margin: 0;
}

.aeb-product-grid .wc-block-components-product-image img {
	display: block;
	width: 100%;
	border-radius: 0;
}

/* WooCommerce's placeholder is a light grey image; tone it down on dark. */
.aeb-product-grid img.woocommerce-placeholder {
	background: var(--wp--preset--color--base);
	opacity: 0.12;
}

.aeb-product-grid .wp-block-post-title {
	grid-area: 1 / 1;
	align-self: end;
	z-index: 1;
	margin: 0;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30) 0.75rem;
	/*
	 * Sized from the card width, not the screen: up to the "Larger" preset
	 * (1.7rem) on wide cards, smaller on narrow ones so one-word names like
	 * "Tesamorelin" never break mid-word.
	 */
	font-size: clamp(1.1rem, 12cqi, var(--wp--preset--font-size--larger));
	text-transform: none;
	letter-spacing: 0;
	/* Black scrim so the name stays readable over any product photo. */
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgb(0 0 0 / 0.6) 30%,
		rgb(0 0 0 / 0.92) 65%,
		var(--wp--preset--color--base) 100%
	);
}

.aeb-product-grid .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.aeb-product-grid .wp-block-post-title a:hover,
.aeb-product-grid .wp-block-post-title a:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

/*
 * Tagline: the short description, directly under the name, in the same
 * electric gradient as "Peptides" in the hero (on cards and the product
 * page). The paragraph is sized to its text so the whole gradient shows
 * rather than just its left end.
 */
.aeb-product-grid .wp-block-woocommerce-product-summary {
	grid-row: 2;
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30) 0.35rem;
}

.aeb-product-tagline {
	line-height: 1.4;
}

.aeb-product-tagline p {
	width: fit-content;
	margin: 0;
	color: var(--wp--preset--color--primary-bright);
}

/* A closing "Research Compound" starts its own line. */
.aeb-tagline-kicker {
	display: block;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.aeb-product-tagline p {
		background-image: var(--aeb-text-gradient);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
	}
}

/*
 * Price: right-aligned at the bottom of the stretchy row, so it always sits
 * the button's top padding (1rem) above the button. Sized to its text so the
 * whole gradient shows.
 */
.aeb-product-grid .wp-block-woocommerce-product-price {
	grid-row: 3;
	align-self: end;
	justify-self: end;
	max-width: 100%;
	/* WooCommerce adds a bottom margin; the button's padding is the gap. */
	margin: 0;
	padding: 0 var(--wp--preset--spacing--30);
}

.aeb-product-grid .wc-block-components-product-price {
	/* Same electric gradient as "Peptides" in the hero; falls back to solid. */
	color: var(--wp--preset--color--primary-bright);
	/* A step up from "Large", scaled with the card like the product name. */
	font-size: clamp(1.3rem, 10cqi, 1.5rem);
	font-weight: 700;
	/* Tight line box so the gap under the digits reads as the full 1rem. */
	line-height: 1.1;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
	.aeb-product-grid .wc-block-components-product-price,
	.aeb-product-summary .aeb-qty-price {
		background-image: var(--aeb-text-gradient);
		background-clip: text;
		-webkit-background-clip: text;
		color: transparent;
	}
}

.aeb-product-grid .wc-block-components-product-button {
	grid-row: 4;
	margin: 0;
	padding: var(--wp--preset--spacing--30);
}

/* Outlined blue button, rectangular with softly rounded corners. */
.aeb-product-grid .wc-block-components-product-button__button,
.aeb-product-grid .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 0.4rem;
	/* Wide and low rather than chunky. */
	padding-block: 0.45rem;
	background: transparent;
	color: var(--wp--preset--color--primary-bright);
}

.aeb-product-grid .wc-block-components-product-button__button:hover,
.aeb-product-grid .wc-block-components-product-button__button:focus-visible,
.aeb-product-grid .wc-block-components-product-button .wp-block-button__link:hover,
.aeb-product-grid .wc-block-components-product-button .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--primary-bright);
	background: rgb(30 144 255 / 0.12);
	color: var(--wp--preset--color--contrast);
}

/*
 * Products page (and category / search results): breadcrumb, result count
 * and sorting on the dark theme, above the shared product cards.
 */
.aeb-catalog .wc-block-breadcrumbs,
.aeb-catalog .woocommerce-breadcrumb,
.aeb-product-page .woocommerce-breadcrumb {
	color: var(--wp--preset--color--muted);
}

.aeb-catalog .wc-block-breadcrumbs a,
.aeb-catalog .woocommerce-breadcrumb a,
.aeb-product-page .woocommerce-breadcrumb a {
	color: var(--wp--preset--color--primary-bright);
	text-decoration: none;
}

.aeb-catalog .wc-block-breadcrumbs a:hover,
.aeb-catalog .wc-block-breadcrumbs a:focus-visible,
.aeb-catalog .woocommerce-breadcrumb a:hover,
.aeb-catalog .woocommerce-breadcrumb a:focus-visible,
.aeb-product-page .woocommerce-breadcrumb a:hover,
.aeb-product-page .woocommerce-breadcrumb a:focus-visible {
	text-decoration: underline;
}

.aeb-catalog .wp-block-query-title {
	margin-top: var(--wp--preset--spacing--20);
}

.aeb-catalog-bar {
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.aeb-catalog-bar .woocommerce-result-count {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/*
 * Sort dropdown: a pill like the header search, with a blue sort icon on the
 * left and a chevron on the right (Lucide "arrow-up-down" and
 * "chevron-down", drawn as masks on the form so they take theme colours).
 * The native select is kept for keyboard and screen-reader support; its
 * option list uses the dark system style.
 */
.aeb-catalog-bar .woocommerce-ordering {
	position: relative;
	margin: 0;
}

.aeb-catalog-bar .woocommerce-ordering::before,
.aeb-catalog-bar .woocommerce-ordering::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 1rem;
	height: 1rem;
	transform: translateY(-50%);
	pointer-events: none;
	background-color: var(--wp--preset--color--primary);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.aeb-catalog-bar .woocommerce-ordering::before {
	left: 0.9rem;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21 16-4 4-4-4"/><path d="M17 20V4"/><path d="m3 8 4-4 4 4"/><path d="M7 4v16"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21 16-4 4-4-4"/><path d="M17 20V4"/><path d="m3 8 4-4 4 4"/><path d="M7 4v16"/></svg>') center / contain no-repeat;
}

.aeb-catalog-bar .woocommerce-ordering::after {
	right: 0.9rem;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') center / contain no-repeat;
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') center / contain no-repeat;
}

.aeb-catalog-bar .woocommerce-ordering select {
	min-height: 2.5rem;
	margin: 0;
	padding: 0.45rem 2.5rem 0.45rem 2.4rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--wp--preset--color--surface) 80%, transparent);
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--wp--preset--color--contrast) 4%, transparent);
	color: var(--wp--preset--color--contrast);
	/* Selects don't inherit the page font by default. */
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	/* Dark native option list. */
	color-scheme: dark;
}

.aeb-catalog-bar .woocommerce-ordering select option {
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
}

.aeb-catalog-bar .woocommerce-ordering:hover select {
	border-color: var(--wp--preset--color--primary);
}

.aeb-catalog-bar .woocommerce-ordering select:focus-visible {
	border-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary), 0 0 14px color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
}

.aeb-catalog-bar .woocommerce-ordering:hover::before,
.aeb-catalog-bar .woocommerce-ordering:hover::after,
.aeb-catalog-bar .woocommerce-ordering:focus-within::before,
.aeb-catalog-bar .woocommerce-ordering:focus-within::after {
	background-color: var(--wp--preset--color--primary-bright);
}

/*
 * The open list, where the browser allows styling it (customisable select:
 * Chrome and Edge 135+): a dark rounded panel under the pill, blue hover and
 * a blue tick on the current order. Other browsers keep their native dark
 * list (the phone's own picker on iOS). The chevron flips while it's open.
 */
@supports (appearance: base-select) {
	.aeb-catalog-bar .woocommerce-ordering select,
	.aeb-catalog-bar .woocommerce-ordering select::picker(select) {
		-webkit-appearance: base-select;
		appearance: base-select;
	}

	/* The pill already draws its own chevron. */
	.aeb-catalog-bar .woocommerce-ordering select::picker-icon {
		display: none;
	}

	.aeb-catalog-bar .woocommerce-ordering select::picker(select) {
		min-width: anchor-size(width);
		margin-top: 0.4rem;
		padding: 0.35rem;
		border: 1px solid var(--wp--preset--color--border);
		border-radius: 0.75rem;
		background: var(--wp--preset--color--surface);
		box-shadow:
			0 12px 32px color-mix(in srgb, var(--wp--preset--color--base) 70%, transparent),
			0 0 18px color-mix(in srgb, var(--wp--preset--color--primary) 15%, transparent);
	}

	.aeb-catalog-bar .woocommerce-ordering option {
		display: flex;
		align-items: center;
		gap: 0.6rem;
		padding: 0.55rem 0.9rem;
		border-radius: 0.5rem;
		background: transparent;
		color: var(--wp--preset--color--contrast);
		font-size: var(--wp--preset--font-size--small);
		cursor: pointer;
	}

	.aeb-catalog-bar .woocommerce-ordering option:hover,
	.aeb-catalog-bar .woocommerce-ordering option:focus-visible {
		outline: none;
		background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
		color: var(--wp--preset--color--primary-bright);
	}

	.aeb-catalog-bar .woocommerce-ordering option:checked {
		color: var(--wp--preset--color--primary-bright);
		font-weight: 600;
	}

	.aeb-catalog-bar .woocommerce-ordering option::checkmark {
		order: 1;
		margin-left: auto;
		color: var(--wp--preset--color--primary-bright);
	}

	.aeb-catalog-bar .woocommerce-ordering:has(select:open)::after {
		transform: translateY(-50%) rotate(180deg);
	}

	.aeb-catalog-bar .woocommerce-ordering:has(select:open) select {
		border-color: var(--wp--preset--color--primary);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aeb-catalog-bar .woocommerce-ordering select,
	.aeb-catalog-bar .woocommerce-ordering::before,
	.aeb-catalog-bar .woocommerce-ordering::after {
		transition: none;
	}
}

/* Page links, only shown if the catalog outgrows one page. */
.aeb-pagination {
	margin-top: var(--wp--preset--spacing--40);
	gap: var(--wp--preset--spacing--20);
}

.aeb-pagination a,
.aeb-pagination .current {
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.4rem;
	color: var(--wp--preset--color--primary-bright);
	text-decoration: none;
}

.aeb-pagination .current {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

/*
 * Product page: gallery beside the summary (stacked on phones), then the
 * details tabs and related products. Dark form controls for the size picker
 * and quantity; Add to cart shares the electric button style above.
 */
.aeb-product-page .wp-block-woocommerce-breadcrumbs {
	margin-bottom: var(--wp--preset--spacing--30);
}

.aeb-product-hero .woocommerce-product-gallery {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
}

.aeb-product-hero .woocommerce-product-gallery img {
	display: block;
	border-radius: 0;
}

.aeb-product-hero .woocommerce-product-gallery__trigger {
	z-index: 2;
}

.aeb-product-summary > * + * {
	margin-block-start: var(--wp--preset--spacing--30);
}

.aeb-product-summary .wp-block-post-title {
	margin: 0;
	letter-spacing: 0.02em;
}

.aeb-product-summary .aeb-product-tagline {
	margin-block-start: var(--wp--preset--spacing--20);
}

.aeb-product-summary .aeb-product-tagline p {
	margin: 0;
}

/* "From" sits a little smaller than the amount it introduces. */
.aeb-price-from {
	margin-right: 0.1em;
	font-size: 0.6em;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Quantity row: − 1 + on the left, the price on the right. */
.aeb-qty-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
}

.aeb-product-summary .aeb-qty-price {
	margin: 0;
	color: var(--wp--preset--color--primary-bright);
	font-size: calc(var(--wp--preset--font-size--x-large) * 1.15);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
}

/* The form: size buttons, then quantity, then Add to cart. */
.aeb-product-summary form.cart {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	/* One width for every row, so the stock tag, price and button line up. */
	max-width: 34rem;
	margin: 0;
	padding-top: 0;
}

.aeb-product-summary > .wp-block-woocommerce-add-to-cart-form {
	margin-block-start: 0.75rem;
}

/* WooCommerce's clearfix pseudo-elements become empty grid rows (extra gaps). */
.aeb-product-page .aeb-product-summary form.cart::before,
.aeb-product-page .aeb-product-summary form.cart::after,
.aeb-product-page .aeb-product-summary .variations_button::before,
.aeb-product-page .aeb-product-summary .variations_button::after {
	display: none !important;
}

.aeb-product-summary table.variations,
.aeb-product-summary table.variations tbody,
.aeb-product-summary table.variations tr,
.aeb-product-summary table.variations th,
.aeb-product-summary table.variations td {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

.aeb-product-summary table.variations tr + tr {
	margin-top: var(--wp--preset--spacing--30);
}

.aeb-product-summary table.variations th label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aeb-product-summary table.variations td.value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
}

.aeb-product-summary table.variations select,
.aeb-product-summary .quantity .qty {
	min-height: 3rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.4rem;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	color-scheme: dark;
}

.aeb-product-summary table.variations select {
	flex: 1 1 12rem;
	max-width: 22rem;
}

.aeb-product-summary table.variations select:focus-visible,
.aeb-product-summary .quantity .qty:focus-visible {
	border-color: var(--wp--preset--color--primary);
	outline: 1px solid var(--wp--preset--color--primary);
}

.aeb-product-summary .reset_variations {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

.aeb-product-summary .reset_variations:hover,
.aeb-product-summary .reset_variations:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

.aeb-product-summary .woocommerce-variation:not(:empty) {
	display: grid;
	gap: 0.25rem;
}

/*
 * WooCommerce's own price-and-stock box for the chosen size: its price shows
 * beside the quantity and its stock in the tag beside "Size", so hide it
 * (it slides in on selection and would shift everything below).
 */
.aeb-product-summary .single_variation_wrap .woocommerce-variation.single_variation {
	display: none !important;
}

/*
 * Stock tag above the "Size" label; always present, so nothing shifts. It
 * sits close under the tagline, with more room between it and "Size".
 */
.aeb-size-picker__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--40);
	margin-bottom: 0.6rem;
}

/* Stock status tag: dot + "In stock" / "Only 2 left" / "Sold out". */
.aeb-product-summary .stock {
	--aeb-stock-color: var(--wp--preset--color--success);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.2rem 0.7rem;
	border: 1px solid color-mix(in srgb, var(--aeb-stock-color) 45%, transparent);
	border-radius: 999px;
	background-color: color-mix(in srgb, var(--aeb-stock-color) 10%, transparent);
	color: var(--aeb-stock-color);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
}

.aeb-product-summary .stock::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background-color: currentColor;
	box-shadow: 0 0 6px currentColor;
}

.aeb-product-summary .stock.aeb-low-stock {
	--aeb-stock-color: var(--wp--preset--color--warning);
}

.aeb-product-summary .stock.out-of-stock {
	--aeb-stock-color: var(--wp--preset--color--error);
}

.aeb-product-summary .woocommerce-variation-availability {
	justify-self: start;
}

/*
 * Quantity above a full-width Add to cart. Overrides the add-to-cart block's
 * own grid, which puts them side by side.
 */
.aeb-product-summary .wp-block-woocommerce-add-to-cart-form .variations_button,
.aeb-product-summary .wp-block-woocommerce-add-to-cart-form form.cart:not(.variations_form) {
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--20);
}

/* The size form too: one full-width column (the block's grid adds columns). */
.aeb-product-summary .wp-block-woocommerce-add-to-cart-form form.variations_form {
	grid-auto-flow: row;
	grid-template-columns: minmax(0, 1fr);
}

.aeb-product-summary .wp-block-woocommerce-add-to-cart-form .variations_button > *,
.aeb-product-summary .wp-block-woocommerce-add-to-cart-form form.cart:not(.variations_form) > * {
	grid-column: 1 / -1;
}

.aeb-qty-label {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

/* Quantity: separate − and + buttons either side of the number. */
.aeb-product-summary .quantity {
	display: inline-flex;
	align-items: stretch;
	justify-self: start;
	gap: 0.4rem;
	margin: 0;
}

.aeb-product-summary .quantity .qty {
	/* WooCommerce's block CSS uses content-box, which adds padding on top. */
	box-sizing: border-box;
	width: 3.2rem;
	min-height: 2.05rem;
	padding: 0.2rem;
	font-size: var(--wp--preset--font-size--small);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.4rem;
	background-color: var(--wp--preset--color--surface);
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Even spacing: drop WooCommerce's right margin on the number box. */
.aeb-product-page .aeb-product-summary form.cart div.quantity input.qty {
	margin: 0;
}

.aeb-product-summary .quantity .qty::-webkit-inner-spin-button,
.aeb-product-summary .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.aeb-qty-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.95rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.4rem;
	background: transparent;
	color: var(--wp--preset--color--primary-bright);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.aeb-qty-step:hover,
.aeb-qty-step:focus-visible {
	border-color: var(--wp--preset--color--primary);
	background-color: rgb(30 144 255 / 0.12);
	color: var(--wp--preset--color--contrast);
}

.aeb-qty-step:focus-visible {
	outline: 1px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}

.aeb-product-summary .wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button {
	justify-self: stretch;
}

/* Breathing room below the quantity box (outranks WooCommerce's margin reset). */
.aeb-product-page .aeb-product-summary .wp-block-woocommerce-add-to-cart-form form.cart button.single_add_to_cart_button {
	margin-top: var(--wp--preset--spacing--30);
}

.aeb-product-summary .single_add_to_cart_button {
	width: 100%;
	justify-content: center;
	min-height: 3rem;
	margin: 0;
	padding: 0.5rem 1.5rem;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Before a size is chosen WooCommerce disables the button: no glow. */
.aeb-product-summary .single_add_to_cart_button.disabled {
	box-shadow: none;
	opacity: 0.55;
	cursor: not-allowed;
}

/*
 * Size buttons (replacing WooCommerce's dropdown, which stays hidden). The
 * legend replaces the table's own label. Sold-out sizes are listed, dimmed
 * and struck through, and can't be picked.
 */
.aeb-product-summary table.variations tr:has(.aeb-size-picker) th {
	display: none;
}

/* Undo WooCommerce's table spacing around the size chips. */
.aeb-product-page .aeb-product-summary form.cart table.variations,
.aeb-product-page .aeb-product-summary form.cart table.variations td,
.aeb-product-page .aeb-product-summary form.cart table.variations .aeb-size-option {
	margin: 0;
	padding-bottom: 0;
}

.aeb-product-page .aeb-product-summary form.cart table.variations .aeb-size-option {
	padding-bottom: 0.35rem;
}

/* "Clear" isn't needed with buttons; WooCommerce fades it in inline. */
.aeb-product-summary table.variations tr:has(.aeb-size-picker) .reset_variations {
	display: none !important;
}

.aeb-size-picker {
	flex: 1 1 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.aeb-size-picker__legend {
	padding: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aeb-size-picker__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Slim chips: small radio dot, size, and a quiet highlight when chosen. */
.aeb-size-option {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.35rem 0.8rem 0.35rem 0.6rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.aeb-size-option:hover {
	border-color: var(--wp--preset--color--primary);
}

.aeb-size-option input {
	flex: 0 0 auto;
	width: 0.8rem;
	height: 0.8rem;
	margin: 0;
	border: 1.5px solid var(--wp--preset--color--muted);
	border-radius: 50%;
	background: transparent;
	cursor: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.aeb-size-option input:checked {
	border-color: var(--wp--preset--color--primary-bright);
	background: radial-gradient(circle, var(--wp--preset--color--primary-bright) 0 38%, transparent 44%);
}

.aeb-size-option:has(input:checked) {
	border-color: var(--wp--preset--color--primary-bright);
	background-color: rgb(30 144 255 / 0.1);
}

.aeb-size-option:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary-bright);
	outline-offset: 2px;
}

.aeb-size-option__name {
	font-weight: 500;
	letter-spacing: 0.01em;
}

.aeb-size-option.is-sold-out {
	color: var(--wp--preset--color--muted);
	opacity: 0.6;
	cursor: not-allowed;
}

.aeb-size-option.is-sold-out:hover {
	border-color: var(--wp--preset--color--border);
}

.aeb-size-option.is-sold-out .aeb-size-option__name {
	text-decoration: line-through;
}

.aeb-size-option__note {
	color: var(--wp--preset--color--error);
	font-size: 0.75rem;
}

/* "20mg · $90": the price follows a thin dot, in the muted tone. */
.aeb-size-option__price {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--wp--preset--color--muted);
}

.aeb-size-option__price::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: currentColor;
}

.aeb-size-option:has(input:checked) .aeb-size-option__price {
	color: var(--wp--preset--color--primary-bright);
}

/* Trust points under Add to cart, two per row. */
.aeb-product-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1rem;
	max-width: 34rem;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: var(--wp--preset--spacing--30) 0 0;
	border-top: 1px solid var(--wp--preset--color--border);
	list-style: none;
}

.aeb-product-trust li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	line-height: 1.3;
}

.aeb-product-trust svg {
	flex: 0 0 auto;
	color: var(--wp--preset--color--primary-bright);
}

/*
 * Soft electric-blue light behind the product image, echoing the hero.
 * It sits behind the gallery and spills a little past its edges.
 */
.aeb-product-hero > .wp-block-column:first-child {
	position: relative;
	isolation: isolate;
}

/* The glow reaches past the photo; on phones it would poke past the screen. */
.aeb-product-page {
	overflow-x: clip;
}

.aeb-product-hero > .wp-block-column:first-child::before {
	content: "";
	position: absolute;
	inset: -6%;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgb(30 144 255 / 0.32), rgb(30 144 255 / 0.08) 60%, transparent);
	filter: blur(24px);
	pointer-events: none;
}

.aeb-product-hero .woocommerce-product-gallery {
	box-shadow: 0 0 0 1px rgb(77 179 255 / 0.12), 0 18px 48px rgb(30 144 255 / 0.18);
}

/*
 * Under the product (instead of tabs): the research disclaimer line, then
 * Purchaser Acknowledgement and Storage & Stability; readable line length,
 * no dividers.
 */
.aeb-product-section {
	max-width: 48rem;
}

.aeb-product-section h2 {
	margin: 0;
}

/*
 * Accent headings (product page sections, Related Products, home Featured
 * Products): a bright blue strip at the far left that fades out quickly,
 * like a line-shaped bullet in front of the title.
 */
.aeb-accent-title {
	width: fit-content;
	max-width: 100%;
	padding: 0.3rem 1.5rem 0.3rem 0.9rem;
	border-radius: 0.2rem;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--primary-bright) 0,
		var(--wp--preset--color--primary-bright) 3px,
		rgb(30 144 255 / 0.28) 3px,
		rgb(30 144 255 / 0.08) 30%,
		transparent 60%
	);
}

.aeb-product-section__body {
	color: var(--wp--preset--color--muted);
	line-height: 1.75;
}

.aeb-product-section__body > :first-child {
	margin-top: 0;
}

.aeb-product-section__body h3,
.aeb-product-section__body h4 {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--large);
}

.aeb-product-section__body strong {
	color: var(--wp--preset--color--contrast);
}

.aeb-product-section__body ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.aeb-product-section__body li + li {
	margin-top: 0.25rem;
}

.aeb-product-section__body li::marker {
	color: var(--wp--preset--color--primary);
}

/*
 * Research-use disclaimer: a compact soft-blue panel with a flask icon.
 * Above the product page sections (with a small "Disclaimer" label, so it
 * is read first) and centred in the footer.
 */
/* A little more room after the disclaimer, and more again between sections. */
.aeb-product-sections > .aeb-product-section {
	margin-block-start: var(--wp--preset--spacing--40);
}

.aeb-product-sections > .aeb-product-section + .aeb-product-section {
	margin-block-start: var(--wp--preset--spacing--50);
}

.aeb-disclaimer-block {
	max-width: 48rem;
}

.aeb-disclaimer-label {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.aeb-disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	/* Only as wide as its text, so it stays discreet on wide screens. */
	width: fit-content;
	max-width: 100%;
	margin: 0;
	padding: 0.6rem 0.85rem;
	border: 1px solid rgb(30 144 255 / 0.25);
	border-radius: 0.5rem;
	background-color: rgb(30 144 255 / 0.08);
	color: var(--wp--preset--color--muted);
	font-size: 0.8rem;
	line-height: 1.5;
}

.aeb-disclaimer::before {
	content: "";
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.1rem;
	background-color: var(--wp--preset--color--primary-bright);
	/* Lucide "flask-conical", as a mask so it takes the colour above. */
	mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"/><path d="M6.453 15h11.094"/><path d="M8.5 2h7"/></svg>') center / contain no-repeat;
	-webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"/><path d="M6.453 15h11.094"/><path d="M8.5 2h7"/></svg>') center / contain no-repeat;
}

/* Keeps the footer's usual gap above, centred between the edges. */
.aeb-site-footer .aeb-disclaimer--footer {
	margin: var(--wp--preset--spacing--40) auto 0;
}

/*
 * Home category tiles: icon + name cards linking to each category, in the
 * rounded, thin-bordered card style with a blue glow on hover. Two per row
 * on phones, three on tablets, all six in one row on desktop.
 */
.aeb-category-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.aeb-category-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.aeb-category-tiles {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.aeb-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	height: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--20);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 70%, transparent);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	text-wrap: balance;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aeb-category-tile:hover,
.aeb-category-tile:focus-visible {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 18px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
	color: var(--wp--preset--color--contrast);
	transform: translateY(-2px);
}

.aeb-category-tile__icon {
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--primary);
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent));
	transition: color 0.2s ease, filter 0.2s ease;
}

.aeb-category-tile:hover .aeb-category-tile__icon,
.aeb-category-tile:focus-visible .aeb-category-tile__icon {
	color: var(--wp--preset--color--primary-bright);
	filter: drop-shadow(0 0 10px color-mix(in srgb, var(--wp--preset--color--primary-bright) 70%, transparent));
}

@media (prefers-reduced-motion: reduce) {
	.aeb-category-tile,
	.aeb-category-tile__icon {
		transition: none;
	}

	.aeb-category-tile:hover,
	.aeb-category-tile:focus-visible {
		transform: none;
	}
}

/* Payment and shipping cards */
.aeb-cards {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.aeb-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.75rem;
	background: var(--wp--preset--color--surface);
}

.aeb-card--accent {
	display: grid;
	place-content: center;
	border-color: var(--wp--preset--color--primary);
	background:
		linear-gradient(180deg, rgb(30 144 255 / 0.15), transparent),
		var(--wp--preset--color--surface);
}

.aeb-card__price {
	margin: 0;
	color: var(--wp--preset--color--primary-bright);
}

.aeb-card__methods {
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* Tablet and up */
@media (min-width: 600px) {
	.aeb-trust-bar__list {
		grid-template-columns: repeat(4, 1fr);
	}

	/* Each item centred in its column so the four read as evenly spaced. */
	.aeb-trust-bar__item {
		justify-content: center;
		gap: 1rem;
		font-size: var(--wp--preset--font-size--medium);
	}

	/* Electric divider that fades out at both ends. */
	.aeb-trust-bar__item + .aeb-trust-bar__item::before {
		content: "";
		position: absolute;
		left: calc(var(--wp--preset--spacing--30) / -2);
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 3.25rem;
		background: linear-gradient(
			180deg,
			transparent 0%,
			var(--wp--preset--color--primary) 45%,
			color-mix(in srgb, var(--wp--preset--color--primary-bright) 70%, white) 55%,
			transparent 100%
		);
		box-shadow: 0 0 8px rgb(30 144 255 / 0.55);
	}

	.aeb-cards {
		grid-template-columns: 2fr 1fr;
		align-items: stretch;
	}
}

/* Desktop: hero becomes two columns, as in the mockup. */
@media (min-width: 900px) {
	.aeb-hero {
		min-height: 32rem;
		display: grid;
		align-items: center;
	}

	/*
	 * Copy occupies the left half; the image shows through on the right.
	 * The group keeps its full wide width (auto margins would centre it as a
	 * grid item), and its contents are capped and pinned left.
	 */
	.aeb-hero .aeb-hero__content {
		width: 100%;
		margin-inline: 0 auto;
	}

	/* WordPress's constrained-layout rule centres children with !important. */
	.aeb-hero .aeb-hero__content > * {
		max-width: 34rem;
		margin-inline: 0 auto !important;
	}

	.aeb-hero::before {
		background: linear-gradient(
			90deg,
			rgb(5 7 13 / 0.85) 0%,
			rgb(5 7 13 / 0.55) 45%,
			rgb(5 7 13 / 0.05) 100%
		);
	}
}

/*
 * Contact page: one centred card on the site's subtle blue hue, with a
 * soft glow behind it and a bright hairline along its top edge.
 */
.aeb-contact-page {
	background-color: color-mix(in srgb, var(--wp--preset--color--primary) 1%, var(--wp--preset--color--base));
	background-image: radial-gradient(ellipse 70vw 30rem at 50% 45%, color-mix(in srgb, var(--wp--preset--color--primary) 7%, transparent), transparent 70%);
}

.aeb-contact-page > .aeb-contact-card {
	position: relative;
	box-sizing: border-box;
	max-width: 38rem;
	padding: var(--wp--preset--spacing--50) clamp(1.25rem, 5vw, 3rem);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 80%, transparent);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary-bright) 6%, transparent),
		0 24px 60px color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent);
	text-align: center;
}

.aeb-contact-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 15%;
	right: 15%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary-bright), transparent);
	opacity: 0.7;
}

.aeb-contact-card > * {
	margin-block: 0;
}

.aeb-contact-card__icon {
	display: inline-grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 45%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	color: var(--wp--preset--color--primary-bright);
	box-shadow: 0 0 24px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

.aeb-contact-card__title {
	margin-top: var(--wp--preset--spacing--40);
	font-size: clamp(2rem, 7vw, 2.75rem);
}

.aeb-contact-card__lead {
	max-width: 30rem;
	margin: var(--wp--preset--spacing--30) auto 0;
	color: var(--wp--preset--color--muted);
	line-height: 1.7;
	text-wrap: pretty;
}

.aeb-contact-card__actions {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--40);
}

.aeb-contact-card__address {
	margin-top: var(--wp--preset--spacing--30);
	overflow-wrap: anywhere;
}

.aeb-contact-card__address a {
	color: var(--wp--preset--color--contrast);
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
	text-underline-offset: 0.25em;
}

.aeb-contact-card__address a:hover,
.aeb-contact-card__address a:focus-visible {
	color: var(--wp--preset--color--primary-bright);
}

.aeb-contact-card__note {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/*
 * Site entry modal (aebiolabs-core): a centred card over a dimmed, blurred
 * page, asking visitors to confirm age and research-only use before entering.
 */
html.aeb-entry-open {
	overflow: hidden;
}

.aeb-entry {
	box-sizing: border-box;
	width: min(34rem, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	padding: 0;
	overflow: auto;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 1rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary-bright) 8%, transparent),
		0 24px 80px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

.aeb-entry::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.aeb-entry::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--primary-bright), transparent);
	opacity: 0.8;
}

.aeb-entry__form {
	padding: var(--wp--preset--spacing--50) clamp(1.25rem, 5vw, 2.5rem);
}

.aeb-entry__form > * {
	margin-block: 0;
}

.aeb-entry__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--primary-bright);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aeb-entry__eyebrow svg {
	filter: drop-shadow(0 0 6px color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent));
}

.aeb-entry__title {
	margin-top: 0.6rem !important;
	font-size: clamp(1.4rem, 5vw, var(--wp--preset--font-size--larger));
}

.aeb-entry__intro {
	margin-top: var(--wp--preset--spacing--30) !important;
	color: var(--wp--preset--color--muted);
	line-height: 1.65;
}

.aeb-entry__notice {
	margin-top: var(--wp--preset--spacing--30) !important;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--preset--color--primary-bright);
	border-radius: 0 0.5rem 0.5rem 0;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 10%, transparent);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.55;
}

.aeb-entry__checks {
	display: grid;
	gap: 0.6rem;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	border: 0;
}

.aeb-entry__check {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.6rem;
	background: color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.aeb-entry__check:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 60%, transparent);
}

.aeb-entry__check:has(input:checked) {
	border-color: var(--wp--preset--color--primary);
	background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent);
}

.aeb-entry__check:has(input:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary-bright);
	outline-offset: 2px;
}

.aeb-entry__check input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.1rem 0 0;
	accent-color: var(--wp--preset--color--primary);
}

.aeb-entry__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40) !important;
}

.aeb-entry__actions .wp-block-button__link {
	cursor: pointer;
}

.aeb-entry__leave {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-underline-offset: 0.25em;
}

.aeb-entry__leave:hover,
.aeb-entry__leave:focus-visible {
	color: var(--wp--preset--color--contrast);
}

@media (max-width: 479px) {
	.aeb-entry__actions .wp-block-button {
		flex: 1 1 100%;
	}

	.aeb-entry__actions .wp-block-button__link {
		justify-content: center;
		width: 100%;
	}

	.aeb-entry__leave {
		margin-inline: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aeb-entry__check {
		transition: none;
	}
}
