/* Matjari commerce: the cart, the checkout, the thank-you page, the account
   pages and order tracking. The contract is docs/DESIGN-SYSTEM.md: 3.4 (the
   layouts per range), 4.10 (the four skins), 2.5 (buttons and fields), 5.5
   (what this file owns) and section 7 (the browser floor and hygiene).

   The fifth stylesheet of these templates: tokens, base, components and chrome
   load before it. It builds with their finished things and never restyles
   them: a field is base.css's one input anatomy, a button is .m-btn, the
   stepper is .m-qty, a notice is components.css's, the sticky bars and the
   free-delivery bar are chrome.css's. This file places them.

   One markup, four designs. <html> carries commerce--card, --ledger,
   --receipt or --compact (the Look's treatment); `card` is what is written
   first, and the other three are at the end of the file. A panel of these
   pages is .m-woopage__panel (and #order_review, the checkout's summary, whose
   class attribute is a WooCommerce contract and takes no class of ours): a
   Look that draws its panels its own way (a frame, an offset shadow) says it
   on those two, and reaches the rest through the card tokens a panel is
   painted from.

   THE MONEY PATH. Every class and id named here that is not .m-something is
   WooCommerce's own (its fragment keys, its validation states, the markup its
   scripts write) and is selected, never renamed. Logical longhands only on the
   cart and the checkout, and grid gap, never flex gap (section 7): the lower
   browser tier still has a page that can buy. No custom property is declared
   here. Hover lives behind (hover: hover) and (pointer: fine). */

/* ==========================================================================
   1. The page: one column, as wide as what it holds. A cart is a list (640),
   a form is a form (560), an account page is a reading column (720). From 900
   the cart and the checkout are two columns: the reading column and the
   summary beside it, 1120 at their widest.
   ========================================================================== */
.m-woopage { padding-block-start: var(--m-sp-6); padding-block-end: var(--m-section-y); }
.m-woopage .m-title { margin: 0 0 var(--m-gap-group); }
.tpl-cart .m-woopage { max-width: calc(640px + 2 * var(--m-gutter)); }
.tpl-checkout .m-woopage, .tpl-thanks .m-woopage { max-width: calc(var(--m-container-form) + 2 * var(--m-gutter)); }
body.woocommerce-account .m-woopage { max-width: calc(var(--m-container-narrow) + 2 * var(--m-gutter)); }
body.woocommerce-account:not(.logged-in) .m-woopage { max-width: calc(var(--m-container-form) + 2 * var(--m-gutter)); }
/* A content page drawn by this stylesheet (the one that carries the order
   tracker) is a reading column too; the container's own margins centre it. */
.tpl-page .m-woopage { max-width: calc(var(--m-container-narrow) + 2 * var(--m-gutter)); }

/* A panel. Painted from the card tokens, so it is the Look's card at the size
   of a panel: its surface, its edge, its shadow. Its edge is never thinner
   than a hairline, so a panel shows on a Look whose surface is its ground
   (4.10.1: yasmin); the width is declared twice, the first for a browser
   without max(). The checkout's four fields are a panel too (their wrapper),
   so on a phone the order is two cards: who she is, and what she pays. */
.m-woopage__panel, #order_review, .m-track, .woocommerce-order-details, .woocommerce-customer-details, .woocommerce-billing-fields__field-wrapper {
	padding: var(--m-pad-panel);
	border: var(--m-bw-hair) solid var(--m-card-edge);
	border-width: max(var(--m-card-bw), var(--m-bw-hair));
	border-radius: var(--m-r-panel);
	background-color: var(--m-card-bg);
	box-shadow: var(--m-card-shadow);
}

/* The heading of a panel or of a column: one size, the sub-heading face. */
.m-cofm__h, .cart_totals h2, .m-thanks__h, .m-login__title, .m-track__title, .woocommerce-order-details__title, .woocommerce-column__title {
	margin: 0 0 var(--m-sp-4);
	font-family: var(--m-font-subhead);
	font-size: var(--m-fs-h3);
	font-weight: var(--m-fw-subhead);
	line-height: var(--m-lh-heading);
}

/* A summary is rows: what it is at the start, what it costs at the end. The
   cart's totals, the checkout's, the thank-you page's and an order's are the
   same rows, with no box of their own inside the panel (audit S7). */
.cart_totals table, .cart_totals tbody, .m-cosum, .m-cosum tbody, .m-cosum tfoot, .woocommerce-table--order-details, .woocommerce-table--order-details tbody, .woocommerce-table--order-details tfoot { display: block; width: 100%; }
.cart_totals tr, .m-cosum tfoot tr, .m-thanks__items li, .woocommerce-table--order-details tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	column-gap: var(--m-sp-4);
	padding: var(--m-sp-2) 0;
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
}
.cart_totals th, .cart_totals td, .m-cosum th, .m-cosum td, .woocommerce-table--order-details th, .woocommerce-table--order-details td {
	display: block;
	padding: 0;
	border: 0;
	font-weight: var(--m-fw-body);
	text-align: start;
}
.cart_totals td, .m-cosum tfoot td, .m-thanks__items b, .woocommerce-table--order-details td:last-child {
	font-weight: var(--m-fw-strong);
	font-variant-numeric: var(--m-fvn);
	text-align: end;
}
/* The total: under a rule, in the numeral face. */
.cart_totals tr.order-total, .m-cosum tr.order-total, .m-thanks__items li.is-total {
	margin-block-start: var(--m-sp-2);
	padding-block-start: var(--m-sp-4);
	border-block-start: var(--m-bw-hair) solid var(--m-c-line);
	font-weight: var(--m-fw-strong);
}
.cart_totals tr.order-total th, .m-cosum tr.order-total th { font-weight: var(--m-fw-strong); }
.cart_totals tr.order-total .woocommerce-Price-amount, .m-cosum tr.order-total .woocommerce-Price-amount, .m-thanks__items li.is-total b {
	color: var(--m-price-ink);
	font-family: var(--m-font-num);
	font-size: var(--m-fs-h3);
	font-weight: var(--m-fw-num);
	line-height: var(--m-lh-control);
}
/* Delivery, before she has chosen a governorate: what it starts from, quietly,
   or that it is free, in the success colour and in a word. */
