/**
 * White Ash Reserve Quick Shop
 *
 * The PHP renderer owns commerce truth. These styles are intentionally scoped
 * to the drawer so Blocksy/WooCommerce screens keep their approved styling.
 */

:root {
	--wa-quick-ink: #080807;
	--wa-quick-panel: #11110f;
	--wa-quick-raised: #181815;
	--wa-quick-cream: #f4f0e5;
	--wa-quick-soft: #d7d1c4;
	--wa-quick-muted: #958f84;
	--wa-quick-copper: #c87945;
	--wa-quick-copper-hover: #d58a54;
	--wa-quick-line: rgba(244, 240, 229, 0.18);
}

.wa-quick-shop-triggers {
	display: grid;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	margin-top: 24px;
}

.wa-quick-shop-triggers[hidden],
.wa-quick-shop-trigger[hidden] {
	display: none !important;
}

/* Blocksy visually reverses WooCommerce sale prices with flex ordering. Keep
 * the accessible DOM order visible here: regular price, then sale price. */
.wa-quick-shop .wa-quick-shop-product__purchase .sale-price del {
	order: 0;
}

.wa-quick-shop .wa-quick-shop-product__purchase .sale-price ins {
	order: 1;
}

.wa-quick-shop-trigger {
	display: inline-grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	min-height: 52px;
	margin-top: 24px;
	padding: 0 18px;
	color: #080807;
	background: #c87945;
	border: 1px solid #c87945;
	border-radius: 0;
	font: 700 0.78rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	cursor: pointer;
}

.wa-quick-shop-triggers .wa-quick-shop-trigger {
	margin-top: 0;
}

.wa-quick-shop-trigger strong {
	font: inherit;
	min-width: 0;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.wa-quick-shop-trigger > span:first-child::after {
	content: "·";
	margin-left: 10px;
}

.wa-quick-shop-trigger > span:last-child {
	justify-self: end;
	font-size: 1rem;
}

.wa-quick-shop-trigger:hover,
.wa-quick-shop-trigger:focus-visible {
	color: #080807;
	background: #f4f0e5;
	border-color: #f4f0e5;
}

.wa-quick-shop-trigger:focus-visible {
	outline: 3px solid #c87945;
	outline-offset: 4px;
}

/*
 * Sale is deliberately secondary to the weekly release CTA: the same sturdy
 * target and typography, with a quiet dark field and cream outline. The copper
 * rail keeps it recognisably White Ash without competing with Latest Drop.
 */
.wa-quick-shop-trigger--sale {
	color: var(--wa-quick-cream);
	background: rgba(8, 8, 7, 0.7);
	border-color: rgba(244, 240, 229, 0.55);
	box-shadow: inset 4px 0 0 var(--wa-quick-copper);
}

/* Previous Drops stays between the active release and Sale in the same
 * trigger stack, with a quiet cream rail to signal archive browsing. */
.wa-quick-shop-trigger--previous {
	color: var(--wa-quick-cream);
	background: rgba(8, 8, 7, 0.7);
	border-color: rgba(244, 240, 229, 0.55);
	box-shadow: inset 4px 0 0 var(--wa-quick-soft);
}

.wa-quick-shop-trigger--sale:hover,
.wa-quick-shop-trigger--sale:focus-visible,
.wa-quick-shop-trigger--sale[aria-expanded="true"],
.wa-quick-shop-trigger--previous:hover,
.wa-quick-shop-trigger--previous:focus-visible,
.wa-quick-shop-trigger--previous[aria-expanded="true"] {
	color: var(--wa-quick-ink);
	background: var(--wa-quick-cream);
	border-color: var(--wa-quick-cream);
}

.wa-quick-shop[hidden],
.wa-quick-shop [hidden] {
	display: none !important;
}

.wa-quick-shop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: stretch end;
	width: 100%;
	max-width: none;
	height: 100dvh;
	overflow: hidden;
	color: var(--wa-quick-cream);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	isolation: isolate;
}

.wa-quick-shop *,
.wa-quick-shop *::before,
.wa-quick-shop *::after {
	box-sizing: border-box;
}

.wa-quick-shop__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.76);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	cursor: default;
}

.wa-quick-shop__dialog {
	width: min(1100px, 94vw);
	max-width: 100%;
	height: 100dvh;
	min-width: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: #0b0b0a;
	border-left: 1px solid var(--wa-quick-line);
	box-shadow: -28px 0 80px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	outline: 0;
}

