/*
 * Routes: cart, checkout, order received.
 *
 * WooCommerce ships these three as tables and a stack of divs with its own
 * class names. The templates in woocommerce/ replace that markup wholesale
 * rather than trying to restyle it, because the design is not a skin over a
 * table — the cart is a list of cards and the checkout is a two-column form
 * with a decision in the middle of it. Where a Woo class name still appears in
 * a selector below, it is because Woo prints that element itself and the
 * template has no say.
 *
 * Frame width in the mock is 1280 with a 1160 content box; order received is
 * narrower at 920 because it is a confirmation, not a workspace.
 */

.as-main.as-route-cart,
.as-main.as-route-checkout,
.as-main.as-route-thanks,
.as-main.as-route-account { max-width: none; padding-inline: 0; }

/* 1160 including its 16px padding, which is the mock's own box. */
.as-co__wrap { max-width: var(--page-max); margin-inline: auto; padding: 48px var(--gutter) 64px; }
.as-route-thanks .as-co__wrap { max-width: 920px; padding-top: 56px; }

/* ── Page head ───────────────────────────────────────────────────────────── */
.as-co__head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: var(--space-4); flex-wrap: wrap; margin-bottom: 22px;
}
.as-co__title { margin: 0; font-size: var(--text-stat); font-weight: 700; letter-spacing: -0.02em; }
/* Sits on its own line above the title now, not across the head from it. */
.as-co__back { display: inline-block; font-size: var(--text-sm); font-weight: 700; margin-bottom: 10px; }

/* ── Two columns ─────────────────────────────────────────────────────────── */
.as-co__cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-7); align-items: start; }
.as-route-checkout .as-co__cols { grid-template-columns: minmax(0, 1fr) 420px; }

/* ── Notices ─────────────────────────────────────────────────────────────── */
/* Woo prints its own notice markup; this is the tinted strip the mock draws. */
.as-co__notice,
.as-route-cart .woocommerce-message,
.as-route-checkout .woocommerce-message,
.as-route-cart .woocommerce-info,
.as-route-checkout .woocommerce-info {
	display: flex; align-items: center; gap: var(--space-3);
	margin: 0 0 22px; padding: 14px 20px;
	border: 0; border-radius: var(--radius-md);
	background: var(--color-surface-tint); color: var(--color-text);
	font-size: var(--text-sm); line-height: 1.5;
	list-style: none;
}

/*
 * Woo's notice carries a 3px coloured top border, and the parent theme adds the
 * other three. Named at the same weight as both rather than with !important.
 */
.as-route-cart ul.woocommerce-message,
.as-route-cart div.woocommerce-message,
.as-route-cart .woocommerce-message,
.as-route-checkout .woocommerce-message,
.as-route-cart .woocommerce-info,
.as-route-checkout .woocommerce-info { border: 0; box-shadow: none; }

.as-co__notice svg { color: var(--atomic-blue); flex: none; }
.as-co__notice a, .woocommerce-message a, .woocommerce-info a { font-weight: 700; }

/*
 * Woo's notices carry a "View cart" / "Checkout" button. On the cart page that
 * is a link to the page the customer is already reading, and the design has no
 * button in the strip at all.
 */
.as-route-cart .woocommerce-message .button,
.as-route-checkout .woocommerce-message .button { display: none; }

/* And its tick glyph, which is drawn as a ::before with its own font. */
.as-route-cart .woocommerce-message::before,
.as-route-checkout .woocommerce-message::before,
.as-route-cart .woocommerce-info::before,
.as-route-checkout .woocommerce-info::before {
	position: static; display: inline-block; margin: 0;
	color: var(--atomic-blue); font-size: var(--text-body); line-height: 1;
}

.as-route-cart .woocommerce-error,
.as-route-checkout .woocommerce-error {
	margin: 0 0 22px; padding: 14px 20px; list-style: none;
	border: 1.5px solid #f3c9c5; border-radius: var(--radius-md); background: #fdf3f2;
	font-size: var(--text-sm); color: #8a2018;
}

/* ── Cart: one card per line ─────────────────────────────────────────────── */
.as-cart__items { display: flex; flex-direction: column; gap: var(--space-4); }
.as-cart__item {
	display: flex; gap: var(--space-5); align-items: flex-start;
	padding: 22px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-cart__thumb {
	width: 110px; height: 110px; flex: none; overflow: hidden;
	display: grid; place-items: center;
	border: 1.5px solid var(--color-border-soft); border-radius: var(--radius-md);
	background: var(--color-surface-alt);
}
.as-cart__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-cart__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; }
.as-cart__line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.as-cart__name { font-weight: 700; font-size: var(--text-body); }
.as-cart__name a { color: inherit; }
.as-cart__price { font-weight: 800; font-size: var(--text-body); white-space: nowrap; }

/*
 * What a reordered line used to cost.
 *
 * Sits under the price it replaced, in the same cell, because the two figures
 * only mean anything next to each other. Muted and light so the number the
 * customer is actually being charged stays the one that reads first — and
 * unstyled beyond that, because this is a statement of fact, not a saving:
 * dressing it as a discount would advertise a price that is no longer on offer.
 *
 * The price cell is nowrap for the figure itself; the reason wraps, so it gets
 * its own line and a width to wrap inside.
 */
.asp-cart__was {
	display: block; margin-top: 3px;
	font-weight: 600; font-size: var(--text-xs); line-height: 1.35;
	color: var(--color-text-muted); white-space: normal;
}
.asp-cart__was s { font-weight: 700; }
.asp-cart__why { display: block; max-width: 26ch; margin-left: auto; font-weight: 500; }
.as-cart__line .as-cart__price { text-align: right; }

.as-cart__meta { display: flex; gap: var(--space-1-5); flex-wrap: wrap; }
.as-cart__chip {
	padding: 5px 11px; border-radius: var(--radius-pill);
	background: var(--color-surface-tint); color: var(--color-text);
	font-size: var(--text-label); font-weight: 600;
}
/*
 * The quantity, leading the row.
 *
 * Grey rather than the blue tint the others wear, and heavier: the blue chips
 * are qualifiers — what size, which finish, how fast — and this is the thing
 * they qualify. Same pill, same row, different job, so it reads first without
 * a second colour being introduced to say so.
 */
.as-cart__chip--qty {
	background: var(--color-surface-alt);
	border: 1px solid var(--color-border-soft);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/*
 * A split's designs, stacked.
 *
 * Vertical because the customer is checking five separate decisions and a
 * horizontal run makes them parse one sentence to do it. Filename on its own
 * line at full weight — it is the label they chose and the thing they scan
 * for; quantity and the rest muted underneath, because those are confirmed
 * once the right file has been found.
 */
.as-cart__slots {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-1-5);
}
.as-cart__slot {
	display: flex;
	align-items: center;
	gap: var(--space-2-5);
	padding: 6px 9px;
	border-radius: var(--radius-sm);
	background: var(--color-surface-tint);
}
/* Flagged reads as a state, not an alarm — a person looking at it is the shop working. */
.as-cart__slot.is-flagged {
	background: #eff9fd;
	box-shadow: inset 2px 0 0 var(--atomic-blue);
}
.as-cart__slot-thumb,
.as-cart__slot-badge {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: var(--radius-xs);
}
.as-cart__slot-thumb {
	object-fit: cover;
	background: #fff;
}
.as-cart__slot-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	font-weight: 700;
}
.as-cart__slot-text { display: flex; flex-direction: column; gap: var(--space-0-5); min-width: 0; }
.as-cart__slot-name {
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-text);
	overflow-wrap: anywhere;
}
.as-cart__slot-meta { font-size: var(--text-label); color: var(--color-text-muted); line-height: 1.4; }

/*
 * The share, as a column of figures.
 *
 * margin-left:auto pins it to the right edge of every row, so the numbers line
 * up whatever the filename length — which is the whole point: the customer is
 * comparing "did the 60 go to the right design", and digits that start at a
 * different x on each row have to be read one at a time instead of scanned.
 *
 * tabular-nums keeps the columns true when the widths differ (× 8 above × 62),
 * and the extra weight earns its place because this is the one number on the
 * row they came to check.
 */
/* Staff-only shortcut to the production PDF — rendered only for
   manage_woocommerce, so it can be quiet but must look pressable. */
