/**
 * WooCommerce My Account styles: dashboard, orders, addresses, account
 * details, downloads, wishlist and the signed-out login/register screen.
 * Split out of woocommerce.scss so other WooCommerce pages don't load them;
 * loaded after that sheet by Performance::enqueue_woocommerce() when
 * is_account_page().
 */

/* -------------------------------------------------------------------------
 * My Account
 * -------------------------------------------------------------------------
 * WooCommerce ships the account area as a bare `<nav>` of links beside an
 * unstyled `<div>` of endpoint content, which on a themed store reads as the
 * one page nobody designed. Everything below is CSS over the stock markup —
 * no template overrides — so a WooCommerce release that changes the endpoint
 * templates degrades to "less pretty" rather than "broken", and a plugin that
 * registers its own endpoint gets the same nav row and the same content card
 * for free.
 *
 * The layout is a two-column grid: the nav as a sidebar of rows, the endpoint
 * content as a single card beside it. `:has()` gates the grid on the nav
 * actually being present, because the same `.woocommerce` wrapper holds the
 * logged-out login/register screen, which is one centred column instead. */

/* The account area draws its own chrome — a card for the nav, a card for the
 * endpoint content — so the theme's per-entry card wraps two cards in a third,
 * three nested borders deep, and insets the whole hub from the page title that
 * names it. The hub is a self-contained UI rather than an article, so it opts
 * out of the entry card the way "Unboxed" content does, on both the logged-in
 * and logged-out screens. `body` is named to outrank `.aureon-entry`'s own
 * two-class overrides rather than tie them and be decided by load order. */
body.woocommerce-account .aureon-entry {
	padding: 0;
	border: 0;
	box-shadow: none;
}

.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr);
	align-items: start;

	/* A gutter, not a moat. The sidebar and the panel are two halves of one
	 * screen, and at the theme's `lg` step (32px) they read as two unrelated
	 * boxes with a strip of page between them. */
	gap: var(--aureon-space-md);
}

/* WooCommerce clears its own floats with `.woocommerce::before/::after`. A
 * generated box inside a grid container is a grid *item*, so those two empty
 * clearfix boxes took the first and third cells and pushed the nav into the
 * second column and the content into the row below it. Retiring them costs
 * nothing — a grid has no floats to clear. */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after {
	display: none;
}

/* Widths from the same float layout, now overruled by the grid tracks. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

/* Navigation ---------------------------------------------------------------
 * A card of rows rather than a bulleted list: each endpoint is a target, and a
 * target wants a whole row's hit area. The current row is filled rather than
 * merely bolded — at this size weight alone is too quiet to answer "where am
 * I". */

