/*
 * Multicharts Universe — WooCommerce
 *
 * Celestial Luxury overrides for all WC frontend pages without changing
 * any WC template markup. Targets: shop loop, single product, cart,
 * checkout, my-account, order received.
 *
 * Strategy: keep Storefront's class structure (so plugin compat survives),
 * only re-skin colours / typography / borders / spacing. No layout rewrites.
 */

/* =====================================================================
 * Global WC wrapper — ensure dark background flows through
 * ===================================================================== */
body.mcu-theme.woocommerce-page,
body.mcu-theme .woocommerce,
body.mcu-theme .woocommerce-page {
	background: transparent;
	color: var(--color-text-primary);
}

body.mcu-theme #content.site-content,
body.mcu-theme .woocommerce-notices-wrapper {
	background: transparent;
}

/* Page title (Shop, Cart, Checkout, My Account headings) */
body.mcu-theme .page-title,
body.mcu-theme .entry-title,
body.mcu-theme h1.product_title {
	font-family: var(--font-display);
	font-weight: var(--weight-light);
	letter-spacing: var(--tracking-tight);
	color: var(--color-text-primary);
}

/* =====================================================================
 * Shop archive — product grid
 * ===================================================================== */
body.mcu-theme ul.products li.product {
	background: var(--color-cosmic-night);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--radius-lg);
	padding: var(--space-md);
	transition: transform var(--dur-base) var(--ease-celestial),
	            border-color var(--dur-base) var(--ease-celestial),
	            box-shadow var(--dur-base) var(--ease-celestial);
}

body.mcu-theme ul.products li.product:hover {
	transform: translateY(-4px);
	border-color: var(--color-gold);
	box-shadow: var(--shadow-lg), var(--glow-gold-sm);
}

body.mcu-theme ul.products li.product .woocommerce-loop-product__title,
body.mcu-theme ul.products li.product h2,
body.mcu-theme ul.products li.product h3 {
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: var(--weight-regular) !important;
	color: var(--color-text-primary) !important;
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
}

body.mcu-theme ul.products li.product .price {
	font-family: var(--font-mono) !important;
	font-size: var(--text-base) !important;
	color: var(--color-gold-bright) !important;
	font-weight: var(--weight-medium) !important;
}

body.mcu-theme ul.products li.product .price del {
	color: var(--color-text-muted) !important;
}
body.mcu-theme ul.products li.product .price ins {
	background: none !important;
	color: var(--color-gold-bright) !important;
	font-weight: var(--weight-bold) !important;
}

body.mcu-theme ul.products li.product img {
	border-radius: var(--radius-md);
}

/* Sale badge */
body.mcu-theme .woocommerce span.onsale,
body.mcu-theme .woocommerce ul.products li.product .onsale {
	background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%) !important;
	color: var(--color-text-on-gold) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: var(--weight-semibold) !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase;
	border-radius: var(--radius-pill) !important;
	min-height: auto !important;
	min-width: auto !important;
	padding: 0.4em 0.9em !important;
	line-height: 1.2 !important;
}

/* Pagination */
body.mcu-theme .woocommerce-pagination .page-numbers {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-secondary) !important;
}
body.mcu-theme .woocommerce-pagination .page-numbers.current,
body.mcu-theme .woocommerce-pagination .page-numbers:hover {
	background: var(--color-gold-bright) !important;
	color: var(--color-text-on-gold) !important;
	border-color: var(--color-gold) !important;
}

/* =====================================================================
 * Single product page
 * ===================================================================== */
body.mcu-theme .single-product div.product .woocommerce-product-gallery img {
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border-subtle);
}

body.mcu-theme .single-product div.product .summary {
	padding: var(--space-md) 0;
}

body.mcu-theme .single-product div.product h1.product_title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: var(--space-md);
}

body.mcu-theme .single-product div.product .price,
body.mcu-theme .single-product div.product p.price {
	font-family: var(--font-mono) !important;
	font-size: var(--text-2xl) !important;
	color: var(--color-gold-bright) !important;
	font-weight: var(--weight-medium) !important;
}

body.mcu-theme .single-product div.product .woocommerce-product-details__short-description {
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--color-text-secondary);
	margin-bottom: var(--space-md);
}

/* Product meta (SKU / category / tags) */
body.mcu-theme .single-product div.product .product_meta {
	border-top: 1px solid var(--color-border-subtle);
	padding-top: var(--space-md);
	margin-top: var(--space-md);
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

body.mcu-theme .single-product div.product .product_meta a {
	color: var(--color-gold-bright);
}

/* Tabs (Description / Additional info / Reviews) */
body.mcu-theme .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--color-border-default) !important;
}
body.mcu-theme .woocommerce-tabs ul.tabs li {
	background: transparent !important;
	border: 0 !important;
	margin-bottom: -1px !important;
}
body.mcu-theme .woocommerce-tabs ul.tabs li a {
	color: var(--color-text-secondary) !important;
	font-family: var(--font-body) !important;
	font-weight: var(--weight-medium) !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase;
	font-size: var(--text-sm) !important;
	padding: var(--space-sm) var(--space-md) !important;
}
body.mcu-theme .woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--color-gold-bright) !important;
}
body.mcu-theme .woocommerce-tabs ul.tabs li.active a,
body.mcu-theme .woocommerce-tabs ul.tabs li a:hover {
	color: var(--color-gold-bright) !important;
}

