/* TURBOHOST Checkout v4.8 – visual composition only.
   Scope is enabled by the v4.8 script ONLY when turbohost_step's native cart is present. */
body.th48-checkout > .th-native-topbar,
body.th48-checkout .th-native-topbar,
body.th48-checkout .master-breadcrumb,
body.th48-checkout > #header .topbar {
  display: none !important;
}
/* Preserve the original WHMCS identity/account controls in the DOM.
   They are not detached or deleted. */
body.th48-checkout .th-whmcs-wizard.th-checkout-v46 {
  padding-top: 12px;
}
body.th48-checkout .th-whmcs-wizard .th48-hero {
  margin: 0 0 20px;
  padding: 6px 0 12px;
  font-size: clamp(27px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -.8px;
  line-height: 1.2;
  color: #f5f9ff;
}
/* Horizontal category navigation, without a visible browser scrollbar. */
body.th48-checkout .th-whmcs-wizard.th-checkout-v46 .th-checkout-categories {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  margin-bottom: 17px;
}
body.th48-checkout .th-whmcs-wizard.th-checkout-v46 .th-checkout-categories::-webkit-scrollbar { display: none; }
body.th48-checkout .th-whmcs-wizard.th-checkout-v46 .th-checkout-categories a:focus-visible {
  outline: 2px solid #009aff;
  outline-offset: -3px;
}
body.th48-checkout .th-whmcs-wizard .th48-section-title {
  margin: 4px 0 14px;
  color: #f5f9ff;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25;
  font-weight: 600;
}
/* Move the existing WHMCS stepper immediately after the section heading.
   The stepper remains navigation information, not an independent screen. */
body.th48-checkout .th-whmcs-wizard .th48-steps {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
}
body.th48-checkout .th-whmcs-wizard .th48-steps ol {
  margin: 0;
  padding: 0;
  gap: 8px;
}
body.th48-checkout .th-whmcs-wizard #order-standard_cart .cart-body > .header-lined {
  margin-top: 0;
}
/* Restore the native title's legibility, not its underlying content. */
body.th48-checkout .th-whmcs-wizard #order-standard_cart .cart-body > .header-lined h1 {
  color: #f5f9ff !important;
}
/* Preserve the existing order summary and cards on desktop, mobile and tablet. */
@media (max-width: 920px) {
  body.th48-checkout .th-whmcs-wizard .th48-hero { margin-bottom: 12px; }
  body.th48-checkout .th-whmcs-wizard .th48-steps { overflow-x: auto; }
  body.th48-checkout .th-whmcs-wizard .th48-steps ol { min-width: 420px; }
}
@media (max-width: 520px) {
  body.th48-checkout .th-whmcs-wizard .th48-hero { font-size: 25px; }
  body.th48-checkout .th-whmcs-wizard .th48-section-title { font-size: 22px; }
}
/* Prevent a five-step row from increasing the document width on narrow screens. */
body.th48-checkout .th-whmcs-wizard .th47-main,
body.th48-checkout .th-whmcs-wizard .cart-body,
body.th48-checkout .th-whmcs-wizard .th48-steps {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 520px) {
  body.th48-checkout .th-whmcs-wizard .th48-steps ol {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0 !important;
    gap: 4px;
  }
  body.th48-checkout .th-whmcs-wizard .th48-steps li {
    min-width: 0;
    font-size: 9px;
    overflow-wrap: anywhere;
    text-align: center;
  }
}
