/* =====================================================================
   2-Host — Standard Cart order form (custom.css)
   Upload to: templates/orderforms/standard_cart/css/custom.css
   Matches the client-area theme: near-monochrome, lime as a precise
   accent, monospace numerals for every price, borders over glows.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --th-bg: #f7f7f4; --th-surface: #fff;
  --th-ink: #111210; --th-ink-soft: #44453f; --th-muted: #8a8b84;
  --th-line: #e7e7e1; --th-line-strong: #d6d6cf;
  --th-accent: #c6f24e; --th-accent-fg: #0a0f02; --th-accent-ink: #4f6b07;
  --th-success: #15803d; --th-success-bg: #dcf5d8;
  --th-warning: #b45309; --th-warning-bg: #fbedc8;
  --th-danger: #b3261e;  --th-danger-bg: #f7dedb;
  --th-radius: 14px; --th-radius-sm: 9px;
  --th-shadow: 0 1px 0 rgba(17,18,16,.03), 0 10px 26px -16px rgba(17,18,16,.10);
  --th-font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --th-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --th-display: 'Space Grotesk', var(--th-font);
}

#order-standard_cart { font-family: var(--th-font); color: var(--th-ink); }
#order-standard_cart a { color: var(--th-accent-ink); }
#order-standard_cart a:hover { color: var(--th-ink); }
#order-standard_cart .text-muted { color: var(--th-muted) !important; }

/* ---- page heading ---- */
#order-standard_cart .header-lined { border-bottom: 1px solid var(--th-line); padding-bottom: 16px; margin-bottom: 24px; }
#order-standard_cart .header-lined h1,
#order-standard_cart h1.font-size-36 { font-family: var(--th-display); font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--th-ink); }
#order-standard_cart .header-lined p { color: var(--th-muted); margin-top: 6px; }
#order-standard_cart .sub-heading { font-family: var(--th-display); font-weight: 600; letter-spacing: -0.01em; color: var(--th-ink); }

/* ---- category sidebar (mirror client rail pills) ---- */
#order-standard_cart .card-sidebar,
#order-standard_cart .panel-sidebar { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: var(--th-radius); box-shadow: var(--th-shadow); overflow: hidden; }
#order-standard_cart .card-sidebar .card-header,
#order-standard_cart .panel-heading { background: transparent; border-bottom: 1px solid var(--th-line); padding: 14px 18px; }
#order-standard_cart .panel-title { font-size: 13px; font-weight: 600; color: var(--th-ink); margin: 0; }
#order-standard_cart .card-sidebar .list-group { padding: 4px 0; display: block; }
#order-standard_cart .card-sidebar .list-group-item { display: block; position: relative; float: none; width: auto; left: auto; top: auto; border: 0 !important; border-radius: 8px !important; margin: 1px 8px !important; padding: 9px 11px; color: var(--th-ink-soft); font-size: 14px; background: transparent; }
#order-standard_cart .card-sidebar .list-group-item:hover { background: #f3f3ef; color: var(--th-ink); }
#order-standard_cart .card-sidebar .list-group-item.active { background: var(--th-ink); color: #fff; font-weight: 600; }
#order-standard_cart .card-sidebar .list-group-item .badge { background: rgba(17,18,16,.08); color: var(--th-ink-soft); }
#order-standard_cart .card-sidebar .list-group-item.active .badge { background: rgba(255,255,255,.2); color: #fff; }

/* ---- product cards (storefront) ----
   The base all.css lays this out as a float 60/40 split (specs left, price
   right) with a grey header. We fully override to a clean vertical card.
   High specificity + !important on layout props to beat the base. */
#order-standard_cart .products .product {
  display: flex !important; flex-direction: column !important;
  background: var(--th-surface) !important; border: 1px solid var(--th-line) !important;
  border-radius: var(--th-radius) !important; box-shadow: var(--th-shadow);
  padding: 0 !important; margin: 0 0 16px 0 !important; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