body.mcu-theme .woocommerce-Tabs-panel {
	padding: var(--space-md) 0 !important;
	color: var(--color-text-secondary);
}

/* Quantity input */
body.mcu-theme .quantity .qty {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
	padding: 0.5em !important;
	width: 4em !important;
	text-align: center;
}

/* Related products / upsells */
body.mcu-theme .related h2,
body.mcu-theme .upsells h2,
body.mcu-theme .cross-sells h2 {
	font-family: var(--font-display);
	font-weight: var(--weight-light);
	color: var(--color-text-primary);
	margin-bottom: var(--space-lg);
}

/* =====================================================================
 * Cart page
 * ===================================================================== */
body.mcu-theme .woocommerce-cart table.shop_table,
body.mcu-theme .woocommerce-checkout table.shop_table {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-subtle) !important;
	border-radius: var(--radius-md) !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
}
body.mcu-theme table.shop_table th,
body.mcu-theme table.shop_table td {
	background: transparent !important;
	color: var(--color-text-primary) !important;
	border-color: var(--color-border-subtle) !important;
}
body.mcu-theme table.shop_table th {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase;
	color: var(--color-gold) !important;
}
body.mcu-theme table.shop_table td.product-name a {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display);
}
body.mcu-theme table.shop_table .product-price,
body.mcu-theme table.shop_table .product-subtotal {
	font-family: var(--font-mono) !important;
	color: var(--color-gold-bright) !important;
}

/* Cart totals box */
body.mcu-theme .cart_totals,
body.mcu-theme .woocommerce-checkout-review-order {
	background: var(--color-cosmic-night);
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	padding: var(--space-md);
}

body.mcu-theme .cart_totals h2,
body.mcu-theme #order_review_heading {
	font-family: var(--font-display);
	color: var(--color-text-primary);
	margin-top: 0;
}

/* Coupon section */
body.mcu-theme .coupon input.input-text {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
}

/* =====================================================================
 * Checkout page
 * ===================================================================== */
body.mcu-theme form.checkout #customer_details h3,
body.mcu-theme form.checkout #order_review_heading {
	font-family: var(--font-display);
	font-weight: var(--weight-regular);
	color: var(--color-text-primary);
	letter-spacing: var(--tracking-tight);
	border-bottom: 1px solid var(--color-border-subtle);
	padding-bottom: var(--space-sm);
	margin-bottom: var(--space-md);
}

body.mcu-theme form.checkout .form-row label {
	color: var(--color-text-secondary);
	font-size: var(--text-sm);
	letter-spacing: var(--tracking-wide);
}
body.mcu-theme form.checkout .form-row input,
body.mcu-theme form.checkout .form-row textarea,
body.mcu-theme form.checkout .form-row select {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
}

/* Select2 dropdown (country / state) */
body.mcu-theme .select2-container--default .select2-selection--single {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
	height: auto !important;
	padding: 0.5em !important;
}
body.mcu-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: var(--color-text-primary) !important;
	line-height: 1.4 !important;
}
body.mcu-theme .select2-dropdown {
	background: var(--color-cosmic-night) !important;
	border-color: var(--color-border-default) !important;
}
body.mcu-theme .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: var(--color-gold-veil) !important;
	color: var(--color-gold-bright) !important;
}

/* Payment methods box */
body.mcu-theme #payment {
	background: var(--color-deep-space) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
}
body.mcu-theme #payment ul.payment_methods {
	background: transparent !important;
	border-bottom: 1px solid var(--color-border-subtle) !important;
}
body.mcu-theme #payment ul.payment_methods li label {
	color: var(--color-text-primary) !important;
}
body.mcu-theme #payment div.payment_box {
	background: var(--color-cosmic-night) !important;
	color: var(--color-text-secondary) !important;
}
body.mcu-theme #payment div.payment_box::before {
	border-bottom-color: var(--color-cosmic-night) !important;
}

/* =====================================================================
 * UNIFIED BUTTON STYLING — every WC button gets gold gradient + dark text.
 *
 * Catches every WC button variant in one pass:
 *   .button                          (default — secondary actions)
 *   .button.alt                      (primary — Place order, Add to cart)
 *   .added_to_cart                   ("View cart" after add to cart)
 *   .wc-forward                      ("next step" links)
 *   .checkout-button                 ("Proceed to checkout")
 *   .single_add_to_cart_button       (product page Add to Cart)
 *   #place_order                     (checkout final button)
 *   #respond input#submit            (review form)
 *
 * Single style — keeps consistent look so "View cart" / "Place order" /
 * "Add to cart" all read as primary gold actions. If we ever need a
 * secondary ghost variant, add a separate .mcu-button-ghost class.
 * ===================================================================== */

