/**
 * Product Requests — storefront styles.
 *
 * Every colour and size here reads a --aieo-pr-* variable emitted by
 * AIEO_Product_Request_Form::appearance_css(), with a literal fallback, so a
 * site that has never opened the appearance settings still looks right and a
 * site that has looks like the operator asked for.
 *
 * BUTTON colours deliberately fall through to the master --aieo-btn-* tokens
 * (Tools → Button Styles) when the operator has not set them here. That is the
 * same "empty value means inherit" contract the waitlist uses, so the quote
 * button matches every other button on the shop by default.
 *
 * The [hidden] rules below are not decoration. The card ships hidden and the
 * script reveals it, which is what lets one cached page serve every visitor;
 * a theme that sets `display:block` on the container would defeat that, so the
 * hidden state is asserted with !important.
 */

.aieo-pr[hidden],
.aieo-pr-add[hidden],
.aieo-pr-basket[hidden],
.aieo-pr-add__review[hidden],
.aieo-pr-add__btn[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- */
/* The request card                                                  */
/* ---------------------------------------------------------------- */

/*
 * 🚨 IN A BLOCK LAYOUT THE ROOM ABOVE AND BELOW IS THE LAYOUT'S, IN EVERY STATE.
 * A block theme spaces a layout's children itself (`:root :where(.is-layout-flow) > *`, (0,1,0), and 0 above its first
 * child, (0,2,0)), and a bare `.aieo-pr` weighs (0,1,0), so which margin won depended on which rule came later in the
 * document. Rooster Zero prints this sheet's used rules early and holds the full sheet until the first interaction:
 * the card stood 24 px below the summary at first, 16 px once the sheet arrived, and everything under it moved
 * (11.3.10; the owner, on BeautyNet's replica: "it loads a few pixels lower and then goes up"). So the component has no
 * margin of its own where a block layout holds it (the theme's gap, whatever the order), and its own 16 px elsewhere
 * (a classic theme's summary, a shortcode in a post), where no layout rule competes.
 */
:is(.aieo-pr, .aieo-pr-add, .aieo-pr-basket, .aieo-pr-pick):not(:is(.is-layout-flow, .is-layout-constrained, .is-layout-flex, .is-layout-grid) > *) {
	margin-block: 16px;
}

/*
 * 🚨 THE CARD DECLARES ITS OWN TEXT COLOUR. IT MUST NOT INHERIT.
 * The card sets its own background, so the text on top of it has to be
 * ours too or the pair is decided by two different owners. Inheriting
 * looked fine for a year and then rendered the whole card in a theme's
 * link-red on a tagDiv shop -- while the same card looked correct in that
 * theme's designer preview, because the preview does not load the rule
 * that colours it. A component whose legibility depends on which
 * rendering context it is in is not styled, it is lucky.
 *
 * ⚠ SET ON THE CHILDREN, NOT JUST THE CONTAINER. Inheritance loses to
 * ANY direct rule on the element, so a theme's `.td-post-content p` beats
 * a colour set on `.aieo-pr` alone. The two-class selectors below are
 * specificity (0,2,0) and outrank the (0,1,1) shape themes typically use.
 */
.aieo-pr {
	box-sizing: border-box;
	margin-inline: 0;
	padding: 16px 18px;
	background: var(--aieo-pr-bg, var(--wp--preset--color--subtle, color-mix(in srgb, currentColor 6%, transparent)));
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
	border: var(--aieo-pr-border-w, 1px) solid var(--aieo-pr-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
	border-radius: var(--aieo-pr-border-r, 8px);
	font-size: var(--aieo-pr-text-size, 14px);
	line-height: 1.5;
}

.aieo-pr *,
.aieo-pr-basket * {
	box-sizing: border-box;
}

.aieo-pr .aieo-pr__title,
.aieo-pr-basket .aieo-pr-basket__title {
	margin: 0 0 6px;
	font-size: var(--aieo-pr-title-size, 16px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--aieo-pr-title-color, var(--wp--preset--color--fg, currentColor));
}

.aieo-pr .aieo-pr__intro {
	margin: 0 0 12px;
	font-size: var(--aieo-pr-text-size, 14px);
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
	opacity: .8;
}

.aieo-pr__field {
	margin: 0 0 10px;
}

/* A quote for several variations (11.3.6): each a chip with its swatch, ticked in place; the list scrolls past a few
   rows so a product with many shades keeps the card short. */
.aieo-pr__variations {
	min-width: 0;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

/* In the add bar (a quote already open): the chips take the bar's whole first row, its buttons below. */
.aieo-pr-add .aieo-pr__variations {
	flex: 1 0 100%;
	margin: 0;
}

.aieo-pr__variations-legend {
	padding: 0;
	font-weight: 600;
}

.aieo-pr__variations-hint {
	margin: 2px 0 8px;
	font-size: var(--wp--preset--font-size--sm, .875rem);
	color: var(--wp--preset--color--muted, var(--aieo-pr-text-color, color-mix(in srgb, currentColor 65%, transparent)));
}

.aieo-pr__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 14rem;
	overflow: auto;
}

:is(.aieo-pr, .aieo-pr-add) .aieo-pr__chip {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0;
	padding: 4px 12px 4px 8px;
	border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
	border-radius: var(--wp--custom--rooster--shape--chip, 999px);
	line-height: 1.2;
	cursor: pointer;
}

:is(.aieo-pr, .aieo-pr-add) .aieo-pr__chip:has(input:checked) {
	border-color: var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, currentColor));
	box-shadow: inset 0 0 0 1px var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, currentColor));
}