.woocommerce-account .woocommerce-MyAccount-navigation {
	position: sticky;
	top: calc(var(--aureon-header-height, 0px) + var(--aureon-space-md));

	/* Stretched to the panel's height rather than shrink-wrapped, so the card
	 * runs the full length of the screen it navigates. `start` (the grid's own
	 * alignment) left it ending under "Log out" with a page-coloured void below. */
	align-self: stretch;
	padding: 0.75rem;
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	font-size: 0.9375rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	gap: 0.85em;
	padding: 0.8em 1em;
	border-radius: var(--aureon-radius-sm);
	color: var(--aureon-color-text);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* The glyph is a mask rather than a background image so it inherits the row's
 * colour through every state — hover, current, and whatever the palette does
 * in dark mode — instead of needing a second, recoloured copy of each file. */
.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
	content: "";
	flex: 0 0 auto;
	width: 1.3em;
	height: 1.3em;
	background: currentcolor;
	opacity: 0.75;

	/* The endpoint's own glyph, set per endpoint just below. The bare circle is
	 * the fallback, so an endpoint this theme has never heard of — one a plugin
	 * registers — still gets a mark in the row rather than a blank indent. */
	mask: var(--aureon-account-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Z'/%3E%3C/svg%3E")) center / contain no-repeat;
	transition: opacity 0.15s ease;
}

/* Endpoint glyphs, named once each.
 *
 * `--aureon-account-icon` rather than a `mask-image` on the navigation row,
 * because the dashboard quick-link cards draw the same endpoint and would
 * otherwise carry a second copy of every one of these data URIs — two lists
 * to keep in step, and a plugin endpoint styled in one place but not the
 * other. Each rule names the navigation item and the card together, so the
 * pair cannot drift.
 *
 * Logout has no card (it is not a destination), and dashboard's card is
 * dropped too (it is the page the cards are on) — both keep their glyph here
 * for the navigation row. */

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard,
.aureon-account-links__item--dashboard {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders,
.aureon-account-links__item--orders {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M223.68,66.15,135.68,18a15.88,15.88,0,0,0-15.36,0l-88,48.17a16,16,0,0,0-8.32,14v95.64a16,16,0,0,0,8.32,14l88,48.17a15.88,15.88,0,0,0,15.36,0l88-48.17a16,16,0,0,0,8.32-14V80.18A16,16,0,0,0,223.68,66.15ZM128,32l80.34,44-29.77,16.3-80.35-44ZM128,120,47.66,76l33.9-18.56,80.34,44ZM40,90l80,43.78v85.79L40,175.82Zm176,85.78h0l-80,43.79V133.82l32-17.51V152a8,8,0,0,0,16,0V107.55L216,90v85.77Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads,
.aureon-account-links__item--downloads {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address,
.aureon-account-links__item--edit-address {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--payment-methods,
.aureon-account-links__item--payment-methods {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,16V88H32V64Zm0,128H32V104H224v88Zm-16-24a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h32A8,8,0,0,1,208,168Zm-64,0a8,8,0,0,1-8,8H120a8,8,0,0,1,0-16h16A8,8,0,0,1,144,168Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account,
.aureon-account-links__item--edit-account {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24ZM74.08,197.5a64,64,0,0,1,107.84,0,87.83,87.83,0,0,1-107.84,0ZM96,120a32,32,0,1,1,32,32A32,32,0,0,1,96,120Zm97.76,66.41a79.66,79.66,0,0,0-36.06-28.75,48,48,0,1,0-59.4,0,79.66,79.66,0,0,0-36.06,28.75,88,88,0,1,1,131.52,0Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wishlist,
.aureon-account-links__item--wishlist {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout,
.aureon-account-links__item--customer-logout {
	--aureon-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z'/%3E%3C/svg%3E");
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-link);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--aureon-color-primary);
	color: var(--aureon-color-button-text);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a::before {
	opacity: 1;
}

/* Signing out is not one of the places you can *be*, so it sits apart from the
 * endpoints above it rather than in the same run of rows. */
.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: var(--aureon-space-sm);
	padding-top: var(--aureon-space-sm);
	border-top: 1px solid var(--aureon-color-border);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--aureon-color-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var(--aureon-color-text);
}

/* Per-endpoint glyphs. The rule above carries a neutral default, so an
 * endpoint some plugin registered still gets an icon — just not a specific
 * one. */

/* Content card -------------------------------------------------------------
 * One card holding whichever endpoint is open. Padded generously, because the
 * endpoints are mostly prose and forms and this is the reading column. */

.woocommerce-account .woocommerce-MyAccount-content {
	min-width: 0;
	padding: var(--aureon-space-lg);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

/* WooCommerce puts the endpoint's title *inside* its form ("Billing address"
 * is the first child of `form.edit-address`), so the rule above — which only
 * reaches the card's own first child, the form — left the heading carrying a
 * full heading's top margin against the card's padding. */
.woocommerce-account .woocommerce-MyAccount-content form > :first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > :last-child {
	margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin-bottom: var(--aureon-space-sm);
	font-size: var(--aureon-font-size-lg);
}

/* Tables (orders, downloads, order details) --------------------------------
 * Stripped of WooCommerce's cell borders down to horizontal rules, which is
 * all a list of rows needs, and given a header row that reads as a label
 * rather than as data. */

.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0 0 var(--aureon-space-md);
	border: 0;
	border-radius: 0;
	border-collapse: collapse;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
	padding: 0 0.75em 0.6em;
	border: 0;
	border-bottom: 1px solid var(--aureon-color-border);
	background: none;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: start;
	text-transform: uppercase;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody th {
	padding: 0.9em 0.75em;
	border: 0;
	border-bottom: 1px solid var(--aureon-color-border);
	vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:last-child th {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot td,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tfoot th {
	border: 0;
	border-top: 1px solid var(--aureon-color-border);
}

/* The order number is the row's handle — the one cell you aim at. */
.woocommerce-account .woocommerce-orders-table__cell-order-number a {
	font-weight: 600;
	text-decoration: none;
}

/* Status as a pill.
 *
 * WooCommerce prints the label as bare text in the cell. Bare text has no box
 * to style — made a flex container, the cell turns it into an *anonymous* item,
 * and anonymous items take no rules — so a pill needs a real element. Rather
 * than override `orders.php` wholesale for one `<span>`, the WooCommerce module
 * hooks `woocommerce_my_account_my_orders_column_order-status`, the per-column
 * hook core checks before its own default, and prints the span itself. A
 * WooCommerce release that reworks the template keeps that hook; if the hook
 * ever goes, the cell falls back to core's bare text and the rules below leave
 * it legible rather than broken.
 *
 * Colour carries the meaning. All one muted grey, the status column costs a
 * column of the table and answers nothing — "Completed" and "Cancelled" read
 * identically, which is the state this started in. Each status maps to a
 * semantic token pair that already exists in the token set, so a re-themed
 * palette re-themes the pills with it. */
.woocommerce-account .woocommerce-orders-table__cell-order-status {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	white-space: nowrap;
}

.woocommerce-account .aureon-order-status {
	display: inline-block;
	padding: 0.25em 0.75em;
	border-radius: var(--aureon-radius-pill, 9999px);
	background: var(--aureon-status-bg, var(--aureon-color-surface-alt));
	color: var(--aureon-status-fg, var(--aureon-color-text-muted));
	font-size: var(--aureon-font-size-xs, 0.75rem);
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.01em;
}

.woocommerce-account .aureon-order-status--completed {
	--aureon-status-fg: var(--aureon-color-success, #16a34a);
	--aureon-status-bg: var(--aureon-color-success-light, #dcfce7);
}

.woocommerce-account .aureon-order-status--processing,
.woocommerce-account .aureon-order-status--pending {
	--aureon-status-fg: var(--aureon-color-info, #2563eb);
	--aureon-status-bg: var(--aureon-color-info-light, #dbeafe);
}

.woocommerce-account .aureon-order-status--on-hold {
	--aureon-status-fg: var(--aureon-color-warning, #d97706);
	--aureon-status-bg: var(--aureon-color-warning-light, #fef3c7);
}

.woocommerce-account .aureon-order-status--failed {
	--aureon-status-fg: var(--aureon-color-error, #dc2626);
	--aureon-status-bg: var(--aureon-color-error-light, #fee2e2);
}

/* Cancelled and refunded are outcomes, not problems — the muted pair, so the
 * row reads as closed rather than as an error demanding attention. */
.woocommerce-account .aureon-order-status--cancelled,
.woocommerce-account .aureon-order-status--refunded {
	--aureon-status-fg: var(--aureon-color-text-muted);
	--aureon-status-bg: var(--aureon-color-surface-alt);
}

/* The header has to follow the cell it labels — the buttons below it are
 * end-aligned, and a start-aligned "Actions" over them is the one heading in
 * the row that does not sit above its column. */
.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th.woocommerce-orders-table__header-order-actions {
	text-align: end;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
	padding: 0.45em 1em;

	/* `--aureon-font-size-xs` is not in the token set (the scale starts at `sm`),
	 * so the fallback is what actually sizes this; without one the button fell
	 * back to the UA's 13.6px, a size from no scale at all. */
	font-size: var(--aureon-font-size-xs, 0.75rem);
}

/* Downloads: the file name leads, the button trails.
 *
 * Column widths, because the browser's own guess was poor here: the four
 * columns split evenly, which left the product name wrapping mid-title and the
 * download button wrapping mid-file-name while "Downloads remaining" — a cell
 * that holds the glyph "∞" — sat on a quarter of the table. The two short
 * columns are sized to their content and the product name keeps the rest. */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th.download-remaining,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-remaining,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th.download-expires,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-expires {
	width: 1%;
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th.download-file,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-file {
	width: 1%;
	text-align: end;
}

/* The file name is the button's label, so the button is as wide as the name —
 * let the column size to it rather than wrapping "SVG pack (all 3 styles)"
 * onto two cramped lines inside a fixed box. */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-file .button {
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-downloads .download-product a {
	text-decoration: none;
}

/* WooCommerce marks the download button `.alt`, which in this theme is the
 * secondary (near-black) button — the checkout's "Place order" colour. In the
 * account area that made the one action in the Downloads table the only
 * near-black control on a screen whose every other action ("View", "Order
 * again", "Save changes") is the primary. The account area has no
 * primary/secondary pair to express, so the action is simply the primary. */
.woocommerce-account .woocommerce-MyAccount-content a.button.alt,
.woocommerce-account .woocommerce-MyAccount-content button.button.alt {
	background: var(--aureon-btn-bg, var(--aureon-color-primary));
	color: var(--aureon-btn-text, var(--aureon-color-button-text));
}

.woocommerce-account .woocommerce-MyAccount-content a.button.alt:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button.alt:hover {
	background: var(--aureon-btn-hover-bg, var(--aureon-color-primary-hover));
}

/* Addresses ----------------------------------------------------------------
 * WooCommerce lays billing and shipping out with its own `col2-set` floats,
 * which collapse to a single narrow column inside a card. A grid instead, and
 * each address in a bordered well so "no address set yet" reads as an empty
 * slot rather than as a missing paragraph. */

/* Same clearfix-as-grid-item trap as the page wrapper above, and the same
 * answer — `.col2-set` and `.u-columns` carry WooCommerce's clearfix too, and
 * every grid below is built from one of them. */
.woocommerce-account .woocommerce-Addresses.col2-set::before,
.woocommerce-account .woocommerce-Addresses.col2-set::after,
.woocommerce-account .woocommerce .u-columns.col2-set::before,
.woocommerce-account .woocommerce .u-columns.col2-set::after,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper::before,
.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper::after,
.woocommerce-account .woocommerce-EditAccountForm::before,
.woocommerce-account .woocommerce-EditAccountForm::after {
	display: none;
}

.woocommerce-account .woocommerce-Addresses.col2-set {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--aureon-space-md);
	width: auto;
	margin: 0;
}

.woocommerce-account .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-Addresses .col-2 {
	float: none;
	width: auto;
	padding: var(--aureon-space-md);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-sm);
	background: var(--aureon-color-surface-alt);
}

.woocommerce-account .woocommerce-Address {
	text-align: start;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--aureon-space-sm);
	margin-bottom: var(--aureon-space-sm);
}

/* The clearfix-as-flex-item trap again — WooCommerce puts its `::before`/
 * `::after` clearfix on this header too, and `space-between` then treats the
 * two empty boxes as items to space out. The leading one took a slot of its
 * own at the start of the row, which showed up as an empty gap to the left of
 * "Billing address" and pushed the heading in from the edge of its card.
 *
 * Core reaches these as `.woocommerce-account .addresses .title::before`, so
 * the same three classes are named here plus the header's own — matching core's
 * specificity would only tie it, leaving the winner decided by which
 * stylesheet happens to load second. */
.woocommerce-account .addresses .title.woocommerce-Address-title::before,
.woocommerce-account .addresses .title.woocommerce-Address-title::after {
	display: none;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-size: var(--aureon-font-size-md);
}

.woocommerce-account .woocommerce-Address-title .edit {
	flex: 0 0 auto;
	color: var(--aureon-color-link);
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-account .woocommerce-Address address {
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-style: normal;
	line-height: 1.7;
}

/* Forms --------------------------------------------------------------------
 * The edit-address and edit-account forms are two-column on anything wider
 * than a phone; a `form-row-wide` spans both. Labels above their field, which
 * is what the rest of the theme's forms do.
 *
 * Two *stated* tracks, not `auto-fit`. `auto-fit` fits as many 14rem tracks as
 * the row will hold, and the account content column is ~756px — room for
 * three. First and last name took the first two and the third stayed empty, so
 * the name pair filled two thirds of the row and stopped, which reads as a
 * layout that broke rather than one that chose. The single-column case is the
 * phone, and it is stated at the same breakpoint as the rest of this section
 * rather than inferred from a track width. */

.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper,
.woocommerce-account .woocommerce-EditAccountForm {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--aureon-space-md);
}

/* Short fields, paired. They ship as `form-row-wide`, so the `grid-column`
 * rule below has to be undone for each: `auto` returns them to auto-placement,
 * which pairs postcode with city and phone with email. This is the treatment
 * the checkout already gives the same field set (see "Address field grid") —
 * without it the account edition of the identical form ran eight fields deep,
 * one per row, and the two screens disagreed about the same address. */
/* stylelint-disable selector-id-pattern -- WooCommerce's own field IDs. */
.woocommerce-account .woocommerce-MyAccount-content form #billing_city_field,
.woocommerce-account .woocommerce-MyAccount-content form #billing_state_field,
.woocommerce-account .woocommerce-MyAccount-content form #billing_postcode_field,
.woocommerce-account .woocommerce-MyAccount-content form #billing_phone_field,
.woocommerce-account .woocommerce-MyAccount-content form #billing_email_field,
.woocommerce-account .woocommerce-MyAccount-content form #shipping_city_field,
.woocommerce-account .woocommerce-MyAccount-content form #shipping_state_field,
.woocommerce-account .woocommerce-MyAccount-content form #shipping_postcode_field {
	grid-column: auto;
}
/* stylelint-enable selector-id-pattern */

.woocommerce-account .woocommerce-MyAccount-content form .form-row {
	float: none;
	width: auto;
	margin: 0 0 var(--aureon-space-sm);
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-content form .form-row-wide,
.woocommerce-account .woocommerce-MyAccount-content form fieldset,
.woocommerce-account .woocommerce-MyAccount-content form .clear,
.woocommerce-account .woocommerce-EditAccountForm > p:last-of-type {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-content form .form-row label {
	display: block;
	margin-bottom: 0.35em;
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content form .form-row input.input-text,
.woocommerce-account .woocommerce-MyAccount-content form .form-row textarea,
.woocommerce-account .woocommerce-MyAccount-content form .form-row select {
	width: 100%;
}

/* "Password change" and friends. A ruled section rather than an inset panel:
 * the panel's own padding pushed its three fields ~17px to the right of every
 * other field in the same form, so the one column of inputs had two different
 * left edges. A top rule separates the group just as well and costs no indent.
 * `min-width: 0` because a `fieldset` refuses to shrink below its content's
 * intrinsic width as a grid item. */
.woocommerce-account .woocommerce-MyAccount-content form fieldset {
	min-width: 0;
	margin: var(--aureon-space-sm) 0 var(--aureon-space-md);
	padding: var(--aureon-space-md) 0 0;
	border: 0;
	border-top: 1px solid var(--aureon-color-border);
	background: none;
}

/* A `legend` normally cuts a notch in its fieldset's border and sits *in* it,
 * which against a single top rule left the rule starting halfway across the
 * row, beside the word rather than under it. Floating the legend takes it out
 * of the notch and back into normal flow, so the rule draws unbroken and the
 * legend reads as the section heading beneath it. `width: 100%` keeps the
 * float from shrink-wrapping the text and letting the first field ride up
 * beside it. */
.woocommerce-account .woocommerce-MyAccount-content form fieldset legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: var(--aureon-space-sm);
	font-size: var(--aureon-font-size-md);
	font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-account .woocommerce-MyAccount-content button[type="submit"] {
	margin-top: var(--aureon-space-xs);
}

/* Login / register -------------------------------------------------------
 * The signed-out screen (`woocommerce/myaccount/form-login.php`): a welcome
 * line, one card holding a login panel and — with registration open — a
 * register panel, and a row of reassurances underneath.
 *
 * Everything here hangs off `.aureon-login`, which only that template prints.
 * The lost-password and reset screens share the same `.woocommerce` wrapper
 * without it, and get the plain narrow measure at the foot of this section. */

.woocommerce-account .woocommerce:has(.aureon-login) {
	max-width: none;
}

/* One spacing scale for the whole screen, so the rhythm is decided in one place
 * and the phone can tighten it with three lines instead of a rule per element.
 * Built from the theme's own steps rather than fixed rem values, so a store that
 * changes its density changes this with it.
 *
 *   gap    between the big blocks — intro, card, benefits
 *   pad    inside a panel, and around the panels inside the card
 *   field  between one form row and the next
 *
 * The first pass built the form almost entirely from `--aureon-space-md` (16px):
 * fields 16px apart, a label 6px from its input, the checklist 5px between
 * lines. Every one of those was individually defensible and together they read
 * as a form with no air in it — the eye needs a step *larger* than the gap
 * inside a field to see the fields as separate things. */
.aureon-login {
	--aureon-login-gap: calc(var(--aureon-space-lg) * 1.5);
	--aureon-login-pad: calc(var(--aureon-space-lg) * 1.25);
	--aureon-login-field: calc(var(--aureon-space-md) * 1.5);

	margin-inline: auto;
}

/* Measure. Two panels side by side want the room; a single form does not, and
 * stretched to the full content width it is a wide box around two short fields.
 * Stacked is a single column by definition. `narrow` / `wide` (Customizer →
 * My Account → Login) choose between the two single-column measures. */
.aureon-login--columns,
.aureon-login--tabs {
	max-width: none;
}

.aureon-login--single {
	max-width: 32rem;
}

body.aureon-account-login-wide .aureon-login--single {
	max-width: 46rem;
}

/* Intro ------------------------------------------------------------------- */

.aureon-login__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--aureon-space-md) var(--aureon-login-gap);
	margin-bottom: var(--aureon-login-gap);
}

.aureon-login__lead {
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.4;
}

.aureon-login__perk {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	padding: 0.75rem calc(var(--aureon-space-md) * 1.25);
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-color-primary) 8%, transparent);
}

.aureon-login__perk-text,
.aureon-login__switch-text,
.aureon-login__benefits li > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}

.aureon-login__perk-text strong,
.aureon-login__switch-text strong,
.aureon-login__benefits strong {
	color: var(--aureon-color-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.aureon-login__perk-text span,
.aureon-login__switch-text span,
.aureon-login__benefits li > span:last-child span {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

/* Badges ------------------------------------------------------------------ */

.aureon-login__badge {
	display: grid;
	flex: 0 0 auto;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--aureon-radius-pill, 9999px);
	background: color-mix(in srgb, var(--aureon-color-primary) 14%, transparent);
	color: var(--aureon-color-link-hover);
	place-items: center;
}

.aureon-login__badge svg {
	width: 1.6rem;
	height: 1.6rem;
}

/* The register panel takes the success tone, so the two doors are told apart by
 * colour as well as by their heading — one is "back", one is "new". */
.aureon-login__badge--green {
	background: color-mix(in srgb, var(--aureon-color-success, #16a34a) 14%, transparent);
	color: var(--aureon-color-success, #16a34a);
}

.aureon-login__badge--soft {
	width: 2.75rem;
	height: 2.75rem;
}

.aureon-login__badge--soft svg {
	width: 1.3rem;
	height: 1.3rem;
}

/* Card -------------------------------------------------------------------- */

.aureon-login__card {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: calc(var(--aureon-space-md) * 1.25);
	padding: calc(var(--aureon-space-md) * 1.5);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-lg);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

/* One form has no pair to hold together, so the outer card would only be a
 * second border around the panel's own. */
.aureon-login--single .aureon-login__card {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.aureon-login__panel {
	display: flex;
	flex-direction: column;
	padding: var(--aureon-login-pad);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

/* OR, in the gap between the panels.
 *
 * It used to be a vertical rule with a circle on it. Between two panels that
 * already have borders that made three parallel lines a few pixels apart, with
 * the label floating on the middle one — the divider was doing the panels' job
 * and adding noise to it. The rule is gone: the badge alone, centred on the
 * gutter and overlapping both panel edges, says "either / or" and reads as a
 * single mark. The ring of card colour round it keeps the two borders from
 * touching it. */
.aureon-login__or {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	z-index: 1;
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--aureon-color-border);
	border-radius: 50%;
	background: var(--aureon-color-surface, var(--aureon-color-background));
	box-shadow: 0 0 0 6px var(--aureon-color-surface, var(--aureon-color-background));
	color: var(--aureon-color-text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	place-items: center;
	transform: translate(-50%, -50%);
}

/* The phone: one column, and the badge drops out of the gutter into the flow —
 * with the panels stacked there is no vertical gap to centre it on. */
@media (max-width: 782px) {

	/* iOS zooms the page when a focused input is under 16px, so the phone keeps
	 * the full size the desktop steps down from. `body` is named to outrank the
	 * base input rule further down the file, which shares this selector and would
	 * otherwise win on source order — the media query alone does not beat it. */
	body .woocommerce-account .aureon-login .form-row .aureon-login__field input.input-text,
	body.woocommerce-account .aureon-login .form-row .aureon-login__field input.input-text {
		font-size: 1rem;
	}

	.aureon-login {
		--aureon-login-gap: var(--aureon-space-lg);
		--aureon-login-pad: calc(var(--aureon-space-md) * 1.25);
		--aureon-login-field: calc(var(--aureon-space-md) * 1.25);
	}

	.aureon-login--columns .aureon-login__card {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--aureon-space-md);
	}

	.aureon-login--columns .aureon-login__or {
		position: static;
		justify-self: center;
		transform: none;
	}

}

/* Panel head -------------------------------------------------------------- */

.aureon-login__head {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin-bottom: calc(var(--aureon-space-lg) * 1.25);
}

.aureon-login__head h2 {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.aureon-login__head p {
	margin: 0.25em 0 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

/* Form -------------------------------------------------------------------- */

/* WooCommerce's own layout sheet frames `form.login` / `form.register` as a
 * bordered box with a `2em` margin. The panel is the frame here, so the form
 * inside it stands down. */
.woocommerce-account .aureon-login form.woocommerce-form {
	margin: 0 0 var(--aureon-space-md);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce-account .aureon-login .form-row {
	float: none;
	width: auto;
	margin: 0 0 var(--aureon-login-field);
	padding: 0;
}

.woocommerce-account .aureon-login .form-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
}

.aureon-login__field {
	position: relative;
	display: block;
}

.aureon-login__field-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 1rem;
	z-index: 1;
	width: 1.15rem;
	height: 1.15rem;
	color: var(--aureon-color-text-muted);
	pointer-events: none;
	transform: translateY(-50%);
}

.woocommerce-account .aureon-login .form-row .aureon-login__field input.input-text {
	width: 100%;
	height: 3.25rem;
	padding-block: 0;
	padding-inline: 2.75rem 1rem;
	font-size: 0.9375rem;
}

/* WooCommerce wraps a password input and adds its show/hide button in the same
 * box, pinned to the end — the padding keeps typed text out from under it. */
.woocommerce-account .aureon-login .password-input {
	display: block;
}

.woocommerce-account .aureon-login .password-input input.input-text {
	padding-inline-end: 3rem;
}

/* Remember me / Lost your password — the two small things flanking the submit,
 * on one line. Either can be switched off; the row copes with one. */
.aureon-login__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--aureon-space-sm);
	margin-bottom: var(--aureon-login-field);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.4;
}

.aureon-login__row .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-weight: 400;
	line-height: 1.4;
}

.aureon-login__row input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	vertical-align: middle;
	accent-color: var(--aureon-color-primary);
}

.aureon-login__row .lost_password {
	margin: 0 0 0 auto;
	font-size: var(--aureon-font-size-sm);
}

.aureon-login__row .lost_password a {
	color: var(--aureon-color-link, var(--aureon-color-primary));
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.aureon-login__row .lost_password a:hover {
	color: var(--aureon-color-link-hover, var(--aureon-color-primary-hover));
}

.woocommerce-account .aureon-login .aureon-login__submit {
	margin: 0;
}

.woocommerce-account .aureon-login .aureon-login__submit .button {
	width: 100%;
	height: 3.5rem;
	gap: 0.6em;
	font-size: 0.9375rem;
}

.aureon-login__submit-icon {
	width: 1.15em;
	height: 1.15em;
	transition: transform 0.15s ease;
}

.aureon-login__submit .button:hover .aureon-login__submit-icon {
	transform: translateX(0.2em);
}

/* Or continue with — only printed when a plugin filled the slot. */
.aureon-login__divider {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin: var(--aureon-login-field) 0 var(--aureon-space-md);
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.aureon-login__divider::before,
.aureon-login__divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--aureon-color-border);
}

.aureon-login__extra {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aureon-space-sm);
}

.aureon-login__extra > * {
	flex: 1 1 9rem;
}

/* Register ---------------------------------------------------------------- */

.aureon-login__rules {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0 0 var(--aureon-login-field);
	padding: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	list-style: none;
}

/* The checklist is the password field's own caption, so the field closes up to
 * it instead of leaving a full field-gap between them. */
.woocommerce-account .aureon-login .form-row:has(+ .aureon-login__rules) {
	margin-bottom: 0.75rem;
}

.aureon-login__rules li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.aureon-login__rule-icon {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--aureon-color-border-strong, var(--aureon-color-border));
	transition: color 0.15s ease;
}

.aureon-login__rules li.is-met {
	color: var(--aureon-color-text);
}

.aureon-login__rules li.is-met .aureon-login__rule-icon {
	color: var(--aureon-color-success, #16a34a);
}

/* WooCommerce's line about the emailed password link, when it generates one. */
.aureon-login__note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 var(--aureon-login-field);
	padding: 0.75rem var(--aureon-space-md);
	border-radius: var(--aureon-radius-sm);
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.5;
}

.aureon-login__note-icon {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.1em;
}

/* Already have an account — a whole-strip link, for the phone where the login
 * panel is a scroll away; on a wide screen it is the same door twice, which
 * costs little and gives the panel a natural foot. */
.aureon-login__switch {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin-top: auto;
	padding: calc(var(--aureon-space-md) * 1.25);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text);
	text-decoration: none;
}

/* Both panels end on one of these, pinned to the foot with `margin-top: auto`
 * so the two cards finish on the same line whichever form is taller. The form
 * above carries its own bottom margin (see the reset above), since the auto
 * margin collapses to nothing when a panel has no spare height. */

.aureon-login__switch-cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.4em;
	margin-inline-start: auto;
	color: var(--aureon-color-link, var(--aureon-color-primary));
	font-size: 0.9375rem;
	font-weight: 600;
	white-space: nowrap;
}

.aureon-login__switch-cta svg {
	width: 1.1em;
	height: 1.1em;
}

.aureon-login__switch:hover .aureon-login__switch-cta {
	color: var(--aureon-color-link-hover, var(--aureon-color-primary-hover));
}

/* Side by side, both forms are on screen, so a "Sign up" link beside the
 * Register form — or a "Log in" link beside the Login form — points at
 * something the visitor is already looking at. The strips exist for the phone,
 * where the panels stack and the other form is a scroll away, so that is the
 * only place they show. With them gone the form's own bottom margin has nothing
 * beneath it to separate from, so it goes too.
 *
 * `.aureon-login--columns` rather than a bare `.aureon-login__switch` rule: the
 * base `display: flex` above would otherwise decide by source order, and this
 * has to hold whatever order the file ends up in. The tabbed layout does not
 * print these at all — it has its own footer band, and only one form on screen
 * at a time. */
.aureon-login--columns .aureon-login__switch {
	display: none;
}

.aureon-login--columns .aureon-login__panel form.woocommerce-form {
	margin-bottom: 0;
}

@media (max-width: 782px) {

	.aureon-login--columns .aureon-login__switch {
		display: flex;
	}

	.aureon-login--columns .aureon-login__panel form.woocommerce-form {
		margin-bottom: var(--aureon-space-md);
	}
}

/* Benefits ---------------------------------------------------------------- */

.aureon-login__benefits {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: var(--aureon-space-md) 0;
	margin: var(--aureon-login-gap) 0 0;
	padding: 0;
	list-style: none;
}

.aureon-login__benefits li {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin: 0;
	padding-inline: var(--aureon-space-lg);
}

.aureon-login__benefits li + li {
	border-inline-start: 1px solid var(--aureon-color-border);
}

/* A single column has no room for three side by side — a plain list instead,
 * not the 2 + 1 that `auto-fit` made of it. */
.aureon-login--single .aureon-login__benefits {
	grid-template-columns: minmax(0, 1fr);
}

.aureon-login--single .aureon-login__benefits li {
	padding-inline: 0;
}

.aureon-login--single .aureon-login__benefits li + li {
	border-inline-start: 0;
}

/* Phone: the strip's copy and its link no longer share a line — the link drops
 * under the text, indented to it, and the panel heading gives up some size so
 * "Create an account" is not three lines beside its badge. */
@media (max-width: 520px) {

	.aureon-login__switch {
		flex-wrap: wrap;
	}

	.aureon-login__switch-text {
		flex: 1 1 10rem;
	}

	.aureon-login__switch-cta {
		flex-basis: 100%;
		margin-inline-start: calc(2.75rem + var(--aureon-space-md));
	}

	.aureon-login__badge:not(.aureon-login__badge--soft) {
		width: 3rem;
		height: 3rem;
	}

	.aureon-login__head h2 {
		font-size: var(--aureon-font-size-lg);
	}
}

@media (max-width: 782px) {

	.aureon-login__benefits li {
		padding-inline: 0;
	}

	.aureon-login__benefits li + li {
		border-inline-start: 0;
	}
}

/* Tabs --------------------------------------------------------------------
 * One card, with Login and Register as its two tabs — for a store that wants
 * the sign-in screen to read as a single, quiet form rather than a pair. */

.aureon-login--tabs {
	--aureon-tabs-pad: calc(var(--aureon-space-lg) * 1.25);
}

/* The page title and the welcome line become one centred heading block. The
 * title area is the theme's own; it is reached from the body because the
 * template cannot see it. */
body:has(.aureon-login--tabs) .aureon-title-area {
	margin-bottom: var(--aureon-space-sm);
	padding-bottom: 0;
	border-bottom: 0;
	text-align: center;
}

.aureon-login--tabs .aureon-login__intro {
	justify-content: center;
	margin-bottom: var(--aureon-login-gap);
	text-align: center;
}

.aureon-login--tabs .aureon-login__card {
	display: block;
	max-width: 44rem;
	margin-inline: auto;
	padding: 0;
	overflow: hidden;
	border-radius: var(--aureon-radius-lg);
	box-shadow: 0 16px 40px -16px rgb(15 23 42 / 18%);
}

.aureon-login__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-bottom: 1px solid var(--aureon-color-border);
	background: var(--aureon-color-surface-alt);
}

.aureon-login__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	margin-bottom: -1px;
	padding: 1.4rem var(--aureon-space-md);
	border-bottom: 3px solid transparent;
	color: var(--aureon-color-text-muted);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.aureon-login__tab:hover,
.aureon-login__tab:focus-visible {
	color: var(--aureon-color-text);
	text-decoration: none;
}

.aureon-login__tab[aria-selected="true"],
.aureon-login__tab[aria-selected="true"]:hover {
	border-bottom-color: var(--aureon-color-primary);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	color: var(--aureon-color-link-hover);
}

.aureon-login__tab-icon {
	width: 1.5rem;
	height: 1.5rem;
}

/* The panel gives up its own frame: the card is the frame. */
.aureon-login--tabs .aureon-login__panel {
	padding: calc(var(--aureon-tabs-pad) * 1.1) var(--aureon-tabs-pad) 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.aureon-login--tabs .aureon-login__head {
	margin-bottom: var(--aureon-login-field);
}

.aureon-login--tabs .aureon-login__head h2 {
	font-size: 1.5rem;
}

/* The foot runs edge to edge under the form, on a tinted band, so it reads as
 * the card's own base rather than as another block inside the panel — hence the
 * negative margins, which take back the panel's padding on the three sides that
 * have it. */
.aureon-login__foot {
	margin: var(--aureon-space-lg) calc(var(--aureon-tabs-pad) * -1) 0;
	padding: calc(var(--aureon-space-lg) * 1.1) var(--aureon-space-lg);
	background: var(--aureon-color-surface-alt);
	text-align: center;
}

.aureon-login__foot p {
	margin: 0;
	font-size: 0.9375rem;
}

.aureon-login__foot strong {
	color: var(--aureon-color-heading);
	font-weight: 600;
}

.aureon-login__foot a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: var(--aureon-color-link, var(--aureon-color-primary));
	font-weight: 600;
	text-decoration: none;
}

.aureon-login__foot a:hover {
	color: var(--aureon-color-link-hover, var(--aureon-color-primary-hover));
}

.aureon-login__foot a svg {
	width: 1.1em;
	height: 1.1em;
}

.aureon-login__foot > span {
	display: block;
	margin-top: 0.4rem;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

/* With script running only the selected panel shows. Without it both are on
 * the page, one under the other, and the tab strip degrades to two jump links —
 * so nothing here depends on JavaScript for a customer to be able to sign in. */
.aureon-login--tabs .aureon-login__panel[hidden] {
	display: none;
}

/* The benefits row sits under the card at the full content width, with bare
 * line icons rather than the badges the side-by-side layout uses. */
.aureon-login--tabs .aureon-login__benefits {
	margin-top: calc(var(--aureon-login-gap) * 1.25);
}

.aureon-login--tabs .aureon-login__benefits .aureon-login__badge {
	width: auto;
	height: auto;
	background: none;
	color: var(--aureon-color-text-muted);
}

.aureon-login--tabs .aureon-login__benefits .aureon-login__badge svg {
	width: 2.25rem;
	height: 2.25rem;
}

@media (max-width: 520px) {

	.aureon-login--tabs {
		--aureon-tabs-pad: 1.25rem;
	}
}

/* The other signed-out screens (lost password, reset) share the wrapper and
 * the narrow measure, without the login markup. */
.woocommerce-account .woocommerce:not(.aureon-nexus-account__woo):not(:has(.woocommerce-MyAccount-navigation)):not(:has(.aureon-login)) {
	max-width: 30rem;
	margin-inline: auto;
}

/* Orders list --------------------------------------------------------------
 * `woocommerce/myaccount/orders.php`: a banner, a bar of status tabs with a
 * search box and sort menu, then the orders as rows — thumbnails, number and
 * date, status, total, actions — with the count and the pager underneath. */

.aureon-orders {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
}

/* Banner ------------------------------------------------------------------- */

.aureon-banner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-lg);
	padding: calc(var(--aureon-space-lg) * 1.1) calc(var(--aureon-space-lg) * 1.25);
	overflow: hidden;
	border-radius: var(--aureon-radius-lg);
	background: linear-gradient(105deg, color-mix(in srgb, var(--aureon-color-primary) 11%, var(--aureon-color-surface, #fff)), var(--aureon-color-surface, #fff) 85%);
}

.aureon-banner__art {
	display: grid;
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--aureon-color-primary) 14%, transparent);
	color: color-mix(in srgb, var(--aureon-color-primary) 55%, transparent);
	place-items: center;
}

.aureon-banner__art svg {
	width: 3.5rem;
	height: 3.5rem;
}

.aureon-banner__body h2 {
	margin: 0 0 0.3em;
	font-size: 1.5rem;
	line-height: 1.2;
}

.aureon-banner__body p {
	max-width: 32rem;
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.6;
}

/* Handwritten, and only decoration: `aria-hidden` in the markup. The stack asks
 * for the script faces the common platforms ship and falls back to `cursive`
 * generically, so it degrades to whatever the visitor's system calls a script
 * rather than to a broken glyph. */
.aureon-banner__tagline {
	max-width: 11rem;
	margin: 0;
	color: var(--aureon-color-link-hover);
	font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
	font-size: 1.35rem;
	line-height: 1.25;
	text-align: center;
	transform: rotate(-5deg);
}

/* Tabs / search / sort ----------------------------------------------------- */

.aureon-orders__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--aureon-space-md);
	margin-top: var(--aureon-space-sm);
}

.aureon-orders__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 calc(var(--aureon-space-md) * 1.5);
}

.aureon-orders__tabs a {
	margin-bottom: -1px;
	padding: 0.8rem 0.1rem;
	border-bottom: 3px solid transparent;
	color: var(--aureon-color-text-muted);
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
}

.aureon-orders__tabs a:hover {
	color: var(--aureon-color-text);
}

.aureon-orders__tabs a.is-active {
	border-bottom-color: var(--aureon-color-primary);
	color: var(--aureon-color-heading);
	font-weight: 600;
}

/* `margin-inline-start: auto` so that when the bar is too narrow to hold tabs
 * and search on one line, the search drops under them flush right rather than
 * left, where it read as an orphan of the tabs above. */
.aureon-orders__search {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aureon-space-sm);
	margin-inline-start: auto;
}

.aureon-orders__field {
	position: relative;
	display: block;
}

.aureon-orders__field-icon {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 0.9rem;
	width: 1.1rem;
	height: 1.1rem;
	color: var(--aureon-color-text-muted);
	pointer-events: none;
	transform: translateY(-50%);
}

.woocommerce-account .aureon-orders__field input[type="search"],
.woocommerce-account .aureon-orders__sort select {
	height: 2.75rem;
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background-color: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-text);
	font-size: var(--aureon-font-size-sm);
}

.woocommerce-account .aureon-orders__field input[type="search"] {
	width: 12rem;
	padding: 0 1rem 0 2.6rem;
}

.woocommerce-account .aureon-orders__sort select {
	padding: 0 2.25rem 0 1rem;
}

/* Rows --------------------------------------------------------------------- */

.aureon-orders__list {
	display: grid;
	gap: var(--aureon-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aureon-order {
	display: grid;
	grid-template-columns: 7.5rem minmax(9.5rem, 1fr) 8.5rem 7.5rem auto;
	align-items: center;
	gap: var(--aureon-space-md);
	margin: 0;
	padding: calc(var(--aureon-space-md) * 1.1) calc(var(--aureon-space-md) * 1.25);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	transition: border-color 0.15s ease;
}

.aureon-order:hover {
	border-color: color-mix(in srgb, var(--aureon-color-primary) 45%, var(--aureon-color-border));
}

/* Without thumbnails the first track has nothing to hold. */
.aureon-orders:not(:has(.aureon-order__thumbs)) .aureon-order {
	grid-template-columns: minmax(9.5rem, 1fr) 8.5rem 7.5rem auto;
}

.aureon-order__thumbs {
	display: flex;
	gap: 0.5rem;
}

.aureon-order__thumb {
	display: grid;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
	place-items: center;
}

.aureon-order__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aureon-order__main {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.15rem;
}

.aureon-order__number {
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-md);
	font-weight: 600;
	text-decoration: none;
}

.aureon-order__main time {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	white-space: nowrap;
}

/* The status pill with a dot, and squarer than the table's — it sits among
 * rows of real content rather than in a column of labels. */
.woocommerce-account .aureon-order__status {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	justify-self: start;
	padding: 0.4em 0.9em;
	border-radius: var(--aureon-radius-md);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
}

.aureon-order__status::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: currentcolor;
}

.aureon-order__total {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	line-height: 1.3;
}

.aureon-order__total strong {
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-md);
	font-weight: 600;
}

.aureon-order__total span {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-order__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--aureon-space-sm);
}

.aureon-order__view {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.7em 1.1em;
	border: 1px solid color-mix(in srgb, var(--aureon-color-primary) 65%, transparent);
	border-radius: var(--aureon-radius-md);
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.aureon-order__view:hover {
	background: color-mix(in srgb, var(--aureon-color-primary) 9%, transparent);
}

.aureon-order__view svg {
	width: 1.15em;
	height: 1.15em;
}

.aureon-order__view-caret {
	margin-inline-start: 0.4em;
	color: var(--aureon-color-text-muted);
}

/* Pay, Cancel and whatever a plugin adds — quieter than View, and Pay is the
 * one that asks the customer to do something. */
.aureon-order__action {
	padding: 0.7em 1em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	color: var(--aureon-color-text);
	font-size: var(--aureon-font-size-sm);
	text-decoration: none;
	white-space: nowrap;
}

.aureon-order__action.pay {
	border-color: var(--aureon-color-primary);
	background: var(--aureon-color-primary);
	color: var(--aureon-color-button-text);
}

/* Foot --------------------------------------------------------------------- */

.aureon-orders__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--aureon-space-md);
	margin-top: var(--aureon-space-sm);
}

.aureon-orders__count {
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-orders__pager {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.aureon-orders__page {
	display: grid;
	min-width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-text);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
	place-items: center;
}

.aureon-orders__page:hover {
	border-color: var(--aureon-color-primary);
}

.aureon-orders__page.is-current {
	border-color: var(--aureon-color-primary);
	background: var(--aureon-color-primary);
	color: var(--aureon-color-button-text);
}

.aureon-orders__page svg {
	width: 1rem;
	height: 1rem;
	color: var(--aureon-color-text-muted);
}

.aureon-orders__gap {
	color: var(--aureon-color-text-muted);
}

.aureon-orders__empty {
	margin: var(--aureon-space-lg) 0;
	color: var(--aureon-color-text-muted);
	text-align: center;
}

/* Narrower: the row folds into two lines — thumbnails on top, then number and
 * status, then total and actions — and the bar stacks, with the tabs scrolling
 * sideways rather than wrapping into a second row of them. */
@media (max-width: 900px) {

	.aureon-order,
	.aureon-orders:not(:has(.aureon-order__thumbs)) .aureon-order {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: var(--aureon-space-sm) var(--aureon-space-md);
	}

	.aureon-order__thumbs,
	.aureon-order__actions {
		grid-column: 1 / -1;
	}

	.aureon-order__status {
		grid-column: 2;
		grid-row: 2;
	}

	.aureon-order__main {
		grid-column: 1;
		grid-row: 2;
	}

	.aureon-order__total {
		grid-column: 1;
	}

	.aureon-order__actions {
		justify-content: stretch;
	}

	.aureon-order__view {
		flex: 1;
		justify-content: center;
	}

	.aureon-banner {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.aureon-banner__tagline {
		display: none;
	}

	.aureon-orders__tabs {
		flex-wrap: nowrap;
		width: 100%;
		overflow-x: auto;
		border-bottom: 1px solid var(--aureon-color-border);
	}

	.aureon-orders__search,
	.aureon-orders__field,
	.woocommerce-account .aureon-orders__field input[type="search"] {
		width: 100%;
	}

	.aureon-orders__search {
		flex-wrap: nowrap;
	}
}

@media (max-width: 560px) {

	.aureon-banner {
		grid-template-columns: minmax(0, 1fr);
	}

	.aureon-banner__art {
		display: none;
	}
}

/* Account page header ------------------------------------------------------
 * The subtitle and "Continue shopping" button `Account_Pages::head()` prints
 * inside the theme's title area. The header becomes a two-column grid — title
 * and subtitle stacked at the left, the button centred against both at the
 * right — and drops the rule under it: with a subtitle the title is a heading
 * block, not a line above the content. `:has()` scopes all of it to a header
 * that actually carries the subtitle, so no other page's title area changes. */

.aureon-title-area:has(.aureon-account-subtitle) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: var(--aureon-space-md);
	padding-bottom: 0;
	border-bottom: 0;
}

.aureon-title-area:has(.aureon-account-subtitle) > :not(.aureon-account-subtitle, .aureon-account-continue) {
	grid-column: 1;
}

.aureon-account-subtitle {
	grid-column: 1;
	margin: 0.25rem 0 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-account-continue {
	display: inline-flex;
	grid-column: 2;
	grid-row: 1 / span 3;
	align-items: center;
	gap: 0.6em;
	padding: 0.75em 1.25em;
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.aureon-account-continue:hover {
	border-color: var(--aureon-color-primary);
}

.aureon-account-continue__icon {
	display: inline-flex;
	align-items: center;
}

.aureon-account-continue svg {
	display: block;
	flex: none;
	width: 1.4em;
	height: 1.4em;
}

@media (max-width: 640px) {

	.aureon-title-area:has(.aureon-account-subtitle) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--aureon-space-sm);
	}

	.aureon-account-continue {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
	}
}

/* Downloads ---------------------------------------------------------------- */

.aureon-dl {
	margin-top: var(--aureon-space-md);
}

.aureon-dl__head,
.aureon-dl__item {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr) 11.5rem 7rem 9.5rem;
	align-items: center;
	gap: var(--aureon-space-md);
}

.aureon-dl__head {
	padding: 0 calc(var(--aureon-space-md) * 1.25) var(--aureon-space-sm);
	color: var(--aureon-color-text-muted);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.aureon-dl__head span:first-child {
	grid-column: 1 / 3;
}

.aureon-dl__list {
	display: grid;
	gap: var(--aureon-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aureon-dl__item {
	margin: 0;
	padding: var(--aureon-space-md) calc(var(--aureon-space-md) * 1.25);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.aureon-dl__thumb {
	display: grid;
	width: 3.5rem;
	height: 3.5rem;
	overflow: hidden;
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text-muted);
	place-items: center;
}

.aureon-dl__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aureon-dl__thumb svg {
	width: 1.75rem;
	height: 1.75rem;
}

.aureon-dl__name {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.15rem;
	line-height: 1.35;
}

.aureon-dl__name a,
.aureon-dl__name > span:first-child {
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-md);
	font-weight: 600;
	text-decoration: none;
}

.aureon-dl__file {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-dl__cell {
	font-size: var(--aureon-font-size-sm);
}

.aureon-dl__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	padding: 0.75em 1.1em;
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-primary);
	color: var(--aureon-color-button-text);
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.aureon-dl__button:hover {
	background: var(--aureon-color-primary-hover);
	color: var(--aureon-color-button-text);
}

.aureon-dl__button svg {
	width: 1.15em;
	height: 1.15em;
}

@media (max-width: 760px) {

	.aureon-dl__head {
		display: none;
	}

	.aureon-dl__item {
		grid-template-columns: 3.5rem minmax(0, 1fr);
		gap: var(--aureon-space-sm) var(--aureon-space-md);
	}

	.aureon-dl__cell {
		display: flex;
		grid-column: 1 / -1;
		justify-content: space-between;
	}

	.aureon-dl__cell::before {
		content: attr(data-label);
		color: var(--aureon-color-text-muted);
	}

	.aureon-dl__button {
		grid-column: 1 / -1;
	}
}

/* Account details ---------------------------------------------------------- */

.woocommerce-account .woocommerce-EditAccountForm.aureon-account-form {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
	margin-top: var(--aureon-space-md);
}

.aureon-card {
	padding: calc(var(--aureon-space-md) * 1.5);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.aureon-card__head {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin-bottom: calc(var(--aureon-space-md) * 1.25);
}

.aureon-card__icon {
	display: grid;
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text);
	place-items: center;
}

.aureon-card__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.aureon-card__head h3 {
	margin: 0;
	font-size: var(--aureon-font-size-md);
	line-height: 1.3;
}

.aureon-card__head p {
	margin: 0.15rem 0 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-card__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--aureon-space-md);
}

.aureon-card__fields--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* An older rule in this file spans every `.form-row-wide` in the account forms
 * across the whole grid, and outranks a shorter selector — so the three password
 * fields stacked instead of sharing a row. Named at the same depth to win. */
.woocommerce-account .woocommerce-MyAccount-content form .aureon-card__fields--three .form-row-wide {
	grid-column: auto;
}

.aureon-card__hint {
	display: block;
	margin-top: 0.4rem;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	font-style: italic;
}

/* The password chips: three short rules, ticking as the new password is typed. */
.aureon-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	list-style: none;
}

.aureon-chips li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
}

.aureon-chips__icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--aureon-color-border-strong, var(--aureon-color-border));
	transition: color 0.15s ease;
}