tr.matjari-ship td { color: var(--m-c-ink-2); font-weight: var(--m-fw-body); }
tr.matjari-ship.is-free td, tr.fee.is-free td { color: var(--m-success); font-weight: var(--m-fw-strong); }
/* A code she applied is money saved: its amount in the success colour. */
.cart_totals tr.cart-discount td, .m-cosum tr.cart-discount td { color: var(--m-success); }
tr.matjari-ship--note, .m-cosum tr.matjari-eta { display: block; padding-block-start: 0; }
tr.matjari-ship--note td, .m-cosum tr.matjari-eta td { font-size: var(--m-fs-small); font-weight: var(--m-fw-small); text-align: start; }
.m-cosum tr.matjari-eta td { color: var(--m-c-ink-2); }
/* The way to take a code off again: quiet, and a finger's, by the same
   padded box as a line's name. */
a.woocommerce-remove-coupon { display: inline-block; min-height: var(--m-touch); padding-block: var(--m-sp-3); margin-block: calc(var(--m-sp-3) * -1); margin-inline-start: var(--m-sp-2); color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); }

/* A line's photograph: one frame, one size, in the store's photo fit (2.7). */
body.woocommerce-cart td.product-thumbnail, .m-cosum td.product-thumbnail {
	inline-size: var(--m-sp-12);
	block-size: var(--m-sp-12);
	overflow: hidden;
	border-radius: var(--m-r-thumb);
	background-color: var(--m-img-bg);
}
body.woocommerce-cart td.product-thumbnail a { display: block; block-size: 100%; }
body.woocommerce-cart td.product-thumbnail img, .m-cosum td.product-thumbnail img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* A frame that paints a plate is dimmed with its photograph, as one, by the
   plate's own token (8.9): 1 in the light form, a lamp no more in the dark. */
.fit--contain body.woocommerce-cart td.product-thumbnail, .fit--contain .m-cosum td.product-thumbnail { background-color: var(--m-mat); opacity: var(--m-plate-dim); }
.fit--mat body.woocommerce-cart td.product-thumbnail, .fit--mat .m-cosum td.product-thumbnail { background-color: var(--m-plate); opacity: var(--m-plate-dim); }
.fit--contain body.woocommerce-cart td.product-thumbnail img, .fit--contain .m-cosum td.product-thumbnail img, .fit--mat body.woocommerce-cart td.product-thumbnail img, .fit--mat .m-cosum td.product-thumbnail img { padding: var(--m-sp-1); object-fit: contain; }
.fit--mat.tone-light body.woocommerce-cart td.product-thumbnail img, .fit--mat.tone-light .m-cosum td.product-thumbnail img { mix-blend-mode: multiply; }
/* What she chose, under the name: «اللون: أحمر», one pair to a line. */
body.woocommerce-cart .variation, .m-cosum .variation {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: var(--m-sp-1);
	margin: var(--m-sp-1) 0 0;
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-small);
}
body.woocommerce-cart .variation dd, body.woocommerce-cart .variation p, .m-cosum .variation dd, .m-cosum .variation p { margin: 0; }

/* A button WooCommerce prints itself (a notice's, an order's actions, the
   password forms'): the ghost button's anatomy, since its class cannot be
   given to it. The theme's own buttons carry .m-btn and are not touched. */
.m-woopage .button:not(.m-btn) {
	display: inline-grid;
	place-items: center;
	min-height: var(--m-btn-h);
	padding: var(--m-sp-2) var(--m-btn-px);
	border: var(--m-btn-bw) solid var(--m-btn2-edge);
	border-radius: var(--m-btn-r);
	background-color: var(--m-btn2-bg);
	color: var(--m-btn2-ink);
	font-family: var(--m-btn-font);
	font-size: var(--m-btn-fs);
	font-weight: var(--m-btn-fw);
	line-height: var(--m-lh-control);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--m-dur-press) var(--m-ease), transform var(--m-dur-press) var(--m-ease);
}
.m-woopage .button:not(.m-btn):active { transform: var(--m-btn-press); opacity: var(--m-press-opacity); }
.woocommerce-ResetPassword .button:not(.m-btn) { border-color: var(--m-btn-edge); background-color: var(--m-btn-bg); color: var(--m-btn-ink); }

/* WooCommerce lays a white film over what it is refreshing, from an inline
   style. It keeps the panel's own corners; on a dark store it is turned to a
   dimming one, which is the only thing a stylesheet can do to an inline colour
   without out-shouting it. */
.blockUI.blockOverlay { border-radius: inherit; }
.tone-dark .blockUI.blockOverlay { filter: invert(1); }

/* WooCommerce moves focus to a notice it has just printed, so it is read out.
   It is not a control: the panel is its own indicator, and a ring round it
   made a double border. Transparent, never removed. */
.m-woopage .woocommerce-message:focus-visible { outline-color: transparent; }
.m-woopage .woocommerce-info:focus-visible { outline-color: transparent; }
/* A notice with a way on. WooCommerce prints the button before the sentence;
   here the sentence comes first, and the button stands under it on a phone
   and at the end of its line from 600. */
.m-woopage .woocommerce-info, .m-woopage .woocommerce-message { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: var(--m-sp-2) var(--m-sp-4); }
.m-woopage .woocommerce-info > .button, .m-woopage .woocommerce-message > .button { grid-row: 2; justify-self: start; margin-inline-start: 0; }

