/* ==========================================================================
   Shop, category, tag and product-search pages — Autotelic Objects
   Modelled on loewe.com's listing pages, measured at 1440px and 375px:

   - Title and category list in a right-hand column beside the wordmark
     (Loewe's sits beside the category hero). Title 18px, links 14px, 27px apart.
   - Sticky toolbar: Sort by on the left, count and View on the right.
   - Tiles touch, four across (two on phones). Each image is a sideways
     carousel of up to five photographs: arrows 16px in, on hover; a 1px line
     along the image's bottom edge marks the one shown; swipe on touch.
   - View (desktop): six across, images only, second image on hover — as
     Loewe's View switch. View (phones): one across, name, price and basket
     icon kept; each image two-thirds wide with the next peeking in, swiping
     endlessly both ways.
   - Under each image, 12px down,
     the name and price at 14px; Loewe's wishlist mark becomes our basket icon,
     16px in from the tile's right edge. Rows are 80px apart (48px on phones).
   - Desktop: text flush with the image's left edge. Phones: images run edge
     to edge and the text is inset 16px.

   Images are 4:5 (the product photography), where Loewe's are 2:3.
   --ao-ink, --ao-paper, --ao-gutter, --ao-ease-out come from header.css.
   ========================================================================== */

.ao-shop {
	--ao-clay: #d5c9c4;
	--ao-row-gap: 80px;
	--ao-cols: 4;
	--ao-text-inset: 0px;
	--ao-intro-w: max(12.5rem, (100vw - 2 * var(--ao-gutter, 24px)) / 6);

	/* Full width, as the header is: cancel the body's page padding */
	margin: 0 calc(-1 * var(--ao-page-pad, 24px));
	color: var(--ao-ink, #000);
	font-size: 14px;
	line-height: 1.4;
}

body.ao-shop-page .wp-site-blocks > main { margin-block-start: 0; }
body .ao-shop * { margin-block: 0; }
.ao-shop a { color: inherit; text-decoration: none; }

.ao-shop .woocommerce-products-header { display: none; } /* title moved into the intro */
.ao-shop .woocommerce-notices-wrapper:not(:empty) { padding: 0 var(--ao-gutter) 24px; }

.ao-shop .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Underline that draws in from the left — same as the header links */
.ao-shop__crumb,
.ao-shop__cat,
.ao-shop__view,
.ao-shop__tool { position: relative; display: inline-block; }
.ao-shop__crumb::after,
.ao-shop__cat::after,
.ao-shop__view::after,
.ao-shop__tool::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.1s var(--ao-ease-out, ease-out);
}
.ao-shop__crumb:hover::after,
.ao-shop__cat:hover::after,
.ao-shop__cat[aria-current]::after,
.ao-shop__view:hover::after,
.ao-shop__tool:hover::after,
.ao-shop__tool[aria-expanded='true']::after,
.ao-shop__view[aria-checked='true']::after { width: 100%; }

/* ---------- Intro ---------- */

.ao-shop__intro { padding: 0 var(--ao-gutter); }

.ao-shop__crumb { font-size: 12px; }

.ao-shop .ao-shop__title {
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
}

.ao-shop__desc { max-width: 22rem; margin-top: 12px !important; }
.ao-shop__desc p + p { margin-top: 0.75em !important; }

.ao-shop__cats ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Toolbar ---------- */

.ao-shop__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 68px;
	padding: 0 var(--ao-gutter);
}

.ao-shop__tools { display: flex; align-items: center; gap: 24px; }

.ao-shop .woocommerce-ordering { margin: 0; float: none; }
.ao-shop .woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	field-sizing: content;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}
.ao-shop .woocommerce-ordering select:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.ao-shop__tools-left { display: flex; align-items: center; gap: 12px; }

.ao-shop__view,
.ao-shop__tool {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	cursor: pointer;
}
.ao-shop__view[hidden] { display: none; }

/* ---------- Grid ---------- */

.ao-shop ul.products {
	display: grid;
	grid-template-columns: repeat(var(--ao-cols), minmax(0, 1fr));
	column-gap: 0;
	row-gap: var(--ao-row-gap);
	margin: 0 0 var(--ao-row-gap) !important;
	padding: 0 var(--ao-gutter);
	list-style: none;
}
.ao-shop ul.products::before,
.ao-shop ul.products::after { display: none; } /* WooCommerce's clearfix would become grid items */