.aureon-chips li.is-met {
	color: var(--aureon-color-text);
}

.aureon-chips li.is-met .aureon-chips__icon {
	color: var(--aureon-color-success, #16a34a);
}

.aureon-account-form__actions {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-sm);
	margin: 0;
}

.aureon-account-form__actions .button,
.aureon-account-form__cancel {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	box-sizing: border-box;
	margin: 0;
	line-height: 1.2;
}

.aureon-account-form__actions .button {
	gap: 0.6em;
	padding: 0 1.6em;
}

.aureon-account-form__actions .button svg {
	width: 1.1em;
	height: 1.1em;
}

.aureon-account-form__cancel {
	padding: 0 1.6em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	color: var(--aureon-color-text);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
}

@media (max-width: 760px) {

	.aureon-card__fields,
	.aureon-card__fields--three {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Addresses ---------------------------------------------------------------- */

.aureon-addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: var(--aureon-space-md);
	margin-top: var(--aureon-space-md);
}

.woocommerce-account .aureon-address {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
	padding: calc(var(--aureon-space-md) * 1.5);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.woocommerce-account .aureon-address .woocommerce-Address-title {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-md);
	margin: 0;
}

.aureon-address__icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-color-primary) 14%, transparent);
	color: var(--aureon-color-link-hover);
	place-items: center;
}