.matjari-hidden, body.woocommerce-checkout .form-row.matjari-hidden { display: none; }
/* Core's own free-delivery line, where it runs without this theme's bar. */
.matjari-nudge { padding: var(--m-sp-3) var(--m-sp-4); border-radius: var(--m-r-card); background-color: var(--m-primary-soft); font-size: var(--m-fs-ui); font-weight: var(--m-fw-ui); }
.matjari-nudge--done { background-color: var(--m-success-soft); }

/* ==========================================================================
   2. The cart (3.4). The lines are one list: the drawer's own line, at the
   size of a page. Then the code, a quiet row; then the summary, which says
   what delivery will cost and holds the one button.
   ========================================================================== */
body.woocommerce-cart .m-woopage .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-sp-5); }
/* Whatever is not a column spans the page: the free-delivery bar, a notice,
   the undo strip, and the empty state, which has no summary beside it. */
body.woocommerce-cart .m-woopage .woocommerce-notices-wrapper,
body.woocommerce-cart .m-woopage .m-empty,
body.woocommerce-cart .m-woopage .m-freebar,
body.woocommerce-cart .m-woopage .matjari-nudge,
body.woocommerce-cart .m-woopage .m-curnote,
body.woocommerce-cart .m-woopage .m-minicart__undo { grid-column: 1 / -1; margin: 0; }
body.woocommerce-cart .m-woopage .woocommerce-notices-wrapper > * { margin: 0; }

body.woocommerce-cart .woocommerce-cart-form table, body.woocommerce-cart .woocommerce-cart-form tbody, body.woocommerce-cart .woocommerce-cart-form tfoot, body.woocommerce-cart .woocommerce-cart-form tfoot tr { display: block; width: 100%; }
body.woocommerce-cart .woocommerce-cart-form thead { display: none; }
body.woocommerce-cart .woocommerce-cart-form tbody { padding-block-start: 0; padding-block-end: 0; }
body.woocommerce-cart .woocommerce-cart-form tfoot { margin-block-start: var(--m-sp-4); }
body.woocommerce-cart .woocommerce-cart-form td { display: block; padding: 0; }

/* A line. The photograph beside the name, what she chose and the price of
   one; the bin at the row's end; under them, on a line of its own, the
   stepper and what the line comes to. minmax(0, 1fr), never a bare 1fr: a
   bare track cannot shrink under a long name. */
body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "thumb name remove" "thumb price remove" "qty qty subtotal";
	column-gap: var(--m-sp-3);
	padding: var(--m-sp-4) 0;
	border-block-end: var(--m-bw-hair) solid var(--m-c-line);
	transition: opacity var(--m-dur-press) var(--m-ease);
}
body.woocommerce-cart tr.woocommerce-cart-form__cart-item:last-child { border-block-end: 0; }
body.woocommerce-cart tr.is-going { opacity: .5; }
body.woocommerce-cart td.product-thumbnail { grid-area: thumb; }
body.woocommerce-cart td.product-name {
	grid-area: name;
	min-width: 0;
	padding-block-start: var(--m-sp-1);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-ui);
}
/* The name is the line's link, and a finger's: a box a touch tall, whose
   reach above and below is given back to the line, so the row keeps its
   rhythm. */
body.woocommerce-cart td.product-name a { display: inline-block; min-height: var(--m-touch); padding-block: var(--m-sp-3); margin-block: calc(var(--m-sp-3) * -1); color: var(--m-c-ink); text-decoration: none; }
body.woocommerce-cart .backorder_notification { margin: var(--m-sp-1) 0 0; color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); }
body.woocommerce-cart td.product-price {
	grid-area: price;
	margin-block-start: var(--m-sp-1);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-small);
	line-height: var(--m-lh-ui);
}
body.woocommerce-cart td.product-quantity { grid-area: qty; justify-self: start; margin-block-start: var(--m-sp-3); }
/* The line's total stands at the row's end and may reach back over the free
   end of the stepper's cell: the margin takes it out of the sizing of the
   last column, which is the bin's and stays one touch wide. */
body.woocommerce-cart td.product-subtotal {
	grid-area: subtotal;
	align-self: center;
	justify-self: end;
	margin-block-start: var(--m-sp-3);
	margin-inline-start: calc(var(--m-sp-13) * -1);
	color: var(--m-price-ink);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-strong);
	white-space: nowrap;
}
/* The bin: a 44px box whose glyph sits on the row's own edge. */
body.woocommerce-cart td.product-remove { grid-area: remove; }
body.woocommerce-cart a.remove {
	display: grid;
	place-items: center;
	width: var(--m-touch);
	height: var(--m-touch);
	margin-block-start: calc(var(--m-sp-2) * -1);
	margin-inline-end: calc(var(--m-sp-3) * -1);
	border-radius: var(--m-r-control);
	color: var(--m-c-ink-2);
	transition: background-color var(--m-dur-press) var(--m-ease), color var(--m-dur-press) var(--m-ease);
}
body.woocommerce-cart a.remove:active { background-color: var(--m-danger-soft); color: var(--m-danger); }
/* The mirrored quantity (2.1): the number she reads is the <b>, laid over a
   field whose own digits show only while she types in it. */
body.woocommerce-cart td.has-mirror .quantity, body.woocommerce-cart td.has-mirror b { grid-area: 1 / 2; }
body.woocommerce-cart td.has-mirror b { pointer-events: none; }
body.woocommerce-cart td.has-mirror input { color: transparent; caret-color: var(--m-input-ink); }
body.woocommerce-cart td.has-mirror input:focus { color: inherit; }
body.woocommerce-cart td.has-mirror .quantity:focus-within + b { visibility: hidden; }
/* Without scripts the stepper's two buttons do nothing: they are drawn once
   ui.js has marked the page (html.m-ui), and until then the field stands
   alone, typed in, with the classic «تحديث السلة» under the lines. */
