/* ============================================================
   eHost Cart / Order Form Override (Faz 6.5)
   Restyles Bootstrap-based WHMCS standard_cart templates to
   match the Osdo Cloud design system. Loaded after app.css so
   selectors win without !important spam where possible.

   Scope: cart.php (order flow) + viewinvoice + standard_cart partials.
   ============================================================ */

/* ----- WHMCS utility classes (six theme implicit defaults) ----- */
/* Without these, the original WHMCS templates can't hide their
   conditional sections (login/signup buttons, ajax loaders, etc.) */
/* `.w-hidden` MUST stay non-important: the order-form scripts.min.js reveals
   these elements (domain search results, ajax loaders) via jQuery
   .show()/.fadeIn() (inline display:block), which an !important display:none
   silently blocks — that was the cart domain-search "no results" bug. The
   non-important rule still hides them initially (nothing sets inline display
   until the JS reveals them). Keep in sync with app.css. */
.hidden { display: none !important; }
.w-hidden { display: none; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.pull-right  { float: right; }
.pull-left   { float: left; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ----- Container reset ----- */
#order-standard_cart,
.viewcart,
.cart-container,
.shoppingcart {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ----- Page-header look for the order page hero (LEFT aligned) ----- */
.header-lined {
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
  text-align: left !important;
}
.header-lined h1 {
  font-size: 28px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
  text-align: left !important;
  color: var(--fg-1) !important;
}
.header-lined p {
  color: var(--fg-3) !important;
  margin-top: 6px !important;
  text-align: left !important;
}
/* Cart "no products" message — looks like an empty state, not centered alert */
#order-standard_cart .alert-info,
#order-standard_cart .alert-warning {
  text-align: left;
}

/* ----- Bootstrap row → flex grid ----- */
#order-standard_cart .row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
#order-standard_cart [class*="col-md-"],
#order-standard_cart [class*="col-sm-"],
#order-standard_cart [class*="col-lg-"],
#order-standard_cart [class*="col-xs-"] { padding: 0; min-width: 0; }
#order-standard_cart .col-md-3 { flex: 0 0 calc(25% - 12px); }
#order-standard_cart .col-md-4 { flex: 0 0 calc(33.333% - 11px); }
#order-standard_cart .col-md-6, #order-standard_cart .col-sm-6 { flex: 0 0 calc(50% - 8px); }
#order-standard_cart .col-md-8 { flex: 0 0 calc(66.666% - 6px); }
#order-standard_cart .col-md-9 { flex: 0 0 calc(75% - 4px); }
#order-standard_cart .col-md-12, #order-standard_cart .col-sm-12 { flex: 1 1 100%; }

@media (max-width: 900px) {
  #order-standard_cart [class*="col-"] { flex: 1 1 100%; }
}

/* ----- Sidebar (category list) ----- */
#order-standard_cart .cart-sidebar { width: 240px; flex-shrink: 0; }
/* cart-body inherits a hardcoded white bg from WHMCS/bootstrap base; in dark
   theme the headline (var(--fg-1) ≈ white) would be white-on-white. Force the
   themed page background so the headline contrasts correctly in both themes. */
#order-standard_cart .cart-body { flex: 1; min-width: 0; background: transparent !important; }

/* ----- Bootstrap panel/card → our card style ----- */
.panel,
.card-sidebar,
.panel-sidebar,
.panel-default,
.shopping-cart .panel,
#order-standard_cart .card,
#order-standard_cart .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 16px;
}
.panel-heading, .card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
}
.panel-title, .card-header h3, .card-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-1);
}
.panel-body, .card-body {
  padding: 20px;
}

/* ----- Buttons (Bootstrap → Osdo) ----- */
#order-standard_cart .btn,
.viewcart .btn,
.shoppingcart .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  /* no `color` in the transition — see ehost-cart-override.css note (hover repaint). */
  transition: background .15s, border-color .15s;
}
#order-standard_cart .btn-primary, .viewcart .btn-primary {
  background: var(--brand-800); color: #fff; border-color: var(--brand-800);
}
#order-standard_cart .btn-primary:hover, .viewcart .btn-primary:hover {
  background: var(--brand-900); border-color: var(--brand-900); color: #fff;  /* pin label visible on hover */
}
#order-standard_cart .btn-default, .viewcart .btn-default,
#order-standard_cart .btn-secondary, .viewcart .btn-secondary,
#order-standard_cart .btn-info, .viewcart .btn-info {
  background: var(--surface); color: var(--fg-1); border-color: var(--border);
}
#order-standard_cart .btn-default:hover, .viewcart .btn-default:hover,
#order-standard_cart .btn-secondary:hover, .viewcart .btn-secondary:hover {
  background: var(--surface-2);
}
/* Success CTAs (Pay / Continue). The vivid status green (--success #22c55e)
   gives white text only ~2.3:1 contrast — the label looks washed-out / "half
   gone", especially on hover where brightness() previously made it worse. Use a
   solid darker green held CONSTANT across light/dark (white on #15803d = 5.02:1,
   passes AA), and darken on hover (darkening only ever improves contrast). */