#order-standard_cart .products .product:hover { border-color: var(--th-ink) !important; transform: translateY(-2px); }
#order-standard_cart .products .product header {
  float: none !important; width: auto !important; background: transparent !important;
  padding: 20px 22px 2px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
}
#order-standard_cart .products .product header span { font-family: var(--th-display); font-size: 19px !important; font-weight: 700; letter-spacing: -0.02em; color: var(--th-ink) !important; }
#order-standard_cart .products .product header .qty { float: none !important; font-style: normal !important; font-family: var(--th-mono); font-size: 11px; color: var(--th-muted); }
#order-standard_cart .products .product div.product-desc {
  float: none !important; width: 100% !important; flex: 1 1 auto;
  padding: 6px 22px 4px !important; font-size: 14px !important; color: var(--th-ink-soft);
}
#order-standard_cart .products .product div.product-desc > p { color: var(--th-ink-soft); margin: 6px 0 10px; }
#order-standard_cart .products .product div.product-desc ul { list-style: none !important; padding: 0 !important; margin: 6px 0 0 !important; }
#order-standard_cart .products .product div.product-desc ul li { position: relative; padding: 8px 0 8px 22px !important; border-top: 1px solid var(--th-line); list-style: none !important; }
#order-standard_cart .products .product div.product-desc ul li:first-child { border-top: 0; }
#order-standard_cart .products .product div.product-desc ul li::before {
  content: "\2713"; position: absolute; left: 0; top: 7px;
  color: var(--th-accent-ink); font-weight: 700; font-size: 13px; line-height: 1;
}
#order-standard_cart .products .product span.feature-value { font-family: var(--th-mono); font-weight: 600 !important; color: var(--th-ink) !important; }
#order-standard_cart .products .product footer {
  float: none !important; width: 100% !important; margin: 0 !important; margin-top: auto !important;
  text-align: left !important; padding: 16px 22px 20px !important; border-top: 1px solid var(--th-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
#order-standard_cart .products .product div.product-pricing { margin: 0 !important; color: var(--th-muted); font-size: 12px; line-height: 1.35; font-family: var(--th-mono); }
#order-standard_cart .products .product div.product-pricing span.price { display: block; font-family: var(--th-mono); font-size: 24px !important; font-weight: 600; letter-spacing: -0.01em; color: var(--th-ink); }
#order-standard_cart .products .product div.product-pricing small { color: var(--th-muted); }
#order-standard_cart .products .product footer .btn { flex: 0 0 auto; }

/* ---- cart line items ---- */
#order-standard_cart .item { border: 1px solid var(--th-line); border-radius: var(--th-radius-sm); background: var(--th-surface); padding: 16px 18px; margin-bottom: 10px; }
#order-standard_cart .item .item-title { font-weight: 600; font-size: 15px; color: var(--th-ink); }
#order-standard_cart .item .item-group { display: block; font-size: 12px; color: var(--th-muted); font-family: var(--th-mono); margin-top: 2px; }
#order-standard_cart .item .item-domain { color: var(--th-ink-soft); font-family: var(--th-mono); font-size: 13px; }
#order-standard_cart .item .item-qty { color: var(--th-ink-soft); font-family: var(--th-mono); }
#order-standard_cart .item .item-price { text-align: right; }
#order-standard_cart .item .item-price .price,
#order-standard_cart .item .item-price b { font-family: var(--th-mono); font-weight: 600; font-size: 16px; color: var(--th-ink); }
#order-standard_cart .item .cycle { display: block; font-size: 11px; color: var(--th-muted); font-family: var(--th-mono); text-transform: uppercase; letter-spacing: .03em; }
#order-standard_cart .btn-remove-from-cart { color: var(--th-muted); }
#order-standard_cart .btn-remove-from-cart:hover { color: var(--th-danger); }

/* ---- order summary (sticky) ---- */
#order-standard_cart .order-summary { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: var(--th-radius); box-shadow: var(--th-shadow); overflow: hidden; }
#order-standard_cart .order-summary > h2,
#order-standard_cart .order-summary .font-size-30 { font-family: var(--th-display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--th-ink); margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--th-line); }
#order-standard_cart .summary-container { padding: 16px 20px; }
#order-standard_cart .summary-container .subtotal,
#order-standard_cart .summary-container .recurring-totals,
#order-standard_cart .summary-container .bordered-totals > div { font-size: 14px; color: var(--th-ink-soft); padding: 5px 0; }
#order-standard_cart .bordered-totals { border-top: 1px solid var(--th-line); border-bottom: 1px solid var(--th-line); margin: 8px 0; padding: 4px 0; }
#order-standard_cart .summary-container .cost,
#order-standard_cart .summary-container .float-right,
#order-standard_cart .summary-container .pull-right { font-family: var(--th-mono); font-weight: 600; color: var(--th-ink); }
#order-standard_cart .recurring-charges { font-size: 13px; color: var(--th-muted); }
#order-standard_cart .total-due-today { margin-top: 8px; padding: 16px 0 4px; border-top: 1px solid var(--th-line); text-align: center; }
#order-standard_cart .total-due-today .amt { display: block; font-family: var(--th-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--th-ink); line-height: 1.1; }
#order-standard_cart .total-due-today > span:not(.amt) { display: block; font-size: 11px; color: var(--th-muted); text-transform: uppercase; letter-spacing: .05em; font-family: var(--th-mono); margin-top: 2px; }
#order-standard_cart .express-checkout-buttons { margin-top: 14px; }
#order-standard_cart .express-checkout-buttons .separator { text-align: center; color: var(--th-muted); font-size: 12px; margin: 8px 0; }
#order-standard_cart .btn-checkout { width: 100%; margin-top: 6px; }
#order-standard_cart .btn-continue-shopping { display: inline-block; margin-top: 10px; }

/* ---- checkout form fields (icon inside) ---- */
#order-standard_cart .prepend-icon { position: relative; display: block; }
#order-standard_cart .prepend-icon .field-icon { position: absolute; left: 0; top: 0; bottom: 0; width: 2.7rem; display: flex; align-items: center; justify-content: center; color: var(--th-muted); pointer-events: none; z-index: 3; margin: 0; }
#order-standard_cart .prepend-icon .field { padding-left: 2.7rem; }
#order-standard_cart .field-error-msg { color: var(--th-danger); font-size: 12.5px; margin-top: 4px; }
#order-standard_cart .new-card-container { border: 1px solid var(--th-line); border-radius: var(--th-radius-sm); padding: 16px; background: #fbfbf9; }

/* ---- shared components (cart-scoped) ---- */
#order-standard_cart .card, #order-standard_cart .panel { background: var(--th-surface); border: 1px solid var(--th-line); border-radius: var(--th-radius); box-shadow: var(--th-shadow); }
#order-standard_cart .panel-body, #order-standard_cart .card-body { padding: 20px; }
#order-standard_cart .form-control, #order-standard_cart .field, #order-standard_cart select.form-control { border-radius: var(--th-radius-sm); border-color: var(--th-line); padding: 9px 12px; height: auto; font-size: 14px; color: var(--th-ink); }
#order-standard_cart .form-control:focus, #order-standard_cart .field:focus { border-color: var(--th-ink); box-shadow: 0 0 0 3px rgba(17,18,16,.06); }
#order-standard_cart label, #order-standard_cart .form-group label { font-weight: 500; font-size: 13px; color: var(--th-ink-soft); }

#order-standard_cart .btn { border-radius: var(--th-radius-sm); font-weight: 600; padding: 9px 16px; font-size: 14px; border: 1px solid transparent; }
#order-standard_cart .btn-lg { padding: 12px 20px; font-size: 15px; }
#order-standard_cart .btn-sm, #order-standard_cart .btn-xs { padding: 6px 12px; font-size: 13px; }
#order-standard_cart .btn-success, #order-standard_cart .btn-order-now, #order-standard_cart .btn-checkout, #order-standard_cart .btn-primary {
  background: var(--th-accent) !important; border-color: var(--th-accent) !important; color: var(--th-accent-fg) !important; }