/* A shade in the quote (11.3.6): marked as add to cart marks a shade in the cart, in the success colour; unticked, it
   leaves at the next update and shows plain. */
.aieo-pr-add .aieo-pr__chip.is-in-quote:has(input:checked) {
	border-color: var(--wp--preset--color--success, currentColor);
	background: color-mix(in srgb, var(--wp--preset--color--success, currentColor) 10%, transparent);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--success, currentColor);
}

.aieo-pr-add .aieo-pr__chip.is-in-quote input {
	accent-color: var(--wp--preset--color--success, auto);
}

:is(.aieo-pr, .aieo-pr-add) .aieo-pr__chip input {
	flex: none;
	margin: 0;
	accent-color: var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, auto));
}

:is(.aieo-pr, .aieo-pr-add) .aieo-pr__chip img,
:is(.aieo-pr, .aieo-pr-add) .aieo-pr__dot {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

:is(.aieo-pr, .aieo-pr-add) .aieo-pr__dot {
	box-sizing: border-box;
	display: inline-block;
	border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
}

.aieo-pr .aieo-pr__field label {
	display: block;
	margin: 0 0 3px;
	line-height: 1.3;
}
html:not([data-rooster-design="theme"]) .aieo-pr .aieo-pr__field label {
	font-size: 12px;
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
	opacity: .8;
}
html[data-rooster-design="theme"] .aieo-pr .aieo-pr__field label {
	font-size: var(--wp--preset--font-size--sm, .875rem);
	color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
}

.aieo-pr__field input[type="text"],
.aieo-pr__field input[type="email"],
.aieo-pr__field input[type="tel"],
.aieo-pr__field input[type="number"],
.aieo-pr__field textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

/* Brief section 23: under the theme's design authority the fields and the
 * consent checkbox are the theme's; this is their look under ours. */
html:not([data-rooster-design="theme"]) .aieo-pr__field input[type="text"],
html:not([data-rooster-design="theme"]) .aieo-pr__field input[type="email"],
html:not([data-rooster-design="theme"]) .aieo-pr__field input[type="tel"],
html:not([data-rooster-design="theme"]) .aieo-pr__field input[type="number"],
html:not([data-rooster-design="theme"]) .aieo-pr__field textarea {
	padding: 9px 11px;
	border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
	border-radius: var(--aieo-shape-control, 4px);
	background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
	color: inherit;
	font-size: var(--aieo-pr-text-size, 14px);
}

.aieo-pr__field--qty input {
	max-width: 120px;
}

.aieo-pr__field textarea {
	resize: vertical;
	min-height: 70px;
}

/* THE COMPACT FORM THAT EXPANDS. Collapsed by default; the wrapper gains
   .is-expanded on the first focus or keystroke in the email field. Animated on
   max-height rather than display so the reveal does not jump the page under a
   thumb that is already moving. */
.aieo-pr--compact .aieo-pr__more {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .25s ease, opacity .2s ease;
}

.aieo-pr--compact.is-expanded .aieo-pr__more,
.aieo-pr--full .aieo-pr__more {
	max-height: 600px;
	opacity: 1;
}

.aieo-pr__consent {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 9px;
	margin: 4px 0 10px;
	font-size: 12px;
	line-height: 1.35;
}

.aieo-pr__consent > input {
	flex: 0 0 auto;
	margin: 0;
	cursor: pointer;
}

html:not([data-rooster-design="theme"]) .aieo-pr__consent > input {
	width: 14px;
	height: 14px;
}

.aieo-pr__consent span {
	flex: 1 1 auto;
	min-width: 0;
}

/* The honeypot. Off-canvas, NOT display:none — some bots specifically skip
   inputs that are display:none, which is the one thing this field must not do. */
.aieo-pr__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/*
 * Its container in each selector: (0,2,0), above the block theme's `:root :where(.wp-element-button)` (0,1,0), which
 * the submit and the list's button carry. At equal weight the later rule won, and Rooster Zero's held sheet arrived
 * last: the button was the theme's 12.8 px padding until the first interaction, then 10 px, and the card under it
 * moved (11.3.10). Now the card's in every state.
 */
.aieo-pr .aieo-pr__submit,
.aieo-pr-add .aieo-pr-add__btn,
.aieo-pr-pick .aieo-pr-pick__go,
.aieo-pr-basket .aieo-pr-basket__finish {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--aieo-pr-btn-border-r, 4px);
	border: var(--aieo-pr-btn-border-w, 0) solid var(--aieo-pr-btn-border, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, currentColor)));
	background: var(--aieo-pr-btn-bg, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText)));
	color: var(--aieo-pr-btn-text, var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas))));
	font-size: var(--aieo-pr-text-size, 14px);
	font-weight: 500;
	cursor: pointer;
	transition: opacity .15s ease;
}

