/* =========================================================================
 * Funds & Rewards — single view-order page (My-Account → view-order).
 *
 * Loaded ONLY on the view-order endpoint, AFTER the shared design system
 * (style.css / handle "acc-funds"), so these rules refine the base hero, paused
 * panel, help strip and rewards card into one cohesive, best-in-class flow
 * without touching any shared stylesheet. Design tokens (--red/--orange/--ink/
 * --line/--card/--muted-2/--green…) are inherited from the .acc-app wrappers.
 *
 * Page stack (top → bottom):
 *   1. Status hero + "delivered X of Y" progress   (order_display.php)
 *   2. Paused-order action panel (checklist + restart + per-item link edit)
 *                                                    (orders_front.php)
 *   3. WooCommerce core order-details table + totals (untouched, WC-core)
 *   4. "Need help?" strip                            (order_display.php)
 *   5. Rewards / wallet card                         (rewards_front.php)
 * ====================================================================== */

/* ---- Consistent vertical rhythm between the stacked cards ---------------- */
.acc-order-status { margin-bottom: 18px; }
.acc-paused { margin-bottom: 18px; }

/* The status hero's "Fix my order to resume" CTA jumps to #acc-paused; keep the
   panel clear of any sticky theme header when it scrolls into view, and make the
   hop feel intentional (disabled under reduced-motion via the guard below). */
#acc-paused { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
	html:focus-within { scroll-behavior: smooth; }
}

/* =========================================================================
 * 1) Status hero — "delivered X of Y" progress indicator.
 * ====================================================================== */
