/* Checkout, order received and My Account (batch C2, 0.6.3). CSS only: WooCommerce's own forms and tables get the demo look
   (site-demo checkout.html / order-received.html / account.html). Loaded only on those pages (inc/checkout.php).
   Never styled here: payment gateways' own fields beyond colours, UpsellWP order bumps, TeraWallet's wallet page (except its
   colours, 0.6.11, end of file), DLM's
   license key box (its styles live in legacy.css = the live Additional CSS), the inside of the Joymax Guides card.
   Selectors start with "html body.joymax-theme.<page> #content" so they win over the old shop CSS. */

/* ---------- Shared: page title, fields, buttons, notices ---------- */
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content .entry-header { margin: 0 0 24px; }
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content .entry-title {
  margin: 0; font: 700 var(--t-39)/1.15 var(--head); color: var(--paper) !important; text-transform: none; letter-spacing: 0;
}
/* Only WooCommerce's own section headings (never DLM's "license keys" heading or other plugins' headings) */
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content :is(#order_review_heading, .woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .woocommerce-shipping-fields > h3, .woocommerce-order-details__title, .woocommerce-column__title, #customer_login h2, .woocommerce-Address-title h3) {
  font: 700 var(--t-20)/1.3 var(--head); color: var(--paper) !important; text-transform: none; letter-spacing: 0; margin: 0 0 16px;
}

/* Fields (44 px, theme colours): only in WooCommerce's own forms (checkout, coupon, login/register/lost password,
   account details, addresses). Other plugins' forms (TeraWallet top-up etc.) keep their own look. */