.aieo-pr__submit:hover,
.aieo-pr-add__btn:hover,
.aieo-pr-pick__go:hover,
.aieo-pr-basket__finish:hover {
	opacity: .88;
}

.aieo-pr__submit:disabled,
.aieo-pr-add__btn:disabled,
.aieo-pr-pick__go:disabled {
	opacity: .6;
	cursor: default;
}

.aieo-pr-add__btn.is-in {
	background: transparent;
	color: inherit;
	/* Its line drawn inside the button, so becoming "Remove from my quote" changes no box (11.3.10: a 1 px border on
	   each side grew the prompt by 2 px when the server's answer arrived). */
	border-color: transparent;
	box-shadow: inset 0 0 0 1px var(--aieo-pr-border, var(--wp--preset--color--line));
	opacity: 1;
	cursor: pointer;
}

.aieo-pr__msg,
.aieo-pr-add__msg,
.aieo-pr-basket__msg {
	margin-top: 8px;
	min-height: 18px;
	font-size: 13px;
	line-height: 1.4;
}

/*
 * ⚠ THE RESERVED LINE COLLAPSES WHEN THERE IS NOTHING TO SAY.
 * The min-height above exists so an arriving message does not shove the
 * layout down. Left unconditional it also reserved 26px under EVERY card,
 * bar and panel for a message that in most sessions never comes -- which
 * is what read as a band of dead space at the bottom of the quote basket.
 * :empty keeps the anti-shift reservation for the case it was written for
 * and gives the space back the rest of the time. The JS writes textContent,
 * so an unused element is genuinely empty and not whitespace.
 */
.aieo-pr__msg:empty,
.aieo-pr-add__msg:empty,
.aieo-pr-basket__msg:empty {
	display: none;
	margin: 0;
	min-height: 0;
}

.aieo-pr__msg.is-ok,
.aieo-pr-basket__msg.is-ok {
	color: var(--aieo-color-success, var(--wp--preset--color--success, currentColor));
}

.aieo-pr__msg.is-err,
.aieo-pr-add__msg.is-err,
.aieo-pr-basket__msg.is-err {
	color: var(--aieo-color-danger, var(--wp--preset--color--danger, currentColor));
}

/* The form in a product card's variations window (11.3.10, AIEO_Product_Request_Form::window_form()): the window is
   its surface and its frame, so the card draws neither, and its room is the window's padding; its words are the
   window's (the card's own colours go with the card's own background). */
.aieo-pr.aieo-pr--window {
	--aieo-pr-title-color: inherit;
	--aieo-pr-text-color: inherit;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
}

/* Its targets are 44 px, as the window's own are: the fields (the message's box is taller), the consent's row, the
   button across the form. */