.ao-shop.is-alt { --ao-cols: 6; }

.ao-shop ul.products li.product {
	container-type: inline-size;
	position: relative;
	float: none !important;   /* WooCommerce's column widths and margins, */
	clear: none !important;   /* which out-rank this on small screens     */
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	text-align: left;
}

.ao-shop ul.products li.product a.woocommerce-LoopProduct-link { display: block; }

.ao-tile__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--ao-clay);
}

/* The track: images side by side, one per tile width, snapping */
.ao-tile__track {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x pan-y;
}
.ao-tile__track::-webkit-scrollbar { display: none; }

.ao-shop ul.products li.product .ao-tile__img {
	flex: 0 0 100%;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	box-shadow: none;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

/* Swipe hint (shop.js): the product page's phone gallery hint turned
   sideways — the images slide left and back, 0.75s ease-in-out, the same
   curve and duration as ao-gallery-hint in single-product.css. The distance
   is the product page's 48px as a share of its 375px gallery (12.8%), so
   it scales with the tile: 24px on a 188px phone tile, 44px on a 341px
   desktop tile. Transforms, not scrolling, so scroll-snap and the endless
   loop aren't disturbed; sliding left shows the edge of the next image. */
@keyframes ao-tile-nudge {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(-12.8%); }
}
/* While it plays:
   - snapping is switched off. The images being moved are the track's snap
     points; desktop browsers re-check snap positions while they move and can
     nudge the scroll position back and forth under the animation (the tiles
     are 341.25px wide at 1440, which scrollLeft can only hold as 341).
   - each image gets its own compositing layer, so the slide is drawn by the
     GPU at sub-pixel positions instead of being repainted, and snapped to
     whole pixels, every frame. */
.ao-tile__track.is-nudging { scroll-snap-type: none; }
.ao-tile__track.is-nudging .ao-tile__img {
	animation: ao-tile-nudge 750ms ease-in-out 1;
	will-change: transform;
	backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
	.ao-tile__track.is-nudging .ao-tile__img { animation: none; }
}

/* Which image is shown: a 1px line along the image's bottom edge, one equal
   segment per image, the current one in ink (Loewe's tile pagination). */