html:not(.m-ui) body.woocommerce-cart td.product-quantity .m-qty { grid-template-columns: auto; }
html:not(.m-ui) body.woocommerce-cart td.product-quantity .m-qty__btn { display: none; }
html:not(.m-ui) body.woocommerce-cart td.product-quantity .m-qty input { min-height: var(--m-touch); }
/* And the field shows what she typed: the mirrored digit is a script's to
   keep in step, so without one the field's own digit stands (a number field
   draws Western digits: the no-script fallback is the one exception to 2.1).
   A line sold one at a time has no field to type in, and keeps its mirror. */
html:not(.m-ui) body.woocommerce-cart td.has-mirror:not(.is-fixed) input { color: inherit; }
html:not(.m-ui) body.woocommerce-cart td.has-mirror:not(.is-fixed) b { display: none; }

/* The foot: the discount code, one field and one quiet button, and the
   classic update button, which shows only where no script has taken over. */
body.woocommerce-cart td.actions { display: grid; gap: var(--m-sp-3); }
body.woocommerce-cart .coupon, body.woocommerce-checkout form.checkout_coupon { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--m-sp-2); }
.coupon-error-notice, .checkout-inline-error-message, .m-cophone-err {
	grid-column: 1 / -1;
	margin: 0;
	color: var(--m-danger);
	font-size: var(--m-fs-small);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-ui);
}
.m-woopage #coupon_code.has-error { border-color: var(--m-input-edge-error); }
.woocommerce-cart-form.is-live button[name="update_cart"] { display: none; }
/* WooCommerce's script keeps that button disabled until a quantity is typed: a
   button that cannot act is not shown. */
body.woocommerce-cart button[name="update_cart"]:disabled { display: none; }

/* The summary. */
body.woocommerce-cart .wc-proceed-to-checkout { margin-block-start: var(--m-sp-4); }

/* Empty: the .m-empty atom under a bag in a wash of the brand colour. */
.m-woopage__emptyicon {
	display: grid;
	place-items: center;
	inline-size: var(--m-sp-13);
	block-size: var(--m-sp-13);
	margin-block-end: var(--m-sp-3);
	border-radius: var(--m-r-panel);
	background-color: var(--m-primary-soft);
	color: var(--m-primary-ink);
}
.m-woopage__emptynote { color: var(--m-c-ink-2); font-size: var(--m-fs-small); }

/* ==========================================================================
   3. The checkout (3.4, audit R12, U11, U12). Four fields, each the whole
   width of its column, a label over each; the delivery fee answered under the
   governorate; then the summary, which holds how she pays and the one button.
   ========================================================================== */
/* Cash on delivery, said once, calmly: a line, never a capsule. */
.m-checkout-reassure {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--m-sp-2);
	margin: 0 0 var(--m-gap-group);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
}
.m-woopage .m-title + .m-checkout-reassure { margin-block-start: calc(var(--m-sp-3) - var(--m-gap-group)); }
.m-checkout-reassure__icon { display: grid; place-items: center; block-size: calc(var(--m-fs-ui) * var(--m-lh-ui)); color: var(--m-primary-ink); }
/* WooCommerce's own way in to a discount code: a sentence, not a banner. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	display: block;
	margin: 0 0 var(--m-gap-group);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--m-c-ink-2);
}
/* Its link is a finger's, in the same way as a cart line's name. */
body.woocommerce-checkout .woocommerce-form-coupon-toggle a { display: inline-block; min-height: var(--m-touch); padding-block: var(--m-sp-3); margin-block: calc(var(--m-sp-3) * -1); color: var(--m-c-link); }
body.woocommerce-checkout form.checkout_coupon { margin: calc(var(--m-sp-3) - var(--m-gap-group)) 0 var(--m-gap-group); }
body.woocommerce-checkout form.checkout_coupon p { margin: 0; }
body.woocommerce-checkout form.checkout_coupon .clear { display: none; }

.m-cofm__h { margin-block-start: var(--m-gap-group); }
.woocommerce-billing-fields > .m-cofm__h { margin-block-start: 0; }
/* The four fields' wrapper ends where its last field does: the rows' own
   spacing is given back at its foot by an empty last line (the hidden
   country field is its last child, so no :last-child names the last row),
   inside a formatting context of its own, so a skin that draws no box keeps
   the space under it. */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: flow-root; margin-block-end: var(--m-sp-5); }
.woocommerce-billing-fields__field-wrapper::after { content: ""; display: block; margin-block-start: calc(var(--m-sp-5) * -1); }

/* A field: its label, then base.css's one input. */
body.woocommerce-checkout .form-row, body.woocommerce-account .form-row { display: grid; gap: var(--m-label-gap); margin: 0 0 var(--m-sp-5); }
body.woocommerce-checkout .form-row label, body.woocommerce-account .form-row label { color: var(--m-c-ink); line-height: var(--m-lh-control); }
/* Every field of this form is required, so none is marked: the one that is
   not says «اختياري». */
body.woocommerce-checkout .form-row .required, body.woocommerce-account .form-row .required { display: none; }
body.woocommerce-checkout .woocommerce-input-wrapper { display: block; }
/* The phone is typed left to right in a field that starts where its
   neighbours start. */
html[dir="rtl"] body.woocommerce-checkout #billing_phone, html[dir="rtl"] .m-track input[dir="ltr"] { text-align: end; }
/* A field that was refused: the danger edge, and the reason under it. */
body.woocommerce-checkout .form-row.woocommerce-invalid input, body.woocommerce-checkout .form-row.woocommerce-invalid select, body.woocommerce-checkout .form-row.woocommerce-invalid textarea, body.woocommerce-checkout .form-row.m-invalid input { border-color: var(--m-input-edge-error); }
.m-cophone-err { margin-block-start: calc(var(--m-label-gap) - var(--m-sp-5)); margin-block-end: var(--m-sp-5); }
/* What delivery costs, answered under the governorate. A hint until she has
   chosen; then a confirmation, in a wash of the brand colour. */
