/* Hostlixa — Standard Cart order form skin */

body.hl-is-cart {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--hl-bg);
  color: var(--hl-text);
}

/* Theme wraps cart: single header, slim progress, no big footer */
.hl-cart-main {
  padding: 0;
  max-width: 100%;
  min-height: calc(100vh - var(--hl-nav-h) - 120px);
  overflow-x: hidden;
}

/* ============================================================
 * Universal cart layout fix
 * All standard_cart inner pages (viewcart, checkout, configure,
 * domainregister, complete...) use the same shape:
 *   <div class="hl-order-wrap">
 *     <div class="row">
 *       <div class="cart-sidebar">...categories sidebar...</div>
 *       <div class="cart-body">...real content...</div>
 *     </div>
 *   </div>
 * We hide the WHMCS category sidebar globally on cart pages, make
 * the body fill the row, and constrain to a max-width container.
 * ============================================================ */

/* IMPORTANT: standard_cart uses #order-standard_cart .cart-body (ID specificity).
   We must match or exceed that, hence #order-standard_cart selectors below. */

body.hl-is-cart #order-standard_cart,
body.hl-is-cart .hl-order-wrap {
  max-width: var(--hl-container);
  margin: 0 auto;
  padding: 24px 24px 64px;
  font-size: .94rem;
}

body.hl-is-cart #order-standard_cart > .row,
body.hl-is-cart .hl-order-wrap > .row {
  display: block;
  margin: 0;
}

body.hl-is-cart .cart-sidebar,
body.hl-is-cart #order-standard_cart .cart-sidebar,
body.hl-is-cart .sidebar-collapsed,
body.hl-is-cart .panel.card-sidebar,
body.hl-is-cart [class*="sidebar-categories"] {
  display: none !important;
}

body.hl-is-cart #order-standard_cart .cart-body,
body.hl-is-cart .cart-body {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  flex: 1 1 100%;
}

/* Inner two-column layout (form + summary). On wide screens keep it
   side-by-side; collapse to one column on tablets/phones. */
body.hl-is-cart #order-standard_cart .secondary-cart-body,
body.hl-is-cart .secondary-cart-body {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

body.hl-is-cart #order-standard_cart .secondary-cart-sidebar,
body.hl-is-cart .secondary-cart-sidebar {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
}

/* Wide screens: side-by-side form + summary */
@media (min-width: 992px) {
  body.hl-is-cart #frmConfigureProduct > .row,
  body.hl-is-cart form > .row:has(.secondary-cart-sidebar) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 28px;
    align-items: start;
  }

  body.hl-is-cart .secondary-cart-sidebar {
    position: sticky;
    top: calc(var(--hl-nav-h, 70px) + 16px);
  }
}

/* When the page intentionally has secondary-cart-body + secondary-cart-sidebar
   we want a 2-col grid (form left, summary right) */
body.hl-is-cart .cart-body > .row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin: 0 !important;
}
@media (min-width: 992px) {
  body.hl-is-cart .cart-body > .row:has(.secondary-cart-sidebar) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }
}

body.hl-is-cart .header-lined {
  padding-bottom: 12px;
  margin-bottom: 28px;
}

body.hl-is-cart .header-lined h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--hl-text);
}

body.hl-is-cart .header-lined ~ p,
body.hl-is-cart .cart-body > p,
body.hl-is-cart .secondary-cart-body > p:first-of-type {
  color: var(--hl-text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
}

/* ---------- Configure product page ---------- */
body.hl-is-cart .product-info {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 28px;
}

body.hl-is-cart .product-info .product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--hl-text);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hl-border);
}

body.hl-is-cart .product-info p {
  margin: 0 0 8px;
  color: var(--hl-text-muted);
  font-size: 0.95rem;
}

body.hl-is-cart .product-info ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 18px;
}

body.hl-is-cart .product-info ul li {
  position: relative;
  padding-left: 26px;
  color: var(--hl-text);
  font-size: 0.92rem;
  line-height: 1.5;
}

body.hl-is-cart .product-info ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--hl-success);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.85rem;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
}

/* Strip any literal check marks the admin typed into the description */
body.hl-is-cart .product-info ul li:first-letter {
  text-transform: none;
}

body.hl-is-cart .sub-heading {
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hl-border);
}

body.hl-is-cart .sub-heading > span,
body.hl-is-cart .primary-bg-color {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hl-text);
  background: transparent !important;
}

body.hl-is-cart .field-container {
  margin-bottom: 22px;
}

body.hl-is-cart .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
}

body.hl-is-cart .form-group > label,
body.hl-is-cart .field-container label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

body.hl-is-cart .form-group .form-control,
body.hl-is-cart .form-control.select-inline,
body.hl-is-cart .custom-select {
  width: 100%;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: var(--hl-text);
}

/* ---------- Order summary sidebar (sticky pricing card) ---------- */
body.hl-is-cart .order-summary {
  background: linear-gradient(180deg, var(--hl-bg-elev, var(--hl-surface)) 0%, var(--hl-surface) 100%);
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

body.hl-is-cart .order-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--hl-grad-primary);
}

body.hl-is-cart .order-summary h2 {
  font-size: 1.1rem !important;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hl-border);
  color: var(--hl-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.hl-is-cart .summary-container {
  font-size: 0.92rem;
}

body.hl-is-cart .summary-container table,
body.hl-is-cart .summary-container .summary-row {
  width: 100%;
  margin-bottom: 8px;
}

body.hl-is-cart .summary-container table tr td {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--hl-text-muted);
}

body.hl-is-cart .summary-container table tr td:last-child {
  text-align: right;
  color: var(--hl-text);
  font-weight: 600;
}

body.hl-is-cart .summary-container .total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--hl-border);
}

/* Hostlixa AJAX summary fragment — keep vertical stack (do not match [class*="total"]) */
body.hl-is-cart .summary-container .hl-product-totals,
body.hl-is-cart .summary-container .summary-totals,
body.hl-is-cart .summary-container .total-due-today {
  display: block;
}

body.hl-is-cart .summary-container .hl-product-totals > .flex,
body.hl-is-cart .summary-container .summary-totals > .flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

body.hl-is-cart .summary-container .total > *:last-child,
body.hl-is-cart .summary-container .hl-product-totals .total-due-today > p:first-child,
body.hl-is-cart .summary-container .price-total {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--hl-grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

body.hl-is-cart #orderSummary .text-center {
  margin-top: 20px;
}