#order-standard_cart .btn-success:hover, #order-standard_cart .btn-order-now:hover, #order-standard_cart .btn-checkout:hover, #order-standard_cart .btn-primary:hover {
  background: #bcec3c !important; border-color: #bcec3c !important; color: var(--th-accent-fg) !important; }
#order-standard_cart .btn-default { background: var(--th-surface); border-color: var(--th-line); color: var(--th-ink); }
#order-standard_cart .btn-default:hover { background: #f3f3ef; border-color: var(--th-line-strong); color: var(--th-ink); }
#order-standard_cart .btn-link { color: var(--th-ink-soft); }
#order-standard_cart .btn-link:hover { color: var(--th-ink); }

#order-standard_cart .badge { border-radius: 999px; font-weight: 600; font-size: 11px; padding: 4px 9px; background: var(--th-accent); color: var(--th-accent-fg); }
#order-standard_cart .alert { border-radius: var(--th-radius-sm); border: 1px solid var(--th-line); }
#order-standard_cart .alert-danger { background: var(--th-danger-bg); border-color: transparent; color: var(--th-danger); }
#order-standard_cart .alert-warning { background: var(--th-warning-bg); border-color: transparent; color: var(--th-warning); }
#order-standard_cart .alert-info { background: #eef4ff; border-color: transparent; color: #1f4ea8; }

