/**
 * Alpha Peptides Checkout — cart page, checkout form, and the shared payment card.
 *
 * TOKENS ARE THE SOURCE'S OWN, measured over CDP with getComputedStyle and
 * recorded in RECON §12 / `source-cdp/design-tokens.json`:
 *   blue #2563EB / #1D4ED8 · ink #0B1322 · body #3A4458 · muted #6E7890
 *   line #E2E6ED / #C7CDD8 · cream #F4F6FA · green #16A34A
 *   deep CTA gradient #102B64 -> #07101F · Outfit 300–900
 * The CART-page rules additionally carry the source's own cart-scoped tokens
 * (`--apx-navy #07101f`, `--apx-line #dce4f1`, `--apx-soft #f6f9ff`, 8px radii)
 * read out of the stylesheet it inlines on `/cart/`.
 *
 * ⚠️ A FORK CARRIES THE DONOR'S COLOURS. This plugin was forked from
 * `researchchem-checkout` (green #0B6D3E on cream #FBFAF7). Nothing green
 * survives except the free-shipping accent, which Alpha Peptides uses itself.
 *
 * ⚠️ THE CART PAGE IS A REPRODUCTION, THE CHECKOUT IS NOT. `/cart/` was captured
 * in full (`source-checkout/cart.html`, `_shots/cart-{1440,820,390}.png`) and is
 * reproduced class-for-class. `/checkout/` is LOGIN-gated on the source
 * (RECON §3) and could not be captured, so it is the canonical 3-step layout
 * re-skinned in the cart page's own language — see PROJECT-BRIEF OQ-1.
 *
 * ⚠️ The payment card (`.apck-pay-card`) lives HERE, not in `apck-order.css`,
 * because the same card renders on My Account -> view order, where the
 * order-screen stylesheet is not loaded.
 *
 * Verified at 390 FIRST, then 820 / 1440.
 */

/* ============================================================ tokens + shell */

.apck-page {
	--apck-blue: #2563EB;
	--apck-blue2: #1D4ED8;
	--apck-navy: #07101F;
	--apck-navy2: #102B64;
	--apck-ink: #0B1322;
	--apck-ink2: #3A4458;
	--apck-muted: #68728A;
	--apck-faint: #9AA6BD;
	--apck-line: #DCE4F1;
	--apck-line2: #CDD8E8;
	--apck-soft: #F6F9FF;
	--apck-cream: #F4F6FA;
	--apck-green: #16A34A;
	--apck-green2: #0B8F45;
	--apck-warnbg: #FFF7E6;
	--apck-warnline: #E8B55C;
	--apck-warnink: #7A4F00;
	--apck-radius: 8px;
	--apck-font: var(--ap-font, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

	background: #fff;
	color: var(--apck-ink2);
	font-family: var(--apck-font);
	font-size: 16px;
	line-height: 1.6;
}

.apck-page,
.apck-page *,
.apck-page *::before,
.apck-page *::after { box-sizing: border-box; }

.apck-wrap {
	width: min(1360px, calc(100vw - 64px));
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 72px;
}

.apck-page .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	padding: 0;
	margin: -1px;
}

/* ============================================================ shared controls */

.apck-btn {
	display: inline-grid;
	place-items: center;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--apck-radius);
	font-family: var(--apck-font);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .16s ease, background .16s ease;
}

.apck-btn-primary {
	background: linear-gradient(180deg, var(--apck-navy2), var(--apck-navy));
	color: #fff !important;
	box-shadow: 0 14px 28px rgba(7, 16, 31, .17);
}

.apck-btn-primary:hover { filter: brightness(1.14); }

.apck-btn-ghost {
	background: #EEF4FF;
	color: var(--apck-blue2) !important;
	border: 1px solid #CFE0FF;
	box-shadow: none;
}

.apck-btn-ghost:hover { background: #E3EDFF; }

.apck-btn[disabled],
.apck-btn:disabled { opacity: .5; cursor: not-allowed; }

.apck-error {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid #F0C2BD;
	border-left: 4px solid #B42318;
	border-radius: var(--apck-radius);
	background: #FEF3F2;
	color: #7A271A;
	font-size: 15px;
	font-weight: 700;
}

.apck-free-pill {
	color: var(--apck-green2);
	font-weight: 900;
	letter-spacing: .04em;
}

/* ============================================================ CART PAGE
   Reproduced from the source's own cart stylesheet. Class names are the
   source's so the two can be diffed. */

.apck-cart-page .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(360px, .72fr);
	gap: 28px;
	align-items: start;
}

.apck-cart-page .woocommerce-notices-wrapper { grid-column: 1 / -1; }

.apx-cart-hero {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
	gap: 24px;
	align-items: end;
	padding: 34px 0 24px;
	border-bottom: 1px solid var(--apck-line);
	margin: 0 0 2px;
}