.aieo-pr--window .aieo-pr__field input,
.aieo-pr--window .aieo-pr__consent {
	min-block-size: 44px;
}

.aieo-pr--window .aieo-pr__submit {
	inline-size: 100%;
}

/* The card's button and its prompt's two are 44 px targets too (FE-O1; they were 38 and 41 px): the prompt shows on
   every product page where a quote is open (11.3.10). */
.aieo-pr .aieo-pr__submit,
.aieo-pr-add .aieo-pr-add__btn,
.aieo-pr-add .aieo-pr-add__review {
	min-block-size: 44px;
}

/* ---------------------------------------------------------------- */
/* The add-to-quote prompt                                           */
/* ---------------------------------------------------------------- */

.aieo-pr-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-inline: 0;
	padding: 14px 16px;
	background: var(--aieo-pr-bg, var(--wp--preset--color--subtle, color-mix(in srgb, currentColor 6%, transparent)));
	border: var(--aieo-pr-border-w, 1px) solid var(--aieo-pr-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
	border-radius: var(--aieo-pr-border-r, 8px);
	font-size: var(--aieo-pr-text-size, 14px);
}

/*
 * ⚠ THE SAME BOX AS THE BUTTON BESIDE IT. These two sit side by side in
 * one bar and were styled as unrelated controls: 10px/18px and 14px against
 * 6px/12px and 13px. Different heights, different text insets, and so the
 * gap on the left of the first never matched the gap on the right of the
 * last. Matching the padding and size is what makes the bar symmetrical;
 * the outline instead of a fill is the only difference that carries
 * meaning, which is secondary versus primary.
 */
.aieo-pr-add__review {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid var(--aieo-pr-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
	border-radius: var(--aieo-pr-btn-border-r, 4px);
	background: transparent;
	color: inherit;
	font-size: var(--aieo-pr-text-size, 14px);
	font-weight: 500;
	cursor: pointer;
}

.aieo-pr-add__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--aieo-pr-btn-bg, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText)));
	color: var(--aieo-pr-btn-text, var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas))));
	font-size: 11px;
	font-weight: 700;
}

.aieo-pr-add__msg {
	flex: 1 0 100%;
}

/* ---------------------------------------------------------------- */
/* The review panel                                                  */
/* ---------------------------------------------------------------- */

.aieo-pr-basket {
	box-sizing: border-box;
	margin-inline: 0;
	padding: 14px 16px;
	background: var(--aieo-pr-bg, var(--wp--preset--color--subtle, color-mix(in srgb, currentColor 6%, transparent)));
	border: var(--aieo-pr-border-w, 1px) solid var(--aieo-pr-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
	border-radius: var(--aieo-pr-border-r, 8px);
	font-size: var(--aieo-pr-text-size, 14px);
}

.aieo-pr-basket__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.aieo-pr-basket__title {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--aieo-pr-title-size, 16px);
	font-weight: 600;
}

.aieo-pr-basket__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--aieo-pr-btn-bg, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText)));
	color: var(--aieo-pr-btn-text, var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas))));
	font-size: 11px;
	font-weight: 700;
}

.aieo-pr-basket__close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: .6;
}

.aieo-pr-basket__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aieo-pr-basket__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--aieo-pr-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
}

.aieo-pr-basket__item:last-child {
	border-bottom: 0;
}

.aieo-pr-basket__item img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex: 0 0 auto;
}