.ao-tile__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	height: 1px;
	pointer-events: none;
}
.ao-tile__dots > span {
	flex: 1 1 0;
	background: transparent;
	transition: background-color 0.3s;
}
.ao-tile__dots > span.is-current { background: var(--ao-ink, #000); }

/* Arrows: 24px, 16px in from the sides, centred on the image (62.5cqw is
   half the image height). The site's chevrons (ao_header_icon 'back' /
   'next', line weight from --ao-icon-stroke in header.css). Shown on hover. */
.ao-shop ul.products li.product .ao-tile__arrow {
	position: absolute;
	top: calc(62.5cqw - 12px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--ao-ink, #000);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s var(--ao-ease-out, ease-out);
}
.ao-tile__arrow--prev { left: 16px; }
.ao-tile__arrow--next { right: 16px; }
.ao-shop .ao-tile__arrow .ao-icon { display: block; width: var(--ao-chevron-size, 24px); height: var(--ao-chevron-size, 24px); }
@media (hover: hover) {
	.ao-shop ul.products li.product:hover .ao-tile__arrow { opacity: 1; }
}
@media (hover: none) {
	.ao-shop ul.products li.product .ao-tile__arrow { display: none; } /* swipe instead */
}

.ao-tile__flag {
	position: absolute;
	top: 16px;
	left: 16px;
	font-size: 12px;
	line-height: 1.4;
}

.ao-shop ul.products li.product .woocommerce-loop-product__title,
.ao-shop ul.products li.product .price {
	display: block;
	padding: 0 calc(16px + 18px + 8px) 0 var(--ao-text-inset); /* clear of the basket icon */
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
}
.ao-shop ul.products li.product .woocommerce-loop-product__title { margin: 12px 0 4px !important; }
.ao-shop ul.products li.product .price { margin: 0 !important; }
.ao-shop ul.products li.product .price del { opacity: 0.6; margin-right: 0.35em; }
.ao-shop ul.products li.product .price ins { text-decoration: none; font-weight: inherit; }

/* Add to basket: icon to the right of the name. The button is a 36px tap
   area; the 18px icon inside sits 16px in from the tile's right edge,
   centred on the name's first line (12px + 19.6px / 2 below the image).
   125cqw = the image height (tile width × 5/4). */
.ao-shop ul.products li.product a.ao-tile__add {
	position: absolute;
	top: calc(125cqw + 12px + 9.8px - 18px);
	right: calc(16px - 9px);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ao-ink, #000);
	font-size: 0;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.15s var(--ao-ease-out, ease-out);
}
.ao-shop ul.products li.product a.ao-tile__add::after { display: none; } /* WooCommerce's loading/added icon-font glyphs */
.ao-shop ul.products li.product a.ao-tile__add:hover { opacity: 0.6; }
.ao-shop ul.products li.product a.ao-tile__add.loading { opacity: 0.35; pointer-events: none; }
.ao-tile__bag { display: block; width: 18px; height: 18px; fill: currentColor; }

/* WooCommerce adds a "View basket" link after a successful add; the basket
   drawer opens instead. */
.ao-shop ul.products li.product a.added_to_cart { display: none; }

/* No results */
.ao-shop .woocommerce-info,
.ao-shop .woocommerce-no-products-found {
	margin: 0 var(--ao-gutter) 96px !important;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 14px;
}
.ao-shop .woocommerce-info::before { display: none; }

/* =========================================================================
   Desktop — title and categories in a right-hand column beside the wordmark
   ========================================================================= */

@media (min-width: 1024px) {
	/* The wordmark's paper band stops short of the intro column */
	body.ao-shop-page .ao-wordmark { right: calc(var(--ao-gutter) + var(--ao-intro-w)); }

	.ao-shop__intro {
		display: flex;
		justify-content: flex-end;
		margin-top: calc(-1 * var(--ao-wm-h)) !important; /* up into the band, beside the wordmark */
		min-height: var(--ao-wm-h);
		padding-top: 1px;
		padding-bottom: 32px;
	}
	/* Loewe: crumb at the top of the column, title 84px below the bar,
	   the first link 16px under the title, links 27px apart. */
	.ao-shop__intro-col {
		position: relative;
		width: var(--ao-intro-w);
		padding-top: 83px; /* + the intro's 1px */
	}
	.ao-shop__crumb { position: absolute; top: 0; left: 0; }
	.ao-shop__cats { margin-top: 16px !important; }
	.ao-shop__cats li + li { margin-top: 7px !important; }

	/* View: six across, images only. The first image, and the second on
	   hover; no carousel, name, price or basket icon. */
	.ao-shop.is-alt ul.products li.product .woocommerce-loop-product__title,
	.ao-shop.is-alt ul.products li.product .price,
	.ao-shop.is-alt ul.products li.product a.ao-tile__add,
	.ao-shop.is-alt ul.products li.product .ao-tile__arrow,
	.ao-shop.is-alt .ao-tile__dots { display: none !important; }

	.ao-shop.is-alt .ao-tile__track {
		position: relative;
		display: block;
		overflow: hidden;
		scroll-snap-type: none;
	}
	.ao-shop.is-alt ul.products li.product .ao-tile__img { position: absolute; inset: 0; display: none; }
	.ao-shop.is-alt ul.products li.product .ao-tile__img[data-ao-n='0'],
	.ao-shop.is-alt ul.products li.product .ao-tile__img[data-ao-n='1'] { display: block; }
	.ao-shop.is-alt ul.products li.product .ao-tile__img[data-ao-n='1'] {
		opacity: 0;
		transition: opacity 0.3s var(--ao-ease-out, ease-out);
	}
}
@media (min-width: 1024px) and (hover: hover) {
	.ao-shop.is-alt ul.products li.product:hover .ao-tile__img[data-ao-n='1'] { opacity: 1; }
}

/* =========================================================================
   Mobile & tablet — same breakpoint as the header
   ========================================================================= */

@media (max-width: 1023px) {
	.ao-shop {
		--ao-row-gap: 48px;
		--ao-cols: 2;
		--ao-text-inset: 16px;
	}
	.ao-shop.is-alt { --ao-cols: 1; }

	.ao-shop__intro { padding-top: 8px; }
	.ao-shop__crumb { margin-bottom: 4px !important; }

	/* Categories: one row that scrolls sideways */
	.ao-shop__cats {
		margin: 16px calc(-1 * var(--ao-gutter)) 0 !important;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}
	.ao-shop__cats::-webkit-scrollbar { display: none; }
	.ao-shop__cats ul {
		display: flex;
		gap: 20px;
		width: max-content;
		padding: 0 var(--ao-gutter) 4px;
	}
	.ao-shop__cat { white-space: nowrap; }

	.ao-shop__toolbar { min-height: 56px; margin-top: 8px !important; }

	/* Images edge to edge */
	.ao-shop ul.products { padding: 0; }

	/* View (one across): each image is two-thirds of the width, so the next
	   one peeks in from the right — an obvious cue to swipe. The image block
	   is as tall as one image (2/3 × 5/4 = 83.333cqw), so the basket icon
	   moves up to match. */
	.ao-shop.is-alt .ao-tile__media { aspect-ratio: 6 / 5; }
	.ao-shop.is-alt ul.products li.product .ao-tile__img { flex-basis: calc(100% * 2 / 3); }
	.ao-shop.is-alt ul.products li.product a.ao-tile__add { top: calc(83.333cqw + 12px + 9.8px - 18px); }
}

@media (prefers-reduced-motion: reduce) {
	.ao-shop *,
	.ao-shop *::after { transition: none !important; }
}


/* =========================================================================
   Filters (Colour, Size) — inc/shop-filters.php
   ========================================================================= */

/* Cards that don't match the chosen filters */
.ao-shop ul.products li.product.is-filtered-out { display: none !important; }

.ao-shop__none { padding: 24px var(--ao-gutter) 96px; margin: 0 !important; }
.ao-shop__none[hidden] { display: none; }
.ao-shop__none-reset {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* =========================================================================
   Filters and Sort by panels — Loewe's side panel, in the basket drawer's
   proportions and motion (minicart.css): from the right on desktop (the
   same width as the drawer, ≈ 488px at 1440, as Loewe's), half the screen
   768–1023px, a full-screen sheet from the bottom on phones. Scrim 30%.

   Loewe, measured at 1440:
     title 18px, 24px from the top; close 24px, 24px in
     tabs 14px, 60px under the title, 24px apart, current one underlined
     colour swatches 16px in two columns, 46px apart; sizes and sort
     options one column, 41px / 40px apart; label 16px after the box
     foot: "Reset all filters (n)" (outlined) and "See n results" (black),
     side by side, 24px from the bottom
   ========================================================================= */

.ao-fp {
	position: fixed;
	inset: 0;
	z-index: 100001; /* as the basket drawer: above the header and admin bar */
	font-family: var(--ao-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ao-ink);
	-webkit-font-smoothing: antialiased;
}
.ao-fp[hidden] { display: none; }
.ao-fp *, .ao-fp *::before, .ao-fp *::after { box-sizing: border-box; }
.ao-fp button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	border-radius: 0;
	cursor: pointer;
}
.ao-fp :focus-visible { outline: 1px solid var(--ao-ink); outline-offset: 3px; }
.ao-fp ul { list-style: none; margin: 0; padding: 0; }
.ao-fp h2, .ao-fp p, .ao-fp fieldset { margin: 0; }
.ao-fp fieldset { border: 0; padding: 0; min-width: 0; }
.ao-fp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.ao-fp__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.2s cubic-bezier(0.42, 0, 1, 1);
}
.ao-fp.is-open .ao-fp__scrim { opacity: 1; }

.ao-fp__panel {
	--ao-fp-inner: calc(100% - 2 * var(--ao-gutter, 30px));
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: calc(var(--ao-gutter, 30px) + var(--ao-fp-inner) / 5 + 0.8 * max(12.5rem, var(--ao-fp-inner) / 6));
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--ao-paper);
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.42, 0, 1, 1); /* closing */
	outline: none;
}
.ao-fp.is-open .ao-fp__panel {
	transform: none;
	transition: transform 0.5s ease-out; /* opening */
}

/* Head */
.ao-fp__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex: none;
	padding: 24px 24px 0;
}
.ao-fp .ao-fp__title { font: inherit; font-size: 18px; line-height: 1.25; }
.ao-fp__close { display: grid; place-items: center; width: 24px; height: 24px; }
.ao-fp__close .ao-icon { width: var(--ao-basket-close-size, 20px); height: var(--ao-basket-close-size, 20px); }