/* Each catalogue context owns its filters and ledger while sharing the one
 * dialog, header, focus trap, and footer. This prevents duplicate modal roots
 * and guarantees the Latest and Sale layouts use the same available space. */
.wa-quick-shop [data-wa-quick-shop-context-panel] {
	min-width: 0;
	min-height: 0;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	overflow: hidden;
}

.wa-quick-shop [data-wa-quick-shop-context-panel][hidden] {
	display: none !important;
}

.wa-quick-shop__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: max(24px, env(safe-area-inset-top)) max(clamp(24px, 4vw, 54px), env(safe-area-inset-right)) 20px clamp(24px, 4vw, 54px);
	border-bottom: 1px solid var(--wa-quick-line);
}

.wa-quick-shop__header > div {
	min-width: 0;
}

.wa-quick-shop__eyebrow,
.wa-quick-shop-product__drop-label,
.wa-quick-shop-product__descriptor,
.wa-quick-shop-product__variations legend,
.wa-quick-shop__footer,
.wa-quick-shop__ledger-heading {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wa-quick-shop__eyebrow,
.wa-quick-shop-product__drop-label {
	color: var(--wa-quick-copper);
}

.wa-quick-shop__eyebrow {
	font-size: 0.875rem;
	letter-spacing: 0.15em;
}

.wa-quick-shop__header h2 {
	margin: 8px 0 7px;
	max-width: 760px;
	color: var(--wa-quick-cream);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 4.4rem);
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.04em;
}