.m-codelivery {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: calc(var(--m-sp-2) - var(--m-sp-5)) 0 var(--m-sp-5);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-small);
	line-height: var(--m-lh-ui);
}
.m-codelivery__icon { display: none; }
.m-codelivery.is-set {
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--m-sp-2);
	padding: var(--m-sp-3);
	border-radius: var(--m-r-box);
	background-color: var(--m-primary-soft);
	color: var(--m-ink);
	font-weight: var(--m-fw-strong);
}
.m-codelivery.is-set .m-codelivery__icon { display: grid; place-items: center; block-size: calc(var(--m-fs-small) * var(--m-lh-ui)); color: var(--m-primary-ink); transform: scaleX(var(--m-dir)); }
/* The wait: one sentence with the fee, on its own line under it on a phone
   and beside it from 600. Never a line that ends inside «١–٢ يوم». */
.m-codelivery__sep { display: none; }
.m-codelivery__eta { display: block; font-weight: var(--m-fw-body); }
.m-conote { margin: calc(var(--m-sp-2) - var(--m-sp-5)) 0 var(--m-sp-5); color: var(--m-c-ink-2); font-size: var(--m-fs-small); }
/* The note, behind a disclosure: it never costs one of the four rows. */
.m-conote-toggle__sum {
	display: inline-grid;
	align-items: center;
	min-height: var(--m-touch);
	color: var(--m-c-link);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-strong);
	text-decoration: underline;
	text-underline-offset: .22em;
	cursor: pointer;
}
.m-conote-toggle[open] .m-conote-toggle__sum { margin-block-end: var(--m-sp-2); }
.m-conote-toggle .optional { display: none; }

/* What went wrong, as one panel above the form (components.css draws it):
   plain sentences, each a way to its field, none shouting. */
body.woocommerce-checkout .woocommerce-NoticeGroup .woocommerce-error { margin-block-end: var(--m-gap-group); }
body.woocommerce-checkout .woocommerce-error a { font-weight: var(--m-fw-body); text-decoration: none; }

/* The summary: the lines, the sums, how she pays, the button. One panel. */
body.woocommerce-checkout #order_review { margin-block-end: 0; }
/* A line of the summary: the photograph beside the name, which keeps the whole
   row and two lines at most, what she chose, how many on a line of its own,
   and what the line comes to under them. Beside the name, the sum left the
   name a ribbon of four to seven lines in a phone's width and in the
   summary's column. One wide column (600 to 899) puts the sum back at the end. */
