/* Order Hive responsive fixes */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.ch-order-header,
#order-standard_cart,
.ch-product-grid,
.ch-product-grid > [class*="col-"] {
  min-width: 0;
}
.ch-h1,
.ch-h2,
.ch-h3,
.ch-cat-label,
.ch-product-card,
.ch-product-description {
  overflow-wrap: anywhere;
  word-break: normal;
}
.ch-cat-nav-wrapper {
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.ch-cat-group {
  min-width: max-content;
}
.ch-product-card {
  max-width: 100%;
}
@media (max-width: 575.98px) {
  .ch-order-header {
    padding: 0 14px;
  }
  .ch-order-header .ch-h1,
  .ch-h1 {
    font-size: 28px !important;
    line-height: 1.12 !important;
    max-width: 100%;
  }
  .ch-order-categories {
    padding-left: 14px;
  }
  #order-standard_cart {
    padding-left: 14px;
    padding-right: 14px;
  }
  #order-standard_cart .ch-product-grid.row {
    margin-left: 0;
    margin-right: 0;
  }
  #order-standard_cart .ch-product-grid > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .ch-product-card {
    border-radius: 12px !important;
  }
  .ch-card-header,
  .ch-card-body {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .ch-price-block {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

@media (max-width: 575.98px) {
  body .ch-main,
  body .main-content,
  body .primary-content,
  body .container,
  body .container-fluid {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  #order-standard_cart > .d-flex.align-items-center.justify-content-between {
    display: block !important;
    max-width: 100%;
  }
  #order-standard_cart > .d-flex.align-items-center.justify-content-between .ch-divider {
    display: none !important;
  }
  #order-standard_cart > .d-flex.align-items-center.justify-content-between .ch-h2 {
    white-space: normal !important;
    overflow-wrap: anywhere;
    font-size: 27px !important;
    line-height: 1.14 !important;
  }
  #order-standard_cart .ch-product-card,
  #order-standard_cart .ch-price-block,
  #order-standard_cart .ch-product-description,
  #order-standard_cart .ch-product-features {
    box-sizing: border-box;
    max-width: 100% !important;
  }
}
.ch-order-steps { gap: 10px; flex-wrap: wrap; }
.ch-step { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 10px; border: 1px dashed rgba(148,163,184,.55); border-radius: 999px; background: #fff; color: #64748b; font-size: 12px; font-weight: 700; }
.ch-step.active { border-color: #F5A623; background: rgba(245,166,35,.06); color: #F5A623; }
.ch-step.done { color: #334155; }
.ch-step-num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(245,166,35,.12); color: #F5A623; font-size: 11px; }
.ch-step-num svg { width: 12px; height: 12px; }
.ch-selectable-card.active { border-color: #F5A623 !important; background: rgba(245,166,35,.03) !important; }
@media (max-width: 575.98px) { .ch-order-steps { justify-content: flex-start !important; } .ch-step { width: 100%; border-radius: 10px; } }

#frmProductDomain:has(#selincart:checked) #domainincart,
#frmProductDomain:has(#selregister:checked) #domainregister,
#frmProductDomain:has(#seltransfer:checked) #domaintransfer,
#frmProductDomain:has(#selowndomain:checked) #domainowndomain {
  display: block !important;
  visibility: visible !important;
}
#frmProductDomain:has(#selincart:checked) #selection-options-domains,
#frmProductDomain:has(#selregister:checked) #selection-options-domains,
#frmProductDomain:has(#seltransfer:checked) #selection-options-domains,
#frmProductDomain:has(#selowndomain:checked) #selection-options-domains {
  min-height: 124px;
}
@supports not selector(:has(*)) {
  #selection-options-domains .domain-input-group:first-of-type {
    display: block !important;
    visibility: visible !important;
  }
}

/* ===== SaaS Lucide spinner animation ===== */
@keyframes ch-spin { to { transform: rotate(360deg); } }
.ch-spin { animation: ch-spin 0.8s linear infinite; display: inline-block; }