.as-cart__slot-pdf {
	margin-left: auto;
	flex: none;
	font-size: var(--text-label);
	font-weight: 800;
	letter-spacing: .04em;
	color: var(--atomic-blue, #1ab0e0);
	border: 1.5px solid currentColor;
	border-radius: var(--radius-pill);
	padding: 1px 8px;
	text-decoration: none;
}
.as-cart__slot-pdf:hover { background: #f0fafe; }
.as-cart__slot-pdf + .as-cart__slot-qty { margin-left: 10px; }

.as-cart__slot-qty {
	margin-left: auto;
	padding-left: 10px;
	flex: none;
	font-size: var(--text-sm);
	font-weight: 800;
	color: var(--color-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/*
 * What happens to this line before it prints.
 *
 * Not a chip: a chip is a short attribute and the eye reads a row of them as a
 * spec list, which is where a sentence about the next step goes to be ignored.
 * Set as running text at the same muted weight as the rest of the row's prose,
 * with the blue reserved for the state that is actually a decision.
 */
.as-cart__status {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	/*
	 * Room above, because this is a different KIND of statement from the rows
	 * it follows. Those describe what is in the order; this says what happens
	 * to it next, and running them together at the same rhythm reads as a
	 * fifth design.
	 */
	margin: 10px 0 0;
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1.45;
	color: var(--color-text);
}

/*
 * The mark, in a tinted disc.
 *
 * Blue rather than a success green: the same mark carries "checks passed", "a
 * person checks this" and "we email you a proof", and only the first is an
 * approval. A green tick on the other two would be read before the sentence
 * that contradicts it. The shape says which state; the colour just says this
 * line matters.
 */
.as-cart__status-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--color-surface-tint);
	color: var(--atomic-blue);
}

.as-cart__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: 6px; flex-wrap: wrap; }
/*
 * margin-left:auto, not the foot's space-between.
 *
 * A configured line used to put its quantity pill on the left of this row and
 * the actions on the right. The quantity is a chip now, so on those lines the
 * actions were the only child left and space-between dropped them to the left
 * edge. Pushing from the element keeps them right whether or not a stepper is
 * beside them.
 */
.as-cart__actions { display: flex; gap: var(--space-3-5); margin-left: auto; font-size: var(--text-xs); font-weight: 700; }
.as-cart__actions a { color: var(--atomic-blue); }
/*
 * Woo styles a.remove at 1.5em in a red circle, with !important on the colour,
 * for the little × in its own cart table. This link is a word in a row of
 * words, so it does not wear that class — see cart.php. The rules stay narrow
 * enough to win anyway if a plugin adds it back.
 */
.as-cart__actions .as-cart__remove,
.as-cart__actions a.as-cart__remove {
	color: var(--color-text-muted) !important;
	background: none; border: 0; padding: 0;
	font: inherit; font-size: var(--text-xs); font-weight: 700; line-height: inherit;
	width: auto; height: auto; text-align: left; border-radius: 0; cursor: pointer;
}
.as-cart__actions a.as-cart__remove:hover { color: #b3261e !important; background: none; }

/* Stepper: the product page's control, at cart size. */
.as-cart__qty {
	display: inline-flex; align-items: center; overflow: hidden;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
}
.as-cart__qty button {
	padding: 8px 15px; border: 0; background: none;
	font: inherit; font-weight: 700; color: var(--color-text-muted); cursor: pointer;
}
.as-cart__qty button:hover { background: var(--color-surface-alt); }
.as-cart__qty input {
	width: 74px; padding: 8px 6px; border: 0; background: none;
	font: inherit; font-weight: 700; font-size: var(--text-sm); text-align: center;
	-moz-appearance: textfield;
}
.as-cart__qty input::-webkit-outer-spin-button,
.as-cart__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Coupon row ──────────────────────────────────────────────────────────── */
.as-co__coupon { display: flex; align-items: center; gap: var(--space-2-5); margin-top: 16px; flex-wrap: wrap; }
/*
 * Height set, not padding. The cart's input said `font: inherit`, which pulls
 * the line-height in with it and computed 2px taller than the checkout's — the
 * button beside it then sat 2px short. Both inputs and both buttons are 45px
 * now and the arithmetic does not need repeating.
 */
.as-co__coupon input {
	flex: 0 0 220px; min-height: 45px; padding: 0 18px; box-sizing: border-box;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	background: var(--color-surface); font-family: inherit; font-size: var(--text-sm);
}
.as-co__coupon input::placeholder { color: var(--color-placeholder); }
/*
 * The blue pill, like Place order. It was outlined-dark, which read as the
 * secondary of the pair and made Apply look like the way out of the coupon row
 * rather than the way through it. Both coupon rows use this — the cart's and
 * the checkout's — because it is the same control on two pages and there is no
 * reason for it to change appearance between them.
 *
 * Not the full-width Place order treatment, though: this one sits beside its
 * input, so it keeps its own width and matches the field's height instead.
 * min-height rather than a padding figure reverse-engineered from the font
 * metrics — 12px of padding came out at 40px against the input's 45, and the
 * next person to change the font size would have to do that arithmetic again.
 */
.as-co__coupon button,
.woocommerce .as-route-checkout form.checkout_coupon button,
.as-route-checkout form.checkout_coupon button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 45px; padding: 0 24px; margin: 0;
	border: 0; border-radius: var(--radius-pill);
	background: var(--atomic-blue); color: var(--color-text-invert);
	font-family: inherit; font-size: var(--text-sm); font-weight: 700; line-height: 1.2;
	cursor: pointer;
}
.as-co__coupon button:hover,
.woocommerce .as-route-checkout form.checkout_coupon button:hover,
.as-route-checkout form.checkout_coupon button:hover { background: #159ac6; color: var(--color-text-invert); }
/* The way to the deals for whoever has no code — quiet next to the pill. */
.as-co__coupon-deals { font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
/* In the checkout chip row it is text beside pills; centre it against them. */
.as-co__chips .as-co__coupon-deals { align-self: center; }

/* ── Summary card ────────────────────────────────────────────────────────── */
.as-co__summary {
	display: flex; flex-direction: column; gap: var(--space-3);
	padding: 26px; border-radius: var(--radius-lg); background: var(--color-surface-alt);
}
.as-co__summary-title { margin: 0; font-weight: 700; font-size: var(--text-body-lg); }
.as-co__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.as-co__row > span:first-child { color: var(--color-text-muted); }
.as-co__row strong { font-weight: 700; }
.as-co__row--credit strong { color: var(--atomic-blue); }
.as-co__row--total {
	font-size: var(--text-body); padding-top: 12px;
	border-top: 1.5px solid var(--color-border-soft);
}
.as-co__row--total span:first-child, .as-co__row--total strong { font-weight: 700; color: var(--color-text); }
.as-co__go {
	margin-top: 4px;
	padding: 15px 0;
	font-size: var(--text-body);
}
.as-co__go:hover { background: #159ac6; color: var(--color-text-invert); }
.as-co__go[disabled] { opacity: .55; cursor: not-allowed; }
.as-co__promise { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; line-height: 1.55; }

/* ── Aside note ──────────────────────────────────────────────────────────── */
.as-co__aside {
	display: flex; gap: var(--space-3);
	padding: 16px 20px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
	font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.55;
}
.as-co__aside svg { color: var(--atomic-blue); flex: none; margin-top: 2px; }
.as-co__aside strong { color: var(--color-text); font-size: var(--text-sm); }

/* ── Checkout: the chips above the form ──────────────────────────────────── */
.as-co__chips { display: flex; gap: var(--space-2-5); flex-wrap: wrap; margin-bottom: 22px; }
.as-co__chip {
	display: flex; align-items: center; gap: var(--space-2-5);
	padding: 10px 20px; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	font-size: var(--text-sm);
}
.as-co__chip svg { color: var(--atomic-blue); flex: none; }
.as-co__chip a { font-weight: 700; }

/*
 * Woo prints <h3 id="order_review_heading">Your order</h3> above the review
 * panel, and the summary card inside it has the same title. Hidden rather than
 * removed, because form-checkout.php prints it directly — suppressing it would
 * mean overriding that whole template to delete one line.
 */
#order_review_heading { display: none; }

/*
 * The real shipping radios. Present, focusable by nothing, and read by
 * js/route-checkout.js, which draws the cards the customer clicks. Not
 * display:none — a hidden input is still submitted, and hiding the row this way
 * keeps Woo's own scripts able to measure it if they ever want to.
 */
.as-co__rates {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
	/* Out of the tab order: the faces in section 2 are what a keyboard reaches.
	   Still submitted, still read and checked by the script. */
	visibility: hidden;
}

.as-fulfil__waiting { margin: 0; font-size: var(--text-xs); color: var(--color-text-muted); }


/*
 * WooCommerce lays billing out as .col2-set with two floated columns and puts
 * order notes in the second one. The design is a single column of fields with
 * the pairs side by side, so the set is unset and Woo's own first/last classes
 * become the grid.
 */
.as-co__form .col2-set { display: contents; }
.as-co__form .col2-set .col-1,
.as-co__form .col2-set .col-2 { width: auto; float: none; display: flex; flex-direction: column; gap: var(--space-4-5); }
.as-co__form .woocommerce-billing-fields__field-wrapper,
.as-co__form .woocommerce-shipping-fields__field-wrapper,
.as-co__form .woocommerce-additional-fields__field-wrapper { display: flex; flex-direction: column; gap: var(--space-3-5); }

/*
 * ─── THE FIELDS ARE GRID CELLS, NOT FLOATS ───────────────────────────────────
 *
 * WooCommerce lays a checkout out with floats and percentage widths:
 *
 *     .woocommerce form .form-row-first,
 *     .woocommerce form .form-row-last  { width: 47%; float: left; }
 *
 * That selector is (0,2,1). `.as-co__form .form-row-first` is (0,2,0) and
 * loses, so every paired field sat at 47% of its grid cell — a 143px input in
 * a 303px column — while the wide ones filled correctly and made it look like
 * a deliberate, if baffling, design. Measured in the browser, not deduced:
 * 47% of 303.5 is 142.6, and the input measured 143.
 *
 * So the selectors below carry .woocommerce to match Woo's weight and add one
 * class to beat it. Same trick, one specificity point.
 *
 * A twelve-column grid because the mock's rows are not all halves: town,
 * province and postal share a line at roughly 1.2 / 1 / 0.8, which is 5 / 4 / 3.
 */
@media (min-width: 720px) {
	.woocommerce .as-co__form .woocommerce-billing-fields__field-wrapper,
	.woocommerce .as-co__form .woocommerce-shipping-fields__field-wrapper {
		display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-3-5);
	}

	.woocommerce .as-co__form .form-row,
	.woocommerce .as-co__form .form-row-first,
	.woocommerce .as-co__form .form-row-last,
	.woocommerce .as-co__form .form-row-wide {
		width: auto; float: none; margin: 0; padding: 0;
		grid-column: span 12;
	}

	.woocommerce .as-co__form .form-row-first,
	.woocommerce .as-co__form .form-row-last { grid-column: span 6; }

	/*
	 * Four across, not three. The design puts country on this row with the
	 * other three, so the 5/4/3 that filled twelve columns becomes 3/3/3/3.
	 * Shipping keeps 5/4/3 — its country sits on its own line and the row
	 * still has to add up to twelve.
	 */
	.woocommerce .as-co__form #billing_city_field,
	.woocommerce .as-co__form #billing_state_field,
	.woocommerce .as-co__form #billing_postcode_field,
	.woocommerce .as-co__form #billing_country_field { grid-column: span 3; }

	.woocommerce .as-co__form #shipping_city_field { grid-column: span 5; }
	.woocommerce .as-co__form #shipping_state_field { grid-column: span 4; }
	.woocommerce .as-co__form #shipping_postcode_field { grid-column: span 3; }
	.woocommerce .as-co__form #billing_phone_field { grid-column: span 6; }
	.woocommerce .as-co__form #billing_email_field { grid-column: span 6; }
}

/* Stacked below the breakpoint, and never at 47% of anything. */
.woocommerce .as-co__form .form-row-first,
.woocommerce .as-co__form .form-row-last { width: auto; float: none; margin: 0; }

.as-co__form h3 { margin: 0; font-weight: 700; font-size: var(--text-body-lg); }

/*
 * ─── CHECKBOX ROWS ARE NOT FIELD LABELS ──────────────────────────────────────
 *
 * .form-row label is uppercase 12/700 because that is what the design does to
 * the label above an input. Woo uses <label> for its checkboxes too, so the
 * same rule was shouting CREATE AN ACCOUNT? at the customer and setting "Ship
 * to a different address?" in heading weight — the reported difference in
 * style, and it came from one selector being too broad rather than from
 * anything being unstyled.
 *
 * Woo marks these labels for us: .woocommerce-form__label-for-checkbox. They
 * are sentence case, 13.5/600, with the box beside the words rather than
 * floating in the text — which also gets the whole row a hit target instead of
 * a 20px square.
 */
.woocommerce .as-co__form label.woocommerce-form__label-for-checkbox,
.woocommerce .as-co__form .form-row label.checkbox {
	display: flex; align-items: center; gap: var(--space-2-5);
	margin: 0; font-size: var(--text-sm); font-weight: 600; line-height: 1.4;
	letter-spacing: 0; text-transform: none; color: var(--color-text);
	cursor: pointer;
}
.woocommerce .as-co__form label.woocommerce-form__label-for-checkbox span { font-weight: 600; }

/* Ship-to is an h3 only because Woo needed somewhere to hang the toggle. */
.as-co__form h3#ship-to-different-address {
	margin: 0; font-size: var(--text-sm); font-weight: 600; display: flex; align-items: center;
}
.as-co__form h3#ship-to-different-address label { width: 100%; }

/*
 * ─── THE GAPS THAT WERE NOT THERE ────────────────────────────────────────────
 *
 * Both of these measured 0px in the browser while the stylesheet said 12 and 16,
 * and for the same reason: the space was set on a container the two cards are
 * not both children of.
 *
 * The ship-to toggle and the panel it reveals are siblings inside
 * .woocommerce-shipping-fields — Woo's div, which had no gap — so a margin on
 * the panel was the only thing holding them apart, and it collapsed.
 *
 * Flex gap rather than margins, because a gap cannot collapse and does not
 * depend on which of two adjacent boxes happens to own the space.
 */
.as-co__form .woocommerce-shipping-fields,
.as-co__form .woocommerce-additional-fields {
	display: flex; flex-direction: column; gap: var(--space-4);
	border-top: 1px solid var(--color-border-soft); padding-top: 16px;
}

/*
 * The revealed shipping block, per the mock: a blue-outlined panel that reads
 * as a place the order goes rather than more of the billing form.
 */
.as-co__form .shipping_address {
	margin-top: 12px; padding: 18px 20px;
	border: 1.5px solid rgba(26, 176, 224, .4); border-radius: var(--radius-md);
	background: #f8fdff;
}
.as-co__form .shipping_address::before {
	content: "Shipping address";
	display: block;
	margin-bottom: 14px;
	color: var(--atomic-blue);
}
.woocommerce .as-co__form .shipping_address input.input-text,
.woocommerce .as-co__form .shipping_address .select2-selection--single { background: var(--color-surface); }
.as-co__form .shipping_address::after {
	content: "Billing stays as entered above — this is only where the order ships.";
	display: block; margin-top: 12px;
	font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted);
}

/*
 * ─── THE CHECKOUT'S COUPON FORM ──────────────────────────────────────────────
 *
 * The cart's coupon row is .as-co__coupon, which this file styles. The
 * checkout's is Woo's own form.checkout_coupon, revealed by the "Enter your
 * code" chip — different markup entirely, and it was arriving with Woo's 5px
 * corners and grey button beside a page of 12px radii and blue pills.
 */
/* Unboxed — the full-width bordered card around a lone field read as a whole
 * section rather than the small reveal it is (Dennis, 2026-09-06). */
.as-route-checkout form.checkout_coupon {
	display: flex; align-items: center; gap: var(--space-2-5); flex-wrap: wrap;
	margin: 0 0 22px; padding: 0;
	border: 0; background: none;
}
.as-route-checkout form.checkout_coupon p { margin: 0; }
.as-route-checkout form.checkout_coupon .form-row { margin: 0; padding: 0; width: auto; }
.woocommerce .as-route-checkout form.checkout_coupon input.input-text,
.as-route-checkout form.checkout_coupon input[type="text"] {
	width: 220px; min-height: 45px; padding: 0 18px; box-sizing: border-box;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	background: var(--color-surface); font-family: inherit; font-size: var(--text-sm);
}
.as-route-checkout form.checkout_coupon input::placeholder { color: var(--color-placeholder); }

/* ── Checkout form card ──────────────────────────────────────────────────── */
.as-co__form {
	padding: 28px;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-lg);
}
.as-co__section-title { margin: 0; font-weight: 700; font-size: var(--text-body-lg); }