.aureon-address--shipping .aureon-address__icon {
	background: color-mix(in srgb, var(--aureon-color-info, #2563eb) 12%, transparent);
	color: var(--aureon-color-info, #2563eb);
}

.aureon-address__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.woocommerce-account .aureon-address .woocommerce-Address-title h2 {
	margin: 0;
	font-size: var(--aureon-font-size-md);
}

.woocommerce-account .aureon-address .woocommerce-Address-title .edit {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.6em 1em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
}

.woocommerce-account .aureon-address .woocommerce-Address-title .edit:hover {
	border-color: var(--aureon-color-primary);
}

.aureon-address .edit svg {
	width: 1.05em;
	height: 1.05em;
}

.woocommerce-account .aureon-address address {
	display: flex;
	flex-direction: column;
	color: var(--aureon-color-text);
	font-style: normal;
	line-height: 1.7;
}

.aureon-address__phone {
	margin-top: 0.15rem;
	color: var(--aureon-color-text-muted);
}

.aureon-address__empty {
	color: var(--aureon-color-text-muted);
}

/* Customizer options -------------------------------------------------------
 * My Account's own settings (WooCommerce → My Account). Each is a body class
 * the WooCommerce module emits on the account page, so nothing below costs
 * anything on a store that leaves the defaults alone.
 * ------------------------------------------------------------------------- */

/* Navigation position. `left` is the default the grid above already draws, so
 * it needs no rule of its own — only the two departures from it do.
 *
 * Note what these selectors do *not* say: `.woocommerce-account`. That is a
 * class WooCommerce puts on `<body>`, the same element carrying the
 * `aureon-account-*` class — so writing it as a descendant of `body.aureon-…`
 * asks for an element inside the body that also carries it, and matches
 * nothing. These classes are only emitted on the account page anyway, so the
 * page is already established by the time a rule below is read. */
body.aureon-account-nav-right .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 15.5rem);
}

body.aureon-account-nav-right .woocommerce-MyAccount-navigation {
	order: 1;
}

/* `top` is the narrow-screen chip strip, offered at every width: one column,
 * the nav as a row above the panel. The rules that turn the sidebar into a
 * strip live in the media query below and are repeated here rather than
 * shared, because the two are reached differently — one by viewport, one by
 * choice — and a selector list spanning both would have to sit inside the
 * media query, where the chosen-at-any-width case does not belong. */
body.aureon-account-nav-top .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 1fr);
	gap: var(--aureon-space-md);
}