.wa-quick-shop__header [data-wa-quick-shop-summary] {
	max-width: 650px;
	margin: 0;
	color: var(--wa-quick-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

.wa-quick-shop__close {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	display: inline-grid;
	place-items: center;
	padding: 0;
	color: var(--wa-quick-cream);
	background: transparent;
	border: 1px solid var(--wa-quick-line);
	border-radius: 50%;
	font: 400 1.8125rem/1 Arial, sans-serif;
	cursor: pointer;
}

.wa-quick-shop__close:hover {
	color: var(--wa-quick-copper);
	background: transparent;
	border-color: var(--wa-quick-copper);
}

.wa-quick-shop__categories {
	display: flex;
	gap: 10px;
	padding: 16px clamp(24px, 4vw, 54px);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	border-bottom: 1px solid var(--wa-quick-line);
}

.wa-quick-shop__categories button {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0 22px;
	color: var(--wa-quick-soft);
	background: transparent;
	border: 1px solid rgba(244, 240, 229, 0.28);
	border-radius: 999px;
	font: 800 0.875rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

.wa-quick-shop__categories button:hover {
	border-color: var(--wa-quick-cream);
}

.wa-quick-shop__categories button[aria-pressed="true"] {
	color: var(--wa-quick-ink);
	background: var(--wa-quick-cream);
	border-color: var(--wa-quick-cream);
	box-shadow: inset 0 0 0 2px var(--wa-quick-ink), 0 0 0 1px var(--wa-quick-cream);
}

.wa-quick-shop__ledger {
	min-width: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--wa-quick-copper) var(--wa-quick-panel);
}

.wa-quick-shop__ledger-heading,
.wa-quick-shop-product {
	display: grid;
	grid-template-columns: 116px minmax(200px, 1.05fr) minmax(270px, 1fr) minmax(190px, 0.65fr);
	gap: 22px;
	align-items: center;
}

.wa-quick-shop__ledger-heading {
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 14px clamp(24px, 4vw, 54px);
	color: var(--wa-quick-muted);
	background: rgba(11, 11, 10, 0.96);
	border-bottom: 1px solid var(--wa-quick-line);
}

.wa-quick-shop__ledger-heading span:first-child {
	grid-column: 1 / 3;
}

.wa-quick-shop__ledger-heading span:nth-child(2) {
	grid-column: 3;
}

.wa-quick-shop__ledger-heading span:nth-child(3) {
	grid-column: 4;
}

.wa-quick-shop-product {
	position: relative;
	min-width: 0;
	min-height: 168px;
	padding: 24px clamp(24px, 4vw, 54px);
	background: transparent;
	border-bottom: 1px solid var(--wa-quick-line);
}

.wa-quick-shop-product[hidden] {
	display: none !important;
}

.wa-quick-shop-product__media {
	width: 116px;
	height: 145px;
	display: block;
	overflow: hidden;
	background: var(--wa-quick-raised);
	border: 1px solid var(--wa-quick-line);
}

.wa-quick-shop-product__media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.wa-quick-shop-product__identity,
.wa-quick-shop-product__variations,
.wa-quick-shop-product__purchase {
	min-width: 0;
}

.wa-quick-shop-product__drop-label {
	margin-bottom: 10px;
	font-size: 0.6875rem;
	letter-spacing: 0.13em;
}

.wa-quick-shop-product__descriptor {
	margin-bottom: 7px;
	color: var(--wa-quick-muted);
	font-size: 0.6875rem;
	letter-spacing: 0.13em;
}

.wa-quick-shop-product__identity h3 {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5625rem, 3vw, 2.3125rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.wa-quick-shop-product__identity h3 a,
.wa-quick-shop-product__media {
	color: var(--wa-quick-cream);
	text-decoration: none;
}

.wa-quick-shop-product__identity h3 a:hover {
	color: var(--wa-quick-copper-hover);
}

.wa-quick-shop-product__variations {
	min-inline-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wa-quick-shop-product__variations legend {
	float: left;
	width: 100%;
	margin: 0 0 10px;
	color: var(--wa-quick-muted);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
}

.wa-quick-shop-product__variation-options {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/*
 * Multi-attribute narrowing row (e.g. Strain above Grams). It sits inside the
 * picker fieldset, after the floated legend, so it clears too. Single-attribute
 * products render none of this.
 */
.wa-quick-shop-product__variation-filter {
	clear: both;
	margin-bottom: 14px;
}

.wa-quick-shop-product__variation-filter-label {
	display: block;
	margin-bottom: 8px;
	color: var(--wa-quick-muted);
	font: 700 0.72rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wa-quick-shop-product__variation-filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/*
 * The narrowing pills read one step quieter than the buying pills, so the row
 * that commits money stays the loudest thing in the cell. Selected state is
 * inherited from .wa-quick-shop-product__variation-option unchanged.
 */
.wa-quick-shop-product__variation-option--filter {
	min-width: 0;
	/* 44px is the floor for a primary touch target (WCAG 2.5.5 / HIG). The
	   buying pills stay 48px so the hierarchy still reads, but a narrowing
	   pill is tapped just as often on a phone and must not go below 44. */
	min-height: 44px;
	padding: 6px 13px;
	font-size: 0.85rem;
}

/*
 * Multi-word, arbitrary-length values (strain names) must never paint outside
 * their pill. This covers BOTH rows deliberately: which axis lands in the
 * option row depends on WooCommerce's parent attribute ORDER, so a product
 * ordered Grams-then-Strain puts the long names in the option row, not the
 * filter row. Scoping this to --filter only would leave that case overlapping
 * its neighbour and clipped by the ledger's overflow-x.
 */
.wa-quick-shop-product__variation-option span {
	max-width: 100%;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.wa-quick-shop-product__variation-option {
	min-width: 60px;
	max-width: 100%;
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px 14px;
	color: var(--wa-quick-cream);
	background: transparent;
	border: 1px solid rgba(244, 240, 229, 0.26);
	border-radius: 999px;
	font: 800 1rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
	cursor: pointer;
}

.wa-quick-shop-product__variation-option small {
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.1;
}

.wa-quick-shop-product__variation-option:hover:not(:disabled) {
	border-color: var(--wa-quick-cream);
}

.wa-quick-shop-product__variation-option.is-selected,
.wa-quick-shop-product__variation-option[aria-pressed="true"] {
	color: var(--wa-quick-ink);
	background: var(--wa-quick-cream);
	border-color: var(--wa-quick-cream);
	box-shadow: inset 0 0 0 2px var(--wa-quick-ink);
}

.wa-quick-shop-product__variation-option:disabled {
	color: #d4a27f;
	background: transparent;
	border-color: rgba(200, 121, 69, 0.5);
	cursor: not-allowed;
	opacity: 0.72;
}

.wa-quick-shop-product__purchase {
	display: grid;
	gap: 10px;
	align-content: center;
}

.wa-quick-shop-product__purchase .price {
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.35em;
	margin: 0;
	color: var(--wa-quick-cream);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
}

.wa-quick-shop-product__purchase .price del {
	color: var(--wa-quick-muted);
	font-size: 0.85em;
}

.wa-quick-shop-product__purchase .price ins {
	color: var(--wa-quick-copper-hover);
	text-decoration: none;
}

.wa-quick-shop-product__add,
.wa-quick-shop__bag-link {
	min-height: 54px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	color: var(--wa-quick-ink) !important;
	background: var(--wa-quick-copper);
	border: 1px solid var(--wa-quick-copper);
	border-radius: 0;
	font: 900 0.75rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.08em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
}

.wa-quick-shop-product__add:hover,
.wa-quick-shop__bag-link:hover {
	color: var(--wa-quick-ink) !important;
	background: #dc8b52;
	border-color: #dc8b52;
}

.wa-quick-shop-product__add[aria-busy="true"] {
	cursor: wait;
	opacity: 0.72;
}

.wa-quick-shop-product__add:disabled,
.wa-quick-shop-product__add[aria-disabled="true"] {
	color: #c2a58f !important;
	background: #3a2b21;
	border-color: var(--wa-quick-copper);
	cursor: not-allowed;
}

/*
 * The same static hold line the category card prints. It is a child of
 * .wa-quick-shop-product__purchase, which is itself a grid and becomes two
 * columns at 720px, so it spans every column and can never sit beside the Add
 * control. Colour comes from the existing --wa-quick-* tokens; no new literal.
 * This is not the countdown - Reserved Stock Pro's live bar is untouched.
 */
.wa-quick-shop-product__reservation-hold {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--wa-quick-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.35;
	text-transform: uppercase;
}

.wa-quick-shop-product__feedback {
	grid-column: 2 / -1;
	min-height: 1.3em;
	margin: -10px 0 0;
	color: var(--wa-quick-soft);
	font-size: 0.82rem;
	line-height: 1.35;
}

.wa-quick-shop-product__feedback:empty {
	display: none;
}

.wa-quick-shop-product__feedback.is-error {
	color: #ffb093;
}

.wa-quick-shop__pagination {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding: 18px clamp(24px, 4vw, 54px);
	color: var(--wa-quick-muted);
	background: var(--wa-quick-panel);
	border-bottom: 1px solid var(--wa-quick-line);
}

.wa-quick-shop__pagination [data-wa-quick-shop-page-status] {
	flex: 1 1 240px;
	min-width: 0;
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.wa-quick-shop__pagination [data-wa-quick-shop-page-retry] {
	flex: 0 1 auto;
	max-width: 100%;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	color: var(--wa-quick-ink);
	background: var(--wa-quick-copper);
	border: 1px solid var(--wa-quick-copper);
	border-radius: 0;
	font: 900 0.75rem/1.25 "Helvetica Neue", Helvetica, Arial, sans-serif;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	cursor: pointer;
}

.wa-quick-shop__pagination [data-wa-quick-shop-page-retry]:hover:not(:disabled) {
	background: var(--wa-quick-copper-hover);
	border-color: var(--wa-quick-copper-hover);
}

.wa-quick-shop__pagination [data-wa-quick-shop-page-retry]:disabled,
.wa-quick-shop__pagination [data-wa-quick-shop-page-retry][aria-busy="true"] {
	cursor: wait;
	opacity: 0.72;
}

.wa-quick-shop__empty {
	margin: 0;
	padding: 48px 32px;
	color: var(--wa-quick-muted);
	background: var(--wa-quick-panel);
	font-size: 1rem;
	line-height: 1.5;
}

.wa-quick-shop__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 86px;
	padding: 16px max(clamp(24px, 4vw, 54px), env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) clamp(24px, 4vw, 54px);
	color: var(--wa-quick-muted);
	background: #0e0f0d;
	border-top: 1px solid var(--wa-quick-line);
}

.wa-quick-shop__footer p {
	margin: 0;
}

.wa-quick-shop__bag-link {
	gap: 10px;
	min-width: 164px;
	min-height: 52px;
	padding: 0 24px;
	letter-spacing: 0.1em;
}

.wa-quick-shop__bag-link span {
	display: inline-grid;
	place-items: center;
	min-width: 25px;
	height: 25px;
	padding: 0 6px;
	color: var(--wa-quick-cream);
	background: var(--wa-quick-ink);
	border-radius: 999px;
}

/*
 * Reserved Stock Pro remains the sole owner of reservation state, timestamp,
 * and countdown rendering. Its authoritative wrapper normally sits at
 * z-index 50, below this full-screen drawer. Elevate that existing wrapper
 * only while Quick Shop is open and keep it clear of the fixed drawer footer.
 *
 * The offset is measured from the footer, not guessed: .wa-quick-shop__footer
 * is its 1px border-top + 16px of top padding + the 48px min-height of
 * .wa-quick-shop__bag-link + max(16px, safe-area-inset-bottom), i.e. at least
 * 81px, which the previous 76px did not clear between 431px and full width.
 * 96px / 80px + inset therefore leaves a 15px gap at every inset value - a
 * gap, not an overlap, and the 1px is corrected here rather than by nudging
 * the plugin's own inset again. The compact mobile footer stays on one row, so
 * this same measured offset remains authoritative at every drawer width.
 */
body.wa-quick-shop-open .rsp-countdown-wrapper {
	z-index: 1000001;
	bottom: max(96px, calc(80px + env(safe-area-inset-bottom)));
}

.wa-quick-shop :is(button, a):focus-visible,
.wa-quick-shop__dialog:focus-visible {
	outline: 2px solid var(--wa-quick-cream);
	outline-offset: 3px;
}

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

@media (max-width: 980px) {
	.wa-quick-shop__ledger-heading {
		display: none;
	}

	.wa-quick-shop-product {
		grid-template-columns: 96px minmax(0, 1fr) minmax(210px, 0.9fr);
		gap: 18px;
	}

	.wa-quick-shop-product__media {
		width: 96px;
		height: 120px;
	}

	.wa-quick-shop-product__variations {
		grid-column: 2;
	}

	.wa-quick-shop-product__purchase {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.wa-quick-shop-product__feedback {
		grid-column: 2 / -1;
	}
}

@media (max-width: 760px) {
	.wa-quick-shop__dialog {
		width: 100%;
		border-left: 0;
	}

	.wa-quick-shop__header {
		gap: 12px;
		padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
	}

	.wa-quick-shop__eyebrow {
		font-size: 0.6875rem;
		letter-spacing: 0.14em;
	}

	.wa-quick-shop__header h2 {
		margin: 6px 0 5px;
		font-size: clamp(1.9rem, 9vw, 2.7rem);
		line-height: 0.98;
	}

	.wa-quick-shop__header [data-wa-quick-shop-summary] {
		font-size: 0.8rem;
		line-height: 1.4;
	}

	.wa-quick-shop__close {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
	}

	.wa-quick-shop__categories {
		gap: 6px;
		padding: 7px max(12px, env(safe-area-inset-right)) 7px max(12px, env(safe-area-inset-left));
		scrollbar-width: none;
	}

	.wa-quick-shop__categories::-webkit-scrollbar {
		display: none;
	}

	.wa-quick-shop__categories button {
		min-height: 44px;
		padding-inline: 14px;
		font-size: 0.75rem;
		letter-spacing: 0.09em;
	}

	.wa-quick-shop__pagination {
		padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
	}

	.wa-quick-shop-product {
		grid-template-columns: 48px minmax(0, 1fr);
		grid-template-areas:
			"media identity"
			"variations variations"
			"purchase purchase"
			"feedback feedback";
		column-gap: 9px;
		row-gap: 3px;
		min-height: 0;
		padding: 8px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
		align-items: start;
	}

	.wa-quick-shop-product__media {
		grid-area: media;
		width: 48px;
		height: 48px;
	}

	/* Keep the entire identity in one minmax(0, 1fr) track. Every variable
	 * picker owns the full row below it, so one pill, many pills, multiple
	 * axes, and disabled reservation copy can never size the title column. */
	.wa-quick-shop-product__identity {
		grid-area: identity;
		align-self: center;
	}

	.wa-quick-shop-product__drop-label {
		margin: 0;
		font-size: 0.5625rem;
		letter-spacing: 0.12em;
	}

	.wa-quick-shop-product__descriptor {
		margin: 0;
		font-size: 0.5625rem;
		letter-spacing: 0.12em;
	}

	.wa-quick-shop-product__identity h3 {
		min-width: 0;
		font-size: clamp(1.0625rem, 5vw, 1.25rem);
		line-height: 1.05;
		letter-spacing: -0.035em;
		overflow-wrap: normal;
		word-break: normal;
		hyphens: none;
	}

	.wa-quick-shop-product__variations {
		grid-area: variations;
		width: 100%;
		max-width: 100%;
		margin-top: 4px;
	}

	.wa-quick-shop-product__variations:not(.wa-quick-shop-product__variations--multi) > legend {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		padding: 0 !important;
		margin: -1px !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		white-space: nowrap !important;
		border: 0 !important;
	}

	.wa-quick-shop-product__variations--multi {
		margin-top: 6px;
	}

	.wa-quick-shop-product__variations--multi > legend {
		margin-bottom: 6px;
		font-size: 0.5625rem;
	}

	.wa-quick-shop-product__purchase {
		grid-area: purchase;
	}

	.wa-quick-shop-product__feedback {
		grid-area: feedback;
	}

	.wa-quick-shop-product__variation-options {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.wa-quick-shop-product__variation-filter-options {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.wa-quick-shop-product__variation-filter {
		margin-bottom: 8px;
	}

	.wa-quick-shop-product__variation-filter-label {
		margin-bottom: 6px;
		font-size: 0.625rem;
	}

	.wa-quick-shop-product__variation-option--filter {
		min-height: 44px;
	}

	.wa-quick-shop-product__variation-option {
		width: auto;
		min-width: 56px;
		min-height: 44px;
		padding: 0 12px;
		font-size: 0.8125rem;
	}

	.wa-quick-shop-product__purchase {
		grid-template-columns: minmax(0, auto) minmax(0, 1fr);
		gap: 6px 10px;
		margin-top: 3px;
		align-items: center;
	}

	.wa-quick-shop-product__purchase .price {
		font-size: 1.75rem;
		letter-spacing: -0.035em;
		white-space: normal;
	}

	.wa-quick-shop-product__add {
		width: 100%;
		min-height: 44px;
		padding: 7px 10px;
		font-size: 0.6875rem;
		letter-spacing: 0.085em;
	}

	.wa-quick-shop-product__reservation-hold {
		font-size: 0.5625rem;
		letter-spacing: 0.1em;
	}

	.wa-quick-shop-product__feedback {
		min-height: 0;
		margin: 1px 0 0;
		font-size: 0.75rem;
	}

	.wa-quick-shop__footer {
		gap: 12px;
		min-height: calc(66px + env(safe-area-inset-bottom));
		padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
		font-size: 0.625rem;
	}

	.wa-quick-shop__bag-link {
		width: auto;
		min-width: 156px;
		min-height: 48px;
		padding-inline: 12px;
	}
}

@media (max-width: 430px) {
	.wa-quick-shop-triggers {
		width: 100%;
	}

	.wa-quick-shop-trigger {
		width: 100%;
		grid-template-columns: auto auto 1fr;
		min-height: 56px;
	}

	.wa-quick-shop__header {
		gap: 12px;
	}

	.wa-quick-shop__footer p {
		min-width: 0;
	}
}

@media (max-width: 370px) {
	.wa-quick-shop__header h2 {
		font-size: 1.875rem;
	}

	.wa-quick-shop-product,
	.wa-quick-shop__categories,
	.wa-quick-shop__footer {
		padding-inline: 14px;
	}

	.wa-quick-shop__bag-link {
		min-width: 144px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wa-quick-shop__dialog {
		animation: wa-quick-shop-enter 220ms ease-out both;
	}

	.wa-quick-shop__categories button,
	.wa-quick-shop-product__variation-option,
	.wa-quick-shop-product__add,
	.wa-quick-shop__close {
		transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
	}

	@keyframes wa-quick-shop-enter {
		from {
			transform: translateX(20px);
			opacity: 0;
		}
		to {
			transform: translateX(0);
			opacity: 1;
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.wa-quick-shop *,
	.wa-quick-shop *::before,
	.wa-quick-shop *::after {
		scroll-behavior: auto !important;
		animation: none !important;
		transition: none !important;
	}
}

@media (forced-colors: active) {
	.wa-quick-shop__categories button[aria-pressed="true"],
	.wa-quick-shop-product__variation-option[aria-pressed="true"] {
		outline: 3px solid CanvasText;
		outline-offset: 2px;
	}
}
