/* TURBOHOST checkout v4.7: category bar > steps > order form. Layout only. */
.th-whmcs-wizard.th-checkout-v46.th-checkout-v47 .th-checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(275px, 318px);
  align-items: start;
  gap: 20px 22px;
}
.th-whmcs-wizard.th-checkout-v47 .th-checkout-grid > .th-checkout-categories {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}
.th-whmcs-wizard.th-checkout-v47 .th-checkout-grid > .th47-main {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}
.th-whmcs-wizard.th-checkout-v47 .th47-main > .th-native-steps {
  order: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 22px;
}
.th-whmcs-wizard.th-checkout-v47 .th47-main > .th-native-steps ol {
  margin: 0;
}
.th-whmcs-wizard.th-checkout-v47 .th47-main > #order-standard_cart {
  order: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.th-whmcs-wizard.th-checkout-v47 .th-checkout-grid:not(.th46-native-summary) > .th-checkout-summary {
  grid-column: 2;
  grid-row: 2;
}
/* Hide native categories/actions only once the real horizontal category links exist. */
.th-whmcs-wizard.th-checkout-v47.th47-categories-ready #order-standard_cart > .row > .cart-sidebar,
.th-whmcs-wizard.th-checkout-v47 .th47-actions-panel {
  display: none !important;
}
/* Keep WHMCS sidebar navigation as fallback when the horizontal source is missing. */
.th-whmcs-wizard.th-checkout-v47 .th47-main > .th-native-steps li[aria-current="step"] {
  color: #f1f6ff;
}
@media (max-width: 1100px) {
  .th-whmcs-wizard.th-checkout-v46.th-checkout-v47 .th-checkout-grid:not(.th46-native-summary) {
    grid-template-columns: minmax(0,1fr) minmax(252px,290px);
  }
}
@media (max-width: 920px) {
  .th-whmcs-wizard.th-checkout-v46.th-checkout-v47 .th-checkout-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .th-whmcs-wizard.th-checkout-v47 .th-checkout-grid > .th-checkout-categories,
  .th-whmcs-wizard.th-checkout-v47 .th-checkout-grid > .th47-main,
  .th-whmcs-wizard.th-checkout-v47 .th-checkout-grid > .th-checkout-summary {
    width: 100%;
    max-width: 100%;
  }
  .th-whmcs-wizard.th-checkout-v47 .th47-main > .th-native-steps {
    overflow-x: auto;
  }
  .th-whmcs-wizard.th-checkout-v47 .th47-main > .th-native-steps ol {
    min-width: 430px;
    gap: 9px;
  }
}

/* Native summary is already inside WHMCS cart body; do not reserve an empty column. */
.th-whmcs-wizard.th-checkout-v47 .th-checkout-grid.th46-native-summary {
  grid-template-columns: minmax(0,1fr);
}
/* Period cards: native billing cycle select and pricing remain authoritative. */
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-original-cycle-label { position:absolute!important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-heading { color:#f5f9ff; font-size:24px; font-weight:650; line-height:1.3; margin:20px 0 14px; letter-spacing:-.3px; }
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycles {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px;
  margin:0 0 25px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle {
  position:relative; display:flex; flex-direction:column; align-items:center;
  justify-content:flex-start; min-height:215px; padding:20px 12px 18px;
  background:#0c2044; color:#edf5ff; border:1px solid #284976;
  border-radius:30px; box-shadow:0 12px 28px #0000001c;
  text-align:center; cursor:pointer; overflow:hidden; gap:8px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle[aria-pressed="true"] {
  background:#102d61; border:2px solid #1062fe;
  box-shadow:0 12px 28px #00000030;
  padding:19px 11px 17px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle[aria-pressed="true"]::before {
  content:""; position:absolute; top:0; right:0; width:32px; height:32px;
  background:#1062fe; clip-path:polygon(0 0,100% 0,100% 100%);
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle[aria-pressed="true"]::after {
  content:"✓"; position:absolute; top:0; right:3px; color:white; font-size:13px;
  margin:0; font-weight:800; z-index:1;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-title {
  display:block; color:#f5f9ff; font-size:14px; font-weight:750; min-height:22px; line-height:1.4;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-discount {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:5px;
  min-height:21px; font-size:10px; color:#fca5b5;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-discount s { color:#ff9cad; }
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-discount > span {
  color:#ff9bad; border-radius:6px; background:#512035; padding:3px 5px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-price {
  color:#fff; font-weight:800; font-size:clamp(19px,2vw,28px); line-height:1.15;
  overflow-wrap:anywhere; letter-spacing:-.5px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-fine {
  color:#bed3f0; font-size:11px; line-height:1.4; min-height:28px;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th47-cycle-action {
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:auto; min-height:34px; background:#d8e5ff; color:#0954ce;
  padding:9px 14px; border-radius:30px; font-size:11px; font-weight:750;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle[aria-pressed="true"] .th47-cycle-action {
  background:#1062fe; color:#fff;
}
.th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle:focus-visible { outline:3px solid #009aff; outline-offset:3px; }
@media(max-width:1100px){
  .th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycles {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:460px){
  .th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycles {grid-template-columns:minmax(0,1fr);}
  .th-whmcs-wizard.th-checkout-v47 #order-standard_cart .th46-cycle {min-height:185px;}
}