#order-standard_cart .btn-success, .viewcart .btn-success {
  background: var(--success-solid, #15803d); color: #fff; border-color: var(--success-solid, #15803d);
}
#order-standard_cart .btn-success:hover, .viewcart .btn-success:hover {
  background: var(--success-solid, #15803d); color: #fff;
  filter: brightness(0.92);
}
#order-standard_cart .btn-warning, .viewcart .btn-warning {
  background: var(--warning); color: #fff; border-color: var(--warning);
}
#order-standard_cart .btn-danger, .viewcart .btn-danger {
  background: var(--surface); color: #b91c1c; border-color: #fecaca;
}
#order-standard_cart .btn-lg, .viewcart .btn-lg {
  padding: 11px 18px; font-size: 14px;
}
#order-standard_cart .btn-sm, .viewcart .btn-sm {
  padding: 6px 10px; font-size: 12px;
}
#order-standard_cart .btn-block, .viewcart .btn-block {
  display: flex; width: 100%; justify-content: center;
}
[data-theme="dark"] #order-standard_cart .btn-default,
[data-theme="dark"] .viewcart .btn-default { background: var(--surface); color: var(--fg-1); }

/* ----- Form controls ----- */
#order-standard_cart .form-control,
.viewcart .form-control,
.shoppingcart .form-control,
#order-standard_cart input[type="text"]:not(.no-restyle),
#order-standard_cart input[type="email"]:not(.no-restyle),
#order-standard_cart input[type="password"]:not(.no-restyle),
#order-standard_cart select:not(.no-restyle),
#order-standard_cart textarea:not(.no-restyle) {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 14px;
  color: var(--fg-1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none;
}
#order-standard_cart .form-control:focus,
.viewcart .form-control:focus {
  border-color: var(--brand-800);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-800) 22%, transparent);
}
#order-standard_cart label, .viewcart label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-1);
  margin-bottom: 6px;
}
#order-standard_cart .control-label, .viewcart .control-label {
  text-align: left !important;
}

/* ----- Alerts → banner-style ----- */
#order-standard_cart .alert,
.viewcart .alert,
.shoppingcart .alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
  background: var(--info-bg);
  color: var(--fg-2);
  border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
}
#order-standard_cart .alert-success, .viewcart .alert-success {
  background: var(--success-bg); color: #15803d;
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}
#order-standard_cart .alert-info, .viewcart .alert-info {
  background: var(--info-bg);
  border-color: color-mix(in srgb, var(--info) 30%, transparent);
}
#order-standard_cart .alert-warning, .viewcart .alert-warning {
  background: var(--warning-bg); color: #a16207;
  border-color: color-mix(in srgb, var(--warning) 30%, transparent);
}
#order-standard_cart .alert-danger, .viewcart .alert-danger {
  background: var(--error-bg); color: #b91c1c;
  border-color: color-mix(in srgb, var(--error) 30%, transparent);
}

/* ----- Tables ----- */
#order-standard_cart .table,
.viewcart .table,
.shoppingcart .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
#order-standard_cart .table th,
.viewcart .table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
#order-standard_cart .table td,
.viewcart .table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  color: var(--fg-2);
}
#order-standard_cart .table tr:last-child td,
.viewcart .table tr:last-child td {
  border-bottom: none;
}