body.aureon-account-nav-top .woocommerce-MyAccount-navigation {
	position: static;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
}

body.aureon-account-nav-top .woocommerce-MyAccount-navigation::-webkit-scrollbar {
	display: none;
}

body.aureon-account-nav-top .woocommerce-MyAccount-navigation ul {
	flex-direction: row;
	gap: var(--aureon-space-xs);
	width: max-content;
	min-width: 100%;
}

body.aureon-account-nav-top .woocommerce-MyAccount-navigation li a {
	white-space: nowrap;
}

body.aureon-account-nav-top .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
	margin: 0 0 0 var(--aureon-space-xs);
	padding: 0 0 0 var(--aureon-space-xs);
	border-top: 0;
	border-inline-start: 1px solid var(--aureon-color-border);
}

/* Endpoint icons. The glyph is a `::before` on the link, so switching it off
 * is one rule — and the flex `gap` goes with it, or every label would sit one
 * gap in from the edge with nothing before it. */
body.aureon-account-no-nav-icons .woocommerce-MyAccount-navigation li a::before {
	display: none;
}

body.aureon-account-no-nav-icons .woocommerce-MyAccount-navigation li a {
	gap: 0;
}

/* Identity block (`WooCommerce::account_identity()`), above the nav card. */
.aureon-account-identity {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);

	/* No bottom margin: the grid's `row-gap` already sets the distance to the
	 * navigation below, and a margin on top of it only ever doubles that. */
	margin: 0;
	padding: var(--aureon-space-sm);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.aureon-account-identity__avatar {
	display: flex;
	flex: 0 0 auto;
}

.aureon-account-identity img {
	width: 4rem;
	height: 4rem;
	object-fit: cover;
	border-radius: var(--aureon-radius-pill, 9999px);
}

/* `min-width: 0` so a long address wins an ellipsis rather than stretching the
 * card past its grid track. */
.aureon-account-identity__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.aureon-account-identity__name {
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	line-height: 1.3;
}

/* One card. With the identity block on, the sidebar is the block and the
 * navigation joined seam to seam — one border round the pair, no gap, no double
 * edge where they meet — running the full height of the panel. As two cards with
 * a gap between they read as a profile widget stuck on top of a menu.
 *
 * Desktop and the sidebar positions only: on a phone, and with the links across
 * the top, the navigation is a strip of chips and the identity block stays a
 * card of its own above it. `body:not(.aureon-account-nav-top)` rather than a
 * class per position so a new position cannot silently inherit this. */
@media (min-width: 783px) {

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-account-identity) {
		row-gap: 0;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-account-identity) .aureon-account-identity {
		padding: calc(var(--aureon-space-md) * 1.25) calc(var(--aureon-space-md) * 1.25) var(--aureon-space-sm);
		border-bottom: 0;
		border-radius: var(--aureon-radius-md) var(--aureon-radius-md) 0 0;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-navigation {
		border-top: 0;
		border-radius: 0 0 var(--aureon-radius-md) var(--aureon-radius-md);
	}
}

/* Help block at the foot of the sidebar (`WooCommerce::account_sidebar_help()`).
 *
 * On a phone, or with the links across the top, it is a card of its own and
 * `order: 1` sends it below the content instead of between the chips and the
 * page — it is help, not navigation. On a desktop sidebar it is the base of the
 * one card: seam to seam with the navigation above, the tinted box pinned to
 * the bottom, and the panel spanning every row so the card runs the full height
 * of the screen. */
.aureon-help-side {
	order: 1;
	padding: 0.75rem;
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.aureon-help-side__box {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: calc(var(--aureon-space-md) * 1.25);
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-color-primary) 9%, transparent);
}

.aureon-help-side__icon svg {
	width: 2rem;
	height: 2rem;
	color: var(--aureon-color-link);
}

.aureon-help-side__box strong {
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-md);
	font-weight: 600;
}

.aureon-help-side__text {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.55;
}

.aureon-help-side__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	margin-top: 0.5rem;
	padding: 0.7em 1em;
	border: 1px solid color-mix(in srgb, var(--aureon-color-primary) 70%, transparent);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-link-hover);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
}

.aureon-help-side__cta svg {
	width: 1.1em;
	height: 1.1em;
}