body.mcu-theme .woocommerce a.button,
body.mcu-theme .woocommerce button.button,
body.mcu-theme .woocommerce input.button,
body.mcu-theme .woocommerce a.button.alt,
body.mcu-theme .woocommerce button.button.alt,
body.mcu-theme .woocommerce input.button.alt,
body.mcu-theme .woocommerce a.added_to_cart,
body.mcu-theme .woocommerce .wc-forward,
body.mcu-theme .woocommerce a.checkout-button,
body.mcu-theme .woocommerce button.single_add_to_cart_button,
body.mcu-theme .woocommerce-cart .wc-proceed-to-checkout .button,
body.mcu-theme #place_order,
body.mcu-theme .woocommerce #respond input#submit {
	background: linear-gradient(135deg, var(--color-gold-bright) 0%, var(--color-gold) 100%) !important;
	color: var(--color-text-on-gold) !important;
	border: 1px solid var(--color-gold) !important;
	border-radius: var(--radius-pill) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	font-weight: var(--weight-medium) !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase;
	padding: 0.6em 1.4em !important;
	text-decoration: none !important;
	text-shadow: none !important;
	transition: transform var(--dur-base) var(--ease-celestial),
	            box-shadow var(--dur-base) var(--ease-celestial),
	            background var(--dur-base) var(--ease-celestial) !important;
}

body.mcu-theme .woocommerce a.button:hover,
body.mcu-theme .woocommerce button.button:hover,
body.mcu-theme .woocommerce input.button:hover,
body.mcu-theme .woocommerce a.button.alt:hover,
body.mcu-theme .woocommerce button.button.alt:hover,
body.mcu-theme .woocommerce input.button.alt:hover,
body.mcu-theme .woocommerce a.added_to_cart:hover,
body.mcu-theme .woocommerce .wc-forward:hover,
body.mcu-theme .woocommerce a.checkout-button:hover,
body.mcu-theme .woocommerce button.single_add_to_cart_button:hover,
body.mcu-theme #place_order:hover {
	background: linear-gradient(135deg, #ffd56b 0%, var(--color-gold-bright) 100%) !important;
	color: var(--color-text-on-gold) !important;
	transform: translateY(-2px);
	box-shadow: var(--glow-gold-md);
}

/* Disabled state — gray + no hover */
body.mcu-theme .woocommerce button.button[disabled],
body.mcu-theme .woocommerce input.button[disabled],
body.mcu-theme .woocommerce a.button.disabled {
	background: var(--color-stardust) !important;
	color: var(--color-text-muted) !important;
	border-color: var(--color-border-default) !important;
	cursor: not-allowed !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 0.6;
}

/* Place order specifically — keep full-width on checkout */
body.mcu-theme #place_order,
body.mcu-theme .woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	padding: 1em 2em !important;
	font-size: 1.05rem !important;
}

/* +/- qty buttons (injected by JS in inc/hooks.php) */
body.mcu-theme .quantity {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0 !important;
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--color-cosmic-night);
}
body.mcu-theme .mcu-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 32px;
	background: transparent;
	border: 0;
	color: var(--color-gold-bright);
	font-family: var(--font-mono);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background var(--dur-fast) var(--ease-celestial), color var(--dur-fast) var(--ease-celestial);
}
body.mcu-theme .mcu-qty-btn:hover,
body.mcu-theme .mcu-qty-btn:focus {
	background: var(--color-gold-veil);
	color: var(--color-text-on-gold);
	outline: 0;
}
body.mcu-theme .quantity .qty {
	border: 0 !important;
	border-left: 1px solid var(--color-border-subtle) !important;
	border-right: 1px solid var(--color-border-subtle) !important;
	border-radius: 0 !important;
	width: 50px !important;
	text-align: center !important;
	height: 32px !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Remove × button on cart row (WC default; style brighter so it's findable) */
body.mcu-theme table.cart .product-remove a {
	color: var(--color-gold-deep) !important;
	background: transparent !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: 50% !important;
	width: 26px !important;
	height: 26px !important;
	line-height: 24px !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	text-align: center !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	transition: background var(--dur-fast) var(--ease-celestial), color var(--dur-fast) var(--ease-celestial), border-color var(--dur-fast) var(--ease-celestial);
}
body.mcu-theme table.cart .product-remove a:hover,
body.mcu-theme table.cart .product-remove a:focus {
	background: var(--color-gold-bright) !important;
	color: var(--color-void) !important;
	border-color: var(--color-gold-bright) !important;
}

/* OLDER rule kept for backwards compat — same selector but adjusted above */
/* Quantity input — wide enough for 3 digits + spinner clearance */
body.mcu-theme .quantity .qty.mcu-OBSOLETE-do-not-use {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
	width: 88px !important;
	min-width: 88px !important;
	max-width: 88px !important;
	height: 44px !important;
	text-align: center !important;
	padding: 0.4em 0.4em 0.4em 0.8em !important;  /* extra LEFT padding so text never collides with spinner on the right */
	font-family: var(--font-mono) !important;
	font-size: 15px !important;
	border-radius: var(--radius-md) !important;
}
body.mcu-theme .quantity .qty:focus {
	border-color: var(--color-gold-bright) !important;
	box-shadow: 0 0 0 1px var(--color-gold-bright) !important;
	outline: 0 !important;
}

/* Style the browser native spinner — Firefox + Chrome/Safari/Edge */
body.mcu-theme .quantity input[type="number"] {
	-moz-appearance: textfield;  /* hide Firefox native spinner — user types instead */
}
body.mcu-theme .quantity input[type="number"]::-webkit-outer-spin-button,
body.mcu-theme .quantity input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;  /* hide WebKit native spinner */
	margin: 0;
}

/* =====================================================================
 * My Account
 * ===================================================================== */
body.mcu-theme .woocommerce-MyAccount-navigation ul {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-subtle) !important;
	border-radius: var(--radius-md) !important;
	padding: var(--space-sm) 0 !important;
}
body.mcu-theme .woocommerce-MyAccount-navigation ul li {
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
}
body.mcu-theme .woocommerce-MyAccount-navigation ul li a {
	color: var(--color-text-secondary) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	letter-spacing: var(--tracking-wide) !important;
	padding: var(--space-sm) var(--space-md) !important;
	display: block;
	border-left: 2px solid transparent !important;
}
body.mcu-theme .woocommerce-MyAccount-navigation ul li.is-active a,
body.mcu-theme .woocommerce-MyAccount-navigation ul li a:hover {
	color: var(--color-gold-bright) !important;
	background: var(--color-gold-veil) !important;
	border-left-color: var(--color-gold-bright) !important;
}