body.hl-is-cart #orderSummary .btn-lg {
  width: 100%;
  border-radius: 999px;
  padding: 13px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--hl-grad-primary);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(111, 92, 255, 0.3);
}

body.hl-is-cart #orderSummary .btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(111, 92, 255, 0.45);
}

/* ---------- Alerts inside cart body ---------- */
body.hl-is-cart .info-text-sm {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface);
  color: var(--hl-text-muted);
  margin: 24px 0;
}

body.hl-is-cart .info-text-sm i {
  color: var(--hl-warning);
  font-size: 1.1rem;
  flex-shrink: 0;
}

body.hl-is-cart .info-text-sm a {
  color: var(--hl-primary);
  font-weight: 600;
}

/* ---------- Addons ---------- */
body.hl-is-cart .panel-addon,
body.hl-is-cart .card.panel-addon {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color var(--hl-fast), background var(--hl-fast);
}

body.hl-is-cart .panel-addon-selected {
  border-color: var(--hl-primary);
  background: rgba(111, 92, 255, 0.06);
}

body.hl-is-cart .panel-addon .panel-price {
  color: var(--hl-primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 10px;
}

/* Inner nested .row elements should behave normally */

body.hl-is-cart .secondary-cart-body,
body.hl-is-cart .secondary-cart-sidebar {
  width: 100%;
}

/* Bootstrap alerts inside cart */
body.hl-is-cart .alert {
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  padding: 14px 18px;
}
body.hl-is-cart .alert-danger { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .25); color: var(--hl-danger); }
body.hl-is-cart .alert-warning { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .25); color: var(--hl-warning); }
body.hl-is-cart .alert-info { background: rgba(99, 102, 241, .08); border-color: rgba(99, 102, 241, .25); }
body.hl-is-cart .alert-success { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .25); color: var(--hl-success); }

/* Bootstrap form controls inside cart */
body.hl-is-cart .form-control,
body.hl-is-cart .form-select,
body.hl-is-cart input[type="text"]:not(.hl-no-skin),
body.hl-is-cart input[type="email"]:not(.hl-no-skin),
body.hl-is-cart input[type="password"]:not(.hl-no-skin),
body.hl-is-cart input[type="tel"]:not(.hl-no-skin),
body.hl-is-cart input[type="number"]:not(.hl-no-skin),
body.hl-is-cart select:not(.hl-no-skin),
body.hl-is-cart textarea:not(.hl-no-skin) {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  color: var(--hl-text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .92rem;
  font-family: inherit;
  width: 100%;
  transition: border-color var(--hl-fast), box-shadow var(--hl-fast);
}
body.hl-is-cart .form-control:focus,
body.hl-is-cart input:focus:not(.hl-no-skin),
body.hl-is-cart select:focus:not(.hl-no-skin),
body.hl-is-cart textarea:focus:not(.hl-no-skin) {
  outline: none;
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 3px rgba(111, 92, 255, .15);
}

/* Bootstrap buttons inside cart */
body.hl-is-cart .btn {
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .92rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  transition: all var(--hl-fast);
  cursor: pointer;
}
body.hl-is-cart .btn-primary {
  background: var(--hl-grad-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(111, 92, 255, .25);
}
body.hl-is-cart .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(111, 92, 255, .35); }
body.hl-is-cart .btn-default,
body.hl-is-cart .btn-secondary {
  background: var(--hl-surface);
  border-color: var(--hl-border);
  color: var(--hl-text);
}
body.hl-is-cart .btn-info { background: var(--hl-info); color: #fff; }
body.hl-is-cart .btn-success { background: var(--hl-success); color: #fff; }
body.hl-is-cart .btn-warning { background: var(--hl-warning); color: #fff; }
body.hl-is-cart .btn-danger { background: var(--hl-danger); color: #fff; }

/* Domain checker input group */
body.hl-is-cart .domain-checker-bg {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  padding: 28px;
  margin: 16px 0 28px;
}
body.hl-is-cart .input-group-lg input.form-control { padding: 14px 18px; font-size: 1rem; }
body.hl-is-cart .input-group-box { display: flex; align-items: stretch; gap: 8px; }
body.hl-is-cart .input-group-box .form-control { border-radius: 10px 0 0 10px; }
body.hl-is-cart .input-group-box .btn { border-radius: 0 10px 10px 0; padding: 0 24px; }

/* Sub-headings used on configure-domain pages */
body.hl-is-cart .sub-heading {
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hl-border);
}
body.hl-is-cart .sub-heading > span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--hl-text);
}
body.hl-is-cart .primary-bg-color {
  background: transparent !important;
  color: var(--hl-text) !important;
}

/* Order confirmation alert */
body.hl-is-cart .order-confirmation {
  text-align: center;
  font-size: 1.1rem;
}
body.hl-is-cart .order-confirmation span {
  font-weight: 700;
  color: var(--hl-primary);
}

.hl-cart-progress--theme {
  border-bottom: 1px solid var(--hl-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  padding: 12px 0;
}

.hl-cart-footer {
  border-top: 1px solid var(--hl-border);
  padding: 20px 0;
  margin-top: 48px;
  background: var(--hl-surface);
}

.hl-cart-progress {
  padding: 0;
  max-width: var(--hl-container);
  margin: 0 auto;
}

.hl-cart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.hl-cart-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--hl-text-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.hl-cart-step.is-active {
  color: var(--hl-text);
}

.hl-cart-step.is-done {
  color: var(--hl-text-muted);
}

.hl-cart-step.is-done .hl-cart-step-num {
  background: rgba(34, 197, 94, 0.15);
  color: var(--hl-success);
  border-color: rgba(34, 197, 94, 0.3);
}

.hl-cart-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
}

.hl-cart-step.is-active .hl-cart-step-num {
  background: var(--hl-grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(111, 92, 255, .35);
}

.hl-cart-step-line {
  width: 40px;
  height: 2px;
  background: var(--hl-border);
  margin: 0 4px;
}

.hl-order-wrap {
  max-width: var(--hl-container);
  margin: 0 auto;
  padding: 24px;
}

#order-standard_cart {
  background: transparent;
}

#order-standard_cart .cart-sidebar {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 16px;
  backdrop-filter: blur(14px);
}

#order-standard_cart .cart-sidebar .list-group-item,
#order-standard_cart .sidebar .list-group-item {
  background: transparent;
  border-color: var(--hl-border);
  color: var(--hl-text-muted);
  border-radius: 10px;
  margin-bottom: 4px;
}

