/**
 * The Blocks cart and checkout, brought onto the brand.
 *
 * WHY THIS EXISTS. Cart and Checkout are the WooCommerce *Blocks* versions, not
 * the classic shortcodes: the page content is `wp:woocommerce/checkout`, the
 * markup is `wc-block-components-*`, and none of it is reachable from the
 * classic Woo selectors that assets/account.css uses. So every control on the
 * most important page on the site rendered in Blocks' own light theme: white
 * wells with near-black text sitting on a --slate page, under a heading in the
 * site's own display face. Andrew, 15 Oct 2026: "the checkout form is not
 * styled like the rest, please style all forms to be the same as the contact
 * and quote form".
 *
 * THE REFERENCE IS includes/forms.php, NOT assets/account.css. The two existing
 * treatments disagree, and the newer one won on purpose: account.css fills a
 * control with --ma-well, which is 4% of bone, and forms.php explicitly moved
 * off that to a solid --rich because at 96% transparent "the fields were the
 * page showing through a film". The brief names the contact and quote forms, so
 * the solid well, the .22 edge and the 2px radius are what is matched here.
 *
 * THE SKIN CHANGES, THE GEOMETRY DOES NOT. Every text field and select on this
 * page carries a floating label: an absolutely positioned <label> that rests
 * over the control and rises on focus, which is why Blocks gives the select
 * `padding: 16px 9px 0`. That top padding is the room the label sits in. Re-pad
 * a control to match forms.php and the label lands on top of the value. So the
 * rules below change colour, border and radius, and leave every padding,
 * height and position alone.
 *
 * TOKENS ARE THE THEME'S, WITH LITERAL FALLBACKS, for the reason forms.php
 * records at length: an invented name resolves to nothing and the rule fails
 * silently rather than loudly. The names here are --copper, --bone and --rich.
 *
 * @package mimi-core
 */

body.woocommerce-checkout,
body.woocommerce-cart {
	/* One ramp, so a field edge, a panel rule and a hover line are visibly the
	   same family. .22 is forms.php's edge, kept to the digit. */
	--mck-edge: rgba(246, 243, 239, .14);
	--mck-dim: rgba(246, 243, 239, .55);

	/* So the select popup, the date pickers and any native chrome are drawn
	   dark. Without it the option rows go dark inside a white box, which is the
	   exact fault forms.php hit on 14 Oct 2026. */
	color-scheme: dark;
}

/* ------------------------------------------------------------- the wells -- */

/*
 * THE WHITE IS ON DIFFERENT ELEMENTS FOR THE TWO CONTROL TYPES, which is why
 * this is two rules and not one. A text field paints its own background on the
 * bare <input>; a select is transparent and the white comes from the
 * `__container` wrapping it. Styling only the obvious one leaves half the form
 * still white, and nothing in the markup hints at the difference.
 */
/*
 * :not([type="hidden"]) IS CARRYING SPECIFICITY, NOT FILTERING ANYTHING MUCH.
 *
 * Blocks styles its text fields as
 *   .wc-block-components-form .wc-block-components-text-input input[type="date"]
 * and eleven more type selectors beside it, which is 0,3,1. The obvious
 * `body.woocommerce-checkout .wc-block-components-text-input input` is 0,2,2,
 * and loses on class count while looking perfectly reasonable in the file: the
 * selects went dark, the text fields stayed white, and nothing reported an
 * error. :not() takes the weight of its argument, so one [type] inside it buys
 * the third class and makes this 0,3,2 without enumerating every input type
 * the way Blocks does, and without an !important that the next person would
 * have to fight.
 */
body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]),
body.woocommerce-cart .wc-block-components-text-input input:not([type="hidden"]),
body.woocommerce-checkout .wc-blocks-components-select__container,
body.woocommerce-cart .wc-blocks-components-select__container {
	background-color: var(--well, rgba(246, 243, 239, .04));
	border-radius: 0;
}

body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]),
body.woocommerce-cart .wc-block-components-text-input input:not([type="hidden"]),
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-cart .wc-blocks-components-select__select {
	border: 1px solid var(--mck-edge);
	border-radius: 0;
	color: inherit;
	font-family: inherit;
}