body.mcu-theme .woocommerce-MyAccount-content {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-subtle) !important;
	border-radius: var(--radius-md) !important;
	padding: var(--space-lg) !important;
}

/* =====================================================================
 * Notices (success / error / info)
 * ===================================================================== */
body.mcu-theme .woocommerce-message,
body.mcu-theme .woocommerce-info,
body.mcu-theme .woocommerce-error {
	background: var(--color-cosmic-night) !important;
	color: var(--color-text-primary) !important;
	border-radius: var(--radius-md) !important;
	border-left-width: 3px !important;
}
body.mcu-theme .woocommerce-message {
	border-left-color: var(--color-signal-up) !important;
}
body.mcu-theme .woocommerce-info {
	border-left-color: var(--color-info) !important;
}
body.mcu-theme .woocommerce-error {
	border-left-color: var(--color-signal-down) !important;
}

body.mcu-theme .woocommerce-message a,
body.mcu-theme .woocommerce-info a,
body.mcu-theme .woocommerce-error a {
	color: var(--color-gold-bright) !important;
}

/* =====================================================================
 * CHECKOUT SWEEPING DARK MODE AUDIT
 *
 * Patch-by-patch wasn't keeping up — user kept finding new elements
 * with white-on-white text. Catch every common WC checkout selector
 * here in one block. Anything emitting text gets forced contrast.
 * ===================================================================== */

/* All headings on checkout */
body.mcu-theme.woocommerce-checkout h1,
body.mcu-theme.woocommerce-checkout h2,
body.mcu-theme.woocommerce-checkout h3,
body.mcu-theme.woocommerce-checkout h4,
body.mcu-theme .woocommerce-checkout-review-order h3,
body.mcu-theme .woocommerce-billing-fields h3,
body.mcu-theme .woocommerce-shipping-fields h3,
body.mcu-theme .woocommerce-additional-fields h3,
body.mcu-theme #order_review_heading,
body.mcu-theme .woocommerce-account h2,
body.mcu-theme .woocommerce-MyAccount-content h2 {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display) !important;
	font-weight: var(--weight-light) !important;
}

/* ALL labels on checkout — including ones outside form.checkout.
 * CRITICAL: Storefront / WC hide labels with screen-reader-text class
 * + absolute positioning off-screen + clip:rect(0 0 0 0). We unhide
 * ALL of them so users see "Street address" / "City" above each input
 * instead of relying on disappearing placeholders. */
body.mcu-theme.woocommerce-checkout label,
body.mcu-theme .woocommerce-checkout label,
body.mcu-theme .woocommerce form .form-row label,
body.mcu-theme .woocommerce form .form-row label.screen-reader-text,
body.mcu-theme .woocommerce-additional-fields label,
body.mcu-theme .woocommerce-shipping-fields label {
	/* Unhide — override screen-reader-text / hidden / absolute positioning */
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	height: auto !important;
	width: auto !important;
	clip: auto !important;
	clip-path: none !important;
	overflow: visible !important;
	margin: 0 0 6px !important;
	padding: 0 !important;
	/* Style */
	color: var(--color-text-primary) !important;
	font-family: var(--font-body) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase;
}

/* But keep TRUE screen-reader-only labels hidden where appropriate
 * (e.g. WC-emitted aria labels on Place Order button) — exception for
 * the form-row context only above */