.m-cosum tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "thumb name" "thumb total"; align-items: start; gap: var(--m-sp-1) var(--m-sp-3); padding: var(--m-sp-2) 0; }
.m-cosum td.product-thumbnail { grid-area: thumb; inline-size: var(--m-sp-10); block-size: var(--m-sp-10); }
.m-cosum td.product-name { grid-area: name; min-width: 0; font-size: var(--m-fs-ui); font-weight: var(--m-fw-ui); line-height: var(--m-lh-ui); }
.m-cosum__name { display: block; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-cosum__option { display: block; color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
.m-cosum .product-quantity { display: block; color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-weight: var(--m-fw-small); white-space: nowrap; }
.m-cosum td.product-total { grid-area: total; font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); white-space: nowrap; }
.m-cosum tfoot { margin-block-start: var(--m-sp-3); padding-block-start: var(--m-sp-3); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }

/* How she pays. One gateway is a statement, not a choice: the radio stays in
   the page (WooCommerce refuses an order with no payment_method) unseen. */
#payment { margin-block-start: var(--m-sp-4); padding-block-start: var(--m-sp-4); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
#payment .wc_payment_methods { display: grid; gap: var(--m-sp-3); margin: 0 0 var(--m-sp-4); padding: 0; list-style: none; }
#payment .wc_payment_method label { font-size: var(--m-fs-ui); font-weight: var(--m-fw-strong); }
#payment .wc_payment_method > input[type=radio] { margin: 0; margin-inline-end: var(--m-sp-2); accent-color: var(--m-primary); }
.wc_payment_methods--single .wc_payment_method > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
#payment .payment_box { color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
#payment .payment_box p, .m-woopage .woocommerce-privacy-policy-text p { margin: 0; }
.m-copay__none { margin: 0; }
#payment .place-order { gap: var(--m-sp-3); margin: 0; }
.m-woopage .woocommerce-privacy-policy-text { color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
.m-woopage .woocommerce-privacy-policy-text a { color: inherit; }
#place_order { display: grid; width: 100%; min-height: var(--m-btn-h-lg); }
/* In a design preview the button is disabled in its markup and the order is
   refused by the server; it is also inert here, for a preview whose scripts
   did not run (13.4.4). */
.is-preview #place_order { pointer-events: none; }
/* In flight: WooCommerce marks the form, and the button says so. */
form.checkout.processing #place_order { opacity: .7; cursor: progress; }
form.checkout.processing #place_order::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-block-start-color: transparent;
	border-radius: var(--m-r-round);
	animation: m-spin var(--m-dur-emph) linear infinite;
}

/* ==========================================================================
   4. The thank-you page: a mark, one sentence, the WhatsApp confirm, a compact
   summary. The mark is a primary context (PHP prints the class): it paints
   the current layer, so its tick is whatever the store's primary carries.
   ========================================================================== */
.m-thanks { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.m-thanks__mark {
	display: grid;
	place-items: center;
	width: var(--m-sp-12);
	height: var(--m-sp-12);
	margin-block: var(--m-sp-4) var(--m-sp-6);
	border-radius: var(--m-r-round);
	background-color: var(--m-c-bg);
	box-shadow: 0 0 0 8px var(--m-primary-soft);
	animation: m-emph-soft var(--m-dur-emph) var(--m-ease-emph);
}
.m-thanks__title { margin: 0 0 var(--m-sp-2); }
.m-thanks__number { margin: 0 0 var(--m-sp-4); color: var(--m-c-ink-2); font-size: var(--m-fs-ui); }
.m-thanks__number strong { color: var(--m-c-ink); font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); }
.m-thanks__expect { max-width: 34ch; margin: 0 0 var(--m-sp-6); font-size: var(--m-fs-body); line-height: var(--m-lh-body); }
.m-thanks__wa { margin-block-end: var(--m-sp-7); }
.m-thanks__card { justify-self: stretch; margin-block-end: var(--m-sp-6); text-align: start; }
.m-thanks__items { margin: 0 0 var(--m-sp-5); padding: 0; list-style: none; }
.m-thanks__items li.is-fee, .m-thanks__qty, .m-thanks__meta { color: var(--m-c-ink-2); }
.m-thanks__items li.is-fee b, .m-thanks__qty { font-weight: var(--m-fw-body); }
/* A line of the order: the name, what she chose and how many, each on its own
   line; a free delivery and a code she applied in the success colour. */
.m-thanks__name, .m-thanks__meta, .m-thanks__qty { display: block; }
.m-thanks__meta, .m-thanks__qty { font-size: var(--m-fs-small); }
/* WooCommerce wraps each chosen value in a paragraph: one line, «اللون: أسود، المقاس: ٣٨». */
.m-thanks__meta p { display: inline; margin: 0; }
.m-thanks__items li.is-free b, .m-thanks__items li.is-discount b { color: var(--m-success); font-weight: var(--m-fw-strong); }
.m-thanks__addr { margin: 0; font-size: var(--m-fs-ui); line-height: var(--m-lh-ui); }
.m-thanks__eta { margin: var(--m-sp-1) 0 0; color: var(--m-c-ink-2); font-size: var(--m-fs-small); }
.m-thanks__failed { margin: 0; padding-block: var(--m-sp-8) var(--m-sp-5); font-weight: var(--m-fw-strong); }

/* ==========================================================================
   5. The account. Signed out: where an order is, then the way in, one card.
   Signed in: a row of tabs, then her orders, a list on a phone and a table
   from 600, or one order.
   ========================================================================== */
.m-account { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-gap-group); }
.m-account__nav ul { display: flex; gap: var(--m-sp-5); margin: 0; padding: 0; border-block-end: var(--m-bw-hair) solid var(--m-c-line); list-style: none; }
.m-account__nav a {
	display: grid;
	align-items: center;
	min-height: var(--m-touch);
	margin-block-end: calc(var(--m-bw-hair) * -1);
	border-block-end: var(--m-bw-strong) solid transparent;
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-ui);
	font-weight: var(--m-fw-ui);
	line-height: var(--m-lh-control);
	text-decoration: none;
}
.m-account__nav .is-active a { border-block-end-color: var(--m-c-ink); color: var(--m-c-ink); font-weight: var(--m-fw-strong); }
/* The way out stands at the row's end, apart from the places. */
.m-account__nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-inline-start: auto; }
.m-account__body { min-width: 0; }
.m-account__hello { display: grid; justify-items: start; gap: var(--m-sp-3); margin-block-end: var(--m-gap-group); }
.m-account__hello p { margin: 0; color: var(--m-c-ink-2); }
.m-account__hello .m-account__greet { color: var(--m-c-ink); font-family: var(--m-font-heading); font-size: var(--m-fs-h2); font-weight: var(--m-fw-heading); line-height: var(--m-lh-heading); }

/* Her orders. On a phone each is two lines: the number and where it stands,
   then the day and the sum. */
.m-orders { margin: 0; padding: 0; border-block-start: var(--m-bw-hair) solid var(--m-c-line); list-style: none; }
.m-orders__head { display: none; }
.m-orders__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "id state" "date total";
	align-items: center;
	gap: var(--m-sp-1) var(--m-sp-3);
	min-height: var(--m-touch);
	padding-block: var(--m-sp-4);
	border-block-end: var(--m-bw-hair) solid var(--m-c-line);
	color: var(--m-c-ink);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
	text-decoration: none;
}
.m-orders__link:active { opacity: .7; }
.m-orders__id { grid-area: id; font-weight: var(--m-fw-strong); font-variant-numeric: var(--m-fvn); }
.m-orders__date { grid-area: date; color: var(--m-c-ink-2); font-size: var(--m-fs-small); }
.m-orders__total { grid-area: total; justify-self: end; font-weight: var(--m-fw-strong); white-space: nowrap; }
/* Where an order stands: a chip, and always a word. Quiet until it means
   something: on its way is the brand's, delivered is the success family,
   stopped is the danger one. */
.m-orders__state {
	display: inline-grid;
	grid-area: state;
	place-items: center;
	justify-self: end;
	min-height: var(--m-badge-h);
	margin: 0;
	padding-inline: var(--m-sp-3);
	border-radius: var(--m-r-badge);
	background-color: var(--m-surface-3);
	color: var(--m-ink);
	font-size: var(--m-fs-micro);
	font-weight: var(--m-fw-strong);
	line-height: var(--m-lh-control);
	white-space: nowrap;
}
.m-orders__state--confirmed, .m-orders__state--processing, .m-orders__state--dispatched { background-color: var(--m-primary-soft); color: var(--m-primary-ink); }
.m-orders__state--completed { background-color: var(--m-success-soft); color: var(--m-success); }
.m-orders__state--no-answer, .m-orders__state--on-hold { background-color: var(--m-warning-soft); color: var(--m-warning); }
.m-orders__state--cancelled, .m-orders__state--failed, .m-orders__state--refunded, .m-orders__state--returned { background-color: var(--m-danger-soft); color: var(--m-danger); }
.m-orders__pager { display: flex; gap: var(--m-sp-3); margin-block-start: var(--m-sp-5); }

