/**
 * Hostbility Cart (Orderform) - Theme Overrides
 *
 * Loaded only for the "hostbility_cart" orderform via common.tpl (assetExists).
 * Keeps WHMCS orderform logic intact while blending visuals with hostbility_theme:
 * - system-ui typography
 * - softer cards, consistent radius/padding
 * - Hostbility brand primary color (#072673)
 */

/* Match hostbility_theme typography (Montserrat stack) */
#order-standard_cart,
#order-standard_cart * {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#order-standard_cart {
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
}

/* Horizontal category scroller (Shared Hosting / Register / Transfer / View Cart, etc.)
   This block is rendered ABOVE #order-standard_cart on many store routes, so it must not be scoped
   to that id. */
.order-form-menu-scroller.white-bg {
    position: relative;
    background: #ffffff !important;
    border: 1px solid rgba(228, 229, 231, 0.9) !important;
    border-radius: 0px !important;
    padding: 10px 10px !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
}

.order-form-menu-scroller.white-bg nav.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 48px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: auto;
  cursor: grab;
  scroll-snap-type: x proximity;
}

.order-form-menu-scroller.white-bg nav.nav::-webkit-scrollbar {
  height: 0;
}

.order-form-menu-scroller.white-bg nav.nav:focus-visible {
  outline: 3px solid rgba(7, 38, 115, 0.22);
  outline-offset: 3px;
  border-radius: 14px;
}

.order-form-menu-scroller.white-bg nav.nav.is-dragging {
  cursor: grabbing;
}

.order-form-menu-scroller.white-bg nav.nav.nav-underline {
  border-bottom: 0;
}

.order-form-menu-scroller.white-bg .nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
  scroll-snap-align: start;
  border: 0 !important;
  border-radius: 999px;
  padding: 10px 16px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.order-form-menu-scroller.white-bg .nav-link:hover {
  background: #eef2ff;
  color: #111827;
}

.order-form-menu-scroller.white-bg .nav-link:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}

.order-form-menu-scroller.white-bg .nav-link.active {
  background: #072673;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 38, 115, 0.18);
}

.order-form-menu-scroller.white-bg .nav-link.disabled,
.order-form-menu-scroller.white-bg .nav-link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.order-form-menu-scroller.white-bg .nav-link .badge {
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  font-weight: 800;
  font-size: 0.75em;
}

.order-form-menu-scroller.white-bg:not(.hb-menu-scroller--overflowing) nav.nav {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
}

.order-form-menu-scroller.white-bg::before,
.order-form-menu-scroller.white-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
  z-index: 2;
}

.order-form-menu-scroller.white-bg::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.order-form-menu-scroller.white-bg::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.order-form-menu-scroller.white-bg.hb-menu-scroller--overflowing:not(.hb-menu-scroller--at-start)::before {
  opacity: 1;
}

.order-form-menu-scroller.white-bg.hb-menu-scroller--overflowing:not(.hb-menu-scroller--at-end)::after {
  opacity: 1;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(228, 229, 231, 1);
  color: #072673;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  z-index: 4;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__arrow:hover {
  background: rgba(7, 38, 115, 0.04);
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__arrow:focus-visible {
  outline: 3px solid rgba(7, 38, 115, 0.22);
  outline-offset: 2px;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__arrow--left {
  left: 8px;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__arrow--right {
  right: 8px;
}

.order-form-menu-scroller.white-bg:not(.hb-menu-scroller--overflowing) .hb-menu-scroller__arrow {
  display: none;
}

.order-form-menu-scroller.white-bg.hb-menu-scroller--at-start .hb-menu-scroller__arrow--left,
.order-form-menu-scroller.white-bg.hb-menu-scroller--at-end .hb-menu-scroller__arrow--right {
  opacity: 0.35;
  pointer-events: none;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__progress {
  height: 2px;
  margin: 8px 12px 2px;
  background: rgba(7, 38, 115, 0.10);
  border-radius: 999px;
  overflow: hidden;
}

.order-form-menu-scroller.white-bg .hb-menu-scroller__progress-bar {
  height: 100%;
  background: #072673;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 140ms ease;
}


/* Top category/tab scroller (Shared Hosting / Product Addons / Renew / Register / Transfer / View Cart, etc.)
   This block sits outside .hb-orderform-page, so we style it here. */
#order-standard_cart .order-form-menu-scroller.white-bg {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 14px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

#order-standard_cart .order-form-menu-scroller.white-bg nav.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#order-standard_cart .order-form-menu-scroller.white-bg nav.nav::-webkit-scrollbar {
  height: 0;
}

/* Hide underline style from nav-underline for our pill tabs */
#order-standard_cart .order-form-menu-scroller.white-bg nav.nav.nav-underline {
  border-bottom: 0;
}

#order-standard_cart.hb-renewals-page .hb-renewals-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

#order-standard_cart.hb-renewals-page .hb-renewals-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #111827;
}

#order-standard_cart.hb-renewals-page .hb-renewals-subtitle {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #6b7280;
}

#order-standard_cart.hb-renewals-page .hb-renewals-search {
  min-width: 280px;
  flex: 0 0 auto;
}

#order-standard_cart.hb-renewals-page .service-renewals-filter.form-control {
  border-radius: 10px;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  padding: 10px 14px;
}

#order-standard_cart.hb-renewals-page .hb-renewals-count {
  margin: 10px 0 18px;
  color: #6b7280;
  font-weight: 600;
}

#order-standard_cart.hb-renewals-page .hb-renewals-grid {
  margin-top: 6px;
}

