/* Original styling over native forms. No third-party CSS or assets imported. */
.th-whmcs-wizard { --th-native-blue: #1762ff; --th-native-ink: #edf3ff; --th-native-line: #233959; color: var(--th-native-ink); }
.th-staging-banner { border: 1px solid #284b7c; background: #102956; color: #bfd6f8; padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; font-size: 12px; }
.th-range-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid var(--th-native-line); border-radius: 14px; background: var(--th-panel-gradient, linear-gradient(145deg, #11264b, #071226)); margin-bottom: 24px; }
.th-range-bar label { margin: 0; font-weight: 650; font-size: 12px; letter-spacing: .5px; }
.th-range-bar select { min-height: 44px; max-width: 100%; min-width: 230px; padding: 9px 16px; border: 1px solid var(--th-native-line); border-radius: 7px; background: #020813; color: var(--th-native-ink); }
.th-native-steps ol { padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; list-style: none; }
.th-native-steps li { color: #9bafd1; font-size: 11px; }
.th-native-steps span { width: 32px; height: 32px; display: grid; place-items: center; background: #102348; border-radius: 50%; margin-bottom: 9px; font-weight: 650; }
.th-native-steps [aria-current] { color: var(--th-native-blue); font-weight: 700; }
.th-native-steps [aria-current] span { color: white; background: var(--th-native-blue); box-shadow: 0 0 0 4px #153769; }
.th-native-status:empty { display: none; }
.th-native-status { color: #bfd6f8; font-size: 12px; margin: 0 0 18px; }
.th-checkout-controls { display: flex; gap: 12px; justify-content: flex-end; padding: 20px 0; border-top: 1px solid var(--th-native-line); }
.th-checkout-controls[hidden], .th-checkout-controls button[hidden] { display: none !important; }
.th-whmcs-wizard[data-th-current="4"] [data-th-part="payment"], .th-whmcs-wizard[data-th-current="5"] [data-th-part="account"] { display: none !important; }
.th-whmcs-wizard #order-standard_cart .product { border: 1px solid var(--th-native-line); border-radius: 10px; padding: 18px; background: var(--th-panel-gradient, linear-gradient(145deg, #11264b, #071226)); height: 100%; }
.th-whmcs-wizard #order-standard_cart .product header { font-size: 21px; font-weight: 700; padding: 0 0 14px; }
.th-whmcs-wizard #order-standard_cart .product .price { font-size: 24px; color: var(--th-native-ink); font-weight: 750; }
.th-whmcs-wizard #order-standard_cart .btn-order-now { background: var(--th-native-blue); border-color: var(--th-native-blue); border-radius: 7px; }
.th-whmcs-wizard[data-th-stage="1"] #products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.th-whmcs-wizard[data-th-stage="1"] #products>.row { display: contents; }
.th-whmcs-wizard[data-th-stage="1"] #products>.row>.col-md-6 { width: 100%; max-width: 100%; flex: none; padding: 0; margin: 0; min-width: 0; }
.th-whmcs-wizard :focus-visible { outline: 3px solid #4384f8; outline-offset: 4px; }
@media(max-width:1100px) { .th-whmcs-wizard[data-th-stage="1"] #products { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .th-range-bar { flex-direction: column; align-items: stretch; padding: 16px; }.th-range-bar select { min-width: 0; width: 100%; }.th-native-steps { margin: 0 4px; }.th-native-steps ol { gap: 5px; }.th-native-steps li { font-size: 9px; }.th-checkout-controls { flex-wrap: wrap; }.th-whmcs-wizard #order-standard_cart .product { padding: 13px; }.th-whmcs-wizard #order-standard_cart .product header { font-size: 19px; } }
@media(prefers-reduced-motion:reduce) { .th-whmcs-wizard *, .th-whmcs-wizard *::before { animation: none !important; transition: none !important; } }

/* Standalone fallback also works when the system theme is the official parent. */
.th-whmcs-wizard { color-scheme: dark; --th-native-blue: var(--th-blue, #1762ff); --th-native-ink: var(--th-ink, #edf3ff); --th-native-line: var(--th-line, #233959); }
.th-staging-banner { border-radius: 12px; }
.th-range-bar { background: linear-gradient(145deg, #11264b, #08162f); border-radius: 18px; }
.th-range-bar select { color: #edf3ff; background: #040f23; border-radius: 999px; }
.th-native-steps [aria-current] { color: #a6c6ff; }
.th-native-steps [aria-current] span { box-shadow: 0 0 0 4px #1762ff22; }
.th-whmcs-wizard #order-standard_cart { color: #edf3ff; }
.th-whmcs-wizard #order-standard_cart .product { background: linear-gradient(145deg, #11264b, #071226); border-radius: 20px; box-shadow: 0 14px 35px #00000024; }
.th-whmcs-wizard #order-standard_cart .product .product-desc { color: #b0c2df; }
.th-whmcs-wizard #order-standard_cart .btn-order-now, .th-checkout-controls .btn { border-radius: 999px; }
.th-whmcs-wizard #order-standard_cart .btn-order-now { color: #fff; }
.th-whmcs-wizard #order-standard_cart .form-control { color: #edf3ff; background: #040f23; border-color: #2a4269; border-radius: 999px; }
.th-whmcs-wizard #order-standard_cart .form-control::placeholder { color: #8fa5c8; }
.th-whmcs-wizard #order-standard_cart .sub-heading span { color: #d9e8ff; background: #0b1933; }
.th-whmcs-wizard #order-standard_cart .order-summary { color: #edf3ff; background: linear-gradient(145deg, #102951, #07142c); border-color: #233959; border-radius: 20px; }
.th-whmcs-wizard #totalDueToday { color: #fff; background: linear-gradient(115deg, #0a337a, #0753e9); border-color: #315b9b; border-radius: 16px; }
.th-whmcs-wizard .th-range-bar,.th-whmcs-wizard #order-standard_cart .product,.th-whmcs-wizard #order-standard_cart .order-summary{background:var(--th-panel-gradient,linear-gradient(145deg,#10264f,#08162e));border-radius:var(--th-radius,18px);box-shadow:var(--th-shadow,none)}
.th-whmcs-wizard #order-standard_cart .form-control,.th-whmcs-wizard .th-range-bar select{background:var(--th-input,#020e23);color:var(--th-ink,#f1f5ff);border-radius:var(--th-input-radius,22px)}
.th-whmcs-wizard #order-standard_cart .btn-order-now,.th-checkout-controls .btn{border-radius:var(--th-button-radius,24px)}
.th-whmcs-wizard #totalDueToday{background:linear-gradient(115deg,var(--th-navy,#001641),var(--th-blue,#1062fe))}

/* Native Standard Cart surfaces, scoped to this order form. Values remain WHMCS-rendered. */
.th-whmcs-wizard[data-th-stage="1"] #products { grid-template-columns: repeat(3,minmax(0,1fr)); }
.th-whmcs-wizard[data-th-stage="1"] #products:has(> .row:nth-child(3):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.th-whmcs-wizard #order-standard_cart .products .product { display: flex; flex-direction: column; min-width: 0; }
.th-whmcs-wizard #order-standard_cart .products .product header { background: transparent; color: #f1f5ff; line-height: 1.25; }
.th-whmcs-wizard #order-standard_cart .products .product .product-desc { float: none; width: 100%; flex: 1; min-height: 0; color: #c5d5ee; overflow-wrap: anywhere; }
.th-whmcs-wizard #order-standard_cart .products .product .product-desc li { color: #c5d5ee; }
.th-whmcs-wizard #order-standard_cart .products .product footer { float: none; width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid #29436b; background: transparent; color: #d6e5fa; }
.th-whmcs-wizard #order-standard_cart .products .product .product-pricing { color: #d6e5fa; }
.th-whmcs-wizard #order-standard_cart .products .product .product-pricing .price { color: #fff; }
.th-whmcs-wizard #order-standard_cart .products .product .btn-order-now { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; }
.th-whmcs-wizard #order-standard_cart .header-lined h1,
.th-whmcs-wizard #order-standard_cart .sub-heading,
.th-whmcs-wizard #order-standard_cart label { color: #edf3ff; }
.th-whmcs-wizard #order-standard_cart .form-control,
.th-whmcs-wizard #order-standard_cart select { min-height: 42px; }
.th-whmcs-wizard #order-standard_cart .input-group-text,
.th-whmcs-wizard #order-standard_cart .input-group-addon { color: #dce9ff; background: #12264a; border-color: #2a4269; }
.th-whmcs-wizard #order-standard_cart .summary-container,
.th-whmcs-wizard #order-standard_cart .view-cart-items,
.th-whmcs-wizard #order-standard_cart .view-cart-items-header { color: #edf3ff; background: #0b1b37; border-color: #29436b; }
.th-whmcs-wizard #order-standard_cart .summary-container .total-due-today { color: #fff; }
.th-whmcs-wizard #order-standard_cart .view-cart-items .item,
.th-whmcs-wizard #order-standard_cart .summary-container .sub-total { color: #dce9ff; border-color: #29436b; }
.th-whmcs-wizard #order-standard_cart .btn-checkout { background: #1762ff; border-color: #1762ff; color: #fff; }
@media(max-width:1100px) {
  .th-whmcs-wizard[data-th-stage="1"] #products,
  .th-whmcs-wizard[data-th-stage="1"] #products:has(> .row:nth-child(3):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .th-whmcs-wizard[data-th-stage="1"] #products,
  .th-whmcs-wizard[data-th-stage="1"] #products:has(> .row:nth-child(3):last-child) { grid-template-columns: minmax(0,1fr); }
}

/* Standard Cart 8.13.7 paints these nested surfaces white/light gray. Keep
   its markup and calculations; pair every restored navy surface with ink. */
.th-whmcs-wizard {
  --th-cart-panel: #0d1e3c;
  --th-cart-panel-alt: #122b53;
  --th-cart-panel-active: #174078;
  --th-cart-text: #edf3ff;
  --th-cart-muted: #c5d5ee;
}
.th-whmcs-wizard #order-standard_cart .products .product header span,
.th-whmcs-wizard #order-standard_cart .products .product .feature-value,
.th-whmcs-wizard #order-standard_cart .products .product .product-pricing,
.th-whmcs-wizard #order-standard_cart .products .product .product-desc p { color: var(--th-cart-text); }
.th-whmcs-wizard #order-standard_cart .products .product header .qty { color: var(--th-cart-muted); }
.th-whmcs-wizard #order-standard_cart .product-info,
.th-whmcs-wizard #order-standard_cart .domain-selection-options .option,
.th-whmcs-wizard #order-standard_cart .panel-addon,
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-body,
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-price,
.th-whmcs-wizard #order-standard_cart .view-cart-promotion-code,
.th-whmcs-wizard #order-standard_cart .view-cart-gateway-checkout,
.th-whmcs-wizard #order-standard_cart .view-cart-tabs .tab-content,
.th-whmcs-wizard #order-standard_cart .apply-credit-container,
.th-whmcs-wizard #order-standard_cart .cc-input-container {
  color: var(--th-cart-text);
  background: var(--th-cart-panel);
  border-color: #29436b;
}
.th-whmcs-wizard #order-standard_cart .domain-selection-options .option-selected,
.th-whmcs-wizard #order-standard_cart .panel-addon-selected,
.th-whmcs-wizard #order-standard_cart .view-cart-tabs .nav-tabs a[aria-selected="true"],
.th-whmcs-wizard #order-standard_cart .view-cart-tabs .nav-tabs a[aria-expanded="true"] {
  color: var(--th-cart-text);
  background: var(--th-cart-panel-active);
  border-color: #4a78b2;
}
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-body label,
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-price,
.th-whmcs-wizard #order-standard_cart .product-info .product-title,
.th-whmcs-wizard #order-standard_cart .product-info p { color: var(--th-cart-text); }
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-body { min-height: 112px; overflow-wrap: anywhere; }
.th-whmcs-wizard #order-standard_cart .addon-products > [class*="col-"] { display: flex; margin-bottom: 16px; }
.th-whmcs-wizard #order-standard_cart .addon-products .panel-addon { display: flex; flex-direction: column; width: 100%; margin: 0; }
.th-whmcs-wizard #order-standard_cart .addon-products .panel-body { flex: 1; }
.th-whmcs-wizard #order-standard_cart .panel-addon .panel-add { color: #fff; background: #1762ff; }
.th-whmcs-wizard #order-standard_cart .view-cart-items .item { color: var(--th-cart-text); background: var(--th-cart-panel); }
.th-whmcs-wizard #order-standard_cart .view-cart-items .item:nth-child(even) { background: var(--th-cart-panel-alt); }
.th-whmcs-wizard #order-standard_cart .view-cart-items .item-domain,
.th-whmcs-wizard #order-standard_cart .view-cart-items .btn-remove-from-cart { color: #a9ccff; }
.th-whmcs-wizard #order-standard_cart .summary-container,
.th-whmcs-wizard #order-standard_cart .summary-container .recurring-charges { color: var(--th-cart-text); background: var(--th-cart-panel); }
.th-whmcs-wizard #order-standard_cart .account-select-container { border-color: #29436b; }
.th-whmcs-wizard #order-standard_cart .account-select-container div.account {
  color: var(--th-cart-text);
  background: var(--th-cart-panel);
  border-color: #29436b;
}
.th-whmcs-wizard #order-standard_cart .account-select-container div.account.active {
  color: #fff;
  background: var(--th-cart-panel-active);
  border-color: #4a78b2;
}
.th-whmcs-wizard #order-standard_cart .account-select-container .small { color: var(--th-cart-muted); }
.th-whmcs-wizard #order-standard_cart .field,
.th-whmcs-wizard #order-standard_cart .form-control {
  color: var(--th-cart-text);
  background-color: #041125;
  border-color: #34517b;
}
.th-whmcs-wizard #order-standard_cart .field[disabled],
.th-whmcs-wizard #order-standard_cart .field[readonly],
.th-whmcs-wizard #order-standard_cart .form-control[disabled],
.th-whmcs-wizard #order-standard_cart .form-control[readonly] {
  color: var(--th-cart-muted);
  background-color: #142744;
}

/* Preview only: win native Standard Cart's product-box cascade without touching its CSS. */
.th-whmcs-wizard #order-standard_cart .products .product {
  color: var(--th-cart-text, #edf3ff);
  background: var(--th-panel-gradient, linear-gradient(145deg, #11264b, #071226));
  border: 1px solid var(--th-native-line, #29436b);
  border-radius: var(--th-radius, 18px);
  padding: 18px;
  margin: 0;
}
@media (max-width: 520px) {
  .th-whmcs-wizard #order-standard_cart .products .product {
    padding: 13px;
  }
}