body.mcu-theme .screen-reader-text:not(.woocommerce-checkout *):not(.woocommerce *) {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Inline checkbox labels (Ship to different / Create account / Terms) —
 * make sure checkbox + label render inline together */
body.mcu-theme .woocommerce-form__label-for-checkbox,
body.mcu-theme .woocommerce-form-coupon label,
body.mcu-theme #ship-to-different-address-checkbox + label,
body.mcu-theme label[for*="ship-to-different"],
body.mcu-theme label.checkbox {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	text-transform: none !important;
	font-size: 14px !important;
	margin: 0 !important;
}

/* All paragraph + body text on checkout */
body.mcu-theme.woocommerce-checkout p,
body.mcu-theme.woocommerce-checkout li,
body.mcu-theme.woocommerce-checkout span:not(.woocommerce-Price-amount):not(.amount):not(.mcu-flag),
body.mcu-theme.woocommerce-checkout small {
	color: var(--color-text-primary);
}

/* === JS-injected visible labels (checkout-labels.js) === */
body.mcu-theme .mcu-field-label {
	display: block !important;
	color: #ffffff !important;
	font-family: var(--font-body) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	margin: 0 0 6px 0 !important;
	padding: 0 !important;
	line-height: 1.4 !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
}
body.mcu-theme .mcu-field-required {
	color: var(--color-gold-bright) !important;
	margin-left: 2px;
}

/* Section help / description text — slightly secondary */
body.mcu-theme.woocommerce-checkout .woocommerce-input-wrapper > small,
body.mcu-theme.woocommerce-checkout .description,
body.mcu-theme.woocommerce-checkout .woocommerce-privacy-policy-text,
body.mcu-theme.woocommerce-checkout .woocommerce-privacy-policy-text p {
	color: var(--color-text-secondary) !important;
	font-size: 13px !important;
}

/* "Ship to a different address?" — checkbox row heading */
body.mcu-theme #ship-to-different-address,
body.mcu-theme #ship-to-different-address label,
body.mcu-theme h3#ship-to-different-address,
body.mcu-theme h3#ship-to-different-address label {
	color: var(--color-text-primary) !important;
	background: transparent !important;
	font-family: var(--font-display) !important;
	font-weight: var(--weight-light) !important;
	font-size: var(--text-lg) !important;
	margin: var(--space-md) 0 var(--space-sm) !important;
}

/* "Create account?" checkbox label (if shown) */
body.mcu-theme .create-account label,
body.mcu-theme .woocommerce-form__label-for-checkbox {
	color: var(--color-text-primary) !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.5em !important;
}

/* === NATIVE CHECKBOXES — replace browser default with custom dark ==== */
body.mcu-theme.woocommerce-checkout input[type="checkbox"],
body.mcu-theme .woocommerce input[type="checkbox"] {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	width: 20px !important;
	height: 20px !important;
	background: var(--color-cosmic-night) !important;
	border: 2px solid var(--color-gold) !important;
	border-radius: 3px !important;
	cursor: pointer !important;
	display: inline-block !important;
	vertical-align: middle !important;
	margin-right: 6px !important;
	position: relative !important;
	flex-shrink: 0;
}
body.mcu-theme.woocommerce-checkout input[type="checkbox"]:checked,
body.mcu-theme .woocommerce input[type="checkbox"]:checked {
	background: var(--color-gold-bright) !important;
	border-color: var(--color-gold-bright) !important;
}
body.mcu-theme.woocommerce-checkout input[type="checkbox"]:checked::after,
body.mcu-theme .woocommerce input[type="checkbox"]:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--color-void);
	font-size: 14px;
	font-weight: bold;
	line-height: 1;
}
body.mcu-theme.woocommerce-checkout input[type="checkbox"]:focus,
body.mcu-theme .woocommerce input[type="checkbox"]:focus {
	outline: 2px solid var(--color-gold-bright) !important;
	outline-offset: 2px !important;
}

/* === NATIVE RADIO BUTTONS — same treatment === */
body.mcu-theme.woocommerce-checkout input[type="radio"],
body.mcu-theme .woocommerce input[type="radio"] {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	width: 20px !important;
	height: 20px !important;
	background: var(--color-cosmic-night) !important;
	border: 2px solid var(--color-gold) !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	display: inline-block !important;
	vertical-align: middle !important;
	margin-right: 6px !important;
	position: relative !important;
	flex-shrink: 0;
}
body.mcu-theme.woocommerce-checkout input[type="radio"]:checked::after,
body.mcu-theme .woocommerce input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: var(--color-gold-bright);
	border-radius: 50%;
}

/* Required field asterisk */
body.mcu-theme .woocommerce form .form-row .required,
body.mcu-theme .woocommerce form .form-row abbr {
	color: var(--color-gold-bright) !important;
	border: 0 !important;
	text-decoration: none !important;
}

/* Product page · refund disclaimer block */
body.mcu-theme .mcu-product-disclaimer {
	margin: 20px 0;
	padding: 14px 16px;
	border: 1px solid var(--color-gold);
	border-radius: 4px;
	background: rgba(139, 105, 20, 0.08);
	font-size: 0.875rem;
	line-height: 1.55;
}
body.mcu-theme .mcu-product-disclaimer__line {
	margin: 0 0 6px;
	color: var(--color-gold-bright);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.75rem;
}
body.mcu-theme .mcu-product-disclaimer__body {
	margin: 0;
	color: var(--color-text-secondary);
}
body.mcu-theme .mcu-product-disclaimer__body a {
	color: var(--color-gold-bright);
	font-weight: 600;
	white-space: nowrap;
}

/* Order review TOTALS area */
body.mcu-theme.woocommerce-checkout .woocommerce-checkout-review-order,
body.mcu-theme.woocommerce-checkout #order_review,
body.mcu-theme.woocommerce-checkout .shop_table.woocommerce-checkout-review-order-table {
	background: var(--color-cosmic-night) !important;
	color: var(--color-text-primary) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
}
body.mcu-theme.woocommerce-checkout .shop_table th,
body.mcu-theme.woocommerce-checkout .shop_table tfoot th {
	color: var(--color-gold-bright) !important;
	background: var(--color-deep-space) !important;
}
body.mcu-theme.woocommerce-checkout .shop_table td,
body.mcu-theme.woocommerce-checkout .shop_table tfoot td {
	color: var(--color-text-primary) !important;
	background: transparent !important;
}
body.mcu-theme.woocommerce-checkout .shop_table .product-name,
body.mcu-theme.woocommerce-checkout .shop_table .product-total,
body.mcu-theme.woocommerce-checkout .shop_table .cart-subtotal,
body.mcu-theme.woocommerce-checkout .shop_table .order-total {
	color: var(--color-text-primary) !important;
}