/* Labels always visible above the field (demo). Astra Pro's "floating labels" style hid them (invisible, lifted out of place). */
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content :is(form.checkout, form.checkout_coupon, form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword, form.woocommerce-EditAccountForm, .woocommerce-address-fields) .form-row label {
  position: static !important; opacity: 1 !important; transform: none !important; display: block; padding: 0 !important;
  font: 600 var(--t-14)/1.4 var(--body); color: var(--paper); margin: 0 0 6px;
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content :is(form.checkout, form.woocommerce-form-login, form.woocommerce-form-register) .form-row label.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; }
/* Section headings without Astra's white underline */
html body.joymax-theme.jx-checkout #content :is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .woocommerce-shipping-fields > h3) { padding: 0; border: 0; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .woocommerce form .form-row .required { color: var(--warn); text-decoration: none; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content :is(form.checkout, form.checkout_coupon, form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword, form.woocommerce-EditAccountForm, .woocommerce-address-fields) .form-row :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select) {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--field-bg); color: var(--paper);
  font: 400 var(--t-16) var(--body); box-shadow: none;
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content form.checkout_coupon input.input-text { width: 100%; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .woocommerce .form-row textarea { min-height: 96px; padding: 10px 12px; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .woocommerce .form-row :is(input, textarea, select):focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .woocommerce .form-row ::placeholder { color: var(--dim); opacity: 1; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .woocommerce .form-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); }
/* Country / Region and State / County pickers (WooCommerce's selectWoo = select2) like a 44 px field.
   (0.6.5) Astra Pro's floating labels add ~25 px top padding inside the box, which pushed the chosen value below it. */
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container .select2-selection--single {
  display: block; height: 44px; margin: 0; padding: 0 !important; border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--field-bg); box-shadow: none;
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container .select2-selection__rendered {
  height: 42px; margin: 0; padding: 0 36px 0 12px !important; line-height: 42px !important; color: var(--paper); font: 400 var(--t-16)/42px var(--body);
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container .select2-selection__placeholder { color: var(--dim); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container .select2-selection__arrow { top: 1px; right: 6px; height: 42px; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container .select2-selection__arrow b { border-top-color: var(--ash); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container--open .select2-selection__arrow b { border-bottom-color: var(--ash); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) #content .select2-container--focus .select2-selection--single { border-color: var(--gold); }
/* The open list is added at the end of the page (outside #content) */
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-dropdown {
  border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--plate); color: var(--paper); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); overflow: hidden;
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-search--dropdown { padding: 8px; }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-search--dropdown .select2-search__field {
  min-height: 40px; padding: 0 10px; border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--field-bg); color: var(--paper); font: 400 var(--t-16) var(--body);
}
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option { padding: 8px 12px; background: none; color: var(--paper); font: 400 var(--t-14)/1.4 var(--body); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option[aria-selected="true"],
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option[data-selected="true"] { background: var(--field-bg); color: var(--gold-text); }
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option--highlighted,
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option--highlighted[aria-selected],
html body.joymax-theme:is(.jx-checkout, .jx-myaccount) .select2-container--open .select2-results__option--highlighted[data-selected] { background: var(--gold); color: var(--on-gold); }

/* Main buttons gold: only WooCommerce's own (Place order, Apply coupon, Log in, Register, Reset, Save, Order again).
   Other plugins' buttons (DLM copy, TeraWallet, Guides) keep their own look. */
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content :is(#place_order, form.checkout_coupon button.button, form.woocommerce-form-login button.button, form.woocommerce-form-register button.button, form.woocommerce-ResetPassword button.button, form.woocommerce-EditAccountForm button.button, .woocommerce-address-fields button.button, .order-again a.button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-btn);
  background: var(--gold) !important; color: var(--on-gold) !important; font: 700 var(--t-14)/1.2 var(--body); text-transform: none; letter-spacing: 0; box-shadow: none;
}
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content :is(#place_order, form button.button, .order-again a.button):hover { filter: brightness(1.06); }
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content :is(#place_order, form button.button):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Links in WooCommerce's own text: gold (not the old red/gold mix); other plugins' links untouched */
html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content :is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle, .woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text, .woocommerce-LostPassword, .woocommerce-MyAccount-content > p, table.woocommerce-table--order-details td.product-name) a:not(.button) { color: var(--gold-text); }

/* WooCommerce notices (coupon toggle, login prompt, errors): look is in main.css (0.6.4, same on every shop page) */

/* ---------- Checkout ---------- */
/* Astra's own two columns are kept (details left, order summary right); only the look changes */
html body.joymax-theme.jx-checkout #content #customer_details > div,
html body.joymax-theme.jx-checkout #content form.checkout_coupon,
html body.joymax-theme.jx-checkout #content #order_review {
  padding: 24px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate); box-shadow: none;
}
html body.joymax-theme.jx-checkout #content #customer_details > div + div { margin-top: 16px; }
/* (0.6.5) Astra Pro moves everything into the left column, leaving the right one (.col-2) with only spaces inside: no empty card */
html body.joymax-theme.jx-checkout #content #customer_details > div:not(:has(*)) { display: none; }
html body.joymax-theme.jx-checkout #content form.checkout_coupon { margin: 0 0 20px; }
html body.joymax-theme.jx-checkout #content #order_review_heading { margin: 0 0 12px; }
/* Order summary lines */
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; background: none; box-shadow: none; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table :is(th, td) {
  padding: 10px 0; border: 0; border-bottom: 1px solid var(--edge); background: none; color: var(--paper); font: 400 var(--t-14)/1.45 var(--body); text-align: start; overflow-wrap: anywhere;
}
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table thead th { color: var(--dim); font-weight: 600; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table :is(td, th):last-child { text-align: end; }
/* (0.6.6) The table always fits its card: every cell may wrap (TeraWallet's long "… will be debited from your wallet …"
   line), only the price itself stays on one line; a line that spans the whole row reads from the start */
html body.joymax-theme.jx-checkout #content #order_review { min-width: 0; max-width: 100%; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table { max-width: 100%; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table :is(th, td) { white-space: normal !important; overflow-wrap: anywhere; word-break: normal; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table .woocommerce-Price-amount { white-space: nowrap; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table :is(td, th)[colspan] { text-align: start; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table :is(td, th) :is(p, label) { margin: 0; white-space: normal !important; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table .product-quantity { color: var(--dim); font-weight: 400; }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table tr.cart-discount td { color: var(--live); }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table tr.order-total :is(th, td) { border-bottom: 0; padding-top: 14px; font-weight: 700; font-size: var(--t-16); }
html body.joymax-theme.jx-checkout #content table.woocommerce-checkout-review-order-table tr.order-total .amount { font: 700 var(--t-25)/1 var(--head); color: var(--gold-text); }
/* Payment methods as cards; the gateway's own box underneath in field colours */
html body.joymax-theme.jx-checkout #content #payment { background: none; border-radius: 0; }
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; list-style: none; }
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods > li {
  margin: 0; padding: 12px 14px; border: 1px solid var(--edge); border-radius: var(--r-btn); background: var(--field-bg); color: var(--paper); line-height: 1.4;
}
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods > li:has(> input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods > li > input { accent-color: var(--gold); margin-inline-end: 8px; }
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods > li > label { display: inline; font-weight: 600; color: var(--paper); cursor: pointer; }
html body.joymax-theme.jx-checkout #content #payment ul.payment_methods > li img { max-height: 24px; width: auto; vertical-align: middle; margin-inline-start: 6px; }
html body.joymax-theme.jx-checkout #content #payment div.payment_box {
  margin: 10px 0 0; padding: 12px; border-radius: var(--r-btn); background: var(--plate); color: var(--ash); font-size: var(--t-14);
}
html body.joymax-theme.jx-checkout #content #payment div.payment_box::before { display: none; }
html body.joymax-theme.jx-checkout #content #payment div.form-row.place-order { margin: 16px 0 0; padding: 0; }
html body.joymax-theme.jx-checkout #content .woocommerce-terms-and-conditions-wrapper,
html body.joymax-theme.jx-checkout #content .woocommerce-privacy-policy-text { color: var(--ash); font-size: var(--t-12); line-height: 1.5; }
html body.joymax-theme.jx-checkout #content #place_order { width: 100%; min-height: 52px; font-size: var(--t-16); }

/* ---------- Order received + order view (My Account) ---------- */
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content .woocommerce-thankyou-order-received {
  margin: 0 0 20px; font: 700 var(--t-20)/1.4 var(--head); color: var(--live);
}
/* Order facts (number, date, email, total, payment) as one strip */
html body.joymax-theme.jx-received #content ul.woocommerce-order-overview {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 24px; padding: 0; list-style: none;
  border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate); overflow: hidden;
}
html body.joymax-theme.jx-received #content ul.woocommerce-order-overview > li {
  flex: 1 1 auto; min-width: 140px; margin: 0; padding: 14px 18px; border: 0; border-inline-end: 1px solid var(--edge); color: var(--dim);
  font-size: var(--t-12); text-transform: uppercase; letter-spacing: .04em; line-height: 1.4;
}
html body.joymax-theme.jx-received #content ul.woocommerce-order-overview > li:last-child { border-inline-end: 0; }
html body.joymax-theme.jx-received #content ul.woocommerce-order-overview > li strong {
  display: block; margin-top: 4px; color: var(--paper); font: 600 var(--t-16)/1.3 var(--body); text-transform: none; letter-spacing: 0; overflow-wrap: break-word;
}
/* Order details + customer details as cards (only WooCommerce's own sections; DLM's key box is left alone) */
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content :is(section.woocommerce-order-details, section.woocommerce-customer-details) {
  margin: 0 0 24px; padding: 24px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate);
}
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: none; box-shadow: none; }
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details :is(th, td) {
  padding: 10px 0; border: 0; border-bottom: 1px solid var(--edge); background: none; color: var(--paper); font: 400 var(--t-14)/1.45 var(--body); text-align: start; overflow-wrap: anywhere;
}
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details :is(th, td):last-child { text-align: end; }
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details thead th { color: var(--dim); font-weight: 600; }
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details tfoot tr:last-child :is(th, td) { border-bottom: 0; font-weight: 700; }
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content table.woocommerce-table--order-details tfoot tr:last-child .amount { font: 700 var(--t-20)/1 var(--head); color: var(--gold-text); }
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content .woocommerce-customer-details address {
  margin: 0; padding: 0; border: 0; color: var(--ash); font-style: normal; line-height: 1.6;
}