/* Woo prints the field wrappers, so these selectors have to name its classes. */
.as-co__form .form-row { display: flex; flex-direction: column; gap: var(--space-1-5); margin: 0; padding: 0; }
.as-co__form .form-row label {
	font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted);
	text-transform: uppercase; letter-spacing: .02em;
}
.as-co__form .form-row label .required { color: var(--color-text-muted); text-decoration: none; }
.as-co__form .form-row .optional { font-weight: 500; color: var(--color-placeholder); text-transform: uppercase; }

/*
 * ─── THE FIELDS THEMSELVES ───────────────────────────────────────────────────
 *
 * Same specificity fight as the row widths above, and it was losing the same
 * way. woocommerce.css styles the inputs as
 *
 *     .woocommerce form .form-row input.input-text   (0,3,2)
 *
 * so `.as-co__form input[type="text"]` (0,2,1) never applied: every field
 * computed to Woo's 7px padding and 1px border rather than the design's 12/16
 * and 1.5px. It looked close enough in a screenshot and was wrong in every
 * measurement — the fields are 37px tall where the mock draws 48.
 *
 * Measured, not assumed: getComputedStyle on the town/city input returned
 * padding 7px and border-width 1px with these rules already in the sheet.
 */
.woocommerce .as-co__form .form-row input.input-text,
.woocommerce .as-co__form .form-row textarea,
.woocommerce .as-co__form .form-row select,
.woocommerce .as-co__form input[type="text"],
.woocommerce .as-co__form input[type="email"],
.woocommerce .as-co__form input[type="tel"],
.woocommerce .as-co__form input[type="password"],
.woocommerce .as-co__form textarea,
.woocommerce .as-co__form select {
	width: 100%; height: auto; margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: inherit; font-size: var(--text-sm); line-height: 1.35; color: var(--color-text);
	box-sizing: border-box;
}
.woocommerce .as-co__form .form-row textarea,
.woocommerce .as-co__form textarea { min-height: 64px; line-height: var(--leading-body); resize: vertical; }
.woocommerce .as-co__form input::placeholder,
.woocommerce .as-co__form textarea::placeholder { color: var(--color-placeholder); }
.woocommerce .as-co__form input:focus,
.woocommerce .as-co__form textarea:focus,
.woocommerce .as-co__form select:focus {
	border-color: var(--atomic-blue);
}

/*
 * Select2 replaces the province <select> with three nested divs, each carrying
 * its own padding and a 28px "arrow" column. Left alone it stood 62px against
 * a 48px input beside it, which is the sort of misalignment that reads as
 * sloppiness rather than as a bug. The box is put on the selection and taken
 * off everything inside it, so the control matches its neighbours exactly.
 */
.woocommerce .as-co__form .select2-container .select2-selection--single {
	height: auto; padding: 12px 16px;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: inherit; font-size: var(--text-sm); line-height: 1.35;
	box-sizing: border-box;
}
.woocommerce .as-co__form .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0; line-height: 1.35; color: var(--color-text);
}
.woocommerce .as-co__form .select2-container .select2-selection--single .select2-selection__arrow {
	top: 50%; right: 12px; height: 20px; transform: translateY(-50%);
}
.woocommerce .as-co__form .select2-container--focus .select2-selection--single,
.woocommerce .as-co__form .select2-container--open .select2-selection--single {
	border-color: var(--atomic-blue);
}

/* Woo's own checkboxes, at one size rather than three. */
.woocommerce .as-co__form input[type="checkbox"] {
	width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--atomic-blue);
}

/* Two and three across, matching the mock's grids. */
.as-co__grid { display: grid; gap: var(--space-3-5); }
.as-co__grid--2 { grid-template-columns: 1fr 1fr; }
.as-co__grid--city { grid-template-columns: 1.2fr 1fr 0.8fr; }

.as-co__rule { border-top: 1px solid var(--color-border-soft); padding-top: 16px; display: flex; flex-direction: column; gap: var(--space-3); }

/* ── Section 2: "When do you need it?" ─────────────────────────────────── */
/*
 * design/handoffs/section 2, README X. Three rows in the step card: PRODUCTION
 * (SS_Rush::render()), SHIPPING / PICKUP (route-checkout.js paint()) and the
 * ARRIVES BY panel (SS_Rush::render_panel(), swapped as #ss-rush-ready). The
 * two choice rows are one control — the shared segmented track in
 * primitives.css — with the same option markup in PHP and in JS.
 *
 * Values from the mocks' inline styles (D = Checkout Page v2.dc.html, desktop;
 * P = Checkout Section 2 iPhone 15.dc.html, 393px):
 *
 *   card children    18px apart (P 16)                               D:62  P:33
 *   row              label column 140px, gap 14px, centred           D:65
 *                    (P: label above, 8px)                                 P:36
 *   option           8px 10px (P 9px 11px, 1px between lines)         D:172 P:90
 *                    name 700 13.5 (P 14) · date 700 12.5 · price 11.5
 *                    → on the token scale: 14 / 12 / 11, padding 8 10,
 *                      line-height normal as the mock
 *                    unselected: muted name, navy date
 *                    selected: navy name, blue date (Q15: --atomic-blue-ink, AA)
 *   panel            #F5F8FA, radius 12, 14px 18px (P 14 14 12), gap 12   D:188 P:47
 *                    date 800 22 / -0.02em / 1.1 (P 21, normal) · extra 800 15 (P 14)
 *                    → 22 everywhere; extra 16 (P 14)
 *                    date-to-extra 20px (P 12)
 *   day blocks       14px high, radius 4, 3px apart (P 12, radius 3)    D:177 P:93
 *                    groups 10px apart (P 8), 7px over the caption (P 6)
 *                    → caption 6, blocks 4 apart
 *                    production blue, shipping #B9E6F5, pickup navy, proof #C3C8D2
 *   caption          label 700 12.5 (P 12) + count 12 muted (P 11), one line
 *                    → label 12
 *                    6px apart (P stacked)
 *
 * The phone arrangement (labels above, two across) takes over at 1200px and
 * below, where the two-column checkout leaves the form column under 640px —
 * too narrow for four dates on one line. The compact phone sizes start at 560.
 */
.as-fulfil-block { display: flex; flex-direction: column; gap: var(--space-4-5); }

.as-fulfil__row {
	display: grid; grid-template-columns: 140px minmax(0, 1fr);
	gap: var(--space-3-5); align-items: center;
}
/* Type from .as-eyebrow (primitives.css); colour and leading here. */
.as-fulfil__label { color: var(--atomic-dark); line-height: var(--leading-snug); }
.as-fulfil { min-width: 0; }

/* One option in the shared track: three lines, the radio its control. */
.as-fulfil__opt {
	position: relative; display: flex; flex-direction: column; justify-content: center;
	min-height: var(--tap-min); padding: var(--space-2) var(--space-2-5);
	color: var(--color-text-muted); line-height: normal;
}
.as-fulfil__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.as-fulfil__opt:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.as-fulfil__name { font-size: var(--text-sm); font-weight: 700; }
.as-fulfil__date { font-size: var(--text-xs); font-weight: 700; color: var(--atomic-dark); }
.as-fulfil__sub { font-size: var(--text-label); font-weight: 400; color: var(--color-text-muted); }
.as-fulfil__opt.is-on .as-fulfil__date { color: var(--atomic-blue-ink); }

/* ARRIVES BY: one date, what the choices add, and the days under it. */
.as-fulfil__panel {
	display: flex; flex-direction: column; gap: var(--space-3); min-width: 0;
	padding: var(--space-3-5) var(--space-4-5);
	background: var(--color-surface-alt); color: var(--atomic-dark);
	border-radius: 12px; line-height: normal;
}
.as-fulfil__when { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); }
.as-fulfil__whendate {
	font-size: var(--text-h3); font-weight: 800; letter-spacing: var(--tracking-tight);
	line-height: 1.1; white-space: nowrap;
}
.as-fulfil__extra { font-size: var(--text-body); font-weight: 800; white-space: nowrap; }

/*
 * A group grows by its day count, so a day is the same width in every group.
 * It never shrinks below its caption: a one-day rush beside a five-day
 * parcel would otherwise run "Production 1 day" into "Shipping 5 days".
 */
.as-fulfil__days { display: flex; gap: var(--space-2-5); }
.as-fulfil__group { flex: var(--n) 1 0%; min-width: max-content; display: flex; flex-direction: column; gap: var(--space-1-5); }
.as-fulfil__blocks { display: flex; gap: var(--space-1); }
.as-fulfil__block { flex: 1 1 0; height: 14px; border-radius: 4px; background: var(--atomic-blue); }
.as-fulfil__group--proof .as-fulfil__block { background: #c3c8d2; }
.as-fulfil__group--ship .as-fulfil__block { background: #b9e6f5; }
.as-fulfil__group--pickup .as-fulfil__block { background: var(--atomic-dark); }
.as-fulfil__cap { display: flex; align-items: baseline; gap: var(--space-1-5); white-space: nowrap; }
.as-fulfil__capname { font-size: var(--text-xs); font-weight: 700; }
.as-fulfil__capdays { font-size: var(--text-xs); color: var(--color-text-muted); }

@media (max-width: 1200px) {
	.as-fulfil__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
	.as-fulfil__br { display: none; }
	.as-fulfil__track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	/* An odd one out takes the whole row rather than half of it. */
	.as-fulfil__track > .as-fulfil__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.as-fulfil-block { gap: var(--space-4); }
	.as-fulfil__opt { gap: 1px; }
	.as-fulfil__panel { padding: var(--space-3-5) var(--space-3-5) var(--space-3); }
	.as-fulfil__when { gap: var(--space-3); }
	.as-fulfil__whendate { line-height: normal; }
	.as-fulfil__extra { font-size: var(--text-sm); }
	.as-fulfil__days { gap: var(--space-2); }
	.as-fulfil__block { height: 12px; border-radius: 3px; }
	.as-fulfil__cap { flex-direction: column; align-items: flex-start; gap: 0; }
	.as-fulfil__capdays { font-size: var(--text-label); }
}

/*
 * Under 420 the site's 24px gutter and the step card's 26px padding leave each
 * option 118px of text — the mock's phone had 16 and 16. The widest real date,
 * "Ready Wed, May 26", is 120px at 12px, so the option gives up 2px a side.
 */
@media (max-width: 420px) {
	.as-fulfil__opt { padding-inline: var(--space-2); }
}

/* ── The pickup guard ────────────────────────────────────────────────────── */
/*
 * The guard now sits in the Place order card, so it is a tinted panel there
 * rather than a bordered box inside the fulfilment card. Checkbox first, store
 * details under it — the order checkout.jpg draws.
 */
/*
 * [hidden] has to actually hide it.
 *
 * The rule below sets display, and any display declaration beats the browser's
 * own `[hidden] { display: none }` — so route-checkout.js was setting
 * guard.hidden = true, correctly, on every shipping selection, and the box went
 * on rendering anyway. Measured on a live checkout with lettermail selected:
 * hidden === true, computed display "flex", offsetHeight 179.
 *
 * That is why the tick appeared for customers who had never chosen pickup, and
 * no amount of fixing WHICH rate the JS considered selected would have changed
 * it — the attribute it sets was simply being ignored.
 */
.as-pickup[hidden] { display: none; }

.as-pickup {
	display: flex; flex-direction: column; gap: var(--space-2-5);
	margin-bottom: 18px; padding: 14px 16px;
	background: var(--color-surface-tint); border-radius: var(--radius-md);
}
.as-pickup__store {
	display: flex; gap: var(--space-2-5); margin: 0;
	font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted);
}
.as-pickup__store svg { flex: none; margin-top: 2px; color: var(--atomic-blue); }
.as-pickup__store strong { color: var(--color-text); }
.as-pickup__store a { color: var(--atomic-blue); font-weight: 600; white-space: nowrap; }

.as-pickup__confirm {
	display: flex; align-items: flex-start; gap: var(--space-2-5);
	padding: 11px 14px; border-radius: var(--radius-sm); background: var(--color-surface-tint);
	font-size: var(--text-sm); font-weight: 600; cursor: pointer;
}
.as-pickup__confirm input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--atomic-blue); }