.acc-osp { margin-top: 14px; }
.acc-osp-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
}
.acc-osp-label {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted-2, #777);
}
.acc-osp-pct {
	font-size: 13.5px;
	font-weight: 800;
	color: var(--ink, #222);
	font-variant-numeric: tabular-nums;
}
.acc-osp-track {
	height: 10px;
	border-radius: 999px;
	background: rgba(20, 22, 30, .09);
	overflow: hidden;
}
.acc-osp-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	transform-origin: left center;
	background: linear-gradient(135deg, var(--red, #f80031), var(--orange, #ff6e40));
}
.acc-osp-nums {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink, #222);
	font-variant-numeric: tabular-nums;
}
/* Tone-aware fill: green when delivering/done, amber while waiting, brand on warn. */
.acc-order-status--go .acc-osp-fill { background: linear-gradient(135deg, var(--green, #62b868), var(--green-3, #58a85e)); }
.acc-order-status--wait .acc-osp-fill { background: linear-gradient(135deg, #ffb020, #ff8a3d); }
.acc-order-status--warn .acc-osp-fill { background: linear-gradient(135deg, var(--red, #f80031), var(--orange, #ff6e40)); }

/* =========================================================================
 * 2) Paused-order panel — the "money moment": fix links, then one-tap restart.
 * ====================================================================== */

/* Reassurance under the restart button (kills refund anxiety → drives completion). */
.acc-paused-reassure {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--muted-2, #777);
}
.acc-paused-reassure-ico {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, var(--green, #62b868), var(--green-3, #58a85e));
}
.acc-paused-reassure-ico svg { width: 11px; height: 11px; }

/* Per-item card: header row (name + platform chip). */
.acc-paused-item { transition: box-shadow .15s, border-color .15s; }
.acc-paused-item:focus-within { border-color: #ffd48a; box-shadow: 0 8px 24px rgba(154, 106, 18, .12); }
.acc-paused-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.acc-paused-item-head .acc-paused-item-name { margin-bottom: 0; }
.acc-pi-chip {
	flex: 0 0 auto;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #8a5a06;
	background: #fff3dc;
	border: 1px solid #f5d59a;
	border-radius: 999px;
	padding: 4px 10px;
	white-space: nowrap;
}

/* Per-item progress: shows exactly which item is stuck and how far along. */
.acc-pi-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}
.acc-pi-track {
	flex: 1 1 auto;
	min-width: 0;
	height: 7px;
	border-radius: 999px;
	background: rgba(20, 22, 30, .08);
	overflow: hidden;
}
.acc-pi-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	transform-origin: left center;
	background: linear-gradient(135deg, var(--green, #62b868), var(--green-3, #58a85e));
}
.acc-pi-nums {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 800;
	color: var(--ink, #222);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Inline URL-validation message (JS-driven, aria-live). Collapses when empty so
   the form never shifts on first paint. */
.acc-pi-msg {
	margin: 0;
	min-height: 0;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	transition: color .15s;
}
.acc-pi-msg[data-state] { margin-top: 8px; }
.acc-pi-msg[data-state="err"] { color: var(--red, #f80031); }
.acc-pi-msg[data-state="ok"] { color: var(--green-3, #1f7a46); }
.acc-pi-msg[data-state="note"] { color: var(--muted-2, #777); }

/* Per-item actions: "Save link" (primary) + the JS-revealed "Open my link"
   verification button sit on one row on desktop, stack full-width on phones
   (the shared style.css already forces width:100% under 480px). */
.acc-paused-item-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
/* The verify button is quiet next to the primary Save; disabled = clearly inert. */
.acc-pi-check[disabled] {
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---- Lead card body + copy-order-number chip -------------------------------
   The reworked flow leads with an explanation card, then the link editor(s) —
   the money moment — and finally a dedicated restart card. The copy chip lets a
   customer (or an email-link visitor) grab their order number in one tap. */
.acc-paused-lead-body { min-width: 0; }
.acc-paused-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 5px 12px 5px 11px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
	color: var(--ink, #222);
	background: #fff;
	border: 1px solid #f0d9ab;
	border-radius: 999px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	font-variant-numeric: tabular-nums;
	transition: border-color .15s, box-shadow .15s, color .15s;
}
/* Keep the chip's own white bg + dark text on hover — the theme's generic
   button:hover otherwise fills it grey with white text. */
.acc-paused-copy:hover { background: #fff; color: var(--ink, #222); border-color: var(--orange, #ff6e40); box-shadow: 0 3px 10px rgba(255, 110, 64, .14); }
/* Same for :focus / :active — after a click the button keeps focus, and the
   theme's generic button:focus/:active otherwise fills it grey-black. Force the
   white background back (the .is-copied rules below still win on colour, so the
   green "copied" feedback shows through). */
.acc-paused-copy:focus,
.acc-paused-copy:focus-visible,
.acc-paused-copy:active { background: #fff; color: var(--ink, #222); border-color: var(--orange, #ff6e40); box-shadow: 0 3px 10px rgba(255, 110, 64, .14); }
.acc-paused-copy-hash { color: var(--muted-2, #999); }
.acc-paused-copy-ic { display: inline-grid; place-items: center; width: 15px; height: 15px; color: var(--muted-2, #999); }
.acc-paused-copy-ic svg { grid-area: 1 / 1; width: 14px; height: 14px; transition: opacity .15s, transform .15s; }
.acc-paused-copy-ic-ok { opacity: 0; transform: scale(.5); color: var(--green-3, #1f7a46); }
.acc-paused-copy.is-copied { border-color: #bfe6c6; color: var(--green-3, #1f7a46); }
.acc-paused-copy.is-copied .acc-paused-copy-ic-copy { opacity: 0; transform: scale(.5); }
.acc-paused-copy.is-copied .acc-paused-copy-ic-ok { opacity: 1; transform: none; }

/* ---- Link editor prominence — this is the reported "missing link field" bug.
   The field must be impossible to miss: a bigger, brand-accented input inside a
   clearly-elevated card, with a strong, legible label. */
/* Unified paused plate: lead + checklist + link editor(s) + restart all live in
   ONE .acc-pl-card so the guidance reads as a single cohesive card instead of
   three stacked plates; sub-sections are divided by amber hairlines. */
.acc-paused-panel { margin: 0; }
.acc-paused-sep {
	height: 1px;
	margin: 16px -18px;            /* full-bleed to the card's 18px padding edges */
	background: #f0e2c4;           /* amber hairline matching the plate */
}
.acc-paused-section-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a5a06;
	margin: 0 0 12px;
}
.acc-paused-items { margin-top: 0; }
/* Per-item link editor: an inner white block (no longer its own pl-card) so the
   input — the money moment — still stands out inside the plate. */
.acc-paused-item {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #f0d9ab;
	border-radius: 14px;
	box-shadow: 0 3px 12px rgba(154, 106, 18, .07);
}
.acc-paused-item + .acc-paused-item { margin-top: 12px; }
.acc-paused-item .acc-field > label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .01em;
	color: var(--ink, #222);
	line-height: 1.4;
}
.acc-paused-item .acc-field input[type="url"] {
	font-size: 16px; /* >=16px stops iOS zoom-on-focus */
	font-weight: 600;
	padding: 14px 15px;
	border-width: 1.5px;
}
.acc-paused-item .acc-field input[type="url"]:focus {
	border-color: var(--orange, #ff6e40);
	box-shadow: 0 0 0 4px rgba(255, 110, 64, .14);
}

/* ---- Restart footer — the final step, an inner green-tinted callout inside the
   plate (positive "go" cue), after the link(s) are fixed. */
.acc-paused-restart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding: 16px 18px;
	border: 1px solid #cdeed4;
	border-radius: 14px;
	background: linear-gradient(180deg, #f4fbf5, #fff);
}
.acc-paused-restart-body { flex: 1 1 260px; min-width: 0; }
.acc-paused-restart-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--ink, #222);
	line-height: 1.35;
}
.acc-paused-restart .acc-paused-reassure { margin-top: 8px; }
.acc-paused-restart-actions { flex: 0 0 auto; }
.acc-paused-restart-form { margin: 0; }

/* =========================================================================
 * 3) Order-details table — full modern, minimal restyle (WC-core markup, not
 * rebuilt). Every rule is scoped `.woocommerce-order-details` + the 4-class
 * table selector, giving specificity (0,5,1) that strictly beats the shared
 * theme.css shop_table rules (background:#fafafa / radius:15px / th color / the
 * `!important` border-top:0) regardless of stylesheet order. This table sits
 * OUTSIDE .acc-app, so tokens carry literal fallbacks. Result: one clean white
 * card — quiet uppercase header, comfy item rows with subtle separators, muted
 * quantity/meta, a brand-accent grand total.
 * ====================================================================== */
.woocommerce-order-details,
.woocommerce-customer-details { margin-top: 22px; }
.woocommerce-order-details .woocommerce-order-details__title,
.woocommerce-customer-details .woocommerce-customer-details__title {
	font-size: 1.15rem; font-weight: 800; color: var(--ink, #222); margin: 0 0 12px; letter-spacing: -.01em;
}

/* The table itself — a single rounded card. Bottom margin separates it from
   the Quick-actions block that follows (requested — the table used to butt
   straight against it). */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
	width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 20px;
	background: var(--card, #fff); border: 1px solid var(--line, #ececf1);
	border-radius: var(--radius, 20px); overflow: hidden;
	box-shadow: 0 3px 14px rgba(20, 20, 40, .05);
}

/* Header row — quiet uppercase labels on the app's soft grey. */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details thead th {
	background: var(--bg, #f7f8f9); color: var(--muted-2, #777);
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	text-align: left; padding: 12px 18px; border: 0;
}
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details thead th.product-total { text-align: right; }

/* Line-item rows. */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tbody td {
	padding: 14px 18px; vertical-align: top; font-variant-numeric: tabular-nums;
	border-bottom: 1px solid var(--line, #ececf1);
}
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tbody tr:last-child td { border-bottom: 0; }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-name { font-weight: 600; color: var(--ink, #222); }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-name a { color: var(--ink, #222); text-decoration: none; }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-name a:hover { color: var(--red, #f80031); }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.product-total { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink, #222); }

/* Quantity + item meta — quiet, tight, below the name. */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details .product-quantity,
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details .wc-item-meta {
	display: block; margin: 4px 0 0; font-weight: 400; font-size: 13px; color: var(--muted-2, #777);
}
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details .wc-item-meta { list-style: none; padding: 0; }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details .wc-item-meta li { margin: 2px 0; }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details .wc-item-meta strong { font-weight: 600; color: var(--ink, #222); }
/* The per-item target link (orders_front.php woocommerce_order_item_meta_end) reads
   as a real, tappable brand-accent link. */
.woocommerce-order-details .wc-item-meta--link a { color: var(--red, #f80031); word-break: break-word; }

/* Totals (tfoot) — label left / value right, brand-accent emphasised grand total. */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot th,
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot td {
	padding: 10px 18px; font-variant-numeric: tabular-nums; border: 0;
}
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot th { text-align: left; font-weight: 500; color: var(--muted-2, #777); }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot td { text-align: right; font-weight: 600; color: var(--ink, #222); }
/* Divider above the first totals row (own !important beats theme's border-top:0). */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:first-child th,
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:first-child td {
	border-top: 1px solid var(--line, #ececf1) !important; padding-top: 14px;
}
/* Emphasised grand total (last tfoot row). */
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:last-child th { font-size: 1.05rem; font-weight: 800; color: var(--ink, #222); padding-bottom: 16px; }
.woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tfoot tr:last-child td { font-size: 1.05rem; font-weight: 800; color: var(--red, #f80031); padding-bottom: 16px; }

/* =========================================================================
 * Motion — grow the bars in once, disabled under reduced-motion.
 * ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
	.acc-osp-fill,
	.acc-pi-fill { animation: acc-ov-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes acc-ov-grow {
		from { transform: scaleX(0); }
		to { transform: scaleX(1); }
	}
}

/* =========================================================================
 * Responsive — mobile-first; nothing here forces horizontal scroll.
 * ====================================================================== */
@media (max-width: 480px) {
	.acc-osp-label { letter-spacing: .04em; }
	.acc-paused-item-head { align-items: flex-start; }
	.acc-pi-chip { align-self: flex-start; }
	/* Restart card stacks; the button spans full width (style.css only widened the
	   old .acc-paused-actions button, which the rework replaced). */
	.acc-paused-restart { flex-direction: column; align-items: stretch; }
	/* In column mode the body's `flex:1 1 260px` puts 260px on the HEIGHT axis and
	   flex-grow then stretches it further — a huge, empty tall block. Reset it to
	   content height. */
	.acc-paused-restart-body { flex: 0 0 auto; width: 100%; }
	.acc-paused-restart-actions { width: 100%; }
	.acc-paused-restart-actions .acc-btn,
	.acc-paused-restart-form { width: 100%; }
}

/* =========================================================================
 * V2 PAGE REDESIGN — one cohesive, modern view-order flow. Everything below is
 * scoped to body.woocommerce-view-order so no other account page is touched.
 *
 * Design language: soft white cards, 20-24px radii, hairline #ececf1 borders,
 * one soft ambient shadow, brand red/orange reserved for actions and the grand
 * total, generous consistent 18px vertical rhythm.
 * ====================================================================== */

/* ---- Unified vertical rhythm across EVERY stacked section ---------------- */
.woocommerce-view-order .woocommerce-order-details,
.woocommerce-view-order .woocommerce-customer-details,
.woocommerce-view-order .acc-order-actions,
.woocommerce-view-order .acc-order-help,
.woocommerce-view-order .acc-order-rewards,
.woocommerce-view-order .acc-order-status,
.woocommerce-view-order .acc-paused { margin-top: 0; margin-bottom: 18px; }

/* ---- Status hero v2: tone-tinted canvas, icon disk, side-by-side layout ---- */
.woocommerce-view-order .acc-order-status {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 22px 24px;
	border-radius: 24px;
	border: 1px solid var(--line, #ececf1);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0) 55%, rgba(20, 22, 30, .022) 100%),
		#fff;
	box-shadow: 0 18px 36px rgba(0, 0, 0, .06);
}
.woocommerce-view-order .acc-order-status--go   { background: linear-gradient(160deg, #f2fbf4 0%, #fff 55%); border-color: #d9f0dd; }
.woocommerce-view-order .acc-order-status--wait { background: linear-gradient(160deg, #fff8ec 0%, #fff 55%); border-color: #f5e5c4; }
.woocommerce-view-order .acc-order-status--warn { background: linear-gradient(160deg, #fff4ef 0%, #fff 55%); border-color: #ffd9c9; }
.woocommerce-view-order .acc-os-icon {
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	color: var(--ink, #222);
	background: rgba(20, 22, 30, .05);
}
.woocommerce-view-order .acc-order-status--go .acc-os-icon   { color: #1f7a46; background: rgba(31, 122, 70, .10); }
.woocommerce-view-order .acc-order-status--wait .acc-os-icon { color: #9a6a12; background: rgba(154, 106, 18, .10); }
.woocommerce-view-order .acc-order-status--warn .acc-os-icon { color: #b3210e; background: rgba(248, 0, 49, .08); }
.woocommerce-view-order .acc-os-icon svg { width: 22px; height: 22px; }
.woocommerce-view-order .acc-os-body { flex: 1 1 auto; min-width: 0; }
.woocommerce-view-order .acc-os-head { font-size: 19px; font-weight: 800; letter-spacing: -.015em; color: var(--ink, #222); line-height: 1.3; }
.woocommerce-view-order .acc-os-sub  { margin-top: 4px; font-size: 13.5px; font-weight: 500; color: var(--muted-2, #777); line-height: 1.5; }
.woocommerce-view-order .acc-os-meta { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted-2, #999); font-variant-numeric: tabular-nums; }
.woocommerce-view-order .acc-os-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.woocommerce-view-order .acc-os-fact {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 4px 10px;
	line-height: 1;
}
.woocommerce-view-order .acc-os-fact--good { color: #1f7a46; background: #eafaef; border: 1px solid #cdeed4; }
.woocommerce-view-order .acc-os-fact--warn { color: #9a6a12; background: #fff5df; border: 1px solid #f2dfae; }
.woocommerce-view-order .acc-os-fact--bad  { color: #b3210e; background: #fdecea; border: 1px solid #f6cfc7; }
.woocommerce-view-order .acc-os-cta { margin-top: 14px; }
.woocommerce-view-order .acc-osp-track { height: 12px; background: rgba(20, 22, 30, .07); }

/* ---- Order-details card v2: title becomes an in-card header ---------------- */
.woocommerce-view-order .woocommerce-order-details .woocommerce-order-details__title {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted-2, #777);
	margin: 0 0 10px 4px;
}
.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details {
	box-shadow: 0 18px 36px rgba(0, 0, 0, .06);
}

/* ---- Customer/billing details: pure noise on a digital-services order ------- */
.woocommerce-view-order .woocommerce-customer-details { display: none; }

/* ---- Order table → stacked item cards on phones ----------------------------- */
@media (max-width: 640px) {
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details thead { display: none; }
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tbody,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tr { display: block; width: 100%; }
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tbody td,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot th,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot td { display: block; width: 100%; box-sizing: border-box; }
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tbody td.product-name { padding-bottom: 6px; }
	/* Full 4-class table selector + the body class: must OUT-SPECIFY the desktop
	   rule at line ~353 (same 4-class chain, text-align:right), or this override
	   is dead and the stacked mobile total stays right-aligned. */
	.woocommerce-view-order .woocommerce-order-details table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details tbody td.product-total {
		text-align: left;
		padding-top: 0;
		font-size: 15px;
	}
	/* Totals rows become label/value flex lines. */
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot tr {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
	}
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot th,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot td { width: auto; padding-top: 8px; padding-bottom: 8px; }
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot tr:first-child th,
	.woocommerce-view-order .woocommerce-order-details table.shop_table.order_details tfoot tr:first-child td { padding-top: 12px; }
	.woocommerce-view-order .acc-order-status { flex-direction: row; padding: 18px; border-radius: 20px; }
	.woocommerce-view-order .acc-os-icon { width: 40px; height: 40px; border-radius: 14px; }
	.woocommerce-view-order .acc-os-head { font-size: 17px; }
}

/* ---- The downstream cards inherit the same ambient shadow ------------------- */
.woocommerce-view-order .acc-order-actions,
.woocommerce-view-order .acc-order-help,
.woocommerce-view-order .acc-order-rewards .acc-pl-card { box-shadow: 0 18px 36px rgba(0, 0, 0, .06); }