.aieo-pr-basket__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.aieo-pr-basket__body a {
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aieo-pr-basket__body a:hover {
	text-decoration: underline;
}

.aieo-pr-basket__qty {
	flex: 0 0 auto;
	font-size: 12px;
	opacity: .7;
}

.aieo-pr-basket__remove {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 12px;
	cursor: pointer;
	opacity: .6;
	text-decoration: underline;
}

.aieo-pr-basket__remove:hover {
	opacity: 1;
}

.aieo-pr-basket__empty {
	margin: 6px 0;
	font-size: 13px;
	opacity: .7;
}

.aieo-pr-basket__finish {
	margin-top: 10px;
}

@media (max-width: 600px) {
	.aieo-pr,
	.aieo-pr-add,
	.aieo-pr-basket {
		padding: 12px 13px;
	}

	.aieo-pr__submit,
	.aieo-pr-add__btn,
	.aieo-pr-add__review {
		width: 100%;
		text-align: center;
	}

	/*
	 * ⚠ The review button was left out of the rule above, so on a phone the
	 * add button spanned the bar and the one under it sat stranded at about a
	 * third of the width. It is inline-flex because of the count badge, so
	 * width alone does not centre it -- the content needs centring too.
	 */
	.aieo-pr-add__review {
		justify-content: center;
	}
}

/*
 * The prompt's button is one line, cut with an ellipsis where its words are longer than its room (11.3.10): its words
 * follow the quote (the card's first-paint lines set them from the quote kept in the browser, the script from the
 * server's answer), and a label that wrapped to two lines on a phone and then fitted on one moved the page under it.
 */
.aieo-pr-add.aieo-pr-add .aieo-pr-add__btn {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * 🚨 THE OTHER TWO CONTAINERS OWN THEIR TEXT TOO.
 * The card was given a colour and the bar and basket were not, so they went
 * on inheriting the theme's -- and because almost every child in them is
 * `color: inherit`, one missing declaration on the container tinted the
 * whole component. Same bug as the card, found twice, so it is fixed for
 * all three at once rather than a third time later.
 *
 * The doubled class is (0,2,0) on the containers and (0,3,0) on the
 * controls. Themes style bare `button` and `a` aggressively -- that is what
 * made the in-quote pill pink on a tagDiv shop -- and a component dropped
 * into an unknown theme has to out-specify that without resorting to
 * !important, which would take the choice away from the operator.
 */
.aieo-pr-add.aieo-pr-add,
.aieo-pr-basket.aieo-pr-basket {
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
}

.aieo-pr-add.aieo-pr-add .aieo-pr-add__review,
.aieo-pr-add.aieo-pr-add .aieo-pr-add__btn.is-in {
	background: transparent;
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
}

.aieo-pr-basket.aieo-pr-basket .aieo-pr-basket__body a {
	color: var(--aieo-pr-title-color, var(--wp--preset--color--fg, currentColor));
}

.aieo-pr-basket.aieo-pr-basket .aieo-pr-basket__remove,
.aieo-pr-basket.aieo-pr-basket .aieo-pr-basket__close {
	color: var(--aieo-pr-text-color, var(--wp--preset--color--fg, currentColor));
}

/*
 * 🚨 FULL WIDTH WHENEVER THEY WRAP, AT ANY VIEWPORT.
 * A media query cannot answer "did these two buttons end up on separate
 * rows": that depends on the width of the CONTAINER, and this bar sits in a
 * product summary column whose width has nothing to do with the viewport --
 * it wrapped on a full-size desktop. Flexbox answers it natively. With
 * `flex: 1 1 220px` the two share one row while there is room for both, and
 * the moment there is not they wrap and each grows to fill its own row.
 * No breakpoint to pick, and it is right inside a narrow column, a sidebar
 * or a phone without any of them being special-cased.
 *
 * This also closes the dead space on the right that the natural-width
 * buttons left behind.
 */
.aieo-pr-add.aieo-pr-add .aieo-pr-add__btn,
.aieo-pr-add.aieo-pr-add .aieo-pr-add__review {
	flex: 1 1 220px;
	justify-content: center;
	text-align: center;
}

/* ---------------------------------------------------------------- */
/* The variations' list (11.3.10)                                    */
/* ---------------------------------------------------------------- */

/*
 * A variable product's variations, picked for a quotation from a drop-down
 * in the multi-select's look (aieo-swatches.css, .om-multi-select-dropdown):
 * the same button, the same panel under it, the options list's rows
 * (aieo-card.css, .rc-vrow) and, in its foot, the selection and the action.
 * Every colour is a role of the options list (.rc-scope: the theme's
 * palette, so it reads in both schemes), with the palette's own preset as
 * the fallback where that sheet is missing.
 *
 * The panel lies OVER what follows it (the request card): opening it moves
 * nothing on the page.
 */
.aieo-pr-pick {
	position: relative;
	box-sizing: border-box;
	max-inline-size: 400px;
	margin-inline: 0;
	color: var(--rc-color-text, var(--wp--preset--color--fg, currentColor));
	font-size: var(--aieo-pr-text-size, 14px);
	line-height: 1.5;
}

.aieo-pr-pick__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 44px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--rc-color-control-line, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
	border-radius: var(--rc-radius-control, 4px);
	background: var(--rc-color-background, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)));
	color: inherit;
	font: inherit;
	font-weight: 500;
	text-align: start;
	cursor: pointer;
	appearance: none;
	transition: border-color .2s ease;
}