/* ---------- Joymax Guides card ("How to use" buttons): theme colours in light mode, gold buttons unchanged ---------- */
html[data-theme="light"] body.joymax-theme .jxg-card { background: var(--plate); border-color: var(--edge); }
html[data-theme="light"] body.joymax-theme .jxg-card :is(.jxg-title, .jxg-title-ar) { color: var(--paper); }
html[data-theme="light"] body.joymax-theme .jxg-card :is(.jxg-sub, .jxg-help) { color: var(--ash); }
html[data-theme="light"] body.joymax-theme .jxg-card .jxg-help a { color: var(--gold-text) !important; }

/* ---------- My Account ---------- */
/* Logged out: Sign in + Register as two cards */
html body.joymax-theme.jx-myaccount #content :is(form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword) {
  margin: 0; padding: 24px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--plate);
}
html body.joymax-theme.jx-myaccount #content #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
/* Astra Pro's "modern" account page (live): one form at a time (Login, or Register after "Not a member? Register"), inside a
   centred 540 px box with a white border. Demo: one 480 px card on the left, so the box goes and the visible form fills it. */
html body.joymax-theme.jx-myaccount.ast-modern-woo-account-page #content .woocommerce:has(> #customer_login) {
  max-width: 480px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
}
html body.joymax-theme.jx-myaccount.ast-modern-woo-account-page #content #customer_login { display: block; }
html body.joymax-theme.jx-myaccount.ast-modern-woo-account-page #content #customer_login > :is(.u-column1, .u-column2) { width: 100%; }
/* Labels are shown, so Astra's copy of the label inside the field (placeholder) would say it twice: hide that copy */
html body.joymax-theme.jx-myaccount #content :is(form.woocommerce-form-login, form.woocommerce-form-register) .form-row:has(label) input::placeholder { color: transparent; }
html body.joymax-theme.jx-myaccount #content :is(form.woocommerce-form-login, form.woocommerce-form-register) .form-row label { padding: 0 !important; }
html body.joymax-theme.jx-myaccount #content #customer_login :is(h2, .woocommerce-LostPassword, .ast-woo-form-actions) { text-align: start; }
html body.joymax-theme.jx-myaccount #content .woocommerce-LostPassword a { font-size: var(--t-14); }
html body.joymax-theme.jx-myaccount #content .ast-woo-form-actions { margin: 16px 0 0; color: var(--ash); font-size: var(--t-14); }
html body.joymax-theme.jx-myaccount #content .ast-woo-form-actions a { color: var(--gold-text); font-weight: 600; }
html body.joymax-theme.jx-myaccount #content #customer_login::before,
html body.joymax-theme.jx-myaccount #content #customer_login::after { display: none; }
html body.joymax-theme.jx-myaccount #content #customer_login > .u-column1,
html body.joymax-theme.jx-myaccount #content #customer_login > .u-column2 { width: auto; float: none; margin: 0; padding: 0; }
html body.joymax-theme.jx-myaccount #content .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
html body.joymax-theme.jx-myaccount #content .woocommerce-LostPassword { margin: 12px 0 0; }
/* Logged in (0.6.5, owner's exception): the LIVE layout stays — Astra Pro's sidebar (avatar + "Hello", icon menu) and order
   cards with pictures. Its layout is not touched here; only theme colours so it reads well in dark AND light. */
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation,
html body.joymax-theme.jx-myaccount #content .ast-orders-table__row {
  background: var(--plate) !important; border-color: var(--edge) !important; color: var(--paper);
}
html body.joymax-theme.jx-myaccount #content :is(.ast-wooaccount-user-wrapper, .ast-username, .ast-username strong) { color: var(--paper); }
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation li { border-color: var(--edge) !important; }
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation li a { color: var(--ash) !important; background: none !important; }
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation li a :is(svg, .ahfb-svg-iconset) { fill: currentColor; color: inherit; }
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation li a:is(:hover, :focus-visible) { color: var(--paper) !important; }
html body.joymax-theme.jx-myaccount #content .woocommerce-MyAccount-navigation li.is-active a { color: var(--gold-text) !important; }
html body.joymax-theme.jx-myaccount #content .ast-orders-table__row :is(.ast-woo-order-date, .ast-orders-table__cell-order-date) { color: var(--paper); }
html body.joymax-theme.jx-myaccount #content .ast-orders-table__row :is(.ast-orders-table__cell-order-status, .ast-orders-table__cell-order-total) { color: var(--ash); }
html body.joymax-theme.jx-myaccount #content .ast-orders-table__row .amount { color: var(--gold-text); }
html body.joymax-theme.jx-myaccount #content .ast-orders-table__row a.view { color: var(--gold-text) !important; font-weight: 600; }
/* (!important above: the old joymax-design CSS paints these panels with !important. REMOVE AFTER LAUNCH.) */
/* Account details form */
html body.joymax-theme.jx-myaccount #content form.woocommerce-EditAccountForm fieldset { margin: 24px 0 0; padding: 20px; border: 1px solid var(--edge); border-radius: var(--r-card); }
html body.joymax-theme.jx-myaccount #content form.woocommerce-EditAccountForm legend { padding: 0 8px; font: 700 var(--t-16) var(--head); color: var(--paper); }