@media (min-width: 783px) {

	/* Rows: [identity] nav help, with the last one taking the slack. */
	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side) {
		grid-template-rows: auto minmax(0, 1fr);
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side):has(.aureon-account-identity) {
		grid-template-rows: auto auto minmax(0, 1fr);
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side) .woocommerce-MyAccount-navigation {
		grid-row: 1;
		border-bottom: 0;
		border-radius: 0;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side):has(.aureon-account-identity) .woocommerce-MyAccount-navigation {
		grid-row: 2;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side) .aureon-help-side {
		grid-row: 2;
		grid-column: 1;

		/* `stretch`, not the grid's `start`: this is the row that takes the slack,
		 * and unless the element fills it the card ends at the box with a
		 * page-coloured gap below it. */
		align-self: stretch;
		display: flex;
		align-items: flex-end;
		border-top: 0;
		border-radius: 0 0 var(--aureon-radius-md) var(--aureon-radius-md);
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side):has(.aureon-account-identity) .aureon-help-side {
		grid-row: 3;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side) .aureon-help-side__box {
		flex: 1;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side) .woocommerce-MyAccount-content {
		grid-row: 1 / span 2;
		grid-column: 2;
	}

	body:not(.aureon-account-nav-top) .woocommerce:has(.aureon-help-side):has(.aureon-account-identity) .woocommerce-MyAccount-content {
		grid-row: 1 / span 3;
	}

	/* Sidebar on the right: the same three, in the second column. */
	body.aureon-account-nav-right .woocommerce:has(.aureon-help-side) .aureon-help-side {
		grid-column: 2;
	}

	body.aureon-account-nav-right .woocommerce:has(.aureon-help-side) .woocommerce-MyAccount-content {
		grid-column: 1;
	}
}

.aureon-account-identity__edit {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	margin-top: 0.25rem;
	color: var(--aureon-color-link, var(--aureon-color-primary));
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
}

.aureon-account-identity__edit svg {
	width: 0.95em;
	height: 0.95em;
}

.aureon-account-identity__email {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);

	/* Wraps rather than truncating — the address is what tells a customer which
	 * account they are in, and "customer@tanjirsde…" does not. PHP allows a break
	 * after the "@"; `break-word` is the backstop for one too long even then. */
	overflow-wrap: break-word;
}

/* Core fires `woocommerce_before_account_navigation` *outside* its own `<nav>`
 * and offers no hook within it, so the identity block can only be a sibling of
 * the nav — which makes it a third item in a two-column grid. Left to
 * auto-placement it took the first cell for itself and pushed the navigation
 * into the row below the endpoint panel. All three are placed explicitly
 * instead: the block sits on top of the nav, in the nav's own column, and the
 * panel spans both rows beside them. */

/* Row 1 takes its height from the identity block alone. Left as two auto rows,
 * the panel spanning both of them has its height shared out between the pair,
 * which stretched row 1 and left the navigation floating well below the block
 * it belongs to. A flexible second row takes all of that slack instead.
 *
 * `row-gap` is stated separately from the grid's own `gap`: that gap sizes the
 * space between the sidebar and the endpoint panel — two different things —
 * while these two rows are one thing, an identity block sitting on its own
 * navigation. At the column gap's size the pair read as two unrelated cards
 * with a band of dead space between them. */
.woocommerce-account .woocommerce:has(.aureon-account-identity) {
	grid-template-rows: auto minmax(0, 1fr);
	row-gap: var(--aureon-space-sm);
}

.woocommerce-account .woocommerce:has(.aureon-account-identity) .aureon-account-identity {
	grid-row: 1;
	grid-column: 1;
}

.woocommerce-account .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-navigation {
	grid-row: 2;
	grid-column: 1;
}

.woocommerce-account .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-content {
	grid-row: 1 / span 2;
	grid-column: 2;
}

/* Mirrored, so the pair still travels together. */
body.aureon-account-nav-right .woocommerce:has(.aureon-account-identity) .aureon-account-identity,
body.aureon-account-nav-right .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-navigation {
	grid-column: 2;
}

body.aureon-account-nav-right .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-content {
	grid-column: 1;
}

/* `top` is a single column, so the two-column placement above has to be let go
 * of — left standing, the endpoint panel stayed pinned to a column 2 that the
 * strip layout no longer defines, which the grid then invented off the side of
 * the page and the chip strip was squeezed into what was left of column 1.
 *
 * The block itself stays visible: it was switched on deliberately, and a
 * setting that silently does nothing in one of three positions is worse than
 * the extra row. Auto-placement stacks the three in source order — identity,
 * strip, panel — which is the reading order anyway. */
body.aureon-account-nav-top .woocommerce:has(.aureon-account-identity) {
	grid-template-rows: none;
	row-gap: var(--aureon-space-md);
}

body.aureon-account-nav-top .woocommerce:has(.aureon-account-identity) .aureon-account-identity,
body.aureon-account-nav-top .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-navigation,
body.aureon-account-nav-top .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-content {
	grid-row: auto;
	grid-column: auto;
}

/* Sidebar width. The grid's first track is 15.5rem by default; these two move
 * it without touching the rest of the layout, which reads the track rather
 * than a fixed number.
 *
 * `:not(.aureon-account-nav-top)` because the strip layout is one column and
 * has no sidebar track to size. Without it these would out-order the strip's
 * own single-column rule — they are stated later in the file at the same
 * specificity — and a store on "Top" would get two columns back the moment it
 * also picked a width. */
body.aureon-account-navw-narrow:not(.aureon-account-nav-top) .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
}

body.aureon-account-navw-wide:not(.aureon-account-nav-top) .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
}

body.aureon-account-nav-right.aureon-account-navw-narrow .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 12rem);
}

body.aureon-account-nav-right.aureon-account-navw-wide .woocommerce:has(.woocommerce-MyAccount-navigation) {
	grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
}

/* Panel style. `flush` drops the endpoint panel's chrome and its padding, for
 * a store whose page layout already boxes the content — the card inside a card
 * this theme otherwise avoids. The navigation keeps its own card either way:
 * it is a list of targets and needs the edge. */
body.aureon-account-panel-flush .woocommerce-MyAccount-content {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

/* Dashboard ---------------------------------------------------------------
 * The account's landing screen (`WooCommerce::account_dashboard_*()`): a welcome
 * banner, quick actions, the latest orders and, if the store turns it on, a help
 * strip. Core's dashboard is two sentences with the endpoints buried in them as
 * inline links — the one screen every customer lands on, with nothing on it to
 * aim at.
 *
 * Each block is independent (its own setting, its own element), so the
 * stylesheet keys off what is actually on the page rather than assuming all
 * four are. */

/* The banner and the cards replace core's prose, which is direct `<p>` children
 * of the content panel; everything printed here is a `section`, `ul`, `table` or
 * `aside`, so the selector cannot reach it. */
.woocommerce-MyAccount-content:has(.aureon-dash-hero) > p {
	display: none;
}

/* Cards without a banner keep core's greeting as the opening line and drop the
 * second sentence, which the cards say better. */
.woocommerce-MyAccount-content:has(.aureon-account-links):not(:has(.aureon-dash-hero)) > p:first-of-type {
	margin-bottom: 0;
	font-size: var(--aureon-font-size-lg);
	line-height: 1.4;
}

.woocommerce-MyAccount-content:has(.aureon-account-links):not(:has(.aureon-dash-hero)) > p:not(.woocommerce-message):not(.woocommerce-info):not(.woocommerce-error) + p {
	display: none;
}

.aureon-dash__heading {
	margin: calc(var(--aureon-space-lg) * 1.25) 0 var(--aureon-space-md);
	font-size: var(--aureon-font-size-lg);
	line-height: 1.3;
}

.aureon-dash-hero + .aureon-dash__heading {
	margin-top: calc(var(--aureon-space-lg) * 1.25);
}

.aureon-dash__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--aureon-space-md);
	margin: calc(var(--aureon-space-lg) * 1.25) 0 var(--aureon-space-md);
}

.aureon-dash__head .aureon-dash__heading {
	margin: 0;
}

.aureon-dash__all {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--aureon-color-link, var(--aureon-color-primary));
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	text-decoration: none;
}

.aureon-dash__all svg {
	width: 1.1em;
	height: 1.1em;
}

/* Hero --------------------------------------------------------------------- */