#order-standard_cart .cart-sidebar .list-group-item.active,
#order-standard_cart .sidebar .list-group-item.active {
  background: var(--hl-grad-primary);
  border-color: transparent;
  color: #fff;
}

#order-standard_cart .cart-body {
  padding-left: 24px;
}

#order-standard_cart .header-lined h1,
#order-standard_cart .hl-cart-page-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--hl-text);
  margin: 0 0 24px;
}

#order-standard_cart .view-cart-items,
#order-standard_cart .view-cart-items-header {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  overflow: hidden;
}

#order-standard_cart .view-cart-items-header {
  padding: 12px 18px;
  background: var(--hl-surface);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hl-text-muted);
  border-bottom: 1px solid var(--hl-border);
}

#order-standard_cart .view-cart-items .item {
  padding: 18px;
  border-bottom: 1px solid var(--hl-border);
}

#order-standard_cart .view-cart-items .item:last-child {
  border-bottom: none;
}

#order-standard_cart .item-title {
  font-weight: 700;
  color: var(--hl-text);
  font-size: 1rem;
}

#order-standard_cart .item-group,
#order-standard_cart .item-domain {
  color: var(--hl-text-muted);
  font-size: .85rem;
}

#order-standard_cart .item-price {
  font-weight: 700;
  color: var(--hl-text);
  text-align: right;
}

#order-standard_cart .item-price .cycle {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--hl-text-muted);
}

#order-standard_cart .order-summary,
#order-standard_cart .summary-container {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--hl-nav-h) + 24px);
}

#order-standard_cart .total-due-today,
#order-standard_cart .amt {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4f7cff, #a154ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#order-standard_cart .btn-primary,
#order-standard_cart #btnCompleteProductConfig,
#order-standard_cart .btn-checkout {
  background: linear-gradient(135deg, #4f7cff, #6f5cff, #a154ff) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 600;
  padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(111, 92, 255, .35);
}

#order-standard_cart .btn-primary:hover,
#order-standard_cart #btnCompleteProductConfig:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(111, 92, 255, .45);
}

#order-standard_cart .btn-default,
#order-standard_cart .btn-outline {
  background: var(--hl-surface) !important;
  border: 1px solid var(--hl-border-strong) !important;
  color: var(--hl-text) !important;
  border-radius: 999px !important;
}

#order-standard_cart .form-control {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border-strong);
  border-radius: var(--hl-radius-sm);
  color: var(--hl-text);
  padding: 10px 14px;
}

#order-standard_cart .form-control:focus {
  border-color: var(--hl-primary);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, .18);
  background: var(--hl-surface-strong);
}

#order-standard_cart .alert {
  border-radius: var(--hl-radius-sm);
  border: 1px solid var(--hl-border);
}

#order-standard_cart .alert-warning {
  background: rgba(245, 158, 11, .1);
  color: var(--hl-warning);
  border-color: rgba(245, 158, 11, .25);
}

#order-standard_cart .alert-danger {
  background: rgba(239, 68, 68, .1);
  color: var(--hl-danger);
  border-color: rgba(239, 68, 68, .25);
}

#order-standard_cart .alert-success,
#order-standard_cart .order-confirmation {
  background: rgba(34, 197, 94, .1);
  border-color: rgba(34, 197, 94, .25);
  color: var(--hl-success);
  border-radius: var(--hl-radius);
}

#order-standard_cart .panel,
#order-standard_cart .card {
  background: var(--hl-grad-card);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
}

#order-standard_cart .panel-heading,
#order-standard_cart .card-header {
  background: var(--hl-surface);
  border-bottom: 1px solid var(--hl-border);
  color: var(--hl-text);
  font-weight: 700;
}

#order-standard_cart .product-config-info {
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius-sm);
  padding: 18px;
}

/* ---------- Product group page (custom products.tpl) ---------- */
.hl-order-products {
  padding-bottom: 48px;
}

.hl-order-products .cart-sidebar,
.hl-order-products .sidebar-categories-collapsed,
.hl-order-products .sidebar-categories {
  display: none !important;
}

.hl-cart-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 20px 24px 8px;
  max-width: var(--hl-container);
  margin: 0 auto;
}

.hl-cart-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--hl-text-muted);
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  text-decoration: none;
  transition: background var(--hl-fast), color var(--hl-fast), border-color var(--hl-fast);
}

.hl-cart-cat:hover {
  color: var(--hl-text);
  border-color: var(--hl-border-strong);
}

.hl-cart-cat.is-active {
  color: #fff;
  background: var(--hl-grad-primary);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(111, 92, 255, .35);
}

.hl-cart-products-inner {
  padding: 24px 24px 64px;
}

.hl-cart-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.hl-cart-pricing .hl-plan {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hl-cart-pricing .hl-plan-list {
  flex: 1;
}

.hl-billing-toggle-wrap {
  display: flex;
  justify-content: center;
}

.hl-billing-tabs {
  margin-bottom: 0;
}

.hl-billing-tabs .hl-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hl-tab-save {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, .15);
  color: var(--hl-success);
  line-height: 1.4;
}

.hl-billing-tabs .hl-tab.is-active .hl-tab-save {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.hl-plan-equiv {
  min-height: 1.25em;
}

.hl-plan-price {
  flex-wrap: wrap;
}

.hl-plan-save {
  flex: 0 0 100%;
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(34, 197, 94, .15);
  color: var(--hl-success);
  line-height: 1.4;
}

.hl-plan.is-featured .hl-plan-save {
  background: var(--hl-success);
  color: #fff;
}

.hl-plan-compare {
  margin-bottom: 48px;
}

.hl-compare-scroll {
  overflow-x: auto;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  background: var(--hl-surface);
}

.hl-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .92rem;
}

.hl-compare-table th,
.hl-compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hl-border);
  text-align: left;
  vertical-align: top;
}

.hl-compare-table thead th {
  font-weight: 700;
  background: var(--hl-surface-strong);
}

.hl-compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--hl-text-muted);
  width: 34%;
}

.hl-compare-section th {
  background: rgba(111, 92, 255, .08);
  color: var(--hl-text);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hl-cart-pricing .hl-btn {
  margin-top: auto;
}

body.hl-is-cart .hl-footer {
  margin-top: 48px;
}

/* ---------- Legacy product cards (fallback) ---------- */
#order-standard_cart .header-lined {
  margin-bottom: 28px;
  padding-bottom: 0;
  border: none;
}

#order-standard_cart .header-lined h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin: 0 0 8px !important;
  line-height: 1.2;
}