/* billing-cycle radios + config options */
#order-standard_cart .radio-inline, #order-standard_cart .radio label { font-weight: 500; }
#order-standard_cart input[type=radio]:checked + *, #order-standard_cart .toggle-switch-success { accent-color: var(--th-accent-ink); }

/* keep inline storefront SVG icons from blowing up */
#order-standard_cart svg { max-width: 30px !important; max-height: 30px !important; height: auto !important; }
#order-standard_cart .product header span svg, #order-standard_cart .product-desc svg { max-width: 22px !important; }

/* ---- domain search hero (replace the stock orange globe banner) ---- */
.domain-checker-container,
#order-standard_cart .domain-checker-container {
  background: var(--th-ink) !important; background-image: none !important;
  border: 1px solid var(--th-ink) !important; border-radius: var(--th-radius) !important;
  position: relative; overflow: hidden; margin: 8px 0 24px !important;
}
.domain-checker-container::after {
  content: ""; position: absolute; bottom: -40%; right: -10%; width: 55%; height: 130%;
  background: radial-gradient(circle, rgba(198,242,78,.22), transparent 65%); pointer-events: none;
}
.domain-checker-bg { background-image: none !important; padding: 44px 32px !important; position: relative; z-index: 1; }
.domain-checker-container .input-group-box { border-radius: var(--th-radius-sm) !important; padding: 8px !important; box-shadow: 0 8px 24px -12px rgba(0,0,0,.4); }
.domain-checker-container .input-group-box .form-control { border: 0 !important; }
.domain-check-availability { background: var(--th-accent) !important; border-color: var(--th-accent) !important; color: var(--th-accent-fg) !important; border-radius: var(--th-radius-sm) !important; font-weight: 600; }
.domain-checker-available { color: var(--th-success) !important; }
.domain-checker-unavailable, .domain-checker-invalid { color: var(--th-danger) !important; }

/* featured TLD tiles — frame cleanly (per-TLD color is WHMCS spotlight config) */
#order-standard_cart .featured-tld {
  border: 1px solid var(--th-line) !important; border-radius: var(--th-radius) !important;
  overflow: hidden; box-shadow: var(--th-shadow); background: var(--th-surface);
}
#order-standard_cart .featured-tld:hover { border-color: var(--th-ink) !important; }
#order-standard_cart .featured-tld .price { font-family: var(--th-mono) !important; font-weight: 600; }
#order-standard_cart .featured-tld .img-container { padding: 18px; }

/* domain pricing table */
#order-standard_cart .domain-pricing .tld-row { border-bottom: 1px solid var(--th-line) !important; }
#order-standard_cart .domain-price, #order-standard_cart .tld-row .price { font-family: var(--th-mono); }

/* hide WHMCS "powered by" if it appears in cart footer */
#order-standard_cart p:has(a[href*="whmcs.com"]) { display: none !important; }