/* The container is the thing that paints, so it must not also draw an edge or
   the select shows two borders one pixel apart. */
body.woocommerce-checkout .wc-blocks-components-select__container,
body.woocommerce-cart .wc-blocks-components-select__container {
	border: 0;
}

/*
 * The resting label is this form's placeholder, and it has to read as a prompt
 * rather than as an answer. .55 is the same value forms.php gives a select that
 * is still showing its prompt, so an empty field reads the same on both.
 */
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-cart .wc-block-components-text-input label,
body.woocommerce-checkout .wc-blocks-components-select__label,
body.woocommerce-cart .wc-blocks-components-select__label {
	color: var(--mck-dim);
}

/* Once it has risen it is a label for a value, not a prompt, so it comes back
   up to full strength. */
body.woocommerce-checkout .wc-block-components-text-input.is-active label,
body.woocommerce-cart .wc-block-components-text-input.is-active label {
	color: var(--bone, #F6F3EF);
}

body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]):focus,
body.woocommerce-cart .wc-block-components-text-input input:not([type="hidden"]):focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-cart .wc-blocks-components-select__select:focus {
	outline: 2px solid var(--copper, #BB8335);
	outline-offset: 1px;
	/* Blocks draws focus as a thickened inner border; left alone it fights the
	   outline and the field appears to gain a pixel on focus. */
	box-shadow: none;
}

/* ------------------------------------------------- checkboxes and radios -- */

/*
 * BLOCKS SETS appearance: none ON BOTH, so these are drawn boxes rather than
 * native controls, and the tick and the dot are Blocks' own marks rather than
 * the browser's. accent-color therefore does nothing here and is deliberately
 * not set: it would read as the thing colouring the mark while having no
 * effect at all.
 *
 * The checkbox tick is drawn dark, which is why the copper fill below works
 * without touching it. The radio dot is handled separately, further down, and
 * is the one that does need saying.
 */
/* The [type] is specificity again, for the same reason as the text fields:
   Blocks' own checkbox rule is 0,3,0 and carries the white. The radio needs no
   such help, but it is written the same way so the pair cannot drift. */
body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"],
body.woocommerce-cart .wc-block-components-checkbox__input[type="checkbox"],
body.woocommerce-checkout .wc-block-components-radio-control__input[type="radio"],
body.woocommerce-cart .wc-block-components-radio-control__input[type="radio"] {
	background-color: var(--rich, #0E1010);
	border-color: var(--mck-edge);
	border-radius: 2px;

	/*
	 * THE CONTROLS WERE NOT SQUARE, AND THE RADIUS WAS NOT THE REASON.
	 *
	 * Blocks sizes both of these 20px by 20px. The theme then ships, inside
	 * @layer bricks, a reset at `[type="checkbox"], [type="radio"] { padding: 0 }`
	 * and immediately defeats its own reset one rule later with
	 * `.input, input:not([type="submit"]), select, textarea { padding: 0 12px }`,
	 * which is 0,1,1 against the reset's 0,1,0 and wins.
	 *
	 * With box-sizing: border-box a 20px box cannot absorb 24px of padding, so
	 * it is pushed out to 26px wide while the height stays 20. The checkbox
	 * rendered as a rectangle and the radius-50% radio as an oval, and the
	 * radius looked like the culprit when the box was.
	 *
	 * This predates the dark treatment: it was simply harder to see on a white
	 * control. One declaration fixes both, and it wins on two counts, being
	 * both more specific and unlayered, where Bricks' rule is inside a layer.
	 */
	padding: 0;
}

/* A radio is round, and the rule above has just squared it. */
body.woocommerce-checkout .wc-block-components-radio-control__input[type="radio"],
body.woocommerce-cart .wc-block-components-radio-control__input[type="radio"] {
	border-radius: 50%;
}

/*
 * THE CHECKED BOX IS A SEPARATE RULE IN BLOCKS, AND A MORE SPECIFIC ONE.
 *
 * `.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked`
 * is 0,4,0 and repeats the white fill, so with only the rule above, two of the
 * three boxes on this page went dark and "Use same address for billing", the
 * one that ships checked, stayed white. It looked like a rule that had half
 * worked rather than one that had been outranked.
 *
 * Copper rather than the well, because a checked box should read as set from
 * across the page, and the tick Blocks draws is dark enough to hold against it.
 */
body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"]:checked,
body.woocommerce-cart .wc-block-components-checkbox__input[type="checkbox"]:checked {
	background-color: var(--copper, #BB8335);
	border-color: var(--copper, #BB8335);
}

/*
 * THE SELECTED RADIO HAD NO VISIBLE DOT, WHICH IS WORSE THAN IT SOUNDS.
 *
 * Blocks draws the mark as `:checked::before` with `background: rgb(0, 0, 0)`,
 * a literal black chosen for a white control. Against the well that is black
 * on near-black: the shipping option and the payment method both rendered as
 * empty circles, so the page gave no indication of which one was selected
 * while behaving perfectly correctly underneath.
 *
 * Woo ships a `.has-dark-controls` variant that fixes exactly this, but it
 * paints the dot white and has to be switched on from the block's own markup,
 * which is a PHP change for a result that is not the site's accent anyway.
 * Copper is both visible and the colour the rest of the form uses for "this
 * one is set", matching the checked box above.
 */
body.woocommerce-checkout .wc-block-components-radio-control__input[type="radio"]:checked::before,
body.woocommerce-cart .wc-block-components-radio-control__input[type="radio"]:checked::before {
	background: var(--copper, #BB8335);
}

/* Blocks mixes the checked ring from currentColor at 80%, which on bone gives a
   near-white ring around a copper dot. Bringing the ring onto the accent too so
   the control reads as one mark rather than two. */
body.woocommerce-checkout .wc-block-components-radio-control__input[type="radio"]:checked,
body.woocommerce-cart .wc-block-components-radio-control__input[type="radio"]:checked {
	border-color: var(--copper, #BB8335);
}

body.woocommerce-checkout .wc-block-components-checkbox__input:focus-visible,
body.woocommerce-cart .wc-block-components-checkbox__input:focus-visible,
body.woocommerce-checkout .wc-block-components-radio-control__input:focus-visible,
body.woocommerce-cart .wc-block-components-radio-control__input:focus-visible {
	outline: 2px solid var(--copper, #BB8335);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ the button -- */

/*
 * V1 PRIMARY BUTTON (27 Oct 2026, Task 10). Solid copper, rich-black label,
 * square corners, 52px tall, copper-lift on hover. It replaces the outlined
 * button this file used since 15 Oct, which matched forms.php but not the
 * approved V1 prototype (.m-btn--solid). The outline is still an inset
 * box-shadow so it adds nothing to the button's size.
 */
body.woocommerce-checkout .wc-block-components-button.wp-element-button,
body.woocommerce-cart .wc-block-components-button.wp-element-button {
	background-color: var(--copper, #BB8335);
	color: var(--rich, #0E1010);
	box-shadow: inset 0 0 0 1px var(--copper, #BB8335);
	border-radius: 0;
	min-height: 52px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

body.woocommerce-checkout .wc-block-components-button.wp-element-button:hover,
body.woocommerce-cart .wc-block-components-button.wp-element-button:hover,
body.woocommerce-checkout .wc-block-components-button.wp-element-button:focus-visible,
body.woocommerce-cart .wc-block-components-button.wp-element-button:focus-visible {
	background-color: var(--copper-lift, #D1974A);
	box-shadow: inset 0 0 0 1px var(--copper-lift, #D1974A);
	color: var(--rich, #0E1010);
}

body.woocommerce-checkout .wc-block-components-button.wp-element-button:active,
body.woocommerce-cart .wc-block-components-button.wp-element-button:active {
	transform: scale(.97);
}

/* The page title sits in the theme's 1100px article while the Blocks cart and
   checkout are alignwide, so the h1 started 110px right of the content under
   it. Pull it onto the content's left edge, as V1's title sits on its grid. */
@media (min-width: 1200px) {
	body.woocommerce-cart article.page > h1,
	body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) article.page > h1,
	body.woocommerce-cart #brx-content h1.entry-title,
	body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #brx-content h1.entry-title {
		margin-left: calc(-1 * (min(1320px, 100vw - 40px) - 1100px) / 2);
	}
}

/* The button's own label span inherits a colour from Blocks, so without this
   the text stays white while the button around it turns copper. */
body.woocommerce-checkout .wc-block-components-button.wp-element-button .wc-block-components-button__text,
body.woocommerce-cart .wc-block-components-button.wp-element-button .wc-block-components-button__text {
	color: inherit;
}

/* ----------------------------------------------------- the payment logos -- */

/*
 * Payfast's mark is dark teal on transparent, which on a --slate page is a
 * logo you cannot see: in the 15 Oct capture the only thing marking the payment
 * option was its radio button. Inverting it would make it legible and would
 * also make it the wrong colour, so it gets a bone plate to sit on instead,
 * which is what a payment mark normally has behind it anyway.
 *
 * Sized from the image's own box rather than given a width, so a second gateway
 * with a differently proportioned mark is handled by the same rule.
 */
body.woocommerce-checkout .wc-block-components-radio-control__option img,
body.woocommerce-checkout .wc-block-components-payment-method-icons img {
	background-color: var(--bone, #F6F3EF);
	padding: 4px 8px;
	border-radius: 2px;
}

/* ------------------------------------------------------------- the rules -- */

/* Blocks separates its sections with a near-black hairline chosen for a white
   page, which on this one is invisible. The panel border is already bone at
   .2, so the dividers are brought onto the same ramp. */
body.woocommerce-checkout .wc-block-components-totals-wrapper::after,
body.woocommerce-cart .wc-block-components-totals-wrapper::after,
body.woocommerce-checkout .wc-block-checkout__form > div + div::before {
	border-color: rgba(246, 243, 239, .16);
}

/* ------------------------------------------------- the quantity badge -- */

/*
 * THE NUMBER IN THE ORDER SUMMARY WAS INVISIBLE, AND HAD BEEN ALL ALONG.
 *
 * Blocks draws the little badge over a line item's thumbnail as
 * `background: currentColor` with the digit inside at
 * `var(--wp--preset--color--base, #fff)`. The intent is sound on the theme it
 * was written for: the pill takes the text colour, the digit takes the page
 * colour, and the two are always opposites.
 *
 * Both halves fail here. currentColor on this page is bone, and
 * --wp--preset--color--base is never defined because this is a classic theme
 * with no theme.json presets, so the digit falls back to the literal #fff.
 * Bone on white is a contrast of about 1.05: the customer could not see how
 * many of an item they were buying.
 *
 * NOT CAUSED BY THE 0.2.0 CHECKOUT WORK. Verified by disabling this stylesheet
 * and re-reading both values, which do not move: it dates from whenever the
 * page first went dark. Worth recording, because the badge sits inside the
 * block this file restyled and would otherwise look like a new fault.
 *
 * Copper rather than bone, to match the checked checkbox above: on this page
 * copper is already what "set to a value" looks like.
 */
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity,
body.woocommerce-cart .wc-block-components-order-summary-item__quantity {
	background: var(--copper, #BB8335);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span,
body.woocommerce-cart .wc-block-components-order-summary-item__quantity span {
	color: var(--rich, #0E1010);
}

/* -------------------------------------------------------- the notices -- */

/*
 * THE ONE THE CUSTOMER SEES WHEN SOMETHING HAS GONE WRONG.
 *
 * Blocks has its own notice markup, `.wc-block-components-notice-banner`, with
 * nothing in common with the classic `.woocommerce-error` that assets/
 * notice.css deals with. It ships `background-color: #fff` with `color:
 * #2f2f2f` and a near-white tint per severity: #fff0f0 for an error, #f4fff7
 * for a success. So a failed card or a missing required field put a white box
 * on the checkout, which is the worst possible moment for the page to stop
 * looking like the site.
 *
 * Matched to notice.css rather than invented here: the same well, the same 2px
 * left accent, the same two accent colours. The customer should not be able to
 * tell that the cart and the account pages are running different notice code.
 */
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-cart .wc-block-components-notice-banner {
	background-color: rgba(246, 243, 239, .04);
	border: 0;
	border-left: 2px solid var(--mck-edge);
	border-radius: 0;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
body.woocommerce-cart .wc-block-components-notice-banner.is-error {
	border-left-color: #C4553D;
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-success,
body.woocommerce-cart .wc-block-components-notice-banner.is-success,
body.woocommerce-checkout .wc-block-components-notice-banner.is-warning,
body.woocommerce-cart .wc-block-components-notice-banner.is-warning {
	border-left-color: var(--copper, #BB8335);
}

/* Blocks draws a severity glyph in a filled circle. The accent bar already
   carries that, and notice.css drops the classic equivalent for the same
   reason, so the two kinds of notice keep matching. */
body.woocommerce-checkout .wc-block-components-notice-banner > svg,
body.woocommerce-cart .wc-block-components-notice-banner > svg {
	display: none;
}

/*
 * THE ONLY !important IN THIS FILE, AND IT IS NOT A SHORTCUT.
 *
 * Blocks sets `color: #2f2f2f !important` on the dismiss control and on the
 * forward link inside a notice. An important declaration can only be answered
 * by another one: there is no specificity high enough, so raising the selector
 * would fail silently and look like a typo to whoever tried it next. Kept to
 * the two elements that need it.
 */
body.woocommerce-checkout .wc-block-components-notice-banner .wc-forward,
body.woocommerce-cart .wc-block-components-notice-banner .wc-forward {
	color: var(--copper, #BB8335) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner > .wc-block-components-button,
body.woocommerce-cart .wc-block-components-notice-banner > .wc-block-components-button {
	color: var(--bone, #F6F3EF) !important;
	opacity: .7;
}

/* ------------------------------------------------------ the order-pay form -- */

/* Fix round 1. The classic "Pay for order" form (reached from Pay on a pending
   order) is not a Blocks button, so none of the rules above reached it: it
   rendered as bare bone text. Same V1 solid copper button as Place Order. */
body.woocommerce-order-pay #order_review #place_order,
body.woocommerce-order-pay button.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	width: 100%;
	padding: 0 32px;
	border: 0;
	border-radius: 0;
	background: var(--copper, #BB8335);
	color: var(--rich, #0E1010);
	box-shadow: inset 0 0 0 1px var(--copper, #BB8335);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 180ms ease-out, box-shadow 180ms ease-out;
}

body.woocommerce-order-pay #order_review #place_order:hover,
body.woocommerce-order-pay button.button.alt:hover,
body.woocommerce-order-pay #order_review #place_order:focus-visible {
	background: var(--copper-lift, #D1974A);
	box-shadow: inset 0 0 0 1px var(--copper-lift, #D1974A);
	color: var(--rich, #0E1010);
}

/* The Payfast logo is dark teal on a transparent PNG, nearly invisible on the
   rich-black page. A light pill behind it; the file is untouched. */
body.woocommerce-order-pay #payment .payment_method_payfast img,
body.woocommerce-order-pay #payment .wc_payment_method label img {
	background: var(--bone, #F6F3EF);
	padding: 4px 10px;
	border-radius: 2px;
	box-sizing: content-box;
	vertical-align: middle;
}

/* The title touched the header's bottom rule on both screens. */
body.woocommerce-cart article.page,
body.woocommerce-checkout article.page {
	padding-top: 32px;
}

/* At phone width the theme gives the article no side padding, so the title and
   every control touched the screen edge while the header sat on a 40px gutter. */
@media (max-width: 640px) {
	body.woocommerce-cart article.page,
	body.woocommerce-checkout article.page {
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}
}

/* --------------------------------------------------------------- mobile -- */

/* 16px stops iOS zooming the page on focus, which is the same reason and the
   same value as the rule at the foot of includes/forms.php. */
@media (max-width: 640px) {
	body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]),
	body.woocommerce-cart .wc-block-components-text-input input:not([type="hidden"]),
	body.woocommerce-checkout .wc-blocks-components-select__select,
	body.woocommerce-cart .wc-blocks-components-select__select {
		font-size: 18px;
	}
}

/* ==========================================================================
   FIDELITY PASS (27 Oct 2026): cart and checkout matched to prototypes/v1
   (.m-cart, .m-line, .m-qty, .m-summary, .m-h2). V1 is the authority for
   sizes, spacing and type; colours stay on the site's tokens. All px: the
   theme root is 10px.
   ========================================================================== */

/* The content column is V1's: the 1520 page less its gutters, centred. */
body.woocommerce-cart #brx-content,
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #brx-content {
	width: calc(100% - 2 * var(--gutter, 24px));
	max-width: calc(var(--page, 1520px) - 2 * var(--gutter, 24px));
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

body.woocommerce-cart #brx-content > .wp-block-woocommerce-cart,
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #brx-content > .wp-block-woocommerce-checkout {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* V1's title: .m-h2, display face, with room under it. Meursault is much
   narrower than V1's stand-in, so the size is stepped up to keep the weight. */
body.woocommerce-cart #brx-content > h1,
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #brx-content > h1,
body.woocommerce-cart #brx-content h1.entry-title,
body.woocommerce-checkout:not(.woocommerce-order-received):not(.woocommerce-order-pay) #brx-content h1.entry-title {
	margin: 16px 0 32px;
	font-size: clamp(40px, 4.4vw, 64px);
	line-height: 1.08;
	letter-spacing: -.016em;
}

/* Cart layout: V1's 1.6fr / 1fr with a wide gap. */
body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: clamp(32px, 5vw, 96px);
	align-items: start;
}

body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	width: auto;
	max-width: none;
	margin: 0;
}

body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main {
	padding: 0;
}

/* Lines: no column header row, a hairline under each, a 110px 3:4 photograph. */
body.woocommerce-cart .wc-block-cart-items__header {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

body.woocommerce-cart table.wc-block-cart-items {
	border-top: 1px solid var(--rule, rgba(246, 243, 239, .14));
}

body.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row {
	border-bottom: 1px solid var(--hair, rgba(246, 243, 239, .07));
}

body.woocommerce-cart .wc-block-cart-items td {
	border: 0;
	padding: 24px 0;
	vertical-align: top;
}

body.woocommerce-cart .wc-block-cart-items td.wc-block-cart-item__image {
	width: 134px;
	padding-right: 24px;
}

body.woocommerce-cart .wc-block-cart-item__image a {
	display: block;
	width: 110px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--slate, #1C2120);
}

body.woocommerce-cart .wc-block-cart-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

body.woocommerce-cart .wc-block-cart-items td.wc-block-cart-item__product {
	padding-right: 24px;
}

body.woocommerce-cart .wc-block-cart-item__wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.woocommerce-cart .wc-block-components-product-name {
	font-family: var(--font-display, serif);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--bone, #F6F3EF);
	text-decoration: none;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata * {
	font-size: 15px;
	color: var(--dim, rgba(246, 243, 239, .6));
}

body.woocommerce-cart .wc-block-cart-item__total .price,
body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: 17px;
	font-weight: 400;
	letter-spacing: .01em;
	color: var(--bone, #F6F3EF);
}

/* Quantity: V1's .m-qty, a hairline box of two 44px buttons around the number. */
body.woocommerce-cart .wc-block-components-quantity-selector {
	width: auto;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--rule, rgba(246, 243, 239, .14));
}

body.woocommerce-cart .wc-block-components-quantity-selector::after {
	display: none;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
	width: 44px;
	height: 44px;
	min-width: 0;
	font-size: 18px;
	color: var(--dim, rgba(246, 243, 239, .6));
	opacity: 1;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
	width: 40px;
	min-width: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 16.5px;
	text-align: center;
	color: var(--bone, #F6F3EF);
}

/* Summary: V1's .m-summary panel. */
body.woocommerce-cart .wc-block-components-sidebar-layout .wc-block-cart__sidebar {
	padding: 32px;
	background: var(--well, rgba(246, 243, 239, .04));
}

body.woocommerce-cart .wc-block-cart__totals-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--font-display, serif);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__label {
	font-size: 16.5px;
	color: var(--dim, rgba(246, 243, 239, .6));
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value {
	font-size: 16.5px;
	font-weight: 400;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display, serif);
	font-size: 30px;
	font-weight: 400;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-cart__submit-button {
	width: 100%;
}

@media (max-width: 900px) {
	body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout {
		grid-template-columns: 1fr;
	}
}

/* Checkout (V1 .m-input, .m-choice, .m-summary): hairline wells with square
   corners, copper edge on focus and on the chosen option, a tinted order panel
   with no outline, display-face section headings. */
body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]) {
	font-size: 17px;
}

body.woocommerce-checkout .wc-block-components-text-input input:not([type="hidden"]):focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	outline: 0;
	border-color: var(--copper, #BB8335);
	background-color: rgba(246, 243, 239, .06);
}

body.woocommerce-checkout .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-content {
	border: 1px solid var(--mck-edge);
	border-radius: 0;
	background: var(--well, rgba(246, 243, 239, .04));
	box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-radio-control__option-checked,
body.woocommerce-checkout .wc-block-components-radio-control-accordion-option:has(input:checked) {
	border-color: var(--copper, #BB8335);
	box-shadow: none;
}

body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"],
body.woocommerce-checkout .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-radius: 0;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title.wc-block-components-title {
	font-family: var(--font-display, serif);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
	border-radius: 0;
	background: var(--well, rgba(246, 243, 239, .04));
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--font-display, serif);
	font-size: 30px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display, serif);
	font-size: 30px;
	font-weight: 400;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	border: 0;
	box-shadow: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	padding: 32px;
}

@media (max-width: 640px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
		padding: 20px;
	}
}

@media (max-width: 640px) {
	body.woocommerce-cart .wc-block-cart-items td.wc-block-cart-item__image {
		width: 96px;
		padding-right: 16px;
	}

	body.woocommerce-cart .wc-block-cart-item__image a {
		width: 80px;
	}

	body.woocommerce-cart .wc-block-cart-items td.wc-block-cart-item__product {
		padding-right: 12px;
	}
}

/* ==========================================================================
   FIDELITY PASS: order-pay and order-received in the same V1 column and type
   as the checkout they follow.
   ========================================================================== */

body.woocommerce-order-pay #brx-content,
body.woocommerce-order-received #brx-content {
	width: calc(100% - 2 * var(--gutter, 24px));
	max-width: calc(var(--page, 1520px) - 2 * var(--gutter, 24px));
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
	padding-top: 32px;
	padding-bottom: 96px;
}

body.woocommerce-order-pay #brx-content h1.entry-title,
body.woocommerce-order-pay #brx-content > h1,
body.woocommerce-order-received #brx-content h1.entry-title,
body.woocommerce-order-received #brx-content > h1 {
	margin: 16px 0 32px;
	font-size: clamp(40px, 4.4vw, 64px);
	line-height: 1.08;
	letter-spacing: -.016em;
}

body.woocommerce-order-pay #order_review table.shop_table {
	width: 100%;
	margin: 0 0 32px;
	border: 0;
	border-collapse: collapse;
	background: var(--well, rgba(246, 243, 239, .04));
}

body.woocommerce-order-pay #order_review table.shop_table th,
body.woocommerce-order-pay #order_review table.shop_table td {
	padding: 16px 24px;
	border: 0;
	border-bottom: 1px solid var(--hair, rgba(246, 243, 239, .07));
	font-size: 16.5px;
	font-weight: 400;
	text-align: left;
	color: var(--bone, #F6F3EF);
	background: transparent;
}

body.woocommerce-order-pay #order_review table.shop_table thead th {
	border-bottom: 1px solid var(--rule, rgba(246, 243, 239, .14));
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dim, rgba(246, 243, 239, .6));
}

body.woocommerce-order-pay #order_review table.shop_table tfoot th {
	color: var(--dim, rgba(246, 243, 239, .6));
}

body.woocommerce-order-pay #order_review table.shop_table tfoot tr:last-child th,
body.woocommerce-order-pay #order_review table.shop_table tfoot tr:last-child td {
	border-bottom: 0;
	font-family: var(--font-display, serif);
	font-size: 28px;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-order-pay #payment {
	padding: 24px;
	border: 1px solid var(--mck-edge, rgba(246, 243, 239, .14));
	background: var(--well, rgba(246, 243, 239, .04));
}

body.woocommerce-order-pay #payment ul.payment_methods {
	margin: 0 0 24px;
	padding: 0;
	border: 0;
	list-style: none;
}

body.woocommerce-order-pay #payment .woocommerce-privacy-policy-text,
body.woocommerce-order-pay #payment .woocommerce-terms-and-conditions-wrapper {
	font-size: 15px;
	line-height: 1.6;
	color: var(--dim, rgba(246, 243, 239, .6));
}

body.woocommerce-order-pay #payment input[type="checkbox"] {
	accent-color: var(--copper, #BB8335);
}

body.woocommerce-order-received #brx-content h2,
body.woocommerce-order-received #brx-content h3 {
	font-family: var(--font-display, serif);
	font-size: 30px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

/* ---------------------------------------------- breadcrumb and outfit row --
   includes/checkout-chrome.php. V1's .m-crumbs and .m-card, on the same
   1424 column as the cart. */

.mc-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	width: calc(100% - 2 * var(--gutter, 24px));
	max-width: calc(var(--page, 1520px) - 2 * var(--gutter, 24px));
	margin: 0 auto;
	padding-top: 48px;
	font-size: 13.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dimmer, rgba(246, 243, 239, .4));
}

.mc-crumbs a {
	color: var(--dim, rgba(246, 243, 239, .6));
	text-decoration: none;
	transition: color 220ms ease-out;
}

.mc-crumbs a:hover {
	color: var(--bone, #F6F3EF);
}

.mc-crumbs [aria-current] {
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .mc-crumbs ~ #brx-content,
body.woocommerce-checkout .mc-crumbs ~ #brx-content {
	padding-top: 0;
}

.mc-outfit {
	margin-bottom: 96px;
	margin-top: 96px;
	padding-top: 64px;
	border-top: 1px solid var(--hair, rgba(246, 243, 239, .07));
}

.mc-outfit__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hair, rgba(246, 243, 239, .07));
}

.mc-outfit__title {
	margin: 0;
	font-family: var(--font-display, serif);
	font-size: 34px;
	font-weight: 400;
	line-height: 1.2;
}

.mc-outfit__all {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bone, #F6F3EF);
	text-decoration: none;
}

.mc-outfit__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.mc-outfit__card {
	display: block;
	color: inherit;
	text-decoration: none;
}

.mc-outfit__fig {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--slate, #1C2120);
}

.mc-outfit__fig img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mc-outfit__name {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 12px;
	font-family: var(--font-display, serif);
	font-size: 26px;
	line-height: 1.2;
}

.mc-outfit__price {
	font-family: var(--font-body, sans-serif);
	font-size: 17px;
	font-weight: 400;
}

@media (max-width: 900px) {
	.mc-outfit__grid {
		grid-template-columns: 1fr;
	}
}

/* Empty cart: WooCommerce's "New in store" list, dressed like the outfit row
   above. Square 3:4 photographs, display-face names, an outlined button with no
   pill. */
body.woocommerce-cart .wc-block-grid__products {
	gap: 24px;
}

body.woocommerce-cart .wc-block-grid__products {
	margin: 0;
}

body.woocommerce-cart .wc-block-grid__product {
	flex: 0 0 calc(25% - 18px) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left;
}

@media (max-width: 900px) {
	body.woocommerce-cart .wc-block-grid__product {
		flex: 0 0 calc(50% - 12px) !important;
	}
}

body.woocommerce-cart .wc-block-grid__product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-grid__product-image {
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--slate, #1C2120);
}

body.woocommerce-cart .wc-block-grid__product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.woocommerce-cart .wc-block-grid__product-title {
	margin-top: 12px;
	font-family: var(--font-display, serif);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-grid__product-price {
	font-size: 17px;
	color: var(--bone, #F6F3EF);
}

body.woocommerce-cart .wc-block-grid__product .wp-block-button__link {
	border-radius: 0;
	background: transparent;
	color: var(--bone, #F6F3EF);
	box-shadow: inset 0 0 0 1px rgba(246, 243, 239, .6);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	min-height: 44px;
}

body.woocommerce-cart .wc-block-grid__product .wp-block-button__link:hover,
body.woocommerce-cart .wc-block-grid__product .wp-block-button__link:focus-visible {
	box-shadow: inset 0 0 0 1px var(--bone, #F6F3EF);
}