#order-standard_cart .header-lined p {
  color: var(--hl-text-muted);
  margin: 0;
  font-size: 1rem;
}

#order-standard_cart .products {
  margin-top: 8px;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Flatten WHMCS nested .row wrappers so all plan cards sit in one grid */
#order-standard_cart .products .row {
  display: contents !important;
  margin: 0 !important;
}

#order-standard_cart .products .col-md-6 {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
  float: none !important;
}

#order-standard_cart .product {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  width: 100% !important;
  background: var(--hl-grad-card) !important;
  border: 1px solid var(--hl-border) !important;
  border-radius: var(--hl-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--hl-shadow-sm);
  transition: transform var(--hl-mid), box-shadow var(--hl-mid), border-color var(--hl-mid);
}

#order-standard_cart .product:hover {
  transform: translateY(-4px);
  border-color: var(--hl-border-strong) !important;
  box-shadow: var(--hl-shadow);
}

#order-standard_cart .product header {
  padding: 22px 22px 0;
  background: transparent;
  border: none;
}

#order-standard_cart .product header span,
#order-standard_cart .product #product-name,
#order-standard_cart [id$="-name"] {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--hl-text-muted) !important;
  display: block;
}

#order-standard_cart .product .product-desc {
  flex: 1;
  padding: 12px 22px 16px;
  overflow: visible;
}

#order-standard_cart .product .product-desc p {
  color: var(--hl-text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

#order-standard_cart .product .product-desc ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#order-standard_cart .product .product-desc li {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--hl-text);
  line-height: 1.4;
  position: static !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
}

#order-standard_cart .product .product-desc li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--hl-success);
  font-size: 0.75rem;
  margin-top: 4px;
  flex-shrink: 0;
}

#order-standard_cart .product .feature-value {
  display: none;
}

#order-standard_cart .product footer {
  padding: 18px 22px 22px;
  margin-top: auto;
  border-top: 1px solid var(--hl-border);
  background: var(--hl-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#order-standard_cart .product .product-pricing {
  text-align: left;
}

#order-standard_cart .product .price {
  font-size: 2rem !important;
  font-weight: 800 !important;
  line-height: 1.1;
  background: linear-gradient(135deg, #4f7cff, #a154ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#order-standard_cart .product .btn-order-now,
#order-standard_cart .product .btn-success {
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

/* Legacy two-column grid — only when WHMCS category sidebar is visible.
   On hl-is-cart pages the sidebar is hidden; a 260px|1fr grid leaves .cart-body
   stuck in the first 260px column (the bug on domain register / checkout). */
body:not(.hl-is-cart) #order-standard_cart > .row {
  display: grid !important;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin: 0 !important;
  align-items: start;
}

body.hl-is-cart #order-standard_cart > .row,
body.hl-is-cart .hl-order-wrap > .row {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

#order-standard_cart .cart-body {
  padding-left: 0 !important;
  min-width: 0;
}

/* Recommendations block */
#order-standard_cart .product-recommendations,
.panel-recommendations {
  margin-top: 32px;
  clear: both;
}

@media (max-width: 960px) {
  #order-standard_cart > .row {
    grid-template-columns: 1fr !important;
  }
  #order-standard_cart .cart-body {
    padding-left: 0;
    margin-top: 20px;
  }
  .hl-order-wrap { padding: 16px; }
  .hl-cart-step-line { width: 20px; }
  #order-standard_cart .products {
    grid-template-columns: 1fr !important;
  }
  .hl-cart-pricing {
    grid-template-columns: 1fr !important;
  }
  .hl-cart-categories {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }
}

/* ---------- Domain register page ---------- */
body.hl-is-cart .hl-order-domain {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(111, 92, 255, .10), transparent 70%),
    linear-gradient(180deg, rgba(79, 124, 255, .04) 0%, transparent 280px);
}

.hl-order-domain .hl-cart-domain-inner {
  padding: 24px 24px 64px;
  max-width: var(--hl-container);
  margin: 0 auto;
  width: 100%;
}

.hl-order-domain .hl-domain-page-head,
.hl-order-domain .hl-section-head {
  margin-bottom: 28px;
}

.hl-order-domain .hl-domain-section {
  margin-bottom: 36px;
}

.hl-order-domain .hl-domain-section:last-child {
  margin-bottom: 0;
}

.hl-order-domain .hl-section-head h2,
.hl-order-product-domain .hl-section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

body.hl-is-cart .hl-domain-footnote {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--hl-text-muted);
}

body.hl-is-cart .hl-domain-later {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--hl-surface);
  border: 1px dashed var(--hl-border);
}

body.hl-is-cart .hl-domain-later-title {
  margin: 0;
  font-weight: 600;
  color: var(--hl-text);
}

body.hl-is-cart .hl-order-product-domain .domain-selection-options .option label input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hl-primary, #6f5cff);
  flex-shrink: 0;
}

body.hl-is-cart .hl-order-product-domain .domain-submit-btn {
  white-space: nowrap;
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0 1.25rem;
}

@media (max-width: 640px) {
  .hl-order-domain .hl-cart-domain-inner,
  .hl-order-product-domain .hl-cart-domain-inner {
    padding: 16px 16px 48px;
  }

  body.hl-is-cart .hl-domain-search-box {
    flex-direction: column;
    gap: 10px;
  }

  body.hl-is-cart .hl-domain-search-box .form-control {
    border-radius: 10px !important;
    width: 100%;
  }

  body.hl-is-cart .hl-domain-search-box .input-group-append,
  body.hl-is-cart .hl-domain-search-box .input-group-btn {
    width: 100%;
  }

  body.hl-is-cart .hl-domain-search-box .btn {
    width: 100%;
    border-radius: 10px !important;
  }
}

.hl-order-domain .cart-body {
  width: 100% !important;
  float: none !important;
}

/* Hero search */
body.hl-is-cart .hl-domain-search-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

body.hl-is-cart .hl-domain-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: 44px 28px 32px;
  border-radius: calc(var(--hl-radius-lg) + 4px);
  background: var(--hl-grad-primary);
  box-shadow: 0 24px 56px rgba(111, 92, 255, .24);
}

body.hl-is-cart .hl-domain-hero::before,
body.hl-is-cart .hl-domain-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body.hl-is-cart .hl-domain-hero::before {
  width: 280px;
  height: 280px;
  top: -120px;
  right: -60px;
  background: rgba(255, 255, 255, .12);
}

body.hl-is-cart .hl-domain-hero::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  left: -40px;
  background: rgba(255, 255, 255, .08);
}