@media (max-width: 900px) {
  html body.joymax-theme:is(.jx-checkout, .jx-received, .jx-myaccount) #content .entry-title { font-size: var(--t-31); }
  html body.joymax-theme.jx-checkout #content :is(#customer_details > div, #order_review, form.checkout_coupon),
  html body.joymax-theme:is(.jx-received, .jx-myaccount) #content :is(section.woocommerce-order-details, section.woocommerce-customer-details),
  html body.joymax-theme.jx-myaccount #content :is(form.woocommerce-form-login, form.woocommerce-form-register) { padding: 20px; }
  html body.joymax-theme.jx-myaccount #content #customer_login { grid-template-columns: minmax(0, 1fr); }
  html body.joymax-theme.jx-received #content ul.woocommerce-order-overview > li { flex-basis: 50%; border-bottom: 1px solid var(--edge); }
}

/* ---------- (0.6.11) Light/dark sweep fixes ---------- */
/* Order view line "Order #… was placed on … and is currently …": the old Additional CSS makes <mark> white (unreadable in light) */
html body.joymax-theme:is(.jx-received, .jx-myaccount) #content mark:is(.order-number, .order-date, .order-status) {
  background: none; color: var(--paper); font-weight: 600; }
/* Orders list "Next" / "Previous" page buttons: quiet theme button (Astra's gold text was unreadable in light) */
html body.joymax-theme.jx-myaccount #content .woocommerce-pagination .woocommerce-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--r-btn);
  background: transparent; color: var(--paper); font: 600 var(--t-14) var(--body); text-decoration: none; }