.aureon-dash-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-lg);
	padding: calc(var(--aureon-space-lg) * 1.1) calc(var(--aureon-space-lg) * 1.25);
	overflow: hidden;
	border-radius: var(--aureon-radius-lg);
	background: linear-gradient(105deg, color-mix(in srgb, var(--aureon-color-primary) 11%, var(--aureon-color-surface, #fff)), var(--aureon-color-surface, #fff) 85%);
}

.aureon-dash-hero__eyebrow {
	color: var(--aureon-color-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.aureon-dash-hero__title {
	margin: 0.2em 0 0.35em;
	font-size: 1.75rem;
	line-height: 1.2;
}

.aureon-dash-hero__text {
	max-width: 34rem;
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.6;
}

/* The bag, with the three little sparks a shopping-bag illustration usually
 * carries. Drawn from the same icon set as everything else, so it takes the
 * store's primary colour with the palette instead of being a fixed image. */
.aureon-dash-hero__art {
	position: relative;
	padding-inline: var(--aureon-space-lg);
	color: color-mix(in srgb, var(--aureon-color-primary) 26%, transparent);
}

.aureon-dash-hero__art svg {
	display: block;
	width: 6.5rem;
	height: 6.5rem;
}

.aureon-dash-hero__art::before,
.aureon-dash-hero__art::after {
	content: "";
	position: absolute;
	inset-inline-end: 0.4rem;
	width: 1.1rem;
	height: 3px;
	border-radius: 2px;
	background: currentcolor;
	transform: rotate(-24deg);
}

.aureon-dash-hero__art::before {
	inset-block-start: 0.6rem;
}

.aureon-dash-hero__art::after {
	inset-block-start: 1.6rem;
	width: 1.5rem;
	transform: rotate(-8deg);
}

/* Quick actions ------------------------------------------------------------ */

.aureon-account-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--aureon-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Each endpoint has a colour of its own, so a row of five is five different
 * things at a glance rather than five of the same. Plugin endpoints fall back
 * to the primary. */
.aureon-account-links__item {
	--aureon-tile: var(--aureon-color-primary);

	margin: 0;
}

.aureon-account-links__item--downloads {
	--aureon-tile: var(--aureon-color-info, #2563eb);
}

.aureon-account-links__item--edit-address {
	--aureon-tile: var(--aureon-color-success, #16a34a);
}

.aureon-account-links__item--edit-account {
	--aureon-tile: #7c3aed;
}

.aureon-account-links__item--wishlist {
	--aureon-tile: var(--aureon-color-error, #dc2626);
}

.aureon-account-links__item--payment-methods {
	--aureon-tile: var(--aureon-color-warning, #d97706);
}

.aureon-account-links a {
	display: grid;
	height: 100%;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-md);
	padding: var(--aureon-space-md);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	color: var(--aureon-color-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aureon-account-links a:hover,
.aureon-account-links a:focus-visible {
	border-color: color-mix(in srgb, var(--aureon-tile) 55%, var(--aureon-color-border));
	box-shadow: var(--aureon-shadow-sm);
}

/* The glyph needs a box of its own to sit in, so the tile is a real element
 * (PHP prints it) rather than a pseudo: a `::before` can be the tinted square
 * or the masked glyph, not both. */
.aureon-account-links__icon {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-tile) 13%, transparent);
	place-items: center;
}

/* `--aureon-account-icon` is set per endpoint on the `li` (see "Endpoint
 * glyphs" above), so the card and its navigation row draw the same mark. */
.aureon-account-links__icon::before {
	content: "";
	width: 1.3rem;
	height: 1.3rem;
	background: var(--aureon-tile);
	mask: var(--aureon-account-icon, none) center / contain no-repeat;
}

.aureon-account-links__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	line-height: 1.35;
}

.aureon-account-links__label {
	color: var(--aureon-color-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.aureon-account-links__meta {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);

	/* Wraps rather than truncating: the line is the reason the card exists, and
	 * an email cut to "customer@tanjirs…" says nothing. PHP allows a break after
	 * the "@"; `break-word` is the backstop for an address too long even then. */
	overflow-wrap: break-word;
}

.aureon-account-links__chevron {
	width: 1rem;
	height: 1rem;
	color: var(--aureon-color-text-muted);
	transition: transform 0.15s ease;
}

.aureon-account-links a:hover .aureon-account-links__chevron {
	transform: translateX(0.2em);
}

/* Recent orders ------------------------------------------------------------ */

.aureon-dash-orders {
	width: 100%;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--aureon-color-border);
	border-collapse: separate;
	border-radius: var(--aureon-radius-md);
	border-spacing: 0;
	font-size: var(--aureon-font-size-sm);
}

.aureon-dash-orders th {
	padding: 0.85rem var(--aureon-space-md);
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text-muted);
	font-weight: 500;
	text-align: start;
}

.aureon-dash-orders td {
	padding: 0.85rem var(--aureon-space-md);
	border-top: 1px solid var(--aureon-color-border);
	vertical-align: middle;
}

.aureon-dash-orders td:first-child a {
	color: var(--aureon-color-heading);
	font-weight: 600;
	text-decoration: none;
}

.aureon-dash-orders__view {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.45em 1.1em;
	border: 1px solid color-mix(in srgb, var(--aureon-color-primary) 60%, transparent);
	border-radius: var(--aureon-radius-md);
	color: var(--aureon-color-heading);
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.aureon-dash-orders__view:hover {
	background: color-mix(in srgb, var(--aureon-color-primary) 9%, transparent);
}

.aureon-dash-orders__view svg {
	width: 1.15em;
	height: 1.15em;
}

/* Help strip --------------------------------------------------------------- */

.aureon-dash-help {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	margin-top: calc(var(--aureon-space-lg) * 1.25);
	padding: var(--aureon-space-md) calc(var(--aureon-space-md) * 1.25);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
}

.aureon-dash-help__icon {
	display: grid;
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--aureon-color-text) 9%, transparent);
	color: var(--aureon-color-text);
	place-items: center;
}

.aureon-dash-help__icon svg {
	width: 1.6rem;
	height: 1.6rem;
}

.aureon-dash-help__text {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	flex-direction: column;
	line-height: 1.4;
}

.aureon-dash-help__text strong {
	color: var(--aureon-color-heading);
	font-weight: 600;
}

.aureon-dash-help__text span {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-dash-help__cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.6em;
	padding: 0.65em 1.2em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	text-decoration: none;
}

.aureon-dash-help__cta svg {
	width: 1.2em;
	height: 1.2em;
}

/* Phone: the table becomes a stack of labelled rows (the labels come from each
 * cell's `data-label`), the banner loses its picture, and the help strip's
 * button drops under its text. */
@media (max-width: 640px) {

	.aureon-dash-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.aureon-dash-hero__art {
		display: none;
	}

	.aureon-dash-orders thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}

	.aureon-dash-orders,
	.aureon-dash-orders tbody,
	.aureon-dash-orders tr,
	.aureon-dash-orders td {
		display: block;
	}

	.aureon-dash-orders tr + tr {
		border-top: 1px solid var(--aureon-color-border);
	}

	.aureon-dash-orders td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--aureon-space-md);
		padding: 0.6rem var(--aureon-space-md);
		border-top: 0;
	}

	.aureon-dash-orders td::before {
		content: attr(data-label);
		color: var(--aureon-color-text-muted);
	}

	.aureon-dash-help {
		flex-wrap: wrap;
	}

	.aureon-dash-help__cta {
		width: 100%;
		justify-content: center;
	}
}

/* The login-screen preview (`WooCommerce::maybe_preview_login_screen()`).
 * `my-account.php` is still the template being rendered, so its endpoint panel
 * is still in the markup around the login form — stood down here so the
 * preview matches what a signed-out visitor actually gets, which is the form
 * with no panel around it. */
body.aureon-account-preview-login .woocommerce-MyAccount-content {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

/* Narrow screens -----------------------------------------------------------
 * The sidebar becomes a scrollable strip of chips above the content. Rows
 * would eat the whole first screen, and an account page whose first screen is
 * only navigation has buried the thing you came for. */

@media (max-width: 782px) {

	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--aureon-space-md);
	}

	/* The strip scrolls, and the only thing that said so was a chip clipped
	 * mid-word against the border — which reads as a rendering fault rather
	 * than as "there is more this way". A mask fades the trailing edge out
	 * instead. The fade is static: it stays put at the end of the scroll,
	 * which costs a soft edge on the last chip and needs no script to track
	 * scroll position. `scrollbar-width: none` because the fade is the hint,
	 * and a scrollbar under a six-item strip is its own row of clutter. */
	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: static;
		padding: var(--aureon-space-xs);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 1.5rem), transparent 100%);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation::-webkit-scrollbar {
		display: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		gap: var(--aureon-space-xs);
		width: max-content;
		min-width: 100%;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0 0 0 var(--aureon-space-xs);
		padding: 0 0 0 var(--aureon-space-xs);
		border-top: 0;
		border-inline-start: 1px solid var(--aureon-color-border);
	}

	.woocommerce-account .woocommerce-MyAccount-content {
		padding: var(--aureon-space-md);
	}

	/* Placement released: the strip layout is a single column, and a panel
	 * pinned to column 2 / row 1 would be placed outside it. */
	.woocommerce-account .woocommerce:has(.aureon-account-identity) {
		grid-template-rows: none;
	}

	.woocommerce-account .woocommerce:has(.aureon-account-identity) .aureon-account-identity,
	.woocommerce-account .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce:has(.aureon-account-identity) .woocommerce-MyAccount-content {
		grid-row: auto;
		grid-column: auto;
	}

	/* One column: a paired field on a phone is a field nobody can fill. */
	.woocommerce-account .woocommerce-MyAccount-content form .woocommerce-address-fields__field-wrapper,
	.woocommerce-account .woocommerce-EditAccountForm {
		grid-template-columns: minmax(0, 1fr);
	}

	/* The stacked sheet gives every cell a full row, so the content-sized
	 * columns above have nothing left to size and their `nowrap` would only
	 * push the card sideways. */
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-remaining,
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-expires,
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-file,
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.download-file .button {
		width: auto;
		white-space: normal;
	}

	/* WooCommerce's small-screen sheet stacks each order into a card of
	 * labelled rows, then hides every `tbody th` — which on the orders table is
	 * the order number, the one thing that says *which* order the card is. Put
	 * it back, as the card's heading rather than as another labelled row: the
	 * label the other rows carry in `::before` is redundant on a line that
	 * already reads "#827". */
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number {
		display: block;
		padding-bottom: 0.4em;
		font-size: var(--aureon-font-size-md);
		text-align: start;
	}
}

/* An endpoint's own notice, left in place by `wc-notices.js` rather than
 * flashed as a toast (see `isAccountContent()` there): the Downloads empty
 * state, the Orders screen's "Confirm email address" prompt and its "link sent"
 * results. These are the content of the panel they sit in, so they are laid out
 * as a small block of their own rather than left as the bare bar core renders.
 *
 * Three columns: a badge, the message, the action. The message is a title with
 * a detail line under it where the theme could split it (see
 * `WooCommerce::account_notice_markup()`), or a single line where it could not —
 * a notice from another plugin, say — and both sit in the middle column the
 * same way. Colours are the ones the notices always had: the neutral panel, the
 * gold action, green for success and red for an error; only the arrangement
 * changed. */

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error {
	--aureon-notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z'/%3E%3C/svg%3E");

	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-md);
	margin: 0 0 var(--aureon-space-md);
	padding: calc(var(--aureon-space-md) * 1.1) calc(var(--aureon-space-md) * 1.25);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-sm);
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-text);
	line-height: 1.5;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info:last-child,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message:last-child,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error:last-child {
	margin-bottom: 0;
}

/* The badge: a soft disc of the notice's own colour with the glyph inside it,
 * drawn as one element. Two mask layers on a `currentcolor` fill — the glyph at
 * full strength over a disc at 9% — so the tint and the mark share a box and
 * cannot drift apart. (An earlier version drew the glyph on `::after`, placed
 * against the whole notice; when the button wrapped to a second row on a phone
 * the glyph followed the notice's middle, not the badge's.)
 *
 * Core draws its own glyph from an icon font this theme does not load, which
 * came out as a tofu box, so that is replaced here. WooCommerce's clearfix also
 * puts an empty `display: table` box after the content, which in a grid is an
 * item taking a cell — hidden. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info::before,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message::before,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error::before {
	content: "";
	position: static;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	margin: 0;
	background: currentcolor;
	color: inherit;
	font-size: inherit;
	mask: var(--aureon-notice-glyph) center / 1.3rem no-repeat, radial-gradient(circle closest-side, rgb(0 0 0 / 9%) 99%, transparent 100%) center / 100% 100% no-repeat;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info::after,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message::after,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error::after {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message {
	--aureon-notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z'/%3E%3C/svg%3E");

	color: var(--aureon-color-success, #0f834d);
}

/* NOTE: `--aureon-color-danger` is not in the token set — the scale names that
 * step `error` — so this always resolves to the literal below. Kept as it was
 * rather than repointed, because repointing it would change the red. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error {
	--aureon-notice-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z'/%3E%3C/svg%3E");

	color: var(--aureon-color-danger, #d63638);
}

/* WooCommerce moves focus to a fresh notice so a screen reader announces it,
 * and the browser answers with its default blue box. The indicator is kept —
 * dropping it would leave a keyboard user with no sign of where focus went —
 * but drawn in the notice's own colour, softened, and inset to the panel's edge
 * instead of a hard rectangle in a colour nothing else on the page uses. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info:focus,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message:focus,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error:focus {
	outline: 2px solid color-mix(in srgb, currentcolor 40%, transparent);
	outline-offset: 2px;
}

/* Title and detail. */
.aureon-notice__body {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.15rem;
}

.aureon-notice__title {
	font-size: 0.9375rem;
	font-weight: 600;
}

.aureon-notice__text {
	font-size: var(--aureon-font-size-sm);
	opacity: 0.85;
}

/* The action goes in the last column whatever came first in the markup:
 * WooCommerce prints the Orders prompt's button *before* its sentence, while the
 * Downloads empty state prints it after, and `order` settles both on the one
 * reading order — what happened, then what to do about it. */
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message .button,
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error .button {
	order: 1;
	grid-column: 3;
	padding: 0.5em 1.2em;
	font-size: var(--aureon-font-size-sm);
	white-space: nowrap;
}

/* Below this width the message and its action no longer share a row: the action
 * drops under the message, aligned to it rather than to the badge, and takes the
 * full width so it is a real tap target.
 *
 * Stated here rather than in the "Narrow screens" block above, which is where
 * the rest of this section's phone rules live: these override declarations made
 * *later* in the file, and at equal specificity a media query does not beat
 * source order. */
@media (max-width: 640px) {

	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info .button,
	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message .button,
	.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error .button {
		grid-column: 2;
		justify-content: center;
		width: 100%;
	}
}

/* Downloads: the empty state under its banner ------------------------------ */

.woocommerce-account .aureon-banner + .woocommerce-info,
.woocommerce-account .aureon-banner + .woocommerce-message,
.woocommerce-account .aureon-banner + .woocommerce-error {
	margin-top: var(--aureon-space-md);
}

/* Single order ------------------------------------------------------------- */

.aureon-ov {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
}

.aureon-ov__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	text-decoration: none;
}

.aureon-ov__back:hover {
	color: var(--aureon-color-heading);
}

.aureon-ov__back svg {
	width: 1em;
	height: 1em;
}

.aureon-ov__title {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: var(--aureon-space-md);
	margin-top: var(--aureon-space-sm);
}

.aureon-ov__title h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.15;
}

.aureon-ov__date {
	margin: 0.3rem 0 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-ov__date strong {
	color: var(--aureon-color-heading);
	font-weight: 600;
}

.aureon-ov__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--aureon-space-sm);
}

.aureon-ov__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 3rem;
	padding: 0 1.25em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	color: var(--aureon-color-heading);
	font: inherit;
	font-size: var(--aureon-font-size-sm);
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.aureon-ov__btn:hover {
	border-color: var(--aureon-color-primary);
	color: var(--aureon-color-heading);
}