.apx-cart-eyebrow {
	margin: 0 0 7px;
	color: var(--apck-blue);
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 11px;
	line-height: 1;
	font-weight: 900;
}

.apx-cart-hero h1 {
	margin: 0;
	color: var(--apck-ink);
	font-size: clamp(38px, 4vw, 64px);
	line-height: .95;
	letter-spacing: -1px;
	font-weight: 900;
}

.apx-cart-subtitle {
	margin: 12px 0 0;
	color: var(--apck-muted);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 650;
}

.apx-cart-subtitle strong { color: var(--apck-ink); font-weight: 900; }

.apx-cart-meter {
	display: grid;
	gap: 9px;
	padding: 18px;
	border: 1px solid #DBE6F5;
	border-radius: var(--apck-radius);
	background: linear-gradient(180deg, #fff, var(--apck-soft));
	box-shadow: 0 18px 42px rgba(7, 16, 31, .055);
}

.apx-cart-meter b {
	color: #43506A;
	font-size: 13px;
	line-height: 1.15;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-align: right;
}

.apx-cart-meter-track {
	height: 10px;
	border-radius: 999px;
	background: #E4E8F2;
	overflow: hidden;
	position: relative;
	display: block;
}

.apx-cart-meter-track > span {
	display: block;
	width: var(--apx-cart-progress, 0%);
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #1FB51A, var(--apck-green));
	box-shadow: 0 0 0 4px rgba(34, 197, 94, .1);
	transition: width .25s ease;
}

.apx-cart-meter.is-unlocked .apx-cart-meter-track { background: #CCF6DD; }
.apx-cart-meter.is-unlocked .apx-cart-meter-track > span { width: 100%; }

.apck-cart-empty {
	grid-column: 1 / -1;
	padding: 48px 0 0;
	text-align: center;
}

.apck-cart-empty p { margin: 0 0 20px; color: var(--apck-muted); font-size: 17px; }

/* ---- items card ---- */

.apck-cart-page .ct-woocommerce-cart-form {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(360px, .72fr);
	gap: 28px;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.apck-cart-page .woocommerce-cart-form {
	grid-column: 1;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 1px solid var(--apck-line2);
	border-radius: var(--apck-radius);
	background: #fff;
	box-shadow: 0 22px 60px rgba(7, 16, 31, .065);
	overflow: hidden;
}

.apck-cart-page table.shop_table.cart {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.apck-cart-page table.shop_table.cart thead { display: none; }
.apck-cart-page table.shop_table.cart tbody { display: block; padding: 18px 22px 22px; }

.apck-cart-page table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) 156px 128px 34px;
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid #E5EBF5;
}

.apck-cart-page table.shop_table.cart tr.cart_item:first-child { padding-top: 4px; }

.apck-cart-page table.shop_table.cart td {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

.apck-cart-page td.product-thumbnail { width: 92px; min-width: 92px; max-width: 92px; }

.apck-cart-page .product-thumbnail .ct-media-container {
	width: 92px;
	max-width: 92px;
	height: 92px;
	display: block;
	border: 1px solid #D9E3F2;
	border-radius: var(--apck-radius);
	overflow: hidden;
	background: #F8FAFE;
}

.apck-cart-page .product-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

.apck-cart-page td.product-name > a,
.apck-cart-page td.product-name > span {
	color: var(--apck-ink) !important;
	font-size: 18px;
	line-height: 1.18;
	font-weight: 900;
	text-decoration: none !important;
	letter-spacing: -.2px;
	overflow-wrap: anywhere;
}

.apck-cart-page td.product-name .price {
	margin: 8px 0 0;
	color: #5D6980;
	font-size: 14px;
	font-weight: 800;
}

.apck-cart-page td.product-name .price del {
	color: var(--apck-faint);
	font-weight: 600;
	margin-left: 6px;
}

.apck-line-tier {
	margin: 6px 0 0;
	color: var(--apck-green2);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.3;
}

.apck-line-tier-nudge { color: var(--apck-blue); }

.apck-cart-page .variation,
.apck-cart-page .wc-item-meta {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	color: var(--apck-muted);
	font-size: 12.5px;
	font-weight: 650;
}

.apck-cart-page .variation p,
.apck-cart-page .wc-item-meta p { margin: 0; }

.apck-cart-page td.product-subtotal {
	color: var(--apck-ink);
	text-align: right;
	font-size: 18px;
	font-weight: 900;
	white-space: nowrap;
}

.apck-cart-page td.product-remove { text-align: right; }

.apck-cart-page td.product-remove a.remove {
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: #F2F5FB;
	color: var(--apck-muted) !important;
	text-decoration: none !important;
}

.apck-cart-page td.product-remove a.remove:hover { background: #FEE4E2; color: #B42318 !important; }
.apck-cart-page td.product-remove a.remove svg { width: 12px; height: 12px; fill: currentColor; }

/* ---- the quantity stepper. Grid columns are assigned explicitly because the
       DOM order is increase, decrease, input (the source's order). ---- */

.apck-cart-page .quantity[data-type] {
	width: 156px;
	height: 42px;
	display: grid;
	grid-template-columns: 46px 1fr 46px;
	border: 1px solid #D4DEED;
	border-radius: var(--apck-radius);
	overflow: hidden;
	background: #fff;
}

.apck-cart-page .quantity .ct-decrease,
.apck-cart-page .quantity .ct-increase {
	grid-row: 1;
	position: relative;
	width: auto;
	height: 100%;
	display: grid;
	place-items: center;
	cursor: pointer;
	border: 0;
	background: #fff;
	align-self: stretch;
	user-select: none;
}

.apck-cart-page .quantity .ct-decrease { grid-column: 1; border-right: 1px solid #D4DEED; }
.apck-cart-page .quantity .ct-increase { grid-column: 3; border-left: 1px solid #D4DEED; }

.apck-cart-page .quantity .ct-decrease::before { content: "\2212"; }
.apck-cart-page .quantity .ct-increase::before { content: "+"; }

.apck-cart-page .quantity .ct-decrease::before,
.apck-cart-page .quantity .ct-increase::before {
	display: block;
	color: #22304A;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.apck-cart-page .quantity input.qty {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--apck-ink);
	text-align: center;
	font-size: 17px;
	font-weight: 900;
	font-family: var(--apck-font);
	-moz-appearance: textfield;
	appearance: textfield;
}

.apck-cart-page .quantity input.qty::-webkit-outer-spin-button,
.apck-cart-page .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- actions row (coupon + update) ---- */

.apck-cart-page .woocommerce-cart-form tbody > tr:last-child {
	display: block;
	padding: 18px 22px 22px;
	border: 0;
}

.apck-cart-page td.actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	width: 100%;
}

.apck-cart-page .coupon {
	display: grid;
	grid-template-columns: minmax(0, 260px) auto;
	gap: 10px;
	align-items: center;
	justify-content: start;
}

.apck-cart-page .coupon input.input-text {
	height: 44px;
	border: 1px solid #D8E2F0;
	border-radius: 7px;
	padding: 0 14px;
	color: #1D2738;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--apck-font);
	background: #fff;
}

.apck-cart-page .coupon .button,
.apck-cart-page button[name="update_cart"] {
	height: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 7px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 900;
	font-family: var(--apck-font);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.apck-cart-page .coupon .button {
	background: linear-gradient(180deg, #2F75F6, #1F55D9);
	color: #fff;
	box-shadow: 0 10px 20px rgba(37, 99, 235, .16);
	width: auto;
	min-width: 150px;
}

.apck-cart-page button[name="update_cart"] {
	justify-self: end;
	background: #EEF4FF;
	color: var(--apck-blue2);
	border: 1px solid #CFE0FF;
}

/* ---- totals card ---- */

.apck-cart-page .cart_totals {
	grid-column: 2;
	width: 100%;
	float: none;
	margin: 0;
	padding: 26px 26px 28px;
	border: 1px solid var(--apck-line2);
	border-radius: var(--apck-radius);
	background: linear-gradient(180deg, #fff, #F9FBFF);
	box-shadow: 0 22px 60px rgba(7, 16, 31, .075);
	min-width: 0;
}

.apck-cart-page .cart_totals h2 {
	margin: 0 0 20px;
	color: var(--apck-ink);
	font-size: 24px;
	line-height: 1;
	font-weight: 900;
	letter-spacing: -.4px;
}

.apck-cart-page .cart_totals h2::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--apck-blue), #9DB9FF);
	margin-top: 12px;
}

.apck-cart-page .cart_totals table { width: 100%; margin: 0; border: 0; }

.apck-cart-page .cart_totals tr {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: start;
	padding: 14px 0;
	border-bottom: 1px solid #E5EBF5;
}

.apck-cart-page .cart_totals tr th,
.apck-cart-page .cart_totals tr td {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--apck-muted);
	font-size: 14px;
	line-height: 1.35;
	font-weight: 850;
	text-align: left;
}

.apck-cart-page .cart_totals tr td { color: #1D2738; text-align: right; }
.apck-cart-page .cart_totals tr td::before { display: none; content: none; }

.apck-cart-page .cart_totals .cart-discount td { color: var(--apck-green2); }

/* Woo's own remove link, from `wc_cart_totals_coupon_html()`. */
.apck-cart-page .cart_totals .woocommerce-remove-coupon {
	display: inline-block;
	margin-left: 8px;
	color: var(--apck-faint) !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.apck-cart-page .cart_totals .woocommerce-remove-coupon:hover { color: #B42318 !important; }

.apck-cart-page .cart_totals .order-total {
	border-bottom: 0;
	padding-top: 18px;
	align-items: baseline;
}

.apck-cart-page .cart_totals .order-total th { color: var(--apck-ink); font-size: 20px; font-weight: 900; }
.apck-cart-page .cart_totals .order-total td { color: var(--apck-ink); font-size: 26px; font-weight: 900; }

.apck-cart-page .cart_totals .woocommerce-shipping-totals { display: block; }
.apck-cart-page .cart_totals .woocommerce-shipping-totals td { text-align: left; }

.apck-cart-page .ct-shipping-heading {
	color: var(--apck-blue);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 11px;
	font-weight: 900;
	margin: 0 0 10px;
}

.apck-cart-page .woocommerce-shipping-destination {
	margin: 10px 0 0;
	color: var(--apck-muted);
	font-size: 12px;
	line-height: 1.4;
	font-weight: 650;
	text-align: left;
}

.apck-cart-minwarn {
	margin: 14px 0 0;
	color: #7A271A;
	font-size: 13px;
	font-weight: 800;
}

.apck-cart-page .wc-proceed-to-checkout { padding: 8px 0 0; }

.apck-cart-page .checkout-button {
	display: grid !important;
	place-items: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: var(--apck-radius);
	background: linear-gradient(180deg, var(--apck-navy2), var(--apck-navy));
	color: #fff !important;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 14px 28px rgba(7, 16, 31, .17);
}

.apck-cart-page .checkout-button.is-disabled { pointer-events: none; opacity: .5; }

/* ---- trust rows ---- */

.apx-cart-confidence {
	margin-top: 18px;
	border-top: 1px solid #E5EBF5;
	padding-top: 18px;
}

.apx-cart-confidence h3 {
	margin: 0 0 12px;
	color: #172238;
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 12px;
	line-height: 1.1;
	font-weight: 800;
}

.apx-cart-confidence-list { display: grid; gap: 10px; }

.apx-cart-confidence-list div {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	column-gap: 10px;
	row-gap: 3px;
	align-items: start;
	padding: 10px 0;
	border-bottom: 1px solid #E8EEF7;
}

.apx-cart-confidence-list div:last-child { border-bottom: 0; }

.apx-cart-confidence-list span {
	width: 34px;
	height: 34px;
	grid-row: 1 / span 2;
	border-radius: var(--apck-radius);
	display: grid;
	place-items: center;
	background: #EEF4FF;
	border: 1px solid #CFE0FF;
	color: var(--apck-blue);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .03em;
}

.apx-cart-confidence-list b { color: #111827; font-size: 13px; line-height: 1.18; font-weight: 800; }
.apx-cart-confidence-list small { color: #667085; font-size: 12px; line-height: 1.35; font-weight: 500; }

/* ---- cross-sells ---- */

.apck-cart-page .cart-collaterals { grid-column: 1 / -1; min-width: 0; }

.apck-cart-page .cross-sells {
	margin: 18px 0 0;
	padding: 30px 0 0;
	border-top: 1px solid #E5EBF5;
}

.apck-cart-page .cross-sells > h2 {
	margin: 0 0 22px;
	color: var(--apck-ink);
	font-size: clamp(28px, 3.1vw, 46px);
	line-height: .98;
	letter-spacing: -.8px;
	font-weight: 900;
}

.apck-cart-page .cross-sells ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.apck-cart-page .cross-sells ul.products::before,
.apck-cart-page .cross-sells ul.products::after { content: none; display: none; }

.apck-cart-page .cross-sells li.product {
	width: auto !important;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 18px;
	border: 1px solid #D7E1EF;
	border-radius: var(--apck-radius);
	background: #fff;
	box-shadow: 0 18px 44px rgba(7, 16, 31, .055);
	overflow: hidden;
}

/* ============================================================ SHIPPING ROWS
   One renderer, both class vocabularies (see apck-shipping.php). */

.apck-ship-list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: grid;
	gap: 8px;
}

.apck-ship-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: center;
	border: 1px solid #DBE6F5;
	border-radius: var(--apck-radius);
	padding: 12px;
	background: #fff;
	margin: 0;
}

.apck-ship-list li.is-selected { border-color: var(--apck-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.apck-ship-list li.is-disabled { background: var(--apck-cream); border-color: var(--apck-line); }

.apck-ship-list input[type="radio"] { margin: 0; accent-color: var(--apck-blue); }
.apck-ship-list label { display: block; margin: 0; cursor: pointer; min-width: 0; }
.apck-ship-list li.is-disabled label { cursor: default; }

.shipping-card-content {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	width: 100%;
}

.shipping-card-left { min-width: 0; }

.shipping-card-name { color: #111827; font-weight: 900; font-size: 14.5px; }
.shipping-card-window { color: var(--apck-muted); font-size: 12px; font-weight: 700; margin-left: 4px; }

.shipping-card-desc {
	display: block;
	margin-top: 4px;
	color: var(--apck-muted);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.4;
}

.shipping-card-right { text-align: right; white-space: nowrap; }
.shipping-card-price { color: var(--apck-green2); font-weight: 900; white-space: nowrap; }

/* Above the free-ship threshold: FREE, with the row's own price struck through
   and the row disabled. The rate contributes nothing to the total. */
.apck-ship-was {
	display: block;
	color: var(--apck-faint);
	font-size: 12px;
	font-weight: 600;
	text-decoration: line-through;
	margin-top: 2px;
}

.apck-ship-freenote {
	margin: 12px 0 0;
	color: var(--apck-muted);
	font-size: 13px;
	font-weight: 700;
}

.apck-ship-freenote strong { color: var(--apck-green2); }

/* ============================================================ CHECKOUT PAGE */

.apck-co-head {
	padding: 34px 0 22px;
	border-bottom: 1px solid var(--apck-line);
}

.apck-co-head h1 {
	margin: 0;
	color: var(--apck-ink);
	font-size: clamp(34px, 3.6vw, 56px);
	line-height: .98;
	letter-spacing: -1px;
	font-weight: 900;
}

.apck-co-sub { margin: 12px 0 0; color: var(--apck-muted); font-size: 15.5px; font-weight: 650; }

/* OQ-1: guest checkout is allowed, but sign-in must still be OFFERED. This is
   our fallback copy — it renders only when tuju-account is not supplying its
   own on `woocommerce_before_checkout_form`. */
.apck-signin-prompt {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 18px 0 0;
	padding: 13px 16px;
	border: 1px solid #CFE0FF;
	border-left: 4px solid var(--apck-blue);
	border-radius: var(--apck-radius);
	background: var(--apck-soft);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
	color: var(--apck-ink2);
}

.apck-signin-prompt a { color: var(--apck-blue); font-weight: 900; }
.apck-signin-prompt__guest { color: var(--apck-muted); font-size: 13px; font-weight: 650; }

.apck-steps-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 0 22px;
}

.apck-step-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 10px;
	border: 1px solid var(--apck-line);
	border-radius: 999px;
	background: #fff;
	color: var(--apck-muted);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.apck-step-pill i {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--apck-cream);
	color: var(--apck-muted);
	font-style: normal;
	font-size: 11px;
}

.apck-step-pill.is-active { border-color: var(--apck-blue); color: var(--apck-ink); }
.apck-step-pill.is-active i { background: var(--apck-blue); color: #fff; }
.apck-step-pill.is-done i { background: var(--apck-green); color: #fff; }

.apck-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(340px, .72fr);
	gap: 28px;
	align-items: start;
}

.apck-step {
	display: none;
	padding: 26px;
	border: 1px solid var(--apck-line2);
	border-radius: var(--apck-radius);
	background: #fff;
	box-shadow: 0 22px 60px rgba(7, 16, 31, .065);
}

.apck-step.is-active { display: block; }

.apck-step-title {
	margin: 0 0 20px;
	color: var(--apck-ink);
	font-size: 24px;
	line-height: 1.1;
	letter-spacing: -.4px;
	font-weight: 900;
}

.apck-step-num {
	display: block;
	margin-bottom: 7px;
	color: var(--apck-blue);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
}

/* ---- fields ---- */

.apck-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.apck-field {
	display: block;
	min-width: 0;
	color: var(--apck-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.apck-f-full { grid-column: 1 / -1; }

.apck-field .req { color: var(--apck-blue); }
.apck-field .opt { color: var(--apck-faint); text-transform: none; letter-spacing: 0; font-weight: 700; }

.apck-field input,
.apck-field select,
.apck-field textarea {
	display: block;
	width: 100%;
	margin-top: 7px;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #D8E2F0;
	border-radius: 7px;
	background: #fff;
	color: var(--apck-ink);
	font-family: var(--apck-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.apck-field textarea { min-height: 92px; resize: vertical; line-height: 1.5; font-weight: 600; }

.apck-field input:focus,
.apck-field select:focus,
.apck-field textarea:focus {
	outline: 0;
	border-color: var(--apck-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.apck-field input.apck-invalid,
.apck-field select.apck-invalid { border-color: #B42318; box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }

.apck-field-hint {
	display: block;
	margin-top: 6px;
	color: var(--apck-faint);
	font-size: 11.5px;
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
}

.apck-notes-field { margin-top: 18px; }

.apck-step-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

/* ---- coupon ---- */

.apck-coupon {
	margin-top: 22px;
	padding: 18px;
	border: 1px solid var(--apck-line);
	border-radius: var(--apck-radius);
	background: var(--apck-soft);
}

.apck-coupon-label {
	display: block;
	margin-bottom: 9px;
	color: var(--apck-blue);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.apck-coupon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }

.apck-coupon-row input {
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #D8E2F0;
	border-radius: 7px;
	background: #fff;
	font-family: var(--apck-font);
	font-size: 15px;
	font-weight: 700;
	color: var(--apck-ink);
}

.apck-coupon-row .apck-btn { min-height: 48px; }

.apck-coupon-applied { list-style: none; margin: 10px 0 0; padding: 0; }

.apck-coupon-applied li {
	display: inline-flex;
	gap: 8px;
	padding: 5px 10px;
	margin: 0 6px 6px 0;
	border: 1px solid #C6E4CF;
	border-radius: 7px;
	background: #EAF6EE;
	color: #15623A;
	font-size: 12.5px;
	font-weight: 800;
}

.apck-coupon-note { margin: 10px 0 0; color: var(--apck-faint); font-size: 12px; font-weight: 650; }

/* ---- payment methods ---- */

.apck-pay-methods { display: grid; gap: 10px; }

.apck-pay-empty {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--apck-warnline);
	border-radius: var(--apck-radius);
	background: var(--apck-warnbg);
	color: var(--apck-warnink);
	font-size: 14px;
	font-weight: 700;
}

.apck-pay-method {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 6px 12px;
	align-items: center;
	padding: 16px;
	border: 1px solid #DBE6F5;
	border-radius: var(--apck-radius);
	background: #fff;
	cursor: pointer;
}

.apck-pay-method.is-selected { border-color: var(--apck-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }

.apck-pay-method input { margin: 0; accent-color: var(--apck-blue); }

.apck-pm-label { color: var(--apck-ink); font-size: 16px; font-weight: 900; letter-spacing: -.2px; }

.apck-pm-tag {
	justify-self: end;
	padding: 4px 9px;
	border-radius: 999px;
	background: #EEF4FF;
	border: 1px solid #CFE0FF;
	color: var(--apck-blue2);
	font-size: 9.5px;
	font-weight: 900;
	letter-spacing: .1em;
	white-space: nowrap;
}

.apck-pm-note {
	grid-column: 2 / -1;
	color: var(--apck-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.apck-crypto-detail {
	padding: 18px;
	border: 1px solid #CFE0FF;
	border-top: 0;
	border-radius: 0 0 var(--apck-radius) var(--apck-radius);
	background: var(--apck-soft);
	margin: -10px 0 0;
}

.apck-coin-field { display: block; }

.apck-coin-label {
	display: block;
	margin-bottom: 7px;
	color: var(--apck-blue);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.apck-coin-select {
	width: 100%;
	max-width: 340px;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid #D8E2F0;
	border-radius: 7px;
	background: #fff;
	color: var(--apck-ink);
	font-family: var(--apck-font);
	font-size: 15px;
	font-weight: 800;
}

.apck-coin-network {
	margin: 14px 0 0;
	color: var(--apck-ink2);
	font-size: 14px;
	font-weight: 700;
}

.apck-coin-network strong { color: var(--apck-ink); font-weight: 900; }

/* Wrong network = permanently lost funds. The warning is amber because the
   brand has no red; it must read as an instruction, not a footnote. */
.apck-coin-warn {
	margin: 10px 0 0;
	padding: 11px 13px;
	border: 1px solid var(--apck-warnline);
	border-radius: 7px;
	background: var(--apck-warnbg);
	color: var(--apck-warnink);
	font-size: 12.5px;
	font-weight: 750;
	line-height: 1.5;
}

/* ---- consent ---- */

.apck-consent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	margin-top: 22px;
	padding: 16px;
	border: 1px solid var(--apck-line);
	border-radius: var(--apck-radius);
	background: var(--apck-cream);
	color: var(--apck-ink2);
	font-size: 13.5px;
	font-weight: 650;
	line-height: 1.55;
	cursor: pointer;
}

.apck-consent input { margin: 3px 0 0; accent-color: var(--apck-blue); }
.apck-consent strong { color: var(--apck-ink); font-weight: 900; }

.apck-place-note { margin: 14px 0 0; color: var(--apck-faint); font-size: 12px; font-weight: 650; line-height: 1.5; }

/* ---- summary rail ---- */

.apck-summary {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid var(--apck-line2);
	border-radius: var(--apck-radius);
	background: linear-gradient(180deg, #fff, #F9FBFF);
	box-shadow: 0 22px 60px rgba(7, 16, 31, .075);
	min-width: 0;
}

.apck-summary-title {
	margin: 0 0 16px;
	color: var(--apck-ink);
	font-size: 20px;
	line-height: 1;
	font-weight: 900;
	letter-spacing: -.3px;
}

.apck-summary-meter {
	margin: 0 0 18px;
	padding: 14px;
	border: 1px solid #DBE6F5;
	border-radius: var(--apck-radius);
	background: #fff;
}

.apck-summary-meter p { margin: 0 0 9px; color: var(--apck-muted); font-size: 12.5px; font-weight: 750; }
.apck-summary-meter p strong { color: var(--apck-ink); font-weight: 900; }
.apck-summary-meter.is-unlocked p strong { color: var(--apck-green2); }
.apck-summary-meter.is-unlocked .apx-cart-meter-track { background: #CCF6DD; }
.apck-summary-meter.is-unlocked .apx-cart-meter-track > span { width: 100%; }

.apck-summary-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }

.apck-summary-items li {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #E8EEF7;
}

.apck-summary-items li:last-child { border-bottom: 0; padding-bottom: 0; }

.apck-summary-items img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border: 1px solid #E2E8F4;
	border-radius: 6px;
	background: #F8FAFE;
	display: block;
}

.apck-si-main { min-width: 0; }

.apck-si-name {
	display: block;
	color: var(--apck-ink);
	font-size: 13.5px;
	font-weight: 850;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.apck-si-qty { display: block; margin-top: 3px; color: var(--apck-muted); font-size: 11.5px; font-weight: 750; }
.apck-si-price { color: var(--apck-ink); font-size: 14px; font-weight: 900; white-space: nowrap; }

.apck-summary-rows { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid #E5EBF5; }

.apck-sr {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	color: var(--apck-muted);
	font-size: 14px;
	font-weight: 800;
}

.apck-sr > span:last-child { color: #1D2738; }
.apck-sr-discount > span:last-child { color: var(--apck-green2); }

.apck-sr-total {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #E5EBF5;
	align-items: baseline;
}

.apck-sr-total > span { color: var(--apck-ink); font-size: 16px; font-weight: 900; }
.apck-sr-total > strong { color: var(--apck-ink); font-size: 24px; font-weight: 900; }

.apck-summary-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #E5EBF5; display: grid; gap: 9px; }

.apck-summary-trust li {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	margin: 0;
	color: #667085;
	font-size: 12.5px;
	font-weight: 700;
}

.apck-summary-trust span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: #EEF4FF;
	border: 1px solid #CFE0FF;
	color: var(--apck-blue);
	font-size: 8.5px;
	font-weight: 900;
}

.apck-summary-note { margin: 16px 0 0; color: var(--apck-faint); font-size: 12px; font-weight: 650; line-height: 1.5; }
.apck-summary-note a { color: var(--apck-blue); font-weight: 800; }

/* ============================================================ PAYMENT CARD
   Shared by the thank-you page, the awaiting-payment screen and
   My Account -> view order. Lives here, not in apck-order.css, because this
   stylesheet is the one loaded on all three. */

.apck-pay-card {
	margin: 0 0 24px;
	padding: 24px;
	border: 2px solid var(--apck-blue);
	border-radius: var(--apck-radius);
	background: linear-gradient(180deg, #fff, var(--apck-soft));
	box-shadow: 0 22px 60px rgba(7, 16, 31, .075);
	font-family: var(--apck-font);
	color: var(--apck-ink2);
}

.apck-pay-eyebrow {
	margin: 0 0 6px;
	color: var(--apck-blue);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.apck-pay-title {
	margin: 0 0 10px;
	color: var(--apck-ink);
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.15;
	letter-spacing: -.5px;
	font-weight: 900;
}

.apck-pay-lead { margin: 0 0 18px; color: var(--apck-ink2); font-size: 15px; line-height: 1.65; }
.apck-pay-lead strong { color: var(--apck-ink); font-weight: 900; }
.apck-pay-contact { color: var(--apck-blue); overflow-wrap: anywhere; }

.apck-pay-rows { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--apck-line); }

.apck-pay-row {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--apck-line);
}

.apck-pay-k {
	color: var(--apck-muted);
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.apck-pay-v { color: var(--apck-ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.apck-pay-row-network .apck-pay-v strong { color: var(--apck-ink); font-size: 16px; font-weight: 900; }
.apck-pay-amount { color: var(--apck-blue); font-size: 18px; font-weight: 900; }
.apck-pay-usd { color: var(--apck-muted); font-size: 13px; font-weight: 700; }

.apck-wallet-block { margin: 0 0 16px; }

.apck-wallet-copy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: stretch;
	margin-top: 8px;
}

.apck-wallet-addr {
	display: block;
	padding: 13px 14px;
	border: 1px solid var(--apck-line2);
	border-radius: 7px;
	background: #fff;
	color: var(--apck-blue2);
	font-family: Consolas, Menlo, Monaco, 'Courier New', monospace;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	/* The one line this card exists to deliver. It MUST wrap at 390px. */
	word-break: break-all;
	overflow-wrap: anywhere;
}

.apck-copy-btn {
	padding: 0 18px;
	border: 0;
	border-radius: 7px;
	background: linear-gradient(180deg, var(--apck-navy2), var(--apck-navy));
	color: #fff;
	font-family: var(--apck-font);
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

.apck-pay-warn {
	margin: 0 0 16px;
	padding: 13px 15px;
	border: 1px solid var(--apck-warnline);
	border-radius: 7px;
	background: var(--apck-warnbg);
	color: var(--apck-warnink);
	font-size: 13px;
	font-weight: 750;
	line-height: 1.55;
}

.apck-pay-warn strong { font-weight: 900; }

.apck-pay-instructions { margin: 0; color: var(--apck-muted); font-size: 13.5px; line-height: 1.65; font-weight: 600; }
.apck-pay-cta-row { margin: 0 0 16px; }
.apck-pay-fallback { margin: 14px 0 0; color: var(--apck-faint); font-size: 12.5px; font-weight: 650; }
.apck-pay-fallback a { color: var(--apck-blue); font-weight: 800; }

/* ============================================================ 1120: tablet */

@media (max-width: 1120px) {
	.apck-wrap { width: min(100%, calc(100vw - 40px)); }
	.apck-cart-page .woocommerce { grid-template-columns: 1fr; }
	.apck-cart-page .ct-woocommerce-cart-form { grid-template-columns: 1fr; }
	.apck-cart-page .cart_totals { grid-column: 1; }
	.apx-cart-hero { grid-template-columns: 1fr; }
	.apck-checkout-grid { grid-template-columns: 1fr; }
	.apck-summary { position: static; }
}

/* ============================================================ 820: small tablet */

@media (max-width: 820px) {
	.apck-wrap { width: min(100%, calc(100vw - 28px)); }

	.apck-cart-page table.shop_table.cart tbody { padding: 14px; }

	.apck-cart-page table.shop_table.cart tr.cart_item {
		position: relative;
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 8px 14px;
		align-items: center;
	}

	.apck-cart-page td.product-thumbnail { grid-column: 1; grid-row: 1 / span 3; }
	.apck-cart-page td.product-name { grid-column: 2; grid-row: 1; min-width: 0; }
	.apck-cart-page td.product-name > a,
	.apck-cart-page td.product-name > span { font-size: 17px; line-height: 1.15; }
	.apck-cart-page td.product-name .price { font-size: 13px; margin-top: 5px; }
	.apck-cart-page td.product-quantity { grid-column: 2; grid-row: 2; }
	.apck-cart-page td.product-subtotal { grid-column: 2; grid-row: 3; align-self: center; text-align: left; font-size: 16px; }
	.apck-cart-page td.product-remove { position: absolute; top: 8px; right: 0; transform: none; }

	.apck-cart-page .quantity[data-type] { width: 132px; height: 38px; grid-template-columns: 40px 1fr 40px; }

	.apck-cart-page td.actions { grid-template-columns: 1fr; }
	.apck-cart-page .coupon { grid-template-columns: 1fr; }
	.apck-cart-page button[name="update_cart"] { justify-self: stretch; }

	.apck-cart-page .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.apck-fields { grid-template-columns: 1fr; }
	.apck-step { padding: 20px; }
	.apck-pay-row { grid-template-columns: 1fr; }
}

/* ============================================================ 560/390: phones
   Measured at 390 FIRST — this is where every one of these rules was needed. */

@media (max-width: 560px) {
	.apx-cart-hero { padding: 24px 0 18px; }
	.apx-cart-hero h1 { font-size: 40px; }
	.apck-cart-page .cross-sells ul.products { grid-template-columns: 1fr; }
	.apck-cart-page .cart_totals { padding: 20px 18px 22px; }
	.apck-cart-page .cart_totals .order-total td { font-size: 23px; }

	.apck-co-head { padding: 24px 0 18px; }
	.apck-co-head h1 { font-size: 32px; }
	.apck-step { padding: 18px 16px; }
	.apck-step-title { font-size: 21px; }
	.apck-step-actions { flex-direction: column-reverse; }
	.apck-step-actions .apck-btn { width: 100%; }

	.apck-steps-nav { gap: 7px; padding: 16px 0 18px; }
	.apck-step-pill { font-size: 10.5px; padding: 7px 12px 7px 8px; }

	.apck-summary { padding: 18px 16px; }

	/* The pay card at 390. The wallet row stacks so the address gets the full
	   width before it has to break, and the Copy button sits under it rather
	   than squeezing it to ~40% (the defect that made the address unreadable
	   on a phone). */
	.apck-pay-card { padding: 18px 16px; }
	.apck-pay-title { font-size: 20px; }
	.apck-wallet-copy { grid-template-columns: 1fr; }
	.apck-copy-btn { min-height: 44px; }
	.apck-pay-amount { font-size: 17px; }

	.apck-coupon-row { grid-template-columns: 1fr; }
	.apck-coupon-row .apck-btn { width: 100%; }

	.apck-pay-method { grid-template-columns: auto minmax(0, 1fr); }
	.apck-pm-tag { grid-column: 2; justify-self: start; margin-top: 2px; }
	.apck-pm-note { grid-column: 1 / -1; }

	.shipping-card-content { flex-direction: column; align-items: flex-start; gap: 6px; }
	.shipping-card-right { text-align: left; }
}