/* Tabs */
.ao-fp__tabs { display: flex; gap: 24px; flex: none; padding: 60px 24px 0; }
.ao-fp__tab { position: relative; line-height: 1.4; }
.ao-fp__tab::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.1s var(--ao-ease-out, ease-out);
}
.ao-fp__tab:hover::after,
.ao-fp__tab[aria-selected='true']::after { width: 100%; }

/* Body */
.ao-fp__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 33px 24px 24px;
}
.ao-fp__group[hidden] { display: none; }
.ao-fp__group--sort { padding-top: 0; }
.ao-fp__panel[data-ao-sort-form] .ao-fp__body { padding-top: 48px; }

.ao-fp__opts { display: grid; row-gap: 25px; }
/* Two columns, filled down then across, as Loewe's */
.ao-fp__opts--swatches {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	row-gap: 26px;
	column-gap: 24px;
}
.ao-fp__opts--sort { row-gap: 20px; }

.ao-fp__opt {
	display: flex;
	align-items: center;
	gap: 16px;
	width: fit-content;
	margin: 0 !important; /* WooCommerce gives labels a bottom margin */
	line-height: 1.4;
	cursor: pointer;
}
.ao-fp__opt.is-empty { opacity: 0.35; cursor: default; }

/* Colour swatch: the checkbox itself is the colour; chosen = a ring around it */
.ao-fp__swatch,
.ao-fp__check,
.ao-fp__radio {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0 0 0 4px; /* room for the ring */
	border: 0;
	border-radius: 0;
	background: var(--ao-sw, transparent);
	cursor: inherit;
}
.ao-fp__swatch.is-light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.ao-fp__swatch:checked { outline: 1px solid var(--ao-ink); outline-offset: 2px; }
.ao-fp__swatch:focus-visible { outline: 1px solid var(--ao-ink); outline-offset: 2px; }