/* ----- List group (sidebar categories) ----- */
.list-group, .list-group-item, .list-group-item-action {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--fg-2);
}
.list-group { border: 0 !important; }
.list-group-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  padding: 10px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--divider) !important;
  border-radius: 0 !important;
  font-size: 13px;
  color: var(--fg-2) !important;
  text-decoration: none !important;
}
.list-group-item:last-child { border-bottom: 0 !important; }
.list-group-item:hover {
  background: var(--brand-50) !important;
  color: var(--fg-1) !important;
}
.list-group-item.active {
  background: var(--brand-100) !important;
  color: var(--brand-800) !important;
  font-weight: 600;
}
.list-group-item .badge {
  background: var(--surface-2);
  color: var(--fg-3);
  font-family: var(--font-mono);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

/* ----- Product card grid ----- */
#order-standard_cart #products .product,
#order-standard_cart .products .product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
#order-standard_cart #products .product:hover {
  border-color: var(--brand-800);
}
#order-standard_cart #products .product header {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
#order-standard_cart #products .product header h3,
#order-standard_cart #products .product header .product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-1);
  margin: 0;
}
#order-standard_cart #products .product .product-desc {
  color: var(--fg-3);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}
#order-standard_cart #products .product .product-price {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-800);
  margin: 16px 0 8px;
}
#order-standard_cart #products .product .product-price small,
#order-standard_cart #products .product .product-price .cycle {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  font-family: var(--font-body);
}
#order-standard_cart #products .product .order-button,
#order-standard_cart #products .product .btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ----- Product feature lists ----- */
#order-standard_cart .product-list,
#order-standard_cart .product ul,
#order-standard_cart .product .product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
#order-standard_cart .product-list li,
#order-standard_cart .product ul li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--fg-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
#order-standard_cart .product-list li::before,
#order-standard_cart .product ul li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
}

/* ----- Summary box (cart total) ----- */
.cart-total, .ordersummary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.cart-total table { margin: 0; border: 0 !important; }
.cart-total td { padding: 8px 0 !important; border: 0 !important; border-bottom: 1px solid var(--divider) !important; }
.cart-total tr:last-child td { border-bottom: none !important; }
.cart-total .total td, .cart-total tr.total td {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-1);
  padding-top: 14px !important;
}

/* ----- Domain input on checkout ----- */
.domain-input-group, .input-group {
  display: flex;
  align-items: stretch;
}
.input-group .input-group-addon,
.input-group .form-control {
  border-radius: 0;
}
.input-group .form-control:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.input-group .input-group-addon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 0;
  padding: 0 14px;
  font-size: 13px;
  color: var(--fg-3);
  display: flex;
  align-items: center;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* ----- Pagination ----- */
.pagination > li > a, .pagination > li > span {
  border: 1px solid var(--border);
  color: var(--fg-2);
  background: var(--surface);
}
.pagination > .active > a, .pagination > .active > span {
  background: var(--brand-800);
  border-color: var(--brand-800);
  color: #fff;
}

/* ----- Tabs (orderform may use them) ----- */
.nav-tabs {
  border-bottom: 1px solid var(--border);
}
.nav-tabs > li > a {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  background: transparent;
}
.nav-tabs > li > a:hover {
  background: transparent;
  color: var(--fg-1);
  border-color: transparent;
}
.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
  color: var(--brand-800);
  border-bottom-color: var(--brand-800);
  background: transparent;
}

/* ----- Hide FA glyphs colliding with our SVG icons ----- */
/* Only inside cart pages to avoid affecting other places */
#order-standard_cart i.fa,
#order-standard_cart i.fas,
#order-standard_cart i.far {
  font-size: 14px;
}

/* ----- Forms layout: side-by-side label + input on detail forms ----- */
#order-standard_cart .form-horizontal .form-group,
.viewcart .form-horizontal .form-group {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}
@media (max-width: 768px) {
  #order-standard_cart .form-horizontal .form-group {
    grid-template-columns: 1fr;
  }
}

/* ----- Hide stuff that's redundant in our design ----- */
#order-standard_cart .marketconnect-promo,
#order-standard_cart .recommendations-modal { display: none; }

/* ----- Big "Continue" / "Checkout" CTA at bottom of cart ----- */
.cart-continue-btn,
#order-standard_cart .checkout-button,
.viewcart .checkout-button {
  background: var(--brand-800) !important;
  color: #fff !important;
  border-color: var(--brand-800) !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ============================================================
   Faz 6.5 — Viewcart + Checkout deep dive
   ============================================================ */

/* Cart layout: items area + sidebar summary */
.viewcart .cart-items, .viewcart #cart-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.viewcart h2, .viewcart h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

/* "Order Summary" card */
.viewcart .order-summary,
#order-summary, .order-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.order-summary .summary-header,
.order-summary h2,
#order-summary h2 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0;
  font-size: 15px;
}
.order-summary .summary-body,
.order-summary > div:not(.summary-header) {
  padding: 16px 20px;
}