.aieo-pr-pick__head:hover,
.aieo-pr-pick.is-open .aieo-pr-pick__head {
	border-color: var(--rc-color-text, currentColor);
}

.aieo-pr-pick.is-open .aieo-pr-pick__head {
	border-end-start-radius: 0;
	border-end-end-radius: 0;
}

/* Lucide's chevron-down, as a mask in the text's colour. */
.aieo-pr-pick__chevron {
	flex: none;
	inline-size: 16px;
	block-size: 16px;
	background: var(--rc-color-text-muted, currentColor);
	mask: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s ease;
}

.aieo-pr-pick.is-open .aieo-pr-pick__chevron {
	transform: rotate(180deg);
}

.aieo-pr-pick__panel {
	position: absolute;
	inset-block-start: 100%;
	inset-inline: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	border: 1px solid var(--rc-color-text, currentColor);
	border-block-start: 0;
	border-end-start-radius: var(--rc-radius-control, 4px);
	border-end-end-radius: var(--rc-radius-control, 4px);
	background: var(--rc-color-background, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)));
	box-shadow: var(--wp--preset--shadow--md, none);
}

.aieo-pr-pick__panel[hidden],
.aieo-pr-pick__search[hidden],
.aieo-pr__picked[hidden],
.aieo-pr__field[hidden] {
	display: none;
}

/* The search over the rows: the options list's field, with room above it here. */
.aieo-pr-pick__search.rc-panel__search {
	padding-block-start: 10px;
}

.aieo-pr-pick__search.rc-panel__search::before {
	inset-block-start: 22px;
}

/* The rows scroll between the search and the foot; the panel's own edges and the foot's line are the only rules. */
.aieo-pr-pick__panel .rc-vlist {
	flex: 1 1 auto;
	min-block-size: 0;
	max-block-size: min(50vh, 420px);
	border-block: 0;
}

.aieo-pr-pick__foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px;
	border-block-start: 1px solid var(--rc-color-border, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
}

.aieo-pr-pick__foot .rc-panel__sum {
	margin: 0;
}

.aieo-pr-pick__go {
	inline-size: 100%;
	margin: 0;
	text-align: center;
}

.aieo-pr-pick__go[aria-busy="true"],
.aieo-pr-add__btn[aria-busy="true"] {
	opacity: .6;
	cursor: progress;
}

.aieo-pr-pick__msg {
	margin-block-start: 6px;
	font-size: 13px;
}

.aieo-pr-pick__msg:empty {
	display: none;
}

.aieo-pr-pick__msg.is-ok {
	color: var(--aieo-color-success, var(--wp--preset--color--success, currentColor));
}

.aieo-pr-pick__msg.is-err {
	color: var(--aieo-color-danger, var(--wp--preset--color--danger, currentColor));
}

/* What the request carries, said on its card: "Your selection: 3 options · 5 items". */
.aieo-pr .aieo-pr__picked {
	margin: 0 0 10px;
	font-weight: 600;
}

@media (max-width: 768px) {
	.aieo-pr-pick {
		max-inline-size: 100%;
	}

	.aieo-pr-pick__head {
		min-block-size: 48px;
	}

	/* A field under 16px makes iOS Safari zoom the page on focus. */
	.aieo-pr-pick .rc-field {
		font-size: 16px;
	}
}

/* ---------------------------------------------------------------- */
/* The location's call and chat buttons (11.3.10)                    */
/* ---------------------------------------------------------------- */

/*
 * Under the card's button (and in the add bar once a quote is open), the
 * buttons' own look (aieo-location-contact.css): the chat buttons share a
 * row, a call button with its hours takes a row of its own, so its second
 * line ("Closed now · opens Monday 9:00") has the card's width and changing
 * it moves nothing.
 */
.aieo-pr__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.aieo-pr-add .aieo-pr__contact {
	flex: 1 0 100%;
	margin-top: 0;
}

.aieo-pr__contact .aieo-form-contact {
	flex: 1 1 0;
	min-width: 0;
}

.aieo-pr__contact .aieo-form-contact.has-hours {
	flex-basis: 100%;
	justify-content: flex-start;
}

/* ---------------------------------------------------------------- */
/* The request's window (11.3.10, quote mode)                        */
/* ---------------------------------------------------------------- */