body.hl-is-cart .hl-domain-search-shell {
  position: relative;
  z-index: 1;
}

body.hl-is-cart .hl-domain-search-card {
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

body.hl-is-cart .hl-domain-search-box {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

body.hl-is-cart .hl-domain-search-box .form-control {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: transparent;
  box-shadow: none;
  font-size: 1rem;
  color: var(--hl-text);
}

body.hl-is-cart .hl-domain-search-box .input-group-btn,
body.hl-is-cart .hl-domain-search-box .input-group-append {
  display: flex;
  flex: 0 0 auto;
}

body.hl-is-cart .hl-domain-search-box .btn {
  height: 52px;
  min-width: 132px;
  border-radius: 12px;
  margin: 0;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(111, 92, 255, .28);
}

body.hl-is-cart .hl-domain-captcha-slot {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

body.hl-is-cart .hl-domain-captcha-slot .hl-domain-captcha-wrap {
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.hl-is-cart .hl-domain-captcha-slot .hl-domain-captcha {
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
}

body.hl-is-cart .hl-domain-captcha-slot .recaptcha-container {
  display: flex;
  justify-content: center;
  margin: 0;
}

body.hl-is-cart .hl-domain-captcha-wrap {
  padding: 10px 12px 6px;
  border-top: 1px solid var(--hl-border);
  margin-top: 6px;
}

body.hl-is-cart .hl-domain-captcha {
  background: transparent;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

body.hl-is-cart .hl-domain-captcha p {
  margin: 0 0 10px;
  font-size: .85rem;
  color: var(--hl-text-muted);
}

body.hl-is-cart .hl-domain-captcha-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.hl-is-cart .hl-domain-captcha-fields img {
  border-radius: 8px;
}

body.hl-is-cart .hl-domain-captcha-fields .form-control {
  width: 8rem;
}

body.hl-is-cart .hl-captcha-hint {
  margin: 10px 0 0;
  color: var(--hl-danger, #dc2626);
  font-size: .85rem;
  font-weight: 600;
}

body.hl-is-cart .recaptcha-container .g-recaptcha {
  display: block !important;
  min-height: 78px;
}

/* Search results */
body.hl-is-cart .hl-domain-results {
  margin-bottom: 40px;
}

body.hl-is-cart .hl-domain-result-card {
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
}

body.hl-is-cart .hl-domain-result-card .domain-checker-available {
  color: var(--hl-success-600);
  font-size: 1.15rem;
  font-weight: 600;
}

body.hl-is-cart .hl-domain-result-card .domain-checker-unavailable,
body.hl-is-cart .hl-domain-result-card .domain-checker-invalid {
  color: var(--hl-danger-600);
  font-weight: 600;
}

body.hl-is-cart .hl-domain-result-card .domain-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 0;
}

body.hl-is-cart .hl-domain-result-card .domain-price .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hl-text);
}

body.hl-is-cart .hl-domain-idn-hint {
  margin: 0 0 10px;
  font-size: .88rem;
  color: var(--hl-text-muted);
}

/* Spotlight TLDs */
body.hl-is-cart #spotlightTlds {
  margin: 0 0 20px;
}

body.hl-is-cart .spotlight-tlds-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
  margin: 0;
}

body.hl-is-cart .spotlight-tld-container {
  padding: 0;
  box-sizing: border-box;
  width: auto !important;
}

body.hl-is-cart .spotlight-tld {
  position: relative;
  padding: 18px 14px;
  text-align: center;
  height: 100%;
}

body.hl-is-cart .spotlight-tld .tld-sale-group {
  position: absolute;
  top: 10px;
  right: 10px;
}

body.hl-is-cart .spotlight-tld-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hl-text);
}

body.hl-is-cart .spotlight-tld .domain-lookup-result .btn {
  width: 100%;
  margin-top: 8px;
}

/* Suggestions */
body.hl-is-cart .hl-domain-suggestions .hl-card-header {
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid var(--hl-border);
}

body.hl-is-cart .hl-domain-suggestions .hl-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body.hl-is-cart .hl-domain-suggestions .hl-card-title i {
  color: var(--hl-warning-700);
}

body.hl-is-cart .hl-domain-suggestions .domain-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hl-border);
}

body.hl-is-cart .hl-domain-suggestions .domain-suggestion .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.hl-is-cart .hl-domain-suggestions .more-suggestions {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--hl-border);
}

body.hl-is-cart .hl-domain-suggestions .domain-suggestions-warning {
  padding: 12px 20px 16px;
  text-align: center;
  font-size: .78rem;
  color: var(--hl-text-muted);
}

/* Pricing table */
body.hl-is-cart .hl-domain-pricing {
  margin-top: 0;
}

body.hl-is-cart .hl-domain-pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 18px;
}

body.hl-is-cart .hl-domain-pricing-head .hl-tld-filters {
  margin-bottom: 0;
}

body.hl-is-cart .hl-domain-pricing-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--hl-text);
  letter-spacing: -0.02em;
}

body.hl-is-cart .hl-domain-pricing-sub {
  margin: 0;
  font-size: .9rem;
}

body.hl-is-cart .featured-tlds-container {
  margin-bottom: 36px;
}

body.hl-is-cart .featured-tlds-grid {
  margin-top: 12px;
}

body.hl-is-cart .hl-domain-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

body.hl-is-cart .hl-domain-promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

body.hl-is-cart .hl-domain-promo-col {
  min-width: 0;
}

body.hl-is-cart .hl-domain-popular-chip,
body.hl-is-cart .hl-domain-popular-chip:focus {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

body.hl-is-cart .featured-tld {
  padding: 22px 16px;
  text-align: center;
  height: 100%;
  margin-bottom: 0;
  border: 1px solid var(--hl-border);
  transition: transform var(--hl-fast), box-shadow var(--hl-fast), border-color var(--hl-fast);
}

body.hl-is-cart .featured-tld:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 92, 255, .35);
  box-shadow: 0 12px 28px rgba(111, 92, 255, .12);
}

body.hl-is-cart .featured-tld .img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-bottom: 10px;
}

body.hl-is-cart .featured-tld .img-container img {
  max-height: 40px;
  max-width: 100%;
}

body.hl-is-cart .featured-tld .price strong {
  display: block;
  font-size: 1.1rem;
  color: var(--hl-text);
}

body.hl-is-cart .featured-tld .price small {
  color: var(--hl-text-muted);
}

body.hl-is-cart .hl-tld-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