/* Cart line items */
.viewcart .item, .viewcart .product-line, .viewcart .cart-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.viewcart .item:last-child, .viewcart .product-line:last-child { border-bottom: 0; }

/* Promo code input row */
.viewcart .promotion-code, .promotion-code, .promo-code-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.viewcart .promotion-code input { flex: 1; }

/* Checkout step indicator (numbered dots) */
.checkout-steps, .order-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}
.checkout-steps li, .order-progress li {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-3);
}
.checkout-steps li.active, .order-progress li.active {
  background: var(--brand-100);
  border-color: var(--brand-800);
  color: var(--brand-800);
  font-weight: 600;
}

/* Payment method selector (radio list) */
.paymentmethod-list, .payment-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.paymentmethod-list label, .payment-method-option {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  background: var(--surface);
  font-size: 13px;
}
.paymentmethod-list label:has(input:checked),
.payment-method-option.selected {
  border-color: var(--brand-800);
  background: var(--brand-50);
}

/* Domain search hero (cart.php?a=add&domain=register) */
.domain-search-hero,
.domain-input,
#cartSearchDomain {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--surface) 100%) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px !important;
  margin-bottom: 16px;
}

/* Domain suggestion / spotlight cards */
.domain-spotlight, .domain-result {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.domain-result.available, .domain-spotlight.available {
  border-left: 3px solid var(--success);
}
.domain-result.unavailable {
  border-left: 3px solid var(--error);
  opacity: 0.6;
}

/* Hide six's marketconnect noise + "Added to Cart" Bootstrap modal */
.marketconnect, .codeguard-marketing { display: none !important; }
#recommendationsModal, .recommendations-modal,
#divProductHasRecommendations,
.modal-backdrop.fade.in, .modal-backdrop.show,
.marketconnect-promo, #marketconnect-promo,
.codeguard-banner, .ssl-banner-marketconnect { display: none !important; }

/* Receipt / order complete (full-width centered card) */
.order-complete, .receipt-card {
  max-width: 640px;
  margin: 32px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

/* ============================================================
   Domain search hero — domainregister.tpl
   ============================================================ */
.domain-checker-container, .domain-checker-bg {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--surface) 100%) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 40px 24px !important;
  margin-bottom: 16px;
  box-shadow: none !important;
}
.domain-checker-container .input-group-lg input,
.domain-checker-container input.form-control {
  font-size: 16px !important;
  padding: 14px 16px !important;
  border-radius: var(--radius) 0 0 var(--radius) !important;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
}
.domain-checker-container .input-group-btn .btn,
.domain-checker-container .input-group-append .btn {
  padding: 14px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: var(--brand-800) !important;
  color: #fff !important;
  border: 1px solid var(--brand-800) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
}

/* Search result spotlight */
.primary-domain-header, .domain-checker-result-headline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 12px 0;
  font-size: 14px;
}
.domain-available, .domain-checker-available {
  background: var(--success-bg) !important;
  color: #15803d !important;
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--success);
  margin: 8px 0;
}
.domain-unavailable, .domain-checker-unavailable {
  background: var(--error-bg) !important;
  color: #b91c1c !important;
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 3px solid var(--error);
  margin: 8px 0;
}
.domain-price .price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-800);
}
.btn-add-to-cart {
  background: var(--brand-800) !important;
  color: #fff !important;
  border-color: var(--brand-800) !important;
  padding: 10px 18px !important;
}

/* Suggestion list */
.domain-suggestion, .suggestion-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

/* Tweaks for billing cycle / period chips in product config */
.product-cycle-tabs,
.billingcycle-options {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.product-cycle-tabs > *,
.billingcycle-options > * {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--fg-2);
  background: var(--surface);
}
.product-cycle-tabs > *.active,
.billingcycle-options > *.active {
  background: var(--brand-800);
  color: #fff;
  border-color: var(--brand-800);
}

/* Configurable options groups (e.g. addon checkboxes) */
.configoptions, .addon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.configoption-item, .addon-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Fixes for the order summary table inside checkout */
.checkout .table tr, #order-standard_cart .checkout-summary-table tr { background: var(--surface); }

/* Cart empty state */
.viewcart .empty-cart, .empty-cart {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-cart h3 { font-size: 22px; margin-bottom: 8px; }
.empty-cart p { color: var(--fg-3); }

/* Smarter spacing for the long form layouts in checkout */
.checkout .form-group { margin-bottom: 16px; }
.checkout legend, .checkout fieldset > h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.checkout fieldset {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