/* One order: its number, the day, where it stands; then WooCommerce's own
   lines and sums as a summary, and where it goes. */
.m-vieworder { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--m-sp-2) var(--m-sp-4); margin-block-end: var(--m-gap-group); }
.m-vieworder__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--m-sp-1) var(--m-sp-3); margin: 0; }
.m-vieworder__id { font-family: var(--m-font-num); font-size: var(--m-fs-h3); font-weight: var(--m-fw-num); font-variant-numeric: var(--m-fvn); line-height: var(--m-lh-control); }
.m-vieworder__date { color: var(--m-c-ink-2); font-size: var(--m-fs-small); }
.woocommerce-order-details { margin-block-end: var(--m-gap-group); }
.woocommerce-table--order-details thead { display: none; }
.woocommerce-table--order-details tfoot { margin-block-start: var(--m-sp-3); padding-block-start: var(--m-sp-3); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
.woocommerce-table--order-details a { color: var(--m-c-ink); text-decoration: none; }
.woocommerce-table--order-details .product-quantity { color: var(--m-c-ink-2); font-weight: var(--m-fw-small); }
.woocommerce-table--order-details .button { margin-inline-start: var(--m-sp-2); }
.woocommerce-customer-details address { font-size: var(--m-fs-ui); font-style: normal; line-height: var(--m-lh-body); }
.woocommerce-customer-details address p { margin: 0; color: var(--m-c-ink-2); }

/* The way in: sign in and, where the store allows it, a new account, as the
   two halves of one card. */
.m-login { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-gap-group); }
.m-login__card + .m-login__card { padding-block-start: var(--m-gap-group); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
.m-login__note { margin: calc(var(--m-sp-2) * -1) 0 var(--m-sp-4); color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
.m-login__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--m-sp-4); margin: 0 0 var(--m-sp-3); }
.m-login__lost { display: inline-grid; align-items: center; min-height: var(--m-touch); color: var(--m-c-link); font-size: var(--m-fs-small); font-weight: var(--m-fw-strong); }
.m-login .woocommerce-privacy-policy-text { margin-block-end: var(--m-sp-4); }
/* The control WooCommerce's script puts beside a password: an eye inside the
   field's own end, one touch wide (audit U14). It is an empty button; the eye
   is a mask painted with the field's ink, and struck through while shown. */
.password-input { position: relative; display: block; }
.password-input input { padding-inline-end: var(--m-sp-9); }
.show-password-input {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: grid;
	place-items: center;
	width: var(--m-sp-9);
	min-height: var(--m-touch);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--m-ink-2);
	cursor: pointer;
}
.show-password-input::after {
	content: "";
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.show-password-input.display-password::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4.5 4.5l15 15'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4.5 4.5l15 15'/%3E%3C/svg%3E");
}
/* The two password forms are WooCommerce's own markup, dressed here. */
.woocommerce-ResetPassword > p:first-child { margin: 0 0 var(--m-sp-5); color: var(--m-c-ink-2); }
.woocommerce-ResetPassword .clear { display: none; }

/* ==========================================================================
   6. Where an order is. The question, two fields and a button; then the
   answer: what the order was, and its steps down a line, done, now, to come.
   ========================================================================== */
.m-track { margin-block-end: var(--m-gap-group); }
.m-track__title { margin-block-end: var(--m-sp-1); }
.m-track__sub { margin: 0 0 var(--m-sp-4); color: var(--m-c-ink-2); font-size: var(--m-fs-small); line-height: var(--m-lh-ui); }
.m-track__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--m-sp-2); }
.m-track__err { margin: var(--m-sp-3) 0 0; color: var(--m-danger); font-size: var(--m-fs-small); font-weight: var(--m-fw-strong); }
.m-track__result { margin-block-start: var(--m-sp-5); padding-block-start: var(--m-sp-5); border-block-start: var(--m-bw-hair) solid var(--m-c-line); }
.m-track__meta { margin: 0 0 var(--m-sp-3); color: var(--m-c-ink-2); font-size: var(--m-fs-small); font-variant-numeric: var(--m-fvn); }
.m-track__notice { margin: var(--m-sp-3) 0 0; padding: var(--m-sp-3) var(--m-sp-4); border-radius: var(--m-r-box); background-color: var(--m-warning-soft); color: var(--m-ink); font-size: var(--m-fs-small); }
.m-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.m-steps li {
	position: relative;
	padding-block: var(--m-sp-2);
	padding-inline-start: var(--m-sp-7);
	color: var(--m-c-ink-2);
	font-size: var(--m-fs-ui);
	line-height: var(--m-lh-ui);
}
/* The dot, and the line to the next one. */
.m-steps li::before {
	content: "";
	position: absolute;
	inset-block-start: calc(var(--m-sp-2) + (var(--m-fs-ui) * var(--m-lh-ui) - 12px) / 2);
	inset-inline-start: 2px;
	width: 12px;
	height: 12px;
	border: var(--m-bw-strong) solid var(--m-c-line-strong);
	border-radius: var(--m-r-round);
	background-color: var(--m-surface-1);
}
.m-steps li::after {
	content: "";
	position: absolute;
	inset-block: calc(var(--m-sp-2) + (var(--m-fs-ui) * var(--m-lh-ui) + 12px) / 2) calc((var(--m-sp-2) + (var(--m-fs-ui) * var(--m-lh-ui) - 12px) / 2) * -1);
	inset-inline-start: 7px;
	width: var(--m-bw-strong);
	background-color: var(--m-c-line);
}
.m-steps li:last-child::after { display: none; }
.m-steps li.is-done { color: var(--m-c-ink); }
.m-steps li.is-done::before { border-color: var(--m-c-fill-edge); background-color: var(--m-c-fill); }
.m-steps li.is-done::after { background-color: var(--m-primary-ink); }
.m-steps li.is-now { color: var(--m-c-ink); font-weight: var(--m-fw-strong); }
.m-steps li.is-now::before { border-color: var(--m-primary-ink); box-shadow: 0 0 0 4px var(--m-primary-soft); }