/* Size: an empty box, filled when chosen */
.ao-fp__check { box-shadow: inset 0 0 0 1px var(--ao-ink); }
.ao-fp__check:checked { background: var(--ao-ink); box-shadow: inset 0 0 0 1px var(--ao-ink), inset 0 0 0 4px var(--ao-paper); }

/* Sort: a ring, a dot when chosen */
.ao-fp__radio { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ao-ink); }
.ao-fp__radio:checked { background: var(--ao-ink); box-shadow: inset 0 0 0 1px var(--ao-ink), inset 0 0 0 4px var(--ao-paper); }

/* Foot: reset (outlined) and apply (the site's black block) side by side */
.ao-fp__foot {
	display: flex;
	flex: none;
	padding: 16px 24px 24px;
	background: var(--ao-paper);
}
.ao-fp__reset,
.ao-fp__apply {
	flex: 1 1 0;
	min-width: 0;
	/* 72px, label top-left as on the site's other black blocks. Buttons
	   centre their content vertically, so the height comes from the padding
	   (16 + one 19.6px line + 36.4) rather than a fixed height. Not flex:
	   a flex item would drop the space before "(1)". */
	height: auto;
	min-height: 72px;
	padding: 16px 16px 36.4px !important;
	text-align: left;
	display: block;
}
.ao-fp__reset[hidden] { display: none; }
.ao-fp .ao-fp__reset { box-shadow: inset 0 0 0 1px var(--ao-ink); background: var(--ao-paper); }
.ao-fp .ao-fp__apply { background: var(--ao-ink); color: #fff; font-weight: 500; }
.ao-fp .ao-fp__apply:hover { opacity: 0.88; }

html.ao-fp-locked,
html.ao-fp-locked body { overflow: hidden; }

@media (max-width: 1023px) {
	.ao-fp__panel { width: 50%; }
	.ao-fp__head { padding: 16px 16px 0; }
	.ao-fp__tabs { padding: 48px 16px 0; }
	.ao-fp__body { padding: 32px 16px 16px; }
	.ao-fp__panel[data-ao-sort-form] .ao-fp__body { padding-top: 40px; }
	.ao-fp__foot { padding: 16px 16px 20px; }
}

@media (max-width: 767px) {
	.ao-fp__panel {
		width: 100%;
		transform: translateY(100%);
		padding-bottom: env(safe-area-inset-bottom);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ao-fp__scrim,
	.ao-fp__panel,
	.ao-fp.is-open .ao-fp__panel { transition: none; }
}
