/* ============================================================
   TFT — Category bar layout
   ============================================================ */

/* Hide carousel arrows — TFT has only 3 centered cards */
.category-bar.tft-cats .cat-arrow {
  display: none;
}

/* Remove the side arrow columns from the shell grid */
.category-bar.tft-cats .category-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: 152px;
}

.category-bar.tft-cats .category-scroll {
  min-height: 152px;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
}

/* Wider, taller TFT category cards */
.category-bar.tft-cats .cat-btn {
  width: 210px;
  min-width: 180px;
  min-height: 148px;
}

.category-bar.tft-cats .cat-btn .service-thumb {
  height: 108px;
}

.category-bar.tft-cats .cat-btn .service-thumb img {
  object-fit: cover;
}

.category-bar.tft-cats .cat-label {
  font-size: 14px;
  letter-spacing: .05em;
  text-align: center;
}

.category-bar.tft-cats .cat-micro {
  text-align: center;
  font-size: 10px;
}

/* Premium gold active state for TFT cards */
.category-bar.tft-cats .cat-btn.active {
  border-color: rgba(255, 209, 102, .55);
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, .18),
    0 18px 42px rgba(0, 0, 0, .4),
    0 0 28px rgba(255, 209, 102, .1),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* ============================================================
   TFT — Detail panel (sticky order card on desktop)
   ============================================================ */

.order-card.is-tft-split {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow: visible;
  align-self: start;
}

.order-card.is-tft-split .order-panel-head {
  flex-shrink: 0;
}

.order-card.is-tft-split .order-card-body {
  display: flex;
  flex-direction: column;
  padding: 0 12px 14px;
  gap: 0;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Mobile resets — mirrors global .is-valorant mobile reset */
@media (max-width: 1080px) {
  .order-card.is-tft-split .order-card-body {
    overflow: visible;
  }
  .order-card.is-tft-split .summary-total {
    flex: none;
    max-height: none;
    overflow: visible;
  }
  .category-bar.tft-cats .cat-btn {
    width: 180px;
    min-width: 150px;
  }
}

@media (max-width: 520px) {
  .category-bar.tft-cats .category-scroll {
    flex-wrap: wrap;
    overflow-x: hidden;
  }
  .category-bar.tft-cats .cat-btn {
    width: calc(50% - 10px);
    min-width: 130px;
  }
}

/* ============================================================
   TFT Rank Up form — scoped to .tft-rank-up-form
   ============================================================ */

/* TFT Rank Up form — scoped to .tft-rank-up-form */

.tft-rank-up-form .tft-div-wrap {
  display: block;
  margin-top: 10px;
}

.tft-rank-up-form .tft-div-wrap.tft-div-wrap--hidden {
  display: none;
}

.tft-rank-up-form .tft-addon-row {
  display: flex;
  align-items: center;
}

.tft-addon-chip {
  display: inline-block;
  background: rgba(255, 209, 102, .15);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  margin-left: 5px;
  letter-spacing: .03em;
  vertical-align: middle;
}

.tft-addon-chip--free {
  background: rgba(122, 77, 255, .18);
  color: var(--purple-2, #9b68ff);
}

/* ============================================================
   TFT Rank Up form — section labels
   ============================================================ */

.tft-form-section-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(122, 77, 255, .18);
}

.tft-rank-up-form > .tft-form-section-label:first-child {
  margin-top: 2px;
}

.tft-form-section-label--sub {
  margin-top: 20px;
}

/* Full-width stacked field blocks inside TFT form */
.tft-rank-up-form .field-block {
  width: 100%;
  box-sizing: border-box;
}

/* Add-on row spacing */
.tft-rank-up-form .tft-addon-row {
  padding: 5px 0;
}

/* ============================================================
   TFT — "Secure Order Summary" label on the right panel
   ============================================================ */

.order-card.is-tft-split .order-card-body::before {
  content: "\1F512\00A0 Secure Order Summary";
  display: block;
  flex: 0 0 auto;
  font-family: "Rajdhani", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(255, 209, 102, .12);
  margin-bottom: 4px;
}

/* Mobile — single column, summary flows below form naturally */
@media (max-width: 1080px) {
  .order-card.is-tft-split .order-card-body::before {
    display: none;
  }
}

/* ============================================================
   TFT Rank Up — step labels + Valorant rank-pick overrides
   ============================================================ */

.tft-rank-step {
  margin-bottom: 0;
}

.tft-step-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tft-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(122, 77, 255, .25);
  color: var(--purple-2, #9b68ff);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  flex-shrink: 0;
}

/* Rank image — square TFT assets; multiply blend removes white bg */
.tft-rank-up-form .valorant-rank-thumb-shell {
  background: transparent;
}

.tft-rank-up-form .valorant-rank-tier-img {
  max-width: 100px;
  max-height: 100px;
  mix-blend-mode: normal;
  filter: none;
}

/* Division select spacing inside the div-wrap */
.tft-rank-up-form .tft-div-wrap label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ============================================================
   TFT add-ons injected into the order card (above Add to Cart)
   ============================================================ */

.tft-addons-in-card {
  display: flex;
  flex-direction: column;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(122, 77, 255, .15);
  margin-bottom: 8px;
  gap: 0;
}

.tft-addons-in-card .tft-form-section-label--sub {
  margin-top: 0;
  margin-bottom: 6px;
}

.tft-addons-in-card .tft-addon-row {
  padding: 3px 0;
}