/* ==========================================================================
   7. From 600: fields beside each other where they are short, and her orders
   as a table.
   ========================================================================== */
@media (min-width: 600px) {
	.m-woopage { padding-block-start: var(--m-sp-8); }
	/* One wide column: the line's sum back at its end. */
	.m-cosum tbody tr { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "thumb name total"; align-items: center; }
	.m-woopage .woocommerce-info, .m-woopage .woocommerce-message { grid-template-columns: minmax(0, 1fr) auto; }
	.m-woopage .woocommerce-info > .button, .m-woopage .woocommerce-message > .button { grid-column: 2; grid-row: 1; }
	.m-codelivery__sep { display: inline; }
	.m-codelivery__eta { display: inline-block; }
	.m-track__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
	.m-orders { border-block-start: 0; }
	.m-orders__head, .m-orders__link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "id date state total"; column-gap: var(--m-sp-4); }
	.m-orders__head {
		padding-block-end: var(--m-sp-3);
		border-block-end: var(--m-bw-strong) var(--m-bs-rule) var(--m-c-ink);
		color: var(--m-c-ink-2);
		font-size: var(--m-fs-small);
		font-weight: var(--m-fw-strong);
		letter-spacing: var(--m-ls-caps);
		text-transform: var(--m-tt-caps);
	}
	.m-orders__head > :last-child { text-align: end; }
	.m-orders__date { font-size: var(--m-fs-ui); }
	.m-orders__state { justify-self: start; }
}

/* ==========================================================================
   8. From 900: the cart and the checkout are two columns. The summary keeps
   its width and stays in view under the header; nothing is fixed to the
   bottom any more. The checkout's two headings stand on one line, and every
   field is the whole width of its column (audit R12).
   ========================================================================== */
@media (min-width: 900px) {
	.tpl-cart .m-woopage, .tpl-checkout .m-woopage { max-width: calc(var(--m-container-narrow) + var(--m-summary-w) + 2 * var(--m-gutter)); }
	/* The summary is a column again: the sum under the name. */
	.m-cosum tbody tr { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "thumb name" "thumb total"; align-items: start; }

	body.woocommerce-cart .m-woopage .woocommerce { grid-template-columns: minmax(0, 1fr) var(--m-summary-w); column-gap: var(--m-sp-8); align-items: start; }
	body.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
	body.woocommerce-cart .cart-collaterals { grid-column: 2; position: sticky; top: var(--m-header-clear); }
	body.woocommerce-cart .coupon { max-width: var(--m-summary-w); }

	body.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--m-summary-w);
		grid-template-rows: auto auto 1fr;
		grid-template-areas: "notices notices" "details heading" "details review";
		column-gap: var(--m-sp-8);
		align-items: start;
	}
	/* WooCommerce prepends what went wrong to the form: every named area is
	   taken, so it has one of its own, above both columns. */
	body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-area: notices; }
	body.woocommerce-checkout #customer_details { grid-area: details; max-width: var(--m-container-form); }
	body.woocommerce-checkout #order_review_heading { grid-area: heading; margin-block-start: 0; }
	body.woocommerce-checkout #order_review { grid-area: review; position: sticky; top: var(--m-header-clear); }
}

/* ==========================================================================
   9. From 1200: a line of the cart is one row, its columns the same on every
   line, so the eye runs down the quantities and down the sums.
   ========================================================================== */
@media (min-width: 1200px) {
	/* The cart's lines take their room beside the summary: on the reading
	   column's width the name had the narrowest track of the row (design:S9). */
	.tpl-cart .m-woopage { max-width: calc(var(--m-container-narrow) + var(--m-summary-w) + var(--m-sp-14) + 2 * var(--m-gutter)); }
	body.woocommerce-cart .woocommerce-cart-form thead tr,
	body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
		grid-template-columns: var(--m-sp-12) minmax(0, 1fr) calc(2 * var(--m-touch) + var(--m-sp-9) + 2 * var(--m-input-bw)) calc(var(--m-sp-13) + var(--m-sp-3)) var(--m-touch);
		grid-template-rows: auto auto;
		grid-template-areas: "thumb name qty subtotal remove" "thumb price qty subtotal remove";
		column-gap: var(--m-sp-4);
	}
	body.woocommerce-cart td.product-name { align-self: end; padding-block-start: 0; }
	body.woocommerce-cart td.product-quantity, body.woocommerce-cart td.product-subtotal { align-self: center; margin-block-start: 0; margin-inline-start: 0; }
	body.woocommerce-cart td.product-remove { align-self: center; }
	body.woocommerce-cart a.remove { margin-block-start: 0; }
}

@media (hover: hover) and (pointer: fine) {
	.m-woopage .button:not(.m-btn):hover { background-color: var(--m-btn2-bg-hover); }
	.woocommerce-ResetPassword .button:not(.m-btn):hover { background-color: var(--m-btn-bg-hover); }
	body.woocommerce-cart a.remove:hover { background-color: var(--m-danger-soft); color: var(--m-danger); }
	body.woocommerce-cart td.product-name a:hover, .woocommerce-table--order-details a:hover, .m-account__nav a:hover { color: var(--m-c-link); }
	.m-orders__link:hover .m-orders__id { color: var(--m-c-link); }
	.show-password-input:hover { color: var(--m-ink); }
}

/* ==========================================================================
   10. The skins (4.10): what is above is `card`; ledger, receipt and compact
   are option files of their own (opt/commerce-<id>.css).
   ========================================================================== */