/*
 * The summary card and the place-order card are siblings inside
 * .woocommerce-checkout-review-order, not inside .as-co__side — the sidebar's
 * gap applies to the review panel as one child and never between the two cards
 * within it. Measured at 0 against a stylesheet that said 16.
 */
.as-co__side .woocommerce-checkout-review-order {
	display: flex; flex-direction: column; gap: var(--space-4);
}

/*
 * And the same on the cart, for the same reason and found the same way: the
 * summary card and the "Picking up?" note are siblings inside Woo's
 * .cart-collaterals, so the sidebar's gap applied to that div as one child and
 * the two boxes met with nothing between them.
 *
 * Third time this shape of bug has appeared on these routes. The rule it keeps
 * teaching: put the gap on the element that actually contains both things, and
 * check by measuring the distance rather than by reading the stylesheet.
 */
.as-co__side .cart-collaterals {
	display: flex; flex-direction: column; gap: var(--space-4);
}

/* ── Order summary on checkout ───────────────────────────────────────────── */
.as-co__lineitem {
	display: flex; gap: var(--space-3-5); align-items: flex-start;
	padding-bottom: 12px; border-bottom: 1px solid var(--color-border-soft);
}
.as-co__lineitem-thumb {
	width: 56px; height: 56px; flex: none; overflow: hidden;
	display: grid; place-items: center;
	border: 1.5px solid var(--color-border-soft); border-radius: var(--radius-sm); background: var(--color-surface);
}
.as-co__lineitem-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-co__lineitem-body { display: flex; flex-direction: column; gap: var(--space-0-5); flex: 1; min-width: 0; }
.as-co__lineitem-name { font-weight: 700; font-size: var(--text-sm); }
.as-co__lineitem-meta { font-size: var(--text-label); color: var(--color-text-muted); line-height: 1.5; }
.as-co__lineitem-price { font-weight: 700; font-size: var(--text-sm); flex: none; }

.as-co__place {
	display: flex; flex-direction: column; gap: var(--space-3);
	padding: 22px 24px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-co__terms { display: flex; align-items: flex-start; gap: var(--space-2-5); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.55; }
.as-co__terms input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--atomic-blue); }

/*
 * Woo's payment block, wearing the design. #payment has its own grey panel and
 * rounded corners in woocommerce.css, and the gateway list is a bulleted <ul>
 * with a speech-bubble ::after on the description — all of which has to be
 * undone here rather than in a template, because the template is Woo's.
 */
.as-co__place #payment,
.as-co__place .woocommerce-checkout-payment { background: none; border-radius: 0; padding: 0; }
.as-co__place .wc_payment_methods { margin: 0 0 4px; padding: 0; list-style: none; border: 0; }
.as-co__place .wc_payment_methods li { list-style: none; margin: 0 0 6px; padding: 0; background: none; }
/*
 * inline-flex, because Stripe's own stylesheet makes its card-brand icon
 * display:block — which dropped the icon onto its own line and broke the
 * "Credit / Debit Card" heading in two (Dennis, 2026-09-06).
 */
.as-co__place .wc_payment_methods li label {
	display: inline-flex; align-items: center; gap: var(--space-2);
	font-weight: 600; font-size: var(--text-sm);
}
.as-co__place .wc_payment_methods li label img { display: inline-block; margin: 0; }
.as-co__place .wc_payment_methods li input[type="radio"] { accent-color: var(--atomic-blue); margin-right: 8px; }
.as-co__place .payment_box {
	margin: 6px 0 0; padding: 10px 14px;
	border-radius: var(--radius-sm); background: var(--color-surface-alt);
	font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted);
}
/*
 * Woo draws a speech-bubble arrow on the gateway description with
 * .woocommerce-checkout #payment div.payment_box::after — one id and two
 * classes, so a shorter selector loses. Matched at the same weight rather than
 * reached for with !important.
 */
.woocommerce-checkout #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::after { display: none; content: none; }
.woocommerce-checkout #payment div.payment_box {
	margin: 6px 0 0; padding: 10px 14px;
	border-radius: var(--radius-sm); background: var(--color-surface-alt);
	font-size: var(--text-xs); line-height: 1.55; color: var(--color-text-muted);
}
.woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 0; }
.woocommerce-checkout #payment div.form-row { padding: 0; }

/*
 * The coupon prompt, once. My chip above the form carries the .showcoupon link
 * that toggles Woo's form; Woo's own "Have a coupon?" bar says the same thing
 * again directly underneath it. The form it toggles stays.
 */
.as-route-checkout .woocommerce-form-coupon-toggle { display: none; }
.as-co__place .payment_box p:last-child { margin-bottom: 0; }

.as-co__place .form-row.place-order { margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.as-co__place .woocommerce-terms-and-conditions-wrapper { margin: 0; }
.as-co__place .woocommerce-privacy-policy-text { font-size: var(--text-xs); color: var(--color-text-muted); }
.as-co__place .validate-required label,
.as-co__place .woocommerce-form__label-for-checkbox {
	display: flex; align-items: flex-start; gap: var(--space-2-5);
	font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted);
	line-height: 1.55; text-transform: none; letter-spacing: 0;
}
.as-co__place .woocommerce-form__input-checkbox { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--atomic-blue); }

/* The button is the design's blue pill, whatever Woo's theme classes say. */
.as-co__place #place_order {
	margin: 0;
	padding: 15px 0;
	font-size: var(--text-body);
	line-height: 1.2;
}
.as-co__place #place_order:hover { background: #159ac6; }
.as-co__place #place_order[disabled] { opacity: .55; cursor: not-allowed; }

/* ── Order received ──────────────────────────────────────────────────────── */
.as-thanks__hero { display: flex; flex-direction: column; gap: var(--space-3); align-items: center; text-align: center; margin-bottom: 24px; }
.as-thanks__tick {
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--color-surface-tint); color: var(--atomic-blue);
	display: grid; place-items: center;
}
.as-thanks__title { margin: 0; font-size: var(--text-stat); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.as-thanks__sub { margin: 0; max-width: 52ch; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted); }
.as-thanks__sub strong { color: var(--color-text); }

/* The facts strip: four cells sharing hairlines, so the gap IS the rule. */
.as-thanks__facts {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-0-5);
	margin-bottom: 24px; overflow: hidden;
	background: var(--color-border); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-thanks__fact { background: var(--color-surface); padding: 18px 22px; display: flex; flex-direction: column; gap: var(--space-0-5); }
.as-thanks__fact-label {
	color: var(--color-text-muted);
}
.as-thanks__fact-value { font-weight: 700; font-size: var(--text-body); }

.as-thanks__where {
	display: flex; flex-direction: column; gap: var(--space-4-5);
	margin-bottom: 24px; padding: 26px 28px;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-rail { display: flex; align-items: center; }
.as-rail__step { display: flex; flex-direction: column; gap: var(--space-2); align-items: center; flex: 1; }
.as-rail__dot {
	width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box;
	display: grid; place-items: center;
	background: var(--color-surface-alt); color: var(--color-placeholder);
}
.as-rail__label { font-size: var(--text-xs); font-weight: 700; text-align: center; color: var(--color-placeholder); }
.as-rail__step.is-done .as-rail__dot { background: var(--atomic-blue); color: var(--color-text-invert); }
.as-rail__step.is-done .as-rail__label { color: var(--color-text); }
.as-rail__step.is-now .as-rail__dot { background: var(--color-surface-tint); color: var(--atomic-blue); border: 2.5px solid var(--atomic-blue); }
.as-rail__step.is-now .as-rail__label { color: var(--atomic-blue); }
.as-rail__link { height: 3px; flex: 1; margin-bottom: 22px; background: rgba(45, 56, 75, .15); }
.as-rail__link.is-done { background: var(--atomic-blue); }

.as-thanks__note { margin: 0; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--color-surface-tint); font-size: var(--text-sm); line-height: 1.55; }
/*
 * The one note that is a job rather than a reassurance. Amber, because the
 * tinted blue of the others is the colour this page uses for "we have it in
 * hand" and this says the opposite — the order stops here until the customer
 * acts. Same box, so it is the tone that changes and not the furniture.
 */