html body.joymax-theme.jx-myaccount #content .woocommerce-pagination .woocommerce-button:is(:hover, :focus-visible) { border-color: var(--gold); color: var(--gold-text); background: transparent; }

/* TeraWallet "My Wallet": colours only (its layout, tabs, forms and numbers untouched). Its own design is white cards with
   grey text, which stayed white in dark mode. The purple balance card keeps its colours (white text on purple, readable in both). */
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container { color: var(--paper); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-top-section, .woo-wallet-content-area, .woo-wallet-stat-card, .woo-wallet-transactions-list) {
  background: var(--plate); border-color: var(--edge); box-shadow: none; color: var(--paper); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-nav-tabs, .woo-wallet-nav-tab) { background: var(--chip-bg); color: var(--ash); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container .woo-wallet-nav-tab:is(:hover, :focus-visible, .active, [aria-current]) { color: var(--gold-text); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-stat-card__value, .ww-txn-title, .ww-txn-cell--desc) { color: var(--paper); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-stat-card__label, .ww-txn-cell--type, .ww-txn-row--head .ww-txn-cell) { color: var(--ash); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.ww-txn-meta, .ww-txn-cell--date) { color: var(--dim); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container .ww-txn-row--head { background: var(--chip-bg); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.ww-txn-row, .ww-txn-head) { border-color: var(--edge); }
/* Balance on the purple card: white like TeraWallet's own text there (our gold price colour was hard to read on purple) */
html body.joymax-theme.jx-myaccount #content .woo-wallet-balance-card :is(.woo-wallet-price, .woocommerce-Price-amount, bdi, .woocommerce-Price-currencySymbol) { color: #FFFFFF; }
/* Status colours from our tokens (green / red / grey) so they read in dark and light */
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-stat-card--success .woo-wallet-stat-card__icon, .ww-txn-badge--success) {
  background: color-mix(in srgb, var(--live) 14%, transparent); border-color: color-mix(in srgb, var(--live) 35%, transparent); color: var(--live); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-stat-card--danger .woo-wallet-stat-card__icon, .ww-txn-badge--danger) {
  background: color-mix(in srgb, var(--warn) 14%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--warn); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container :is(.woo-wallet-stat-card--brand .woo-wallet-stat-card__icon, .woo-wallet-stat-card--neutral .woo-wallet-stat-card__icon, .ww-txn-badge--neutral) {
  background: var(--chip-bg); border-color: var(--edge); color: var(--ash); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container .ww-txn-row:has(.ww-txn-badge--success) .ww-txn-cell--amount { color: var(--live); }
html body.joymax-theme.jx-myaccount #content .woo-wallet-my-wallet-container .ww-txn-row:has(.ww-txn-badge--danger) .ww-txn-cell--amount { color: var(--warn); }