/* Payment area — WC Stripe v10.5+ AUTO-DETECTS Stripe Appearance from
 * the computed CSS of its parent (.payment_box). If parent has white
 * text, Stripe paints labels white (invisible on Stripe's white card
 * surface inside the iframe).
 *
 * Fix: force the .payment_box and its direct ancestors to have DARK
 * computed `color` so Stripe's auto-detect reads "dark text" and
 * configures the iframe labels in dark/gold accordingly.
 *
 * We still want the OUTER #payment chrome (radio area, "Pay securely..."
 * descriptions) to read on the dark theme — so the outermost #payment
 * keeps its light text, but .payment_box (where Stripe mounts) gets
 * dark text + white bg. */
body.mcu-theme #payment div.payment_box,
body.mcu-theme #payment div.payment_box p,
body.mcu-theme #payment div.payment_box label,
body.mcu-theme #payment .wc-credit-card-form,
body.mcu-theme #payment .wc-credit-card-form label,
body.mcu-theme #payment #wc-stripe-cc-form,
body.mcu-theme #payment #wc-stripe-cc-form label,
body.mcu-theme #payment label[for^="stripe-"],
body.mcu-theme #payment label[for^="wc-stripe-"],
body.mcu-theme #payment label[for^="payment-"],
body.mcu-theme #payment fieldset.wc-credit-card-form label,
body.mcu-theme #payment fieldset.wc-payment-form label,
body.mcu-theme #payment .wc-stripe-payment-element,
body.mcu-theme #payment #wc-stripe-payment-element {
	color: #8B6914 !important;
	background-color: #ffffff !important;
	font-family: Inter, system-ui, sans-serif !important;
}

/* The OUTER chrome — keep light text (this is on dark bg) */
body.mcu-theme #payment ul.payment_methods li label,
body.mcu-theme #payment ul.payment_methods li p {
	color: #ffd56b !important;  /* light gold — radio labels area */
}

/* WC Stripe split-field input wrappers — Stripe injects iframe inside.
 * The wrapping div needs a white bg + border to look like a real input. */
body.mcu-theme #payment .wc-stripe-elements-field,
body.mcu-theme #payment div[id^="stripe-card-"],
body.mcu-theme #payment div[id^="stripe-exp"],
body.mcu-theme #payment div[id^="stripe-cvc"],
body.mcu-theme #payment div[id^="stripe-postal"] {
	background: #ffffff !important;
	border: 1px solid #d4af37 !important;
	border-radius: 6px !important;
	padding: 12px 14px !important;
	min-height: 44px !important;
	box-sizing: border-box !important;
}

/* Terms & conditions checkbox text under place order */
body.mcu-theme .woocommerce-terms-and-conditions-wrapper,
body.mcu-theme .woocommerce-terms-and-conditions-wrapper p,
body.mcu-theme .woocommerce-terms-and-conditions-link,
body.mcu-theme .woocommerce-form__label .woocommerce-terms-and-conditions-checkbox-text {
	color: var(--color-text-primary) !important;
}

/* =====================================================================
 * Inline forms that pop up at top of checkout (coupon / login / pwd)
 * — these are OUTSIDE form.checkout so our earlier .form-row inputs
 * styles don't reach them. Catch broadly.
 * ===================================================================== */
body.mcu-theme .woocommerce-form-coupon,
body.mcu-theme .woocommerce-form-login,
body.mcu-theme form.lost_reset_password,
body.mcu-theme form.checkout_coupon {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
	padding: var(--space-md) var(--space-lg) !important;
	margin-bottom: var(--space-md) !important;
	color: var(--color-text-primary) !important;
}
body.mcu-theme .woocommerce-form-coupon p,
body.mcu-theme .woocommerce-form-login p,
body.mcu-theme form.lost_reset_password p {
	color: var(--color-text-secondary) !important;
}

/* All WC inline form text inputs (catches coupon + login + lost pw) */
body.mcu-theme .woocommerce form input[type="text"],
body.mcu-theme .woocommerce form input[type="email"],
body.mcu-theme .woocommerce form input[type="password"],
body.mcu-theme .woocommerce form input[type="tel"],
body.mcu-theme .woocommerce form input[type="number"],
body.mcu-theme .woocommerce form input[type="search"],
body.mcu-theme .woocommerce form textarea {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	color: var(--color-text-primary) !important;
	padding: 0.6em 0.9em !important;
	border-radius: var(--radius-md) !important;
}
body.mcu-theme .woocommerce form input[type="text"]:focus,
body.mcu-theme .woocommerce form input[type="email"]:focus,
body.mcu-theme .woocommerce form input[type="password"]:focus,
body.mcu-theme .woocommerce form input[type="tel"]:focus,
body.mcu-theme .woocommerce form textarea:focus {
	border-color: var(--color-gold-bright) !important;
	outline: 0 !important;
	box-shadow: 0 0 0 1px var(--color-gold-bright) !important;
}
body.mcu-theme .woocommerce form input::placeholder,
body.mcu-theme .woocommerce form textarea::placeholder {
	color: var(--color-text-muted) !important;
	opacity: 1;
}