.as-thanks__note--todo {
	background: #fdf3e3;
	box-shadow: inset 3px 0 0 #b3752a;
}
.as-thanks__note--todo a { color: #0e7ca0; font-weight: 700; }

.as-thanks__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.as-thanks__details { display: flex; flex-direction: column; gap: var(--space-2-5); padding: 24px 26px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); }
.as-thanks__details h2 { margin: 0; font-weight: 700; font-size: var(--text-body); }
.as-thanks__pickup {
	display: flex; flex-direction: column; gap: var(--space-2-5);
	padding: 24px 26px; border-radius: var(--radius-lg);
	background: var(--atomic-dark); color: var(--color-text-invert);
}
.as-thanks__pickup h2 { display: flex; align-items: center; gap: var(--space-2-5); margin: 0; font-weight: 700; font-size: var(--text-body); }
.as-thanks__pickup h2 svg { color: var(--atomic-blue); }
.as-thanks__pickup p { margin: 0; font-size: var(--text-sm); color: #c3c8d2; line-height: 1.6; }
.as-thanks__pickup .as-thanks__who { margin-top: auto; padding-top: 6px; }
.as-thanks__pickup a { color: var(--atomic-blue); font-weight: 700; }

/*
 * A gateway's instructions after the order — "pay with cash on delivery", a
 * bank transfer's details. Kept, because for some gateways this is the only
 * place the customer is told how to pay, and given the shape of a note rather
 * than the bare paragraph Woo prints.
 */
.as-route-thanks .woocommerce-thankyou-order-details,
.as-route-thanks .woocommerce-order-overview { display: none; }
.as-route-thanks .woocommerce-bacs-bank-details,
.as-route-thanks > .as-co__wrap > p {
	margin: 24px 0 0; padding: 14px 18px;
	border-radius: var(--radius-sm); background: var(--color-surface-alt);
	font-size: var(--text-sm); color: var(--color-text-muted);
}

/*
 * ─── THE VERIFY-EMAIL SCREEN ─────────────────────────────────────────────────
 *
 * Not in the mock, and a customer will still meet it: WooCommerce asks for the
 * email address whenever the confirmation link is opened by a session that does
 * not own the order — a different browser, a phone, or a session that has since
 * expired. It is the same page as the confirmation as far as the customer is
 * concerned, and it was arriving as unstyled browser defaults.
 *
 * Found by opening a real order link in a second browser rather than by
 * reading the templates; the headless captures all ran in the session that had
 * just placed the order, which is the one path where this never appears.
 */
.as-route-thanks .woocommerce-verify-email {
	max-width: 520px; margin: 8px auto 0;
	display: flex; flex-direction: column; gap: var(--space-3-5);
	padding: 28px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-route-thanks .woocommerce-thankyou-order-received {
	margin: 0 auto 4px; max-width: 520px;
	font-size: var(--text-h3); font-weight: 700; text-align: center; color: var(--color-text);
}
.as-route-thanks .woocommerce-verify-email p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: var(--color-text-muted); }
.as-route-thanks .woocommerce-verify-email .form-row { display: flex; flex-direction: column; gap: var(--space-1-5); padding: 0; }
.as-route-thanks .woocommerce-verify-email label {
	font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; color: var(--color-text-muted);
}
.woocommerce .as-route-thanks .woocommerce-verify-email input.input-text,
.as-route-thanks .woocommerce-verify-email input.input-text {
	width: 100%; padding: 12px 16px; box-sizing: border-box;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	background: var(--color-surface); font-family: inherit; font-size: var(--text-sm);
}
.woocommerce .as-route-thanks .woocommerce-verify-email button,
.as-route-thanks .woocommerce-verify-email button {
	padding: 15px 0;
	margin: 0;
	font-size: var(--text-body);
}
.woocommerce .as-route-thanks .woocommerce-verify-email button:hover { background: #159ac6; }

/*
 * ─── AND THE OTHER HALF OF THE SAME GATE ─────────────────────────────────────
 *
 * The block above dresses the email-verification state. It has a twin that was
 * left bare: when the order belongs to a REGISTERED customer and the person
 * opening the link is not signed in as them, WooCommerce prints a login form
 * instead (class-wc-shortcode-checkout.php, order_received(), the
 * `woocommerce_order_received_verify_known_shoppers` branch, core since 8.4).
 *
 * Same page, same sentence — "you cannot see this order yet, prove who you
 * are" — and it arrived in Woo's default dress: a grey #E9E6ED button, 4px
 * inputs with a near-black border, two columns. Next to the verify card it
 * reads as a different site.
 *
 * Found the same way the note above describes, and it is worth repeating why
 * both states hide so well: neither appears for the session that just placed
 * the order, which is the session every capture is taken in. They only show on
 * a link opened later, or elsewhere.
 *
 * One column, because the card is 520px and a username beside a password in
 * that width leaves two cramped fields. Values are the verify card's own, so
 * the two states of one gate cannot drift apart.
 */
/*
 * `.as-route-thanks .woocommerce ...`, and the order matters.
 *
 * Core's card rule is `.woocommerce form.login` at (0,2,1) — padding 20px, a
 * 1px #cfc8d8 border, a 5px radius — so a plain `.as-route-thanks
 * .woocommerce-form-login` at (0,2,0) loses and keeps only the declarations
 * core does not set. A third class fixes that, but it has to be a real
 * ancestor: the nesting here is
 *
 *     main.as-main.as-route-thanks > div.as-co__wrap > div.woocommerce > form
 *
 * so `.woocommerce .as-route-thanks ...` — the order used a few rules above —
 * asks for a `.woocommerce` OUTSIDE the route wrapper and matches nothing at
 * all. Those rules get away with it because each lists a plainer fallback that
 * happens to outrank core on its own; this one did not.
 */
.as-route-thanks .woocommerce .woocommerce-form-login {
	max-width: 520px; margin: 8px auto 0;
	display: flex; flex-direction: column; gap: var(--space-3-5);
	padding: 28px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
}
.as-route-thanks .woocommerce-form-login .form-row {
	display: flex; flex-direction: column; gap: var(--space-1-5);
	padding: 0; margin: 0; width: auto; float: none;
}
.as-route-thanks .woocommerce-form-login label {
	font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; color: var(--color-text-muted);
}
.woocommerce .as-route-thanks .woocommerce-form-login input.input-text,
.as-route-thanks .woocommerce-form-login input.input-text {
	width: 100%; padding: 12px 16px; box-sizing: border-box;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	background: var(--color-surface); font-family: inherit; font-size: var(--text-sm);
}
/*
 * The submit is given its colour outright. The verify card's button inherits a
 * brand base rule that this one does not match — which is how it ended up as
 * Woo's grey secondary — and naming the colour here is shorter than hunting the
 * selector that was supposed to reach it.
 */
.woocommerce .as-route-thanks .woocommerce-form-login button[type="submit"],
.as-route-thanks .woocommerce-form-login button[type="submit"] {
	width: 100%; padding: 15px 0; margin: 0;
	border: 0; border-radius: var(--radius-sm); cursor: pointer;
	background: var(--atomic-blue, #1ab0e0); color: #fff;
	font-family: inherit; font-size: var(--text-body); font-weight: 700;
}
.woocommerce .as-route-thanks .woocommerce-form-login button[type="submit"]:hover { background: #159ac6; }

/* The checkbox row is the one that must NOT become a column. */
.as-route-thanks .woocommerce-form-login .woocommerce-form-login__rememberme {
	flex-direction: row; align-items: center; gap: var(--space-1-5);
	font-size: var(--text-sm); font-weight: 400; text-transform: none; color: var(--color-text);
}
.as-route-thanks .woocommerce-form-login .lost_password { margin: 0; font-size: var(--text-sm); }
.as-route-thanks .woocommerce-form-login .clear { display: none; }

/* ── Empty cart ──────────────────────────────────────────────────────────── */
/*
 * Woo prints "Your cart is currently empty." as a notice, and cart-empty.php
 * says the same thing underneath in a card with somewhere to go. Two messages
 * for one state, and the notice is the one carrying no information.
 */
.as-route-cart .cart-empty.woocommerce-info,
.as-route-cart .woocommerce-info.cart-empty { display: none; }

.as-cart__empty { padding: 44px; border-radius: var(--radius-lg); background: var(--color-surface-alt); text-align: center; }
.as-cart__empty h2 { margin: 0 0 8px; font-size: var(--text-h3); }
.as-cart__empty p { margin: 0 0 18px; color: var(--color-text-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.as-co__wrap { padding-inline: 24px; }
	.as-cart__foot { gap: var(--space-3-5); }
	.as-co__cols, .as-route-checkout .as-co__cols { grid-template-columns: minmax(0, 1fr); }
	.as-co__title { font-size: var(--text-h2); }
	.as-thanks__title { font-size: var(--text-h2); }
	.as-thanks__facts { grid-template-columns: 1fr 1fr; }
	.as-thanks__cols { grid-template-columns: 1fr; }
	.as-co__grid--2, .as-co__grid--city { grid-template-columns: 1fr; }
	.as-cart__item { flex-direction: column; }
	.as-cart__thumb { width: 100%; height: 160px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ROUTE: SIGN IN / REGISTER
   ══════════════════════════════════════════════════════════════════════════
   Two cards on a tinted page: white to come back to, navy to join. Shares the
   field, button and card rules above rather than restating them — the login
   inputs are the checkout inputs, and a second copy would be a second copy to
   keep in step.
   ────────────────────────────────────────────────────────────────────────── */

/*
 * ─── DESCENDANT ORDER, NOT JUST SPECIFICITY ──────────────────────────────────
 *
 * These read `.as-route-account .woocommerce ...`, not the other way round.
 *
 * The first version borrowed the pattern that works on the checkout —
 * `.woocommerce .as-co__form input` — and inverted it here without thinking,
 * because on the checkout the form card sits INSIDE Woo's .woocommerce wrapper
 * while on the account page .as-route-account is the <main> that CONTAINS it.
 * So every rule asked for an .as-route-account inside a .woocommerce, which
 * does not exist, and none of them applied: the forms kept Woo's bordered box,
 * the navy card's checkbox never lined up, and the inputs took Woo's padding.
 *
 * Specificity was never the problem. The selector was describing a document
 * that is not this one.
 */
.as-route-account { background: var(--color-surface-alt); }

/*
 * Woo draws a box around form.login and form.register — 1px border, 20px
 * padding, its own radius — which is right when the form IS the page furniture
 * and wrong inside a card that already is. Reset before anything else, or every
 * field below sits in a second, smaller card.
 */
.as-route-account .woocommerce form.login,
.as-route-account .woocommerce form.register {
	border: 0; padding: 0; margin: 0; border-radius: 0; background: none;
}
.as-route-account .as-co__wrap { max-width: 1100px; padding-block: 64px 72px; }

.as-login__head { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin-bottom: 36px; text-align: center; }
.as-login__title { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.as-login__sub { margin: 0; max-width: 56ch; font-size: var(--text-body); line-height: var(--leading-body); color: var(--color-text-muted); }

.as-login__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10); align-items: start; }
.as-login__cards--single { grid-template-columns: minmax(0, 560px); justify-content: center; }

.as-login__card { padding: 40px; border-radius: var(--radius-lg); }
.as-login__card h2 { margin: 0 0 22px; font-size: var(--text-h3); font-weight: 700; }
.as-login__card--in { background: var(--color-surface); box-shadow: var(--shadow-sm); }
.as-login__card--new { background: var(--atomic-dark); color: var(--color-text-invert); }
.as-login__card--new h2 { margin-bottom: 8px; }
.as-login__lede { margin: 0 0 22px; font-size: var(--text-sm); line-height: 1.55; color: #c3c8d2; }

/* Woo prints the rows; these are the same shapes the checkout form uses. */
.as-route-account .form-row { display: flex; flex-direction: column; gap: var(--space-1-5); margin: 0 0 18px; padding: 0; }
.as-route-account .form-row label {
	font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
	text-transform: uppercase; color: var(--color-text-muted);
}
.as-route-account .woocommerce .as-login__card--new .form-row label,
.as-login__card--new .form-row label { color: #c3c8d2; }
.as-route-account .form-row .required { color: inherit; text-decoration: none; }

.as-route-account .woocommerce input.input-text,
.as-route-account input[type="text"],
.as-route-account input[type="email"],
.as-route-account input[type="password"] {
	width: 100%; padding: 14px 18px; box-sizing: border-box;
	border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: inherit; font-size: var(--text-sm); color: var(--color-text);
}
.as-route-account input::placeholder { color: var(--color-placeholder); }
.as-route-account .woocommerce input:focus,
.as-route-account input:focus { border-color: var(--atomic-blue); }

/* On the navy card the field is a lighter navy, not a white hole. */
.as-route-account .woocommerce .as-login__card--new input.input-text,
.as-login__card--new input[type="text"],
.as-login__card--new input[type="email"],
.as-login__card--new input[type="password"] {
	border-color: var(--atomic-input-border); background: var(--atomic-input-bg); color: var(--color-text-invert);
}
.as-login__card--new input::placeholder { color: #8d94a8; }

/*
 * Remember-me and the lost-password link share a line. The label is given
 * flex:0 so it takes its own width — Woo's stylesheet stretches form labels to
 * 100%, which pushed the link onto a line of its own.
 */
.as-login__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin: 4px 0 22px; flex-wrap: wrap; }
.as-login__row .as-login__remember { flex: 0 1 auto; width: auto; }
.as-login__row .as-login__lost { flex: none; }
.as-route-account .woocommerce label.woocommerce-form__label-for-checkbox {
	display: flex; align-items: flex-start; gap: var(--space-2-5); margin: 0;
	font-size: var(--text-sm); font-weight: 500; line-height: 1.5;
	text-transform: none; letter-spacing: 0; color: var(--color-text); cursor: pointer;
}
/*
 * Louder than the rule above it, which is (0,3,1) and sets the light-card
 * colour. Left as it was, the opt-in was dark navy text on a dark navy card —
 * present, legible in a devtools panel, invisible to a customer.
 */
.as-route-account .woocommerce .as-login__card--new label.woocommerce-form__label-for-checkbox,
.as-login__card--new label.woocommerce-form__label-for-checkbox { color: #c3c8d2; }
.as-route-account .woocommerce input[type="checkbox"] {
	width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--atomic-blue);
}
.as-login__lost { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }

/* Woo's show/hide-password button sits inside the field; give it room. */
.as-route-account .woocommerce-password-input { position: relative; display: block; }
.as-route-account .show-password-input {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
	border: 0; background: none; cursor: pointer;
}
.as-route-account .woocommerce .woocommerce-password-input input.input-text { padding-right: 48px; }
.as-login__optin { margin: 0 0 22px !important; }

.as-login__go {
	padding: 16px 0;
	margin: 0;
	font-size: var(--text-body);
}
.as-login__go:hover { background: #159ac6; color: var(--color-text-invert); }

.as-login__perks {
	margin: 26px 0 0; padding: 22px 0 0; list-style: none;
	border-top: 1px solid rgba(255, 255, 255, .15);
	display: flex; flex-direction: column; gap: var(--space-3);
	font-size: var(--text-sm); color: var(--color-text-invert);
}
.as-login__perks li { display: flex; align-items: flex-start; gap: var(--space-2-5); line-height: 1.45; }
.as-login__perks li::before { content: "✓"; color: var(--atomic-blue); font-weight: 700; flex: none; }

/* Woo's notices on this route, in the page's own voice. */
.as-route-account .woocommerce-error,
.as-route-account .woocommerce-message,
.as-route-account .woocommerce-info {
	max-width: 640px; margin: 0 auto 24px; padding: 14px 20px;
	border: 0; border-radius: var(--radius-md); list-style: none;
	background: var(--color-surface-tint); font-size: var(--text-sm);
}
.as-route-account .woocommerce-error { background: #fdf3f2; color: #8a2018; }

@media (max-width: 900px) {
	.as-login__cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
	.as-login__title { font-size: var(--text-h2); }
	.as-login__card { padding: 26px; }
	.as-route-account .as-co__wrap { padding-block: 40px 48px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ROUTE: MY ACCOUNT
   ══════════════════════════════════════════════════════════════════════════
   230px sidebar, 1160 content. The login screen above shares this route class;
   these rules are scoped to the logged-in shell so they cannot reach it.
   ────────────────────────────────────────────────────────────────────────── */

.as-route-account .woocommerce-MyAccount-content,
.as-route-account .woocommerce-MyAccount-navigation { min-width: 0; }

.as-route-account .woocommerce > .woocommerce-MyAccount-navigation { float: none; width: auto; }
.as-route-account .woocommerce > .woocommerce-MyAccount-content { float: none; width: auto; }

/*
 * The shell: Woo prints nav then content as two floats; this is a grid.
 *
 * And it prints its NOTICES into the same div, before the navigation — so the
 * grid had three children, not two. The notice took column one, the nav took
 * column two, and the content wrapped onto a second row inside a 230px column,
 * which read as a layout that had simply failed. Placement is explicit rather
 * than left to auto-flow: anything that is not the nav or the content spans the
 * full width, wherever Woo decides to print it.
 */
.as-acct-shell .woocommerce {
	display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--space-6) var(--space-14); align-items: start;
}
/*
 * Woo's clearfix — .woocommerce::before / ::after, content " " — is two grid
 * items here. The ::before took a row of its own above the nav and the content,
 * and with the 56px gap and the wrapper's padding that was 144px of white under
 * the header (Dennis, 2026-11-12: "too much blank space above the content").
 * A grid clears nothing, so the clearfix goes. Rows gap 24, not the columns'
 * 56, for a notice Woo prints above the two.
 */
.as-acct-shell .woocommerce::before,
.as-acct-shell .woocommerce::after { content: none; display: none; }
.as-acct-shell .woocommerce > * { grid-column: 1 / -1; }
.as-acct-shell .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.as-acct-shell .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }

/* Woo's notices, in the route's own voice rather than its default box. */
.as-acct-shell .woocommerce-message,
.as-acct-shell .woocommerce-info,
.as-acct-shell .woocommerce-error {
	margin: 0 0 8px; padding: 14px 20px; list-style: none;
	border: 0; border-radius: var(--radius-md); background: var(--color-surface-tint);
	font-size: var(--text-sm); line-height: 1.55;
}
.as-acct-shell .woocommerce-error { background: #fdf3f2; color: #8a2018; }
.as-acct-shell .woocommerce-message .button,
.as-acct-shell .woocommerce-info .button { display: none; }
.as-acct-shell .woocommerce-message::before,
.as-acct-shell .woocommerce-info::before,
.as-acct-shell .woocommerce-error::before { display: none; }
.as-acct-shell { background: var(--color-surface); }
.as-acct-shell .as-co__wrap { max-width: var(--page-max); padding-block: 0 72px; }  /* .as-main's 40px is the space under the header */

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.as-acct__who { margin-bottom: 22px; }
.as-acct__hey { margin: 0; font-size: var(--text-body-lg); font-weight: 700; }
.as-acct__email { margin: 2px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); word-break: break-word; }

.as-acct__nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.as-acct__nav li a {
	display: block; padding: 12px 20px; border-radius: var(--radius-pill);
	font-size: var(--text-body); font-weight: 600; color: var(--color-text);
	transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.as-acct__nav li a:hover { background: var(--color-surface-alt); color: var(--color-text); }
.as-acct__nav li.is-active > a,
.as-acct__nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active > a { background: var(--atomic-dark); color: var(--color-text-invert); }

/* ── Content ─────────────────────────────────────────────────────────────── */
.as-acct__title { margin: 0 0 6px; font-size: var(--text-stat); font-weight: 700; letter-spacing: -0.02em; }
.as-acct__lede { margin: 0 0 24px; font-size: var(--text-body); color: var(--color-text-muted); }
.as-acct__back { display: inline-block; margin-bottom: 10px; font-size: var(--text-sm); font-weight: 700; }

.as-acct__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.as-acct__btn--sm { padding: 9px 20px; font-size: var(--text-sm); }
.as-acct__btn--blue { background: var(--atomic-blue); color: var(--color-text-invert); }
.as-acct__btn--blue:hover { background: #159ac6; color: var(--color-text-invert); }
.as-acct__btn--navy { background: var(--atomic-dark); color: var(--color-text-invert); }
.as-acct__btn--navy:hover { background: #1d222f; color: var(--color-text-invert); }
.as-acct__btn--ghost { border: 1.5px solid var(--color-border); background: none; color: var(--color-text-muted); }
.as-acct__btn--ghost:hover { border-color: var(--atomic-blue); color: var(--atomic-blue); }
.as-acct__btn--outline { border: 1.5px solid rgba(255, 255, 255, .3); background: none; color: var(--color-text-invert); }
.as-acct__btn--outline:hover { border-color: var(--color-text-invert); color: var(--color-text-invert); }

/* ── Status pills ────────────────────────────────────────────────────────── */
.as-acct__pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.as-acct__pill--blue  { background: var(--color-surface-tint); color: var(--atomic-blue); }
.as-acct__pill--navy  { background: var(--atomic-dark); color: var(--color-text-invert); }
.as-acct__pill--amber { background: #fff3d6; color: #8a5a00; }
.as-acct__pill--grey  { background: var(--color-surface-alt); color: var(--color-text-muted); }

/* ── Dashboard ───────────────────────────────────────────────────────────── */
.as-acct__alert {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap;
	margin-bottom: 22px; padding: 22px 26px;
	border: 2px solid var(--atomic-blue); border-radius: var(--radius-md); background: var(--color-surface-tint);
}
.as-acct__alert-title { margin: 0; font-size: var(--text-body-lg); font-weight: 700; }
.as-acct__alert-note { margin: 4px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

.as-acct__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-bottom: 34px; }
.as-acct__stat {
	display: flex; flex-direction: column; gap: var(--space-1);
	padding: 26px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
}
.as-acct__stat-num { font-size: var(--text-h1); font-weight: 800; line-height: 1; letter-spacing: var(--tracking-tight); }
.as-acct__stat-label { font-size: var(--text-body); }
.as-acct__stat a { margin-top: 8px; font-size: var(--text-sm); font-weight: 700; }
.as-acct__stat--dark { border: 0; background: var(--atomic-dark); color: var(--color-text-invert); }
.as-acct__stat--dark p { margin: 0; font-size: var(--text-sm); line-height: 1.55; color: #c3c8d2; }
.as-acct__stat-head { font-size: var(--text-body-lg); font-weight: 700; }

.as-acct__sectionhead { display: flex; align-items: center; gap: var(--space-4); margin-bottom: 14px; }
.as-acct__sectionhead h2 { margin: 0; font-size: var(--text-h3); font-weight: 700; }
.as-acct__sectionhead a { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.as-acct__rule { flex: 1; height: 1.5px; background: var(--color-border-soft); }

.as-acct__recent { border: 1.5px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.as-acct__recent-row {
	display: flex; align-items: center; gap: var(--space-4-5);
	padding: 16px 24px; border-bottom: 1px solid var(--color-border-soft); font-size: var(--text-sm);
}
.as-acct__recent-row:last-child { border-bottom: 0; }
.as-acct__recent-total { margin-left: auto; font-weight: 700; }
.as-acct__date { color: var(--color-text-muted); }

/* ── Orders ──────────────────────────────────────────────────────────────── */
.as-acct__filters { display: flex; gap: var(--space-2-5); flex-wrap: wrap; margin-bottom: 22px; }
.as-acct__filter {
	padding: 11px 22px; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
	font-size: var(--text-sm); font-weight: 700; color: var(--color-text); background: var(--color-surface);
}
.as-acct__filter:hover { border-color: var(--atomic-blue); color: var(--atomic-blue); }
.as-acct__filter.is-on { background: var(--atomic-blue); border-color: var(--atomic-blue); color: var(--color-text-invert); }

.as-acct__order { margin-bottom: 26px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.as-acct__order-head {
	display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
	padding: 18px 24px; background: var(--color-surface-alt); font-size: var(--text-sm);
}
.as-acct__order-total { margin-left: auto; font-weight: 700; }
.as-acct__view { font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }

.as-acct__line {
	display: flex; align-items: center; gap: var(--space-4-5);
	padding: 18px 24px; border-top: 1px solid var(--color-border-soft);
}
.as-acct__order .as-acct__line:first-of-type { border-top: 0; }
.as-acct__thumb {
	width: 64px; height: 64px; flex: none; overflow: hidden;
	border: 1.5px solid var(--color-border-soft); border-radius: var(--radius-sm); background: var(--color-surface-alt);
}
.as-acct__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/*
 * The customer's own designs — see as_acct_item_thumb(). Contained, not
 * cropped: a die-cut sticker squared off is not the shape they bought. Several
 * designs are separate tiles, the way the cart draws a split line.
 */
.as-acct__thumb--art { background: #fff; }
.as-acct__thumb--art img { object-fit: contain; padding: 4px; box-sizing: border-box; }
.as-acct__thumb--multi {
	display: grid; grid-template-columns: repeat(var(--as-thumb-cols, 2), 40px); gap: 4px;
	width: auto; height: auto; overflow: visible; border: 0; background: none;
}
.as-acct__thumb--multi img,
.as-acct__thumb-more {
	width: 40px; height: 40px; padding: 2px; box-sizing: border-box; object-fit: contain;
	border: 1.5px solid var(--color-border-soft); border-radius: var(--radius-sm); background: #fff;
}
.as-acct__thumb-more {
	display: flex; align-items: center; justify-content: center;
	font-size: var(--text-sm); font-weight: 700; color: var(--color-text-muted);
}
.as-acct__line-body { display: flex; flex-direction: column; gap: var(--space-0-5); flex: 1; min-width: 0; }
.as-acct__line-name { font-size: var(--text-body); font-weight: 700; }
.as-acct__line-meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.as-acct__line-art { font-size: var(--text-sm); color: var(--color-text-muted); }
.as-acct__line-art span { color: var(--atomic-blue); font-weight: 700; }
.as-acct__line-art .as-acct__none { color: var(--color-placeholder); font-weight: 500; }
/*
 * "Send it now →" — the third state of the artwork line, for a customer who
 * chose to send their file after checkout. Amber rather than the blue used for
 * a filename, because this one is a thing to DO and the other is a fact.
 */
.as-acct__sendart {
	font-weight: 700;
	color: #B45309;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.as-acct__sendart:hover,
.as-acct__sendart:focus-visible { color: #92400E; }
.as-acct__qty { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.as-acct__line-price { font-size: var(--text-body); font-weight: 700; white-space: nowrap; min-width: 74px; text-align: right; }

.as-acct__order-foot {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-4-5); flex-wrap: wrap;
	padding: 18px 24px; border-top: 1px solid var(--color-border-soft);
}
.as-acct__foot-note { display: flex; align-items: center; gap: var(--space-3-5); flex-wrap: wrap; font-size: var(--text-sm); color: var(--color-text-muted); }
.as-acct__track { font-weight: 700; }
.as-acct__pager { display: flex; gap: var(--space-2-5); }

/* ── Order detail ────────────────────────────────────────────────────────── */
.as-acct__orderhead { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: 22px; }
.as-acct__orderhead .as-acct__title { margin: 0; }
.as-acct__dates { font-size: var(--text-body); color: var(--color-text-muted); }

.as-acct__rail-card { margin-bottom: 22px; padding: 30px 34px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); }
.as-acct__rail { display: flex; align-items: flex-start; }
.as-acct__rail-step { display: flex; flex-direction: column; align-items: center; gap: var(--space-1-5); flex: 1; text-align: center; }
.as-acct__rail-dot {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--color-surface-alt); color: var(--color-placeholder);
	font-size: var(--text-body); font-weight: 800;
}
.as-acct__rail-step.is-done .as-acct__rail-dot { background: var(--atomic-blue); color: var(--color-text-invert); }
.as-acct__rail-label { font-size: var(--text-sm); font-weight: 700; }
.as-acct__rail-step:not(.is-done) .as-acct__rail-label { color: var(--color-placeholder); }
.as-acct__rail-when { font-size: var(--text-sm); color: var(--color-text-muted); }
/* A button now — it opens the dialog below, it does not go anywhere. */
.as-acct__proof {
	font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--atomic-blue);
	border: 0; background: none; padding: 0; cursor: pointer;
}
.as-acct__proof:hover { text-decoration: underline; text-underline-offset: 2px; }

/*
 * "View proof" — each design's print file as approved, cut line drawn. See
 * view-order.php. Padding sits on the inner wrapper so a click on the
 * dialog element itself can only be the backdrop.
 */
.as-acct__proofs,
.as-acct__info {
	width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px);
	padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--color-surface); color: inherit;
}
.as-acct__proofs::backdrop,
.as-acct__info::backdrop { background: rgba(45, 52, 69, .55); }
.as-acct__proofs-inner,
.as-acct__info-inner { display: flex; flex-direction: column; gap: var(--space-4); padding: 24px; }
.as-acct__proofs-head,
.as-acct__info-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.as-acct__proofs-title,
.as-acct__info-title { margin: 0; font-size: var(--text-h3); }
.as-acct__proofs-close,
.as-acct__info-close {
	flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: var(--color-surface-alt); color: var(--color-text); font-size: 22px; line-height: 1; cursor: pointer;
}
.as-acct__proofs-close:hover,
.as-acct__info-close:hover { background: var(--color-border-soft); }
.as-acct__proofs-lede,
.as-acct__info-lede { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/*
 * "Reorder" on a line from before the switch-over (2026-11-15): a note on how
 * to order it again, not a cart. The proofs dialog's recipe, narrower, with
 * the three steps as a numbered list.
 */
.as-acct__info { width: min(520px, calc(100% - 32px)); }
.as-acct__info-steps { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-body); }
.as-acct__info-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.as-acct__proofs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.as-acct__proofs-card { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
/* Grey ground: the sticker's white border is part of what was approved. */
.as-acct__proofs-shot {
	display: block; aspect-ratio: 1; padding: 10px; box-sizing: border-box;
	border: 1.5px solid var(--color-border-soft); border-radius: var(--radius-sm); background: var(--color-surface-alt);
}
.as-acct__proofs-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.as-acct__proofs-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: var(--text-sm); min-width: 0; }
.as-acct__proofs-card strong { overflow-wrap: anywhere; }
.as-acct__proofs-card span { color: var(--color-text-muted); }
.as-acct__rail-link { flex: 1; height: 3px; margin-top: 16px; background: rgba(45, 56, 75, .15); }
.as-acct__rail-link.is-done { background: var(--atomic-blue); }

.as-acct__detail { margin-bottom: 22px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.as-acct__detail .as-acct__line:first-child { border-top: 0; }
.as-acct__totals { padding: 22px 24px; background: var(--color-surface-alt); }
.as-acct__total-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 5px 0; font-size: var(--text-sm); }
.as-acct__total-row span { color: var(--color-text-muted); }
.as-acct__total-row.is-total { margin-top: 8px; padding-top: 14px; border-top: 1.5px solid var(--color-border); font-size: var(--text-body-lg); }
.as-acct__total-row.is-total span, .as-acct__total-row.is-total strong { color: var(--color-text); font-weight: 700; }
.as-acct__paid { margin: 8px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

.as-acct__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: 22px; }
.as-acct__card { padding: 26px 28px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); }
.as-acct__card h2 { margin: 0; font-size: var(--text-body-lg); font-weight: 700; }
.as-acct__card p { margin: 0 0 6px; font-size: var(--text-sm); line-height: 1.6; }
.as-acct__card address { font-style: normal; font-size: var(--text-sm); line-height: 1.7; }

/*
 * The subscriber opt-in on Account details — the same control as the one on the
 * register card, wearing the account page's card instead of the login one's.
 */
.as-acct__optin {
	display: flex; align-items: flex-start; gap: var(--space-2-5); margin-top: 14px;
	font-size: var(--text-sm); line-height: 1.6; cursor: pointer;
}
.as-acct__optin input {
	width: 20px; height: 20px; flex: none; margin: 2px 0 0;
	accent-color: var(--atomic-blue);
}
.as-acct__card-head {
	margin: 0 0 10px !important;
	color: var(--atomic-blue);
}
.as-acct__card-strong { font-weight: 700; }
.as-acct__card-note { color: var(--color-text-muted); font-size: var(--text-sm) !important; }
.as-acct__card-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: 12px; }
.as-acct__card-top a { font-size: var(--text-sm); font-weight: 700; }
.as-acct__card--dark { border: 0; background: var(--atomic-dark); color: var(--color-text-invert); }
.as-acct__card--dark p { color: #c3c8d2; }
.as-acct__helpbtns { display: flex; gap: var(--space-2-5); flex-wrap: wrap; margin-top: 14px; }

.as-acct__again {
	display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap;
	padding: 22px 26px; border: 1.5px solid var(--color-border); border-radius: var(--radius-lg); font-size: var(--text-body);
}

/* ── Addresses ───────────────────────────────────────────────────────────── */
.as-acct__addresses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: 22px; }
.as-acct__warn {
	margin-bottom: 16px; padding: 18px 22px;
	border: 1.5px solid #e8c558; border-radius: var(--radius-md); background: #fff8e6;
	font-size: var(--text-sm); line-height: 1.6;
}
.as-acct__tip { padding: 18px 22px; border-radius: var(--radius-md); background: var(--color-surface-tint); font-size: var(--text-sm); line-height: 1.6; }

/* ── Account details ─────────────────────────────────────────────────────── */
.as-acct__form { display: flex; flex-direction: column; gap: var(--space-6); }
.as-acct__form .as-acct__card { display: flex; flex-direction: column; gap: var(--space-4); }
.as-acct__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.as-acct__save { display: flex; align-items: center; gap: var(--space-4-5); flex-wrap: wrap; }
.as-acct__save-note { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ── Empty states ────────────────────────────────────────────────────────── */
.as-acct__empty { padding: 44px; border-radius: var(--radius-lg); background: var(--color-surface-alt); text-align: center; }
.as-acct__empty h2 { margin: 0 0 8px; font-size: var(--text-h3); }
.as-acct__empty p { margin: 0 0 18px; color: var(--color-text-muted); }

@media (max-width: 900px) {
	.as-acct-shell .woocommerce { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
	/*
	 * The explicit placement above names column 2, and a one-column grid
	 * answers that by inventing an implicit second column — the nav collapsed
	 * to 0px with the content drawn over it, at every phone width.
	 */
	.as-acct-shell .woocommerce > .woocommerce-MyAccount-navigation,
	.as-acct-shell .woocommerce > .woocommerce-MyAccount-content { grid-column: 1 / -1; }
	.as-acct__nav ul { flex-direction: row; flex-wrap: wrap; }
	.as-acct__title { font-size: var(--text-h2); }
	.as-acct__stats, .as-acct__cards, .as-acct__addresses, .as-acct__grid2 { grid-template-columns: minmax(0, 1fr); }
	.as-acct__line { flex-wrap: wrap; }
	/* A basis, so the name drops under a row of design tiles rather than
	   shrinking beside them to one word a line. */
	.as-acct__line-body { flex-basis: 180px; }
	.as-acct__line-price { min-width: 0; }
	.as-acct__rail { flex-direction: column; align-items: flex-start; gap: var(--space-3-5); }
	.as-acct__rail-link { display: none; }
	.as-acct__rail-step { flex-direction: row; align-items: center; gap: var(--space-3); text-align: left; }
}

@media (max-width: 720px) {
	/*
	 * Recent orders on two lines: number, date and total, then the status and
	 * View. On one line the status pill pushed the total and View off the card
	 * (Dennis, 2026-11-12: "doesn't work on mobile").
	 */
	.as-acct__recent-row {
		display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "num date total" "pill pill view";
		align-items: center; gap: var(--space-2) var(--space-3); padding: 14px 16px;
	}
	.as-acct__recent-row > strong { grid-area: num; }
	.as-acct__recent-row > .as-acct__date { grid-area: date; white-space: nowrap; }
	.as-acct__recent-row > .as-acct__pill { grid-area: pill; justify-self: start; }
	.as-acct__recent-row > .as-acct__recent-total { grid-area: total; margin-left: 0; }
	.as-acct__recent-row > a { grid-area: view; white-space: nowrap; }
}


/*
 * ─── THE LEFT COLUMN IS THREE NUMBERED STEPS ─────────────────────────────────
 *
 * Billing fields and order notes are Woo's own children of #customer_details,
 * two levels down in a .col2-set — so the delivery block, rendered as a sibling
 * of that wrapper, cannot be placed between them in the markup. display:contents
 * dissolves the wrappers so all four sections become direct flex children of
 * .as-co__form, and `order` then puts them in the sequence the design asks for:
 * who's ordering, how you're getting it, anything we should know.
 *
 * The wrappers carry no background or border of their own, which is what makes
 * dissolving them safe — nothing is being thrown away except the nesting.
 */
.as-co__form {
	display: flex;
	flex-direction: column;
	counter-reset: as-step;
}
.as-co__form #customer_details,
.as-co__form #customer_details > .col-1,
.as-co__form #customer_details > .col-2 { display: contents; }

/*
 * ─── SPACING BY MARGIN, NOT BY GAP ───────────────────────────────────────────
 *
 * Dissolving the wrappers promoted everything inside them to flex items,
 * including two that render nothing: wc-order-attribution-inputs (hidden
 * inputs recording where the order came from) and .woocommerce-account-fields
 * (empty while guest checkout is off). Both are 0px tall and both default to
 * order:0, so they sorted above the billing card and a `gap` still allotted
 * each of them one. Three gaps of nothing put 72px between the top of the
 * column and its first card — the left column started below the right on
 * every checkout.
 *
 * Fixed by spacing the cards themselves rather than the container. A gap pays
 * out for every item present; a margin on the three that are actually cards
 * pays out only for them, and stays correct whatever else WooCommerce decides
 * to render in there next.
 *
 * (display:contents on the attribution element was the first attempt and was
 * worse — it dissolved the wrapper and promoted a dozen hidden inputs to flex
 * items in its place.)
 */
.as-co__form { gap: 0; }
.as-co__form > .as-fulfil-block,
.as-co__form .as-fulfil-block,
.as-co__form .woocommerce-additional-fields { margin-top: 18px; }
.as-co__form .woocommerce-billing-fields { margin-top: 0; }

.as-co__form .woocommerce-billing-fields    { order: 1; }
.as-co__form .woocommerce-shipping-fields   { order: 2; }
.as-co__form .as-fulfil-block               { order: 3; }
.as-co__form .woocommerce-additional-fields { order: 4; }

/*
 * The numbered disc. A counter rather than three hardcoded digits, because the
 * steps are conditional — a cart that needs no shipping renders no delivery
 * block, and a hardcoded "3" on the notes would leave a hole in the sequence.
 */
.as-co__form .woocommerce-billing-fields > h3,
.as-co__form .woocommerce-additional-fields > h3,
.as-co__form .as-fulfil-block > .as-co__section-title {
	display: flex; align-items: center; gap: var(--space-3);
	font-size: var(--text-body-lg); font-weight: 700; color: var(--color-text);
	margin: 0 0 14px;
}
/* Section 2 spaces its children with its 18px gap, so its heading's own 14px
   would add to it. After the shared rule above, which it has to beat. */
.as-co__form .as-fulfil-block > .as-co__section-title { margin-bottom: 0; }

.as-co__form .woocommerce-billing-fields > h3::before,
.as-co__form .woocommerce-additional-fields > h3::before,
.as-co__form .as-fulfil-block > .as-co__section-title::before {
	counter-increment: as-step;
	content: counter(as-step);
	flex: none; width: 28px; height: 28px; border-radius: 50%;
	background: var(--atomic-dark); color: #fff;
	font-size: var(--text-sm); font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}

/* Each step is its own card, as the design has them. */
.as-co__form .woocommerce-billing-fields,
.as-co__form .as-fulfil-block,
.as-co__form .woocommerce-additional-fields {
	background: var(--color-surface);
	border: 1.5px solid var(--color-border-soft);
	border-radius: var(--radius-lg);
	padding: 24px 26px;
}

/* Shown only when asked for. See the toggle in route-checkout.js. */
.as-co__company[hidden] { display: none; }
.as-co__company-toggle {
	grid-column: 1 / -1; justify-self: start;
	background: none; border: 0; padding: 0; margin-top: 2px;
	font: inherit; font-size: var(--text-sm); font-weight: 700;
	color: var(--atomic-blue); cursor: pointer;
}
.as-co__company-toggle:hover { color: var(--atomic-dark); }
.as-co__company-toggle[hidden] { display: none; }

/*
 * Now inside step 1, where it qualifies the address above it.
 *
 * Spaced ONCE. An older rule further up already gives this block a flex gap,
 * a top border and 16px of padding for when it stood on its own between the
 * steps; adding a second set here stacked two rules and two borders' worth of
 * air under the checkbox. The gap also applied to the hidden panel below it,
 * reserving space for something not on screen.
 */
.as-co__form .woocommerce-billing-fields .woocommerce-shipping-fields {
	margin-top: 14px; padding-top: 14px; gap: 0;
	border-top: 1px solid var(--color-border-soft);
}
/* Only once the panel is actually showing does it need separating. */
.as-co__form .woocommerce-billing-fields .woocommerce-shipping-fields .shipping_address {
	margin-top: 14px;
}

/*
 * ─── THE RIGHT RAIL IS ONE CARD ──────────────────────────────────────────────
 *
 * Order, payment, terms and the button are one continuous act — reading what
 * you are buying, saying how you will pay, and committing. Split across two
 * cards they read as two decisions with a gap in between, and the gap is where
 * the eye leaves the page.
 */
.as-co__side {
	background: var(--color-surface);
	border: 0;
	border-radius: var(--radius-lg);
	/* No top padding — it pushed "Your order" below the first form card's
	 * top edge across the gutter (Dennis, 2026-09-06). */
	padding: 0 24px 22px;
	display: flex; flex-direction: column; gap: var(--space-4);
}
.as-co__side > * { background: none; border: 0; padding: 0; margin: 0; }
.as-co__side .as-co__place { display: flex; flex-direction: column; gap: var(--space-3-5); }

/* The shop map on the order-received page, under the pickup details. */
.as-thanks__map { width: 100%; height: 220px; border: 0; display: block; border-radius: var(--radius-md); margin-top: 14px; background: #e3f6fc; }

/* The rule that separates the money from the paying, instead of a card edge. */
.as-co__side #payment {
	border-top: 1px solid var(--color-border-soft);
	padding-top: 16px;
}

/*
 * ─── TITLE AND ITS SHORTCUTS ON ONE LINE ─────────────────────────────────────
 *
 * The coupon prompt and "back to cart" are secondary to the word Checkout, and
 * the design sets them beside it rather than beneath — below the heading they
 * read as the first step of the form, which is exactly what they are not.
 *
 * The chips are moved INTO .as-co__head (see route-checkout.js) rather than
 * pulled up with a negative margin. The first attempt did the latter and the
 * two collided: .as-co__head is a flex row that already holds the title and
 * the back link, so anything lifted over it lands on top of them instead of
 * beside them. Inside, the flex row simply lays all three out.
 */
.as-co__head .as-co__chips {
	display: flex; align-items: center; gap: var(--space-2-5); flex-wrap: wrap;
	justify-content: flex-end; margin: 0 0 0 auto;
}
.as-co__head .as-co__back { margin-left: 0; }

@media (max-width: 720px) {
	.as-co__head .as-co__chips { margin-left: 0; justify-content: flex-start; }
}

/*
 * ─── ONE CARD PER THING, NOT CARDS INSIDE CARDS ──────────────────────────────
 *
 * .as-co__form carried a card of its own from when the left column WAS one
 * card. Now that each step is a card, that outer border draws a box around
 * three boxes — visible as a second rounded rectangle a few pixels outside the
 * steps, which is the kind of detail that reads as "unfinished" without
 * anybody being able to say why.
 */
.woocommerce .as-co__form {
	background: none; border: 0; border-radius: 0; padding: 0;
}

/*
 * Same in the rail. `.as-co__side > *` reset only the direct children, and
 * .as-co__place sits one level down inside #order_review — so the payment
 * half went on drawing its own card under the order summary and the rail
 * still read as two things.
 */
.as-co__side .as-co__place {
	background: none; border: 0; border-radius: 0; padding: 0;
}

/*
 * ─── STRIPE'S FIELDSETS ──────────────────────────────────────────────────────
 *
 * The gateway wraps its card element and its save-card row in <fieldset>s and
 * never resets them, so the browser's own default — `2px groove #efefef`, a
 * bevelled rectangle from about 1997 — draws a grey box around each. Two of
 * them, stacked, inside a panel that has no other hard edges anywhere.
 *
 * Reset rather than restyled. Stripe's own inputs already carry their borders,
 * and .payment_box is already the container; a third frame around a frame adds
 * nothing but noise. Legend hidden for the same reason — it is empty markup
 * that reserves vertical space.
 *
 * Scoped to #payment so any other fieldset on the site keeps its own styling.
 */
#payment fieldset {
	border: 0; margin: 0; padding: 0; min-width: 0;
}
#payment fieldset > legend { display: none; }

/* The save-card row reads as a choice, not as a form section. */
#payment .woocommerce-SavedPaymentMethods-saveNew,
#payment fieldset:has(#wc-stripe-new-payment-method) {
	margin-top: 10px;
}
#payment #wc-stripe-new-payment-method { margin-right: 8px; accent-color: var(--atomic-blue); }
#payment label[for="wc-stripe-new-payment-method"] {
	font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.45;
}

/*
 * ─── PICKUP CONFIRMATION, SCREEN 5a ──────────────────────────────────────────
 *
 * Opens on Place order when pickup is chosen. Two panes: the words on the
 * left, the map on the right, as the design has it.
 */
.as-pickup-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; }
.as-pickup-modal[hidden] { display: none; }
.as-pickup-modal__scrim { position: absolute; inset: 0; background: rgba(36, 41, 56, .55); }

.as-pickup-modal__card {
	position: relative; width: 640px; max-width: 100%;
	max-height: calc(100vh - 40px); overflow: auto;
	background: var(--color-surface); border-radius: var(--radius-xl);
	box-shadow: var(--shadow-modal);
	display: grid; grid-template-columns: 1fr 240px;
}

.as-pickup-modal__body { padding: 34px 36px 30px; display: flex; flex-direction: column; gap: var(--space-4-5); }
.as-pickup-modal__head { display: flex; flex-direction: column; gap: var(--space-1-5); }
.as-pickup-modal__eyebrow {
	font-size: var(--text-label); font-weight: 800; letter-spacing: .1em; color: var(--atomic-blue);
}
.as-pickup-modal__title {
	margin: 0; font-weight: 800; font-size: var(--text-h2);
	letter-spacing: -0.02em; line-height: 1.15; color: var(--color-text);
	text-wrap: balance;
}
.as-pickup-modal__lede { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
.as-pickup-modal__lede strong { color: var(--color-text); }

.as-pickup-modal__facts { display: flex; flex-direction: column; gap: var(--space-2-5); }
.as-pickup-modal__fact { display: flex; gap: var(--space-3); align-items: flex-start; }
.as-pickup-modal__fact > svg { color: var(--atomic-blue); flex: none; margin-top: 2px; }
.as-pickup-modal__strong { font-weight: 700; font-size: var(--text-sm); line-height: 1.35; color: var(--color-text); }
.as-pickup-modal__muted { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; padding-top: 2px; }
.as-pickup-modal__hours {
	display: grid; grid-template-columns: auto auto; column-gap: var(--space-4-5); row-gap: var(--space-0-5);
	font-size: var(--text-xs); margin-top: 4px;
}
.as-pickup-modal__hours span { color: var(--color-text-muted); }
.as-pickup-modal__hours strong { font-weight: 700; color: var(--color-text); }
.as-pickup-modal__hours em { font-style: normal; color: #9aa0ad; }

.as-pickup-modal__actions { display: flex; flex-direction: column; gap: var(--space-2-5); padding-top: 4px; }
.as-pickup-modal__go {
  border: 0;
  background: var(--atomic-blue);
  color: #fff;
}
.as-pickup-modal__go:hover { background: #159ac6; }
.as-pickup-modal__alt {
	border: 0; background: none; padding: 0;
	font: inherit; font-weight: 700; font-size: var(--text-sm);
	color: var(--color-text-muted); cursor: pointer;
}
.as-pickup-modal__alt:hover { color: var(--atomic-blue); }

.as-pickup-modal__map { position: relative; background: #e3f6fc; }
/* The live embed fills the pane; the tint stays as its loading ground. */
.as-pickup-modal__mapframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.as-pickup-modal__maplink {
	position: absolute; left: 16px; right: 16px; bottom: 16px;
	background: var(--atomic-dark); color: #fff;
	font-weight: 700; font-size: var(--text-xs); padding: 9px 0;
	border-radius: var(--radius-pill); text-align: center;
}
.as-pickup-modal__maplink:hover { color: #fff; background: #1f2635; }

body.as-modal-open { overflow: hidden; }

/* The map pane is decoration; on a phone the words are the whole point. */
@media (max-width: 560px) {
	.as-pickup-modal__card { grid-template-columns: 1fr; }
	.as-pickup-modal__map { display: none; }
}

/* ── Order pay — the invoice-payment page (checkout/form-pay.php) ────────── */

/*
 * The 'pay' route: same shell as the checkout, one centred column instead of
 * two — the customer arrived from an invoice email with nothing left to
 * decide but how to pay, and a 1160px workspace would be empty stage.
 */
.as-main.as-route-pay { max-width: none; padding-inline: 0; }
.as-route-pay .as-co__wrap { max-width: 660px; padding-top: 56px; }
.as-pay { display: flex; flex-direction: column; gap: var(--space-4); }

/* Item meta (size, material…) printed by wc_display_item_meta under the name. */
.as-pay .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: var(--text-label); color: var(--color-text-muted); line-height: 1.5; }
.as-pay .wc-item-meta li { margin: 0; }
.as-pay .wc-item-meta .wc-item-meta-label { font-weight: 600; }
.as-pay__item > span:first-child { color: var(--color-text); font-weight: 600; }

/*
 * Woo's notices on this route, restyled the way the checkout's are. Scoped
 * here rather than woven into the checkout's selector lists so the two roads
 * stay independently readable.
 */
.as-route-pay .woocommerce-message,
.as-route-pay .woocommerce-info {
	display: flex; align-items: center; gap: var(--space-3);
	margin: 0 0 22px; padding: 14px 20px;
	border: 0; border-radius: var(--radius-md); box-shadow: none;
	background: var(--color-surface-tint); color: var(--color-text);
	font-size: var(--text-sm); line-height: 1.5;
	list-style: none;
}
.as-route-pay .woocommerce-message::before,
.as-route-pay .woocommerce-info::before {
	position: static; display: inline-block; margin: 0;
	color: var(--atomic-blue); font-size: var(--text-body); line-height: 1;
}
.as-route-pay .woocommerce-error {
	margin: 0 0 22px; padding: 14px 20px; list-style: none;
	border: 1.5px solid #f3c9c5; border-radius: var(--radius-md); background: #fdf3f2;
	font-size: var(--text-sm); color: #8a2018;
}

/* The you-already-have-an-account line, under the email field. */
.as-co__email-note {
	margin: 6px 0 0; font-size: var(--text-xs); line-height: 1.5;
	color: #7a5410; background: #fffcf5; border: 1px solid #f0d5a8;
	border-radius: var(--radius-sm); padding: 8px 12px;
}
.as-co__email-note a { font-weight: 700; }

/* ── Shipping upgrade, on the account order ─────────────────────────────
   Offered at the price the customer was already shown at checkout, so the
   row leads with the service and the days saved rather than the money. */
.as-ship-up {
	margin-top: 14px; padding-top: 12px; border-top: 1px solid #eceff3;
}
.as-ship-up__head {
	margin: 0 0 8px; font-size: var(--text-sm); font-weight: 800; color: #2d384b;
}
.as-ship-up__row {
	display: flex; align-items: center; gap: var(--space-3); margin: 0 0 8px;
	flex-wrap: wrap;
}
.as-ship-up__what { flex: 1 1 200px; min-width: 0; font-size: var(--text-sm); }
.as-ship-up__what b { display: block; color: #2d384b; font-weight: 600; }
.as-ship-up__what span { color: #7d8698; font-size: var(--text-xs); }
.as-ship-up__go {
	border: 0;
	background: #1ab0e0;
	color: #fff;
	white-space: nowrap;
}
.as-ship-up__go:hover { background: #0f7ba2; }
.as-ship-up__note { margin: 6px 0 0; font-size: var(--text-xs); color: #98a2b3; line-height: 1.5; }
.as-ship-up__done {
	margin-top: 12px; font-size: var(--text-sm); font-weight: 700; color: #17803d;
}