/*
 * A product asked about has the swatches' own picker on its page (AIEO_DMM_Swatches_Runtime::quote_form_html()); its
 * button opens the page's request card here, a native dialog built on that first press (nothing of it is in the first
 * paint): centred on a computer, a sheet from the bottom on a phone, as the swatches' window of every shade
 * (aieo-swatches.css, .aieo-shades-win). The card's title stands in its head beside Close (the same node, put back when
 * it closes); the window is the card's surface and frame, so the card draws neither here. Every colour a theme token.
 */
.aieo-pr-win {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: min(100% - 32px, 560px);
	max-width: none;
	height: fit-content;
	max-height: min(86dvh, 820px);
	margin: auto;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line, CanvasText);
	border-radius: var(--wp--custom--rooster--shape--panel, 0);
	background: var(--wp--preset--color--bg, Canvas);
	color: var(--wp--preset--color--fg, CanvasText);
	box-shadow: var(--wp--preset--shadow--lg, none);
	overflow: hidden;
}

.aieo-pr-win[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
}

.aieo-pr-win::backdrop {
	background: color-mix(in srgb, var(--wp--preset--color--bg, Canvas) 55%, transparent);
}

.aieo-pr-win__handle {
	display: none;
}

.aieo-pr-win__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px 12px 24px;
	border-block-end: 1px solid var(--wp--preset--color--line, currentColor);
}

.aieo-pr-win__head .aieo-pr__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg, 1.25rem);
	font-weight: 600;
	line-height: 1.25;
	color: inherit;
}

.aieo-pr-win__close {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	min-width: 0;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--rooster--shape--button, 0);
	background: none;
	color: var(--wp--preset--color--fg, currentColor);
	cursor: pointer;
}

.aieo-pr-win__close:focus-visible {
	outline: 2px solid var(--wp--preset--color--fg, CanvasText);
	outline-offset: -4px;
}

.aieo-pr-win__body {
	overflow: auto;
	overscroll-behavior: contain;
}

.aieo-pr-win .aieo-pr {
	--aieo-pr-title-color: inherit;
	--aieo-pr-text-color: inherit;
	margin: 0;
	padding: 16px 24px;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
}

/* Its targets are 44 px, as the window's own are: the fields, the consent's row, the button across the form. */
.aieo-pr-win .aieo-pr__field input,
.aieo-pr-win .aieo-pr__consent {
	min-block-size: 44px;
}

.aieo-pr-win .aieo-pr__submit {
	inline-size: 100%;
}

.aieo-pr-win__said {
	margin: 0;
	padding: 16px 24px;
	font-size: var(--wp--preset--font-size--md, 1rem);
	line-height: 1.5;
}

.aieo-pr-win__said:empty {
	display: none;
}

.aieo-pr-win__foot {
	display: grid;
	padding: 12px 24px 16px;
	border-block-start: 1px solid var(--wp--preset--color--line, currentColor);
}

.aieo-pr-win__foot .wp-element-button {
	justify-content: center;
	inline-size: 100%;
	min-block-size: 44px;
	margin: 0;
}

@media (max-width: 599px) {
	.aieo-pr-win {
		inset: auto 0 0 0;
		width: 100%;
		max-height: 92dvh;
		margin: 0;
		border-inline: 0;
		border-block-end: 0;
		border-radius: var(--wp--custom--rooster--shape--panel, 0) var(--wp--custom--rooster--shape--panel, 0) 0 0;
	}

	.aieo-pr-win[open] {
		grid-template-rows: auto auto minmax(0, 1fr) auto;
	}

	.aieo-pr-win__handle {
		display: block;
		width: 36px;
		height: 3px;
		margin: 10px auto 0;
		border-radius: 3px;
		background: var(--wp--preset--color--line, currentColor);
	}

	.aieo-pr-win__head {
		padding-inline-start: 16px;
	}

	.aieo-pr-win .aieo-pr,
	.aieo-pr-win__said,
	.aieo-pr-win__foot {
		padding-inline: 16px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.aieo-pr-win[open] {
		animation: aieo-pr-win-rise 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.aieo-pr-win[open]::backdrop {
		animation: aieo-pr-win-fade 220ms;
	}
}

@keyframes aieo-pr-win-rise {
	from {
		opacity: 0;
		translate: 0 12px;
	}
}

@keyframes aieo-pr-win-fade {
	from {
		opacity: 0;
	}
}