/* "Apply coupon" / "Login" buttons inside these inline forms */
body.mcu-theme .woocommerce-form-coupon button,
body.mcu-theme .woocommerce-form-login button.button,
body.mcu-theme form.lost_reset_password button {
	background: linear-gradient( 135deg, var(--color-gold-bright) 0%, var(--color-gold) 100% ) !important;
	color: var(--color-text-on-gold) !important;
	border: 1px solid var(--color-gold) !important;
	border-radius: var(--radius-pill) !important;
	padding: 0.6em 1.4em !important;
	font-family: var(--font-body) !important;
	font-weight: var(--weight-medium) !important;
	text-transform: uppercase;
	letter-spacing: var(--tracking-wide);
}

/* =====================================================================
 * Order Received / Thank You page — the post-checkout confirmation
 * ===================================================================== */
body.mcu-theme.woocommerce-order-received .site-content,
body.mcu-theme .woocommerce-order {
	background: transparent !important;
	color: var(--color-text-primary) !important;
}

body.mcu-theme .woocommerce-thankyou-order-received {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display);
	font-size: clamp( 1.25rem, 2.5vw, 1.6rem );
	font-weight: var(--weight-light);
	padding: var(--space-md) var(--space-lg);
	background: var(--color-cosmic-night);
	border: 1px solid var(--color-border-default);
	border-left: 3px solid var(--color-gold-bright);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-xl);
}

body.mcu-theme .woocommerce-thankyou-order-failed {
	color: var(--color-signal-down) !important;
}

/* Order overview list — Order number / Date / Email / Total / Payment method */
body.mcu-theme ul.woocommerce-order-overview,
body.mcu-theme ul.order_details {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
	padding: var(--space-md) var(--space-lg) !important;
	margin-bottom: var(--space-xl) !important;
}
body.mcu-theme ul.woocommerce-order-overview li,
body.mcu-theme ul.order_details li {
	color: var(--color-text-secondary) !important;
	border-right-color: var(--color-border-subtle) !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase;
}
body.mcu-theme ul.woocommerce-order-overview li strong,
body.mcu-theme ul.order_details li strong {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: var(--weight-medium) !important;
	letter-spacing: 0 !important;
	text-transform: none;
	display: block;
	margin-top: 0.25em;
}

/* Order details + customer details headings */
body.mcu-theme .woocommerce-order h2,
body.mcu-theme .woocommerce-column__title {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display) !important;
	font-weight: var(--weight-light) !important;
	border-bottom: 1px solid var(--color-border-subtle) !important;
	padding-bottom: var(--space-sm) !important;
	margin-bottom: var(--space-md) !important;
}

/* Order details table (Product/Total) */
body.mcu-theme .woocommerce-order table.shop_table,
body.mcu-theme .woocommerce-order-details table.woocommerce-table--order-details {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-text-primary) !important;
	overflow: hidden;
}
body.mcu-theme .woocommerce-order table.shop_table th,
body.mcu-theme .woocommerce-order table.shop_table tfoot th {
	background: var(--color-deep-space) !important;
	color: var(--color-gold-bright) !important;
	border-color: var(--color-border-subtle) !important;
	font-family: var(--font-display) !important;
	letter-spacing: var(--tracking-wide) !important;
}
body.mcu-theme .woocommerce-order table.shop_table td {
	color: var(--color-text-primary) !important;
	border-top: 1px solid var(--color-border-subtle) !important;
	background: transparent !important;
}
body.mcu-theme .woocommerce-order table.shop_table tfoot tr th,
body.mcu-theme .woocommerce-order table.shop_table tfoot tr td {
	background: var(--color-deep-space) !important;
	color: var(--color-text-primary) !important;
}
body.mcu-theme .woocommerce-order table.shop_table a {
	color: var(--color-gold-bright) !important;
}
body.mcu-theme .woocommerce-order .woocommerce-Price-amount {
	color: var(--color-gold-bright) !important;
	font-family: var(--font-mono) !important;
}

/* Customer details columns (Billing / Shipping address blocks) */
body.mcu-theme .woocommerce-customer-details,
body.mcu-theme .woocommerce-customer-details .col-1,
body.mcu-theme .woocommerce-customer-details .col-2 {
	background: transparent !important;
	color: var(--color-text-secondary) !important;
}
body.mcu-theme .woocommerce-customer-details address {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
	color: var(--color-text-primary) !important;
	padding: var(--space-md) !important;
	line-height: var(--leading-relaxed);
}
body.mcu-theme .woocommerce-customer-details address a {
	color: var(--color-gold-bright) !important;
}