.aureon-ov__btn svg {
	width: 1.2em;
	height: 1.2em;
}

.aureon-ov__btn--small {
	min-height: 2.25rem;
	padding: 0 0.9em;
}

.aureon-ov__btn--wide {
	justify-content: space-between;
	width: 100%;
	margin-top: auto;
}

.aureon-ov__btn--quiet {
	border-color: transparent;
	background: transparent;
	color: var(--aureon-color-text-muted);
}

/* Status banner. Same palette as the status pills. */
.aureon-ov__notice {
	--aureon-ov-fg: var(--aureon-color-warning, #d97706);
	--aureon-ov-bg: var(--aureon-color-warning-light, #fef3c7);

	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-md);
	padding: var(--aureon-space-md) calc(var(--aureon-space-md) * 1.25);
	border: 1px solid color-mix(in srgb, var(--aureon-ov-fg) 22%, transparent);
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-ov-bg) 45%, var(--aureon-color-surface, #fff));
}

.aureon-ov__notice--processing,
.aureon-ov__notice--pending {
	--aureon-ov-fg: var(--aureon-color-info, #2563eb);
	--aureon-ov-bg: var(--aureon-color-info-light, #dbeafe);
}

.aureon-ov__notice--completed {
	--aureon-ov-fg: var(--aureon-color-success, #16a34a);
	--aureon-ov-bg: var(--aureon-color-success-light, #dcfce7);
}

.aureon-ov__notice--failed,
.aureon-ov__notice--cancelled {
	--aureon-ov-fg: var(--aureon-color-error, #dc2626);
	--aureon-ov-bg: var(--aureon-color-error-light, #fee2e2);
}

.aureon-ov__notice--refunded {
	--aureon-ov-fg: var(--aureon-color-text-muted);
	--aureon-ov-bg: var(--aureon-color-surface-alt);
}

.aureon-ov__notice-icon {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-ov-fg) 14%, transparent);
	color: var(--aureon-ov-fg);
	place-items: center;
}

.aureon-ov__notice-icon svg {
	width: 1.6rem;
	height: 1.6rem;
}

.aureon-ov__notice-body {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: var(--aureon-font-size-sm);
}

.aureon-ov__notice-body strong {
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-md);
}

.aureon-ov__notice-body span {
	color: var(--aureon-color-text-muted);
	line-height: 1.5;
}

.aureon-ov__notice-cta {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 1.4em;
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-primary);
	color: var(--aureon-color-on-primary, #fff);
	font-size: var(--aureon-font-size-sm);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.aureon-ov__notice-cta:hover {
	background: var(--aureon-color-primary-hover, var(--aureon-color-primary));
	color: var(--aureon-color-on-primary, #fff);
}

/* Cards */
.aureon-ov__card {
	padding: calc(var(--aureon-space-md) * 1.4);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, var(--aureon-color-background));
}

.aureon-ov__card > h3 {
	margin: 0 0 var(--aureon-space-md);
	font-size: var(--aureon-font-size-lg, 1.25rem);
}

.aureon-ov__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--aureon-space-md);
}

/* Items table */
.woocommerce-account table.aureon-ov__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.aureon-ov__table th {
	padding: 0 0.5rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--aureon-color-border);
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs, 0.75rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-align: right;
	text-transform: uppercase;
}

.aureon-ov__table th.product-name {
	text-align: left;
}

.aureon-ov__table td {
	padding: 0.75rem 0.5rem;
	border: 0;
	border-bottom: 1px solid var(--aureon-color-border);
	text-align: right;
	vertical-align: middle;
}

.aureon-ov__table tbody tr:last-child td {
	border-bottom: 0;
}

.aureon-ov__table td.product-name {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	text-align: left;
}

.aureon-ov__table th.product-price,
.aureon-ov__table td.product-price {
	width: 8rem;
}

.aureon-ov__table th.product-qty,
.aureon-ov__table td.product-qty {
	width: 6rem;
	text-align: left;
}

.aureon-ov__table th.product-total,
.aureon-ov__table td.product-total {
	width: 8rem;
}

.aureon-ov__thumb {
	flex: none;
	width: 3.75rem;
	height: 3.75rem;
	overflow: hidden;
	border-radius: var(--aureon-radius-sm, 0.5rem);
	background: var(--aureon-color-surface-alt);
}

.aureon-ov__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aureon-ov__name {
	min-width: 0;
	color: var(--aureon-color-heading);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.5;
}

.aureon-ov__name a {
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

.aureon-ov__name a:hover {
	color: var(--aureon-color-link-hover);
}

.aureon-ov__name .wc-item-meta {
	margin: 0;
	padding: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs, 0.8rem);
	list-style: none;
}

.aureon-ov__name .wc-item-meta p {
	display: inline;
	margin: 0;
}

.aureon-ov__table .product-purchase-note td {
	text-align: left;
}

/* Summary */
.aureon-ov__totals {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.aureon-ov__totals-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--aureon-space-md);
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--aureon-color-border);
}

.aureon-ov__totals dt {
	color: var(--aureon-color-heading);
}

.aureon-ov__totals dt span {
	color: var(--aureon-color-text-muted);
}

.aureon-ov__totals dd {
	margin: 0;
	color: var(--aureon-color-heading);
	font-weight: 600;
	text-align: right;
}

.aureon-ov__totals dd .shipped_via {
	display: block;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs, 0.8rem);
	font-weight: 400;
}

.aureon-ov__grand {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: var(--aureon-space-md) 0;
	color: var(--aureon-color-heading);
	font-weight: 600;
}

.aureon-ov__grand strong {
	font-size: 1.5rem;
}

.aureon-ov__ship {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	padding: var(--aureon-space-md);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
	font-size: var(--aureon-font-size-sm);
}

.aureon-ov__ship > div {
	display: flex;
	flex-direction: column;
	color: var(--aureon-color-text-muted);
}

.aureon-ov__ship strong {
	color: var(--aureon-color-heading);
}

.aureon-ov__ship-icon svg,
.aureon-ov__method-icon svg {
	display: block;
	width: 1.6rem;
	height: 1.6rem;
}

/* Payment */
.aureon-ov__payment {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
}

.aureon-ov__payment > h3 {
	margin: 0;
}

.aureon-ov__method {
	display: flex;
	align-items: center;
	gap: var(--aureon-space-md);
	color: var(--aureon-color-heading);
}

.aureon-ov__method-icon {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
	place-items: center;
}

.aureon-ov__method-text {
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.6;
}

/* Addresses */
.aureon-ov__addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--aureon-space-md);
}

.aureon-ov__address {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
	padding: var(--aureon-space-md);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
}

.aureon-ov__address header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--aureon-space-sm);
}

.aureon-ov__address h4 {
	margin: 0;
	font-size: var(--aureon-font-size-md);
}

.aureon-ov__address-icon svg {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
}

.aureon-ov__address address {
	display: flex;
	flex-direction: column;
	color: var(--aureon-color-text);
	font-style: normal;
	line-height: 1.7;
}

.aureon-ov__address-line--mail {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.aureon-ov__address-line svg {
	width: 1.1em;
	height: 1.1em;
}

/* Order updates */
.aureon-ov__updates ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aureon-ov__updates li {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--aureon-color-border);
}

.aureon-ov__updates li:last-child {
	border-bottom: 0;
}

.aureon-ov__updates .meta {
	margin: 0 0 0.25rem;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs, 0.8rem);
}

.aureon-ov__updates .description > :last-child {
	margin-bottom: 0;
}

@media (width <= 900px) {

	.aureon-ov__title {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.aureon-ov__actions {
		grid-column: 1 / -1;
	}

	.aureon-ov__pair {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (width <= 640px) {

	.aureon-ov__title h2 {
		font-size: 1.6rem;
	}

	.aureon-ov__actions > * {
		flex: 1 1 auto;
	}

	.aureon-ov__notice {
		grid-template-columns: 3.25rem minmax(0, 1fr);
	}

	.aureon-ov__notice-cta {
		grid-column: 1 / -1;
		justify-content: center;
	}

	/* The table becomes labelled blocks. */
	.aureon-ov__table thead {
		display: none;
	}

	.aureon-ov__table tr {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.25rem var(--aureon-space-sm);
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--aureon-color-border);
	}

	.aureon-ov__table tbody tr:last-child {
		border-bottom: 0;
	}

	.aureon-ov__table td,
	.aureon-ov__table td.product-price,
	.aureon-ov__table td.product-qty,
	.aureon-ov__table td.product-total {
		width: auto;
		padding: 0;
		border: 0;
		text-align: left;
	}

	.aureon-ov__table td.product-name {
		grid-column: 1 / -1;
	}

	.aureon-ov__table td[data-label]:not(.product-name)::before {
		content: attr(data-label);
		display: block;
		color: var(--aureon-color-text-muted);
		font-size: var(--aureon-font-size-xs, 0.75rem);
		text-transform: uppercase;
	}

	.aureon-ov__table .product-purchase-note td {
		grid-column: 1 / -1;
	}
}

@media print {

	.aureon-ov__actions,
	.aureon-ov__back,
	.aureon-ov__notice-cta {
		display: none;
	}
}

.aureon-ov .woocommerce-order-downloads {
	margin: 0;
}

/* Bank-transfer modal ------------------------------------------------------ */

.aureon-modal {
	width: min(32rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: var(--aureon-radius-lg);
	background: var(--aureon-color-surface, var(--aureon-color-background));
	color: var(--aureon-color-text);
	box-shadow: 0 24px 60px rgb(0 0 0 / 22%);
}

.aureon-modal::backdrop {
	background: rgb(15 23 42 / 55%);
}

.aureon-modal__box {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-space-md);
	padding: calc(var(--aureon-space-md) * 1.5);
}

.aureon-modal__head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: var(--aureon-space-md);
}

.aureon-modal__head h3 {
	margin: 0 0 0.25rem;
	font-size: var(--aureon-font-size-lg, 1.25rem);
}

.aureon-modal__head p {
	margin: 0;
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
}

.aureon-modal__icon {
	display: grid;
	width: 3rem;
	height: 3rem;
	border-radius: var(--aureon-radius-md);
	background: color-mix(in srgb, var(--aureon-color-primary) 14%, transparent);
	color: var(--aureon-color-link-hover);
	place-items: center;
}

.aureon-modal__icon svg {
	width: 1.5rem;
	height: 1.5rem;
}

.aureon-modal__close {
	display: grid;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--aureon-color-text-muted);
	place-items: center;
	cursor: pointer;
}

.aureon-modal__close:hover {
	background: var(--aureon-color-surface-alt);
	color: var(--aureon-color-heading);
}

.aureon-modal__note {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-sm);
	line-height: 1.6;
}

.aureon-modal__note > :last-child {
	margin-bottom: 0;
}

.aureon-modal__account {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0 var(--aureon-space-md);
	border: 1px solid var(--aureon-color-border);
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface-alt);
}

.aureon-modal__account > div {
	display: grid;
	gap: 0.15rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--aureon-color-border);
}

.aureon-modal__account > div:last-child {
	border-bottom: 0;
}

.aureon-modal__account dt {
	color: var(--aureon-color-text-muted);
	font-size: var(--aureon-font-size-xs, 0.75rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.aureon-modal__account dd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--aureon-space-md);
	margin: 0;
	color: var(--aureon-color-heading);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.aureon-modal__account dd button {
	flex: none;
	padding: 0.3em 0.8em;
	border: 1px solid var(--aureon-color-border-strong, var(--aureon-color-border));
	border-radius: var(--aureon-radius-md);
	background: var(--aureon-color-surface, #fff);
	color: var(--aureon-color-heading);
	font: inherit;
	font-size: var(--aureon-font-size-xs, 0.8rem);
	font-weight: 500;
	cursor: pointer;
}

.aureon-modal__account dd button:hover {
	border-color: var(--aureon-color-primary);
}

.aureon-modal__done {
	align-self: flex-end;
	background: var(--aureon-color-primary);
	color: var(--aureon-color-on-primary, #fff);
	border-color: var(--aureon-color-primary);
}

.aureon-modal__done:hover {
	color: var(--aureon-color-on-primary, #fff);
}