body.hl-is-cart .hl-tld-filters .badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--hl-border);
  background: var(--hl-surface, #fff);
  color: var(--hl-text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--hl-fast);
}

body.hl-is-cart .hl-tld-filters .badge:hover {
  border-color: var(--hl-brand-400, #8b7cff);
  color: var(--hl-brand-600, #6f5cff);
}

body.hl-is-cart .hl-tld-filters .badge-success {
  background: var(--hl-brand-600);
  color: #fff;
  border-color: transparent;
}

body.hl-is-cart .hl-domain-pricing-table {
  overflow: hidden;
  padding: 0;
}

body.hl-is-cart .domain-pricing .tld-pricing-header {
  padding: 14px 0;
  background: var(--hl-surface-alt, rgba(111, 92, 255, .06));
  border-bottom: 1px solid var(--hl-border);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hl-text-muted);
  text-align: center;
}

body.hl-is-cart .domain-pricing .tld-pricing-header .tld-column {
  text-align: left;
  padding-left: 20px;
}

body.hl-is-cart .domain-pricing .tld-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--hl-border);
  align-items: center;
  transition: background var(--hl-fast);
}

body.hl-is-cart .domain-pricing .tld-row:hover {
  background: rgba(111, 92, 255, .03);
}

body.hl-is-cart .domain-pricing .tld-row.highlighted {
  background: rgba(111, 92, 255, .04);
}

body.hl-is-cart .domain-pricing .two-row-center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.4;
  padding-top: 4px;
  padding-bottom: 4px;
}

body.hl-is-cart .domain-pricing .tld-row strong {
  font-size: 1rem;
  color: var(--hl-text);
}

body.hl-is-cart .domain-pricing .tld-row small {
  color: var(--hl-text-muted);
  font-size: .78rem;
}

body.hl-is-cart .domain-pricing .tld-row .text-success {
  color: var(--hl-success-600);
}

body.hl-is-cart .domain-pricing .tld-row.no-tlds {
  display: none;
  padding: 32px 20px;
  color: var(--hl-text-muted);
}

/* Promo cards */
body.hl-is-cart .hl-domain-promos {
  margin-top: 0;
}

body.hl-is-cart .hl-domain-promo {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 24px;
  height: 100%;
  margin-bottom: 0;
  border: 1px solid var(--hl-border);
  overflow: hidden;
  position: relative;
  transition: transform var(--hl-fast), box-shadow var(--hl-fast);
}

body.hl-is-cart .hl-domain-promo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hl-grad-primary);
}

body.hl-is-cart .hl-domain-promo--transfer::before {
  background: linear-gradient(90deg, #22d3ee, #6f5cff);
}

body.hl-is-cart .hl-domain-promo:hover {
  transform: translateY(-2px);
  box-shadow: var(--hl-shadow-md, 0 12px 32px rgba(15, 23, 42, .08));
}

body.hl-is-cart .hl-domain-promo-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

body.hl-is-cart .hl-domain-promo-icon--hosting {
  background: rgba(111, 92, 255, .12);
  color: var(--hl-brand-600);
}

body.hl-is-cart .hl-domain-promo-icon--transfer {
  background: rgba(34, 211, 238, .12);
  color: var(--hl-accent-500, #0891b2);
}

body.hl-is-cart .hl-domain-promo-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hl-text);
}

body.hl-is-cart .hl-domain-promo-body p {
  margin: 0;
  font-size: .88rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
}

body.hl-is-cart .hl-domain-promo-body .btn {
  margin-top: 16px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  body.hl-is-cart .hl-domain-hero {
    padding: 28px 16px 24px;
  }

  body.hl-is-cart .hl-domain-search-box {
    flex-direction: column;
    padding: 8px;
  }

  body.hl-is-cart .hl-domain-search-box .form-control {
    border-radius: 10px;
    height: 48px;
  }

  body.hl-is-cart .hl-domain-search-box .btn {
    width: 100%;
    border-radius: 10px;
    height: 48px;
  }

  body.hl-is-cart .spotlight-tld-container-2,
  body.hl-is-cart .spotlight-tld-container-3,
  body.hl-is-cart .spotlight-tld-container-4,
  body.hl-is-cart .spotlight-tld-container-5,
  body.hl-is-cart .spotlight-tld-container-6 {
    width: 50%;
  }

  body.hl-is-cart .domain-pricing .tld-pricing-header .col-md-8,
  body.hl-is-cart .domain-pricing .tld-row .col-md-8 {
    margin-top: 8px;
  }

  /* Stack bootstrap-lite columns on phones */
  body.hl-is-cart [class*="col-xs-"],
  body.hl-is-cart [class*="col-sm-"],
  body.hl-is-cart [class*="col-md-"],
  body.hl-is-cart .col-1,
  body.hl-is-cart .col-2,
  body.hl-is-cart .col-3,
  body.hl-is-cart .col-4,
  body.hl-is-cart .col-5,
  body.hl-is-cart .col-6,
  body.hl-is-cart .col-7,
  body.hl-is-cart .col-8,
  body.hl-is-cart .col-9,
  body.hl-is-cart .col-10,
  body.hl-is-cart .col-11,
  body.hl-is-cart .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.hl-is-cart .domain-pricing .tld-row {
    flex-direction: column;
    gap: 8px;
  }

  body.hl-is-cart .configure-product-form .row,
  body.hl-is-cart #frmConfigureProduct .row {
    flex-direction: column;
  }
}

/* ---------- WHMCS utility classes (must NOT use !important — JS toggles them) ---------- */
.w-hidden,
.hidden {
  display: none;
}

/* ============================================================
 * Bootstrap-lite grid & form components
 *   WHMCS injects Bootstrap on the parent template only.  Our
 *   custom theme doesn't load Bootstrap, so we add the minimum
 *   layout primitives the standard_cart tpls depend on.
 * ============================================================ */
body.hl-is-cart .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

body.hl-is-cart [class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 8px;
  padding-right: 8px;
  box-sizing: border-box;
}