#order-standard_cart.hb-renewals-page .hb-renewal-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  margin-bottom: 16px;
}

#order-standard_cart.hb-renewals-page .hb-renewal-card.is-disabled {
  opacity: 0.9;
}

#order-standard_cart.hb-renewals-page .hb-renewal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

#order-standard_cart.hb-renewals-page .hb-renewal-product {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
}

#order-standard_cart.hb-renewals-page .hb-renewal-domain {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 600;
}

#order-standard_cart.hb-renewals-page .hb-renewal-desc {
  margin-top: 12px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.55;
}

#order-standard_cart.hb-renewals-page .hb-renewal-bottom {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#order-standard_cart.hb-renewals-page .hb-renewal-period-label {
  font-size: 0.70rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 800;
  margin-bottom: 4px;
}

#order-standard_cart.hb-renewals-page .hb-renewal-period-value {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 600;
}

#order-standard_cart.hb-renewals-page .hb-renewal-ineligible {
  color: #6b7280;
  font-weight: 600;
}

#order-standard_cart.hb-renewals-page .hb-renewals-summary {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

@media (max-width: 991px) {
  #order-standard_cart.hb-renewals-page .hb-renewals-search {
    min-width: 100%;
  }
  #order-standard_cart.hb-renewals-page .hb-renewals-summary {
    margin-top: 10px;
  }
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link {
  border: 0 !important;
  white-space: nowrap;
  border-radius: 999px;
  padding: 10px 16px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link:hover {
  background: #eef2ff;
  color: #111827;
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link.active {
  background: #072673;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 38, 115, 0.18);
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link.disabled,
#order-standard_cart .order-form-menu-scroller.white-bg .nav-link[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

#order-standard_cart .order-form-menu-scroller.white-bg .nav-link .badge {
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.28);
  color: inherit;
  font-weight: 800;
  font-size: 0.75em;
}

@media (max-width: 575px) {
  #order-standard_cart .order-form-menu-scroller.white-bg {
    padding: 10px;
    border-radius: 10px;
  }

  #order-standard_cart .order-form-menu-scroller.white-bg nav.nav {
    justify-content: flex-start;
  }

  #order-standard_cart .order-form-menu-scroller.white-bg .nav-link {
    padding: 9px 12px;
    font-size: 0.86rem;
  }
}

/* Card surfaces */
#order-standard_cart .white-bg,
#order-standard_cart .default-order-form-box,
#order-standard_cart .order-summary,
#order-standard_cart .order-summary-wrapper,
#order-standard_cart .panel,
#order-standard_cart .card,
#order-standard_cart .product-info {
  background: #ffffff;
  border-radius: 10px;
}

/* Inputs */
#order-standard_cart .form-control,
#order-standard_cart .custom-select,
#order-standard_cart select.form-control,
#order-standard_cart input.form-control,
#order-standard_cart textarea.form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
  padding: 12px 16px;
  color: #111827;
}

#order-standard_cart .form-control:focus,
#order-standard_cart .custom-select:focus {
  border-color: rgba(7, 38, 115, 0.35);
  box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.12);
  outline: 0;
}

/* Buttons */
#order-standard_cart .btn,
#order-standard_cart button.btn,
#order-standard_cart a.btn {
  border-radius: 10px;
}

#order-standard_cart .btn-primary,
#order-standard_cart button.btn-primary {
  background: #072673;
  border-color: #072673;
  color: #ffffff;
}

#order-standard_cart .btn-primary:hover,
#order-standard_cart button.btn-primary:hover {
  background: #061f5f;
  border-color: #061f5f;
}

/* Keep the product listing CTA matching Hot Deals outline button */
#order-standard_cart .btn-order-now:not(.hb-product-card__cta) {
  background: #072673;
  border-color: #072673;
  color: #ffffff;
}

#order-standard_cart .btn-order-now:not(.hb-product-card__cta):hover {
  background: #061f5f;
  border-color: #061f5f;
}

/* Wizard + navigation chips alignment */
#order-standard_cart .orderform-step-form-wizard-item {
  border-radius: 10px;
}

/* Rich text block */
#order-standard_cart .hb-cart-richtext {
  color: #374151;
  font-size: 0.95rem;
}

#order-standard_cart .hb-cart-richtext p {
  margin: 0 0 10px 0;
}

#order-standard_cart .hb-cart-richtext ul,
#order-standard_cart .hb-cart-richtext ol {
  padding-left: 20px;
  margin: 10px 0;
}

/* Responsive spacing that matches hostbility_theme page feel */
@media (max-width: 991px) {
  #order-standard_cart .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 575px) {
  #order-standard_cart .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  #order-standard_cart .btn,
  #order-standard_cart button.btn,
  #order-standard_cart a.btn {
    min-height: 44px;
  }
}
/* ------------------------------------------------------------
   Icon Compatibility (Font Awesome Pro -> Free)
   Many WHMCS store/orderform templates use Pro-only prefixes like:
   - `fal` (light)
   - `fad` (duotone)
   This install ships FA Free, so we remap to solid to avoid blank icons.
------------------------------------------------------------ */
.fal,
.fa-light,
.fad,
.fa-duotone {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}
.fal::before,
.fa-light::before,
.fad::before,
.fa-duotone::before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}
.fal,
.fa-light,
.fad,
.fa-duotone,
.fas,
.far,
.fab {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.125em;
}

/* Guest fallback category scroller icons */
.order-form-menu-scroller.white-bg .nav-link .hb-cat-ico{margin-right:8px;font-size:13px;color:#072673;opacity:.95}