/* Downloads list on order-received + my-account (when downloadable products) */
body.mcu-theme .woocommerce-table--order-downloads,
body.mcu-theme .woocommerce-MyAccount-downloads {
	background: var(--color-cosmic-night) !important;
	border: 1px solid var(--color-border-default) !important;
	border-radius: var(--radius-md) !important;
}
body.mcu-theme .woocommerce-table--order-downloads th,
body.mcu-theme .woocommerce-table--order-downloads td {
	color: var(--color-text-primary) !important;
	border-color: var(--color-border-subtle) !important;
}
body.mcu-theme .woocommerce-table--order-downloads a {
	color: var(--color-gold-bright) !important;
	font-weight: var(--weight-medium);
}

/* =====================================================================
 * Storefront sidebar widgets (Product categories list etc.) — same
 * white-on-white issue
 * ===================================================================== */
body.mcu-theme .widget,
body.mcu-theme .widget-area,
body.mcu-theme #secondary {
	background: transparent !important;
	color: var(--color-text-primary) !important;
}
body.mcu-theme .widget-title,
body.mcu-theme .widget h1,
body.mcu-theme .widget h2,
body.mcu-theme .widget h3 {
	color: var(--color-text-primary) !important;
	font-family: var(--font-display) !important;
	font-weight: var(--weight-light) !important;
	border-bottom: 1px solid var(--color-border-subtle) !important;
	padding-bottom: var(--space-xs) !important;
	margin-bottom: var(--space-sm) !important;
}
body.mcu-theme .widget ul,
body.mcu-theme .widget li,
body.mcu-theme .widget_product_categories ul,
body.mcu-theme .widget_product_categories li {
	background: transparent !important;
	color: var(--color-text-secondary) !important;
	border-color: var(--color-border-subtle) !important;
}
body.mcu-theme .widget li a,
body.mcu-theme .widget_product_categories li a {
	color: var(--color-text-secondary) !important;
	transition: color var(--dur-base) var(--ease-celestial);
}
body.mcu-theme .widget li a:hover,
body.mcu-theme .widget_product_categories li a:hover {
	color: var(--color-gold-bright) !important;
}
body.mcu-theme .widget_product_categories li .count {
	color: var(--color-text-muted) !important;
	font-family: var(--font-mono) !important;
	font-size: var(--text-sm) !important;
}

/* =====================================================================
 * Shop sidebar — Trading Resources box (hooked from inc/hooks.php)
 * ===================================================================== */
body.mcu-theme .mcu-shop-resources {
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.06) 0%, rgba(20, 20, 28, 0.4) 100%);
	border: 1px solid var(--color-gold-deep);
	border-radius: var(--radius-md);
	padding: var(--space-md);
	margin-bottom: var(--space-lg);
	box-shadow: 0 2px 12px rgba(212, 175, 55, 0.08);
}
body.mcu-theme .mcu-shop-resources .widget-title {
	color: var(--color-gold-bright) !important;
	font-family: var(--font-display);
	font-size: var(--text-lg);
	letter-spacing: 0.04em;
	margin: 0 0 var(--space-sm) 0;
	padding-bottom: var(--space-xs);
	border-bottom: 1px solid var(--color-gold-deep);
}
body.mcu-theme .mcu-shop-resources__intro {
	color: var(--color-text-secondary);
	font-size: var(--text-sm);
	margin: 0 0 var(--space-sm) 0;
	line-height: 1.4;
}
body.mcu-theme .mcu-shop-resources__list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.mcu-theme .mcu-shop-resources__list li {
	margin: 0 0 var(--space-xs) 0;
	padding: 0;
	border: 0;
}
body.mcu-theme .mcu-shop-resources__list a {
	display: block;
	color: var(--color-text-primary) !important;
	text-decoration: none !important;
	background: transparent !important;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	border-left: 2px solid transparent;
	transition: background var(--dur-fast) var(--ease-celestial),
	            border-color var(--dur-fast) var(--ease-celestial),
	            color var(--dur-fast) var(--ease-celestial);
}
body.mcu-theme .mcu-shop-resources__list a:hover,
body.mcu-theme .mcu-shop-resources__list a:focus {
	background: var(--color-gold-veil) !important;
	border-left-color: var(--color-gold-bright);
	color: var(--color-gold-bright) !important;
}
body.mcu-theme .mcu-shop-resources__lang {
	display: inline-block;
	color: var(--color-gold);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-weight: 500;
	margin-right: 6px;
	letter-spacing: 0.04em;
}

/* =====================================================================
 * Shop / category archive header — fix white-on-white visibility
 * The legacy term descriptions use wp-block-paragraph (Gutenberg) which
 * inherits theme.json defaults → can render light text on light wrapper.
 * Force readable colors regardless of where the text sits.
 * ===================================================================== */
body.mcu-theme .woocommerce-products-header,
body.mcu-theme .woocommerce-products-header__title,
body.mcu-theme .term-description,
body.mcu-theme .taxonomy-description,
body.mcu-theme .term-description p,
body.mcu-theme .taxonomy-description p,
body.mcu-theme .term-description .wp-block-paragraph,
body.mcu-theme .taxonomy-description .wp-block-paragraph {
	background: transparent !important;
	color: var(--color-text-primary) !important;
}
body.mcu-theme .woocommerce-products-header__title.page-title {
	color: var(--color-gold-bright) !important;
	font-family: var(--font-display);
	letter-spacing: 0.02em;
}
body.mcu-theme .term-description a,
body.mcu-theme .taxonomy-description a {
	color: var(--color-gold-bright) !important;
}