/* xs / default columns */
body.hl-is-cart .col-1,  body.hl-is-cart .col-xs-1  { flex: 0 0 8.3333%;  max-width: 8.3333%;  }
body.hl-is-cart .col-2,  body.hl-is-cart .col-xs-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
body.hl-is-cart .col-3,  body.hl-is-cart .col-xs-3  { flex: 0 0 25%;      max-width: 25%;      }
body.hl-is-cart .col-4,  body.hl-is-cart .col-xs-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
body.hl-is-cart .col-5,  body.hl-is-cart .col-xs-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
body.hl-is-cart .col-6,  body.hl-is-cart .col-xs-6  { flex: 0 0 50%;      max-width: 50%;      }
body.hl-is-cart .col-7,  body.hl-is-cart .col-xs-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
body.hl-is-cart .col-8,  body.hl-is-cart .col-xs-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
body.hl-is-cart .col-9,  body.hl-is-cart .col-xs-9  { flex: 0 0 75%;      max-width: 75%;      }
body.hl-is-cart .col-10, body.hl-is-cart .col-xs-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
body.hl-is-cart .col-11, body.hl-is-cart .col-xs-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
body.hl-is-cart .col-12, body.hl-is-cart .col-xs-12 { flex: 0 0 100%;     max-width: 100%;     }

@media (min-width: 576px) {
  body.hl-is-cart .col-sm-1  { flex: 0 0 8.3333%;  max-width: 8.3333%;  }
  body.hl-is-cart .col-sm-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  body.hl-is-cart .col-sm-3  { flex: 0 0 25%;      max-width: 25%;      }
  body.hl-is-cart .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  body.hl-is-cart .col-sm-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  body.hl-is-cart .col-sm-6  { flex: 0 0 50%;      max-width: 50%;      }
  body.hl-is-cart .col-sm-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  body.hl-is-cart .col-sm-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  body.hl-is-cart .col-sm-9  { flex: 0 0 75%;      max-width: 75%;      }
  body.hl-is-cart .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  body.hl-is-cart .col-sm-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  body.hl-is-cart .col-sm-12 { flex: 0 0 100%;     max-width: 100%;     }
  body.hl-is-cart .offset-sm-1, body.hl-is-cart .col-sm-offset-1 { margin-left: 8.3333%; }
  body.hl-is-cart .offset-sm-2, body.hl-is-cart .col-sm-offset-2 { margin-left: 16.6667%; }
  body.hl-is-cart .offset-sm-3, body.hl-is-cart .col-sm-offset-3 { margin-left: 25%; }
}

@media (min-width: 768px) {
  body.hl-is-cart .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%;  }
  body.hl-is-cart .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  body.hl-is-cart .col-md-3  { flex: 0 0 25%;      max-width: 25%;      }
  body.hl-is-cart .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  body.hl-is-cart .col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  body.hl-is-cart .col-md-6  { flex: 0 0 50%;      max-width: 50%;      }
  body.hl-is-cart .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  body.hl-is-cart .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  body.hl-is-cart .col-md-9  { flex: 0 0 75%;      max-width: 75%;      }
  body.hl-is-cart .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  body.hl-is-cart .col-md-12 { flex: 0 0 100%;     max-width: 100%;     }
  body.hl-is-cart .offset-md-1, body.hl-is-cart .col-md-offset-1 { margin-left: 8.3333%; }
  body.hl-is-cart .offset-md-2, body.hl-is-cart .col-md-offset-2 { margin-left: 16.6667%; }
  body.hl-is-cart .offset-md-3, body.hl-is-cart .col-md-offset-3 { margin-left: 25%; }
}

/* Input-group (used by domain checker, etc.) */
body.hl-is-cart .input-group {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

body.hl-is-cart .input-group > .form-control,
body.hl-is-cart .input-group > input[type="text"] {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin: 0;
  border-radius: 0 10px 10px 0;
}

body.hl-is-cart .input-group-prepend,
body.hl-is-cart .input-group-addon {
  display: flex;
  align-items: stretch;
  margin-right: -1px;
}

body.hl-is-cart .input-group-append {
  display: flex;
  align-items: stretch;
  margin-left: -1px;
}

body.hl-is-cart .input-group-text {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  border-right: 0;
  color: var(--hl-text-muted);
  font-size: 0.92rem;
  border-radius: 10px 0 0 10px;
  white-space: nowrap;
}

body.hl-is-cart .input-group-append .btn,
body.hl-is-cart .input-group-append .input-group-text {
  border-radius: 0 10px 10px 0;
}

/* Domain selection options skin */
body.hl-is-cart .domain-selection-options {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.hl-is-cart .domain-selection-options .option {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border);
  transition: border-color var(--hl-fast), background var(--hl-fast);
}

body.hl-is-cart .domain-selection-options .option-selected {
  border-color: var(--hl-primary);
  background: rgba(111, 92, 255, 0.06);
}

body.hl-is-cart .domain-selection-options .option label {
  margin: 0;
  font-weight: 600;
  color: var(--hl-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.hl-is-cart .domain-input-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hl-border);
}

body.hl-is-cart .domain-input-group .domains-row {
  align-items: center;
}

body.hl-is-cart .domain-input-group select.form-control {
  border-radius: 10px;
}

body.hl-is-cart .domain-input-group .btn {
  width: 100%;
  border-radius: 999px;
  padding: 10px 20px;
}

/* iCheck radios skin */
body.hl-is-cart .icheckbox_square-blue,
body.hl-is-cart .iradio_square-blue {
  width: 20px !important;
  height: 20px !important;
  background: var(--hl-surface) !important;
  border: 2px solid var(--hl-border-strong, var(--hl-border)) !important;
  border-radius: 50% !important;
  flex-shrink: 0;
}

body.hl-is-cart .iradio_square-blue.checked {
  background: var(--hl-grad-primary) !important;
  border-color: transparent !important;
  position: relative;
}

body.hl-is-cart .iradio_square-blue.checked::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* ---------- Added to Cart / recommendations modal ---------- */
#recommendationsModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 24px 16px;
}

#recommendationsModal.show,
#recommendationsModal.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#recommendationsModal .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  pointer-events: auto;
}

#recommendationsModal .modal-content {
  background: var(--hl-bg-elev, var(--hl-surface));
  border: 1px solid var(--hl-border-strong, var(--hl-border));
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#recommendationsModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hl-border);
  background: var(--hl-surface);
}

#recommendationsModal .modal-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hl-text);
  float: none !important;
}

#recommendationsModal .modal-header .close {
  margin: 0;
  padding: 8px 12px;
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.7;
  background: transparent;
  border: none;
  color: var(--hl-text-muted);
  cursor: pointer;
}

#recommendationsModal .modal-header .close:hover {
  opacity: 1;
}

#recommendationsModal .modal-body {
  padding: 20px 24px;
  max-height: min(60vh, 480px);
  overflow-y: auto;
}

#recommendationsModal .modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--hl-border);
  text-align: center;
  background: var(--hl-surface);
}

