/* TURBOHOST checkout v4.6: layout only; prices/forms remain WHMCS-owned. */
.th-whmcs-wizard.th-checkout-v46 {
  --th46-navy: #0d1e3c;
  --th46-panel: #102956;
  --th46-edge: #29436b;
  --th46-blue: #1062fe;
  --th46-cyan: #009aff;
  --th46-white: #f0f6ff;
  --th46-muted: #b5cbea;
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(275px, 318px);
  gap: 22px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-categories {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--th46-edge);
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-categories a {
  display: inline-flex;
  white-space: nowrap;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 13px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #d4e4fa;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-categories a:hover,
.th-whmcs-wizard.th-checkout-v46 .th-checkout-categories a:focus-visible,
.th-whmcs-wizard.th-checkout-v46 .th-checkout-categories a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--th46-cyan);
  background: #123266;
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-grid > #order-standard_cart,
.th-whmcs-wizard.th-checkout-v46 .th-checkout-grid > .th-checkout-summary {
  min-width: 0;
}
/* Native Standard Cart root uses a desktop left float; normalize only its outermost row. */
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row {
  display: block;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-body,
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-sidebar {
  float: none;
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-sidebar:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-sidebar > [hidden],
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-sidebar[hidden],
.th-whmcs-wizard.th-checkout-v46 .th-checkout-summary[hidden] { display: none !important; }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart > .row > .cart-sidebar > .panel { min-width: 180px; max-width: 100%; margin: 0; }
/* The existing WHMCS summary remains authoritative during configurable options and cart review. */
.th-whmcs-wizard.th-checkout-v46 .th-checkout-grid.th46-native-summary { grid-template-columns: minmax(0, 1fr); }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 22px;
  margin: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) > .secondary-cart-body {
  float: none;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  width: auto;
  padding: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) > .secondary-cart-sidebar {
  float: none;
  position: relative;
  flex: 0 0 318px;
  width: 318px;
  max-width: 318px;
  min-width: 0;
  padding: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary {
  position: sticky;
  top: 18px;
  min-width: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary .order-summary {
  background: var(--th46-navy);
  border: 1px solid var(--th46-edge);
  border-radius: 30px;
  overflow: hidden;
  color: var(--th46-white);
  box-shadow: 0 16px 40px #0000002a;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary h2 {
  color: var(--th46-white);
  background: var(--th46-panel);
  font-size: 19px;
  font-weight: 700;
  padding: 21px 22px;
  margin: 0;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary .summary-container { padding: 18px; color: var(--th46-white); }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary :is(.subtotal, .recurring-totals, .total-due-today, .promotion, .taxes) { color: var(--th46-white); }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary :is(.btn, .btn-checkout) { border-radius: 30px; }
/* Server-rendered price mirror only on pages without an embedded native summary. */
.th-whmcs-wizard.th-checkout-v46 .th-checkout-summary {
  position: sticky;
  top: 20px;
  overflow: hidden;
  border: 1px solid var(--th46-edge);
  background: linear-gradient(150deg,#102956,#06152f);
  color: var(--th46-white);
  border-radius: 30px;
  box-shadow: 0 16px 40px #00000028;
}
.th-whmcs-wizard.th-checkout-v46 .th-checkout-summary h2 {
  margin: 0;
  padding: 22px;
  background: #112d60;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.th-whmcs-wizard.th-checkout-v46 .th46-summary-body { padding: 19px 21px 22px; }
.th-whmcs-wizard.th-checkout-v46 .th46-summary-note,
.th-whmcs-wizard.th-checkout-v46 .th46-summary-label {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--th46-muted);
}
.th-whmcs-wizard.th-checkout-v46 .th46-summary-name { font-weight: 650; line-height: 1.4; color: white; margin-bottom: 10px; }
.th-whmcs-wizard.th-checkout-v46 .th46-summary-price {
  padding: 14px 0 0;
  border-top: 1px solid var(--th46-edge);
  margin: 12px 0 6px;
  color: #fff;
  font-size: 29px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.th-whmcs-wizard.th-checkout-v46 .th46-summary-action {
  display: inline-flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  margin-top: 10px;
  border-radius: 30px;
  background: var(--th46-blue);
  color: white;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--th46-blue);
  text-decoration: none;
  cursor: pointer;
}
.th-whmcs-wizard.th-checkout-v46 .th46-summary-action:hover,
.th-whmcs-wizard.th-checkout-v46 .th46-summary-action:focus-visible { color: #fff; background: #2775ff; }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycles {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 22px;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycle {
  min-width: 0;
  min-height: 98px;
  padding: 15px 10px;
  border: 1px solid #28476f;
  border-radius: 24px;
  background: var(--th46-navy);
  color: var(--th46-white);
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycle[aria-pressed="true"] {
  background: #11366c;
  border-color: var(--th46-blue);
  box-shadow: inset 0 0 0 1px var(--th46-blue);
}
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycle .th46-cycle-name { display: block; font-size: 13px; font-weight: 650; }
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycle[aria-pressed="true"]::after { content: '✓'; display: inline-block; color: #8cb7ff; margin-top: 7px; }
/* Keep the real select functional for WHMCS onchange and keyboard users. */
.th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycle-select { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
@media(max-width:1120px) {
  .th-whmcs-wizard.th-checkout-v46 .th-checkout-grid { grid-template-columns: minmax(0,1fr) minmax(252px,290px); gap: 15px; }
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) > .secondary-cart-sidebar { flex-basis: 290px; width:290px; max-width:290px; }
}
@media(max-width:920px) {
  .th-whmcs-wizard.th-checkout-v46 .th-checkout-grid { display: flex; flex-direction: column; }
  .th-whmcs-wizard.th-checkout-v46 .th-checkout-grid > #order-standard_cart,
  .th-whmcs-wizard.th-checkout-v46 .th-checkout-grid > .th-checkout-summary { width:100%; max-width:100%; }
  .th-whmcs-wizard.th-checkout-v46 .th-checkout-summary { position:static; }
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) { flex-wrap: wrap; }
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) > .secondary-cart-body,
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .cart-body > .row:has(.secondary-cart-sidebar #orderSummary) > .secondary-cart-sidebar { flex: 0 0 100%; max-width:100%; width:100%; }
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .secondary-cart-sidebar #orderSummary { position:static; }
}
@media(max-width:600px) {
  .th-whmcs-wizard.th-checkout-v46 #order-standard_cart .th46-cycles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .th-whmcs-wizard.th-checkout-v46 .th46-summary-price { font-size:25px; }
}