#recommendationsModal .modal-footer .btn-primary {
  min-width: 160px;
}

/* Remove-from-cart confirmation modal */
#modalRemoveItem {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.55);
  align-items: center;
  justify-content: center;
}

#modalRemoveItem.show,
#modalRemoveItem.in {
  display: flex !important;
}

#modalRemoveItem .modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  pointer-events: auto;
}

#modalRemoveItem .modal-content {
  background: var(--hl-bg-elev, var(--hl-surface));
  border: 1px solid var(--hl-border-strong, var(--hl-border));
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

#modalRemoveItem .modal-body {
  padding: 28px 24px 12px;
  text-align: center;
  position: relative;
}

#modalRemoveItem .modal-body .close {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  padding: 4px 8px;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--hl-text-muted);
  cursor: pointer;
}

#modalRemoveItem .modal-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hl-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#modalRemoveItem .modal-title i {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.10);
  color: var(--hl-danger-600, #dc2626);
  font-size: 1.35rem;
}

#modalRemoveItem .hl-modal-remove-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--hl-text-muted);
  line-height: 1.5;
}

#modalRemoveItem .modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px 24px;
  border: 0;
  background: transparent;
}

body.hl-is-cart .btn-remove-from-cart {
  cursor: pointer;
}

body.hl-is-cart .btn-remove-from-cart:hover {
  color: var(--hl-danger-600, #dc2626) !important;
}

.hl-modal-backdrop,
body.hl-is-cart .hl-cart-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

/* Product added panel */
.product-added-panel {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 12px;
  margin-bottom: 16px;
}

.product-added-panel .panel-body,
.product-added-panel .card-body {
  padding: 14px 18px;
}

/* Recommendation cards */
.product-recommendations-container {
  max-height: none;
  margin: 0;
}

.product-recommendations {
  margin: 0 !important;
  max-width: 100% !important;
  border: none !important;
}

.product-recommendations > p {
  color: var(--hl-text-muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

#recommendationsModal .product-recommendation:not(.clonable) {
  margin: 0 0 12px;
  background: var(--hl-surface);
  border: 1px solid var(--hl-border) !important;
  border-radius: 12px;
  border-bottom-width: 1px !important;
  overflow: hidden;
}

#recommendationsModal .product-recommendation .header {
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

#recommendationsModal .product-recommendation .content {
  flex: 1;
  min-width: 0;
}

#recommendationsModal .product-recommendation .headline {
  font-weight: 700;
  color: var(--hl-text);
}

#recommendationsModal .product-recommendation .tagline {
  color: var(--hl-text-muted);
  font-size: 0.88rem;
}

#recommendationsModal .product-recommendation .cta {
  float: none;
  flex-shrink: 0;
}

#recommendationsModal .product-recommendation .btn-add {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  color: #fff !important;
}

#recommendationsModal .product-recommendation.clonable {
  display: none !important;
}

/* Don't show modal markup inline when JS hasn't opened it yet */
body.hl-is-cart #recommendationsModal:not(.show):not(.in) {
  display: none !important;
}

/* ---------- Domain register — popular TLDs + trust row ---------- */
body.hl-is-cart .hl-domain-popular {
  padding: 24px;
  border-radius: var(--hl-radius-lg);
  background: var(--hl-surface, #fff);
  border: 1px solid var(--hl-border);
  box-shadow: var(--hl-shadow-sm, 0 4px 24px rgba(15, 23, 42, .06));
}

body.hl-is-cart .hl-domain-popular-head h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.hl-is-cart .hl-domain-popular-head h3 i {
  color: var(--hl-brand-600, #6f5cff);
}

body.hl-is-cart .hl-domain-popular-head p {
  margin: 0 0 16px;
  font-size: .875rem;
}

body.hl-is-cart .hl-domain-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

body.hl-is-cart .hl-domain-popular-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  background: var(--hl-surface, #fff);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--hl-fast), box-shadow var(--hl-fast), transform var(--hl-fast);
}

body.hl-is-cart .hl-domain-popular-chip:hover {
  border-color: var(--hl-brand-400, #8b7cff);
  box-shadow: 0 8px 20px rgba(111, 92, 255, .12);
  transform: translateY(-1px);
}

body.hl-is-cart .hl-domain-popular-chip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  text-align: right;
}

body.hl-is-cart .hl-domain-popular-chip-tld {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--hl-text);
  letter-spacing: -0.02em;
}

body.hl-is-cart .hl-domain-popular-chip-price {
  font-weight: 700;
  color: var(--hl-brand-600, #6f5cff);
  font-size: .95rem;
}

body.hl-is-cart .hl-domain-popular-chip-period {
  font-size: .75rem;
  color: var(--hl-text-muted);
}

body.hl-is-cart .hl-domain-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.hl-is-cart .hl-domain-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--hl-surface, #fff);
  border: 1px solid var(--hl-border);
  font-size: .84rem;
  font-weight: 600;
  color: var(--hl-text);
  box-shadow: var(--hl-shadow-sm, 0 4px 16px rgba(15, 23, 42, .04));
}

body.hl-is-cart .hl-domain-trust-item i {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(111, 92, 255, .10);
  color: var(--hl-brand-600, #6f5cff);
  font-size: .95rem;
}

body.hl-is-cart .hl-domain-pricing--featured {
  margin-top: 0;
  margin-bottom: 24px;
}

body.hl-is-cart .hl-domain-pricing-fallback {
  padding: 0;
  overflow: hidden;
}

body.hl-is-cart .hl-domain-pricing-fallback-head,
body.hl-is-cart .hl-domain-pricing-fallback-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
}

body.hl-is-cart .hl-domain-pricing-fallback-head {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hl-text-muted);
  background: var(--hl-surface-alt, rgba(111, 92, 255, .06));
  border-bottom: 1px solid var(--hl-border);
}

body.hl-is-cart .hl-domain-pricing-fallback-row {
  border-bottom: 1px solid var(--hl-border);
  font-size: .925rem;
}

body.hl-is-cart .hl-domain-pricing-fallback-row:last-child {
  border-bottom: 0;
}

body.hl-is-cart .hl-domain-pricing-fallback-row small {
  color: var(--hl-text-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  body.hl-is-cart .hl-domain-hero {
    padding: 28px 16px 24px;
  }

  body.hl-is-cart .hl-domain-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.hl-is-cart .hl-domain-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.hl-is-cart .hl-domain-pricing-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.hl-is-cart .hl-domain-pricing-head .hl-tld-filters {
    order: 2;
  }
}
