body.tmc24-theme.single-product {
  padding-bottom: 0 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid,
body.tmc24-theme.single-product .tmc79-entry-bundles__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  padding-bottom: 0 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid::-webkit-scrollbar,
body.tmc24-theme.single-product .tmc79-entry-bundles__grid::-webkit-scrollbar {
  height: 6px !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid::-webkit-scrollbar-thumb,
body.tmc24-theme.single-product .tmc79-entry-bundles__grid::-webkit-scrollbar-thumb {
  border-radius: 999px !important;
  background: #c7d7e8 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle,
body.tmc24-theme.single-product .tmc79-entry-bundle {
  min-width: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
  scroll-snap-align: none !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 20px !important;
  z-index: 1400 !important;
  display: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: min(720px, calc(100vw - 40px)) !important;
  min-height: 68px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(210, 224, 239, .92) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 18px 54px rgba(7, 20, 38, .22), 0 0 0 1px rgba(255, 255, 255, .62) inset !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy[hidden] {
  display: none !important;
}

body.tmc24-theme.single-product.tmc-product-game-page {
  padding-bottom: 0 !important;
}

body.tmc24-theme.single-product.tmc-product-game-page .tmc24-mobile-buy {
  display: none !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__price {
  min-width: 112px !important;
  gap: 2px !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__price strong {
  color: #071426 !important;
  font-size: 20px !important;
  font-weight: 950 !important;
  letter-spacing: -.03em !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__price small {
  color: #5f6e82 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  text-transform: uppercase !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
  display: grid !important;
  grid-template-columns: minmax(154px, max-content) minmax(220px, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  flex: 1 !important;
  min-width: 0 !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
  display: grid !important;
  grid-template-columns: 38px minmax(78px, max-content) 38px !important;
  align-items: center !important;
  overflow: visible !important;
  border: 1px solid #d6e3f1 !important;
  border-radius: 14px !important;
  background: #f7fbff !important;
  min-width: 154px !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__qty button,
body.tmc24-theme.single-product .tmc24-mobile-buy__qty input {
  height: 44px !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__qty button {
  border: 0 !important;
  background: #fff !important;
  color: #1677ff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy__qty input {
  width: auto !important;
  min-width: 78px !important;
  max-width: 104px !important;
  border: 0 !important;
  background: transparent !important;
  color: #071426 !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 950 !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  padding: 0 6px !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy [data-tmc25-mobile-submit] {
  min-height: 46px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 950 !important;
}

body.tmc24-theme.single-product .tmc24-mobile-buy [data-tmc25-mobile-submit]:disabled {
  cursor: not-allowed !important;
  opacity: .62 !important;
  filter: grayscale(.12) !important;
}

@media (max-width: 760px) {
  body.tmc24-theme.single-product {
    padding-bottom: 98px !important;
    overflow-x: hidden !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy {
    display: grid !important;
    grid-template-columns: 66px minmax(0, 1fr) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    min-height: 70px !important;
    padding: 9px 10px !important;
    border-radius: 16px !important;
    gap: 8px !important;
    transform: none !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy[hidden] {
    display: none !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__price {
    min-width: 66px !important;
    width: 66px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__price strong {
    font-size: 16px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    min-width: 0 !important;
    width: 112px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty input {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    font-size: 15px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy [data-tmc25-mobile-submit] {
    width: 100% !important;
    min-width: 0 !important;
    min-width: 0 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }
}

/* Stage 8 mobile guard: the sticky quantity must fit large admin-defined defaults
   such as 1000 or 5000 without overlapping the Add to basket button. */
@media (max-width: 760px) {
  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: minmax(148px, max-content) minmax(0, 1fr) !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
    width: 148px !important;
    min-width: 148px !important;
    grid-template-columns: 32px minmax(76px, 1fr) 32px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty input {
    min-width: 76px !important;
    width: 100% !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }
}

@media (max-width: 420px) {
  body.tmc24-theme.single-product .tmc24-mobile-buy {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: minmax(142px, max-content) minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
    width: 142px !important;
    min-width: 142px !important;
    grid-template-columns: 30px minmax(74px, 1fr) 30px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty input {
    min-width: 74px !important;
  }
}

@media (max-width: 350px) {
  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: minmax(142px, max-content) minmax(104px, 1fr) !important;
  }
}

/* Final layout lock: product page purchase form must stay as one stacked panel.
   Packs and automatic volume discounts are separate sections; quantity controls
   remain inside the same form on desktop and mobile. */
body.tmc24-theme.single-product .tmc25-ticket-buy-form {
  display: block !important;
  max-width: 500px !important;
  width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles {
  display: block !important;
  padding: 18px 18px 14px !important;
  border-bottom: 1px solid #e5edf6 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid.tmc79-entry-bundles__grid--packs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  overflow: visible !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid.tmc79-entry-bundles__grid--discounts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  overflow: visible !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts {
  margin: 16px 0 0 !important;
  padding: 14px !important;
  border: 1px solid rgba(22, 135, 255, .18) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #f4faff 0%, #ffffff 100%) !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head span {
  color: #071426 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head small {
  color: #60758d !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: right !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle {
  min-height: 104px !important;
  padding: 13px 11px 11px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle strong {
  font-size: 18px !important;
  line-height: 1.08 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle__price {
  margin-top: 8px !important;
  font-size: 27px !important;
  line-height: .96 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border-color: rgba(22, 135, 255, .24) !important;
  background: #f8fbff !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle__badge,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle__badge {
  display: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle strong {
  font-size: 14px !important;
  line-height: 1.05 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle__price {
  margin-top: 6px !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle:hover,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle:focus-visible,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle.is-highlighted,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle.is-active,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle.is-highlighted.is-active {
  box-shadow: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle:hover,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle:focus-visible {
  transform: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle.is-active {
  border-color: #1687ff !important;
  background: #f7fbff !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle::before {
  box-shadow: none !important;
  filter: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle.is-active,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle.is-highlighted {
  background: #ffffff !important;
  background-image: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle.is-active,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle.is-highlighted {
  background: #f8fbff !important;
  background-image: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle__badge,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle__meta {
  box-shadow: none !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle strong,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle__price,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle__badge,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundle__meta,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head span,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head small {
  text-shadow: none !important;
  filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-step,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-step-content,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-slider,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-total-row,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-submit-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-step {
  padding: 18px 20px 0 !important;
}

@media (max-width: 560px) {
  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles {
    padding: 14px 12px 12px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid.tmc79-entry-bundles__grid--packs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle {
    min-height: 86px !important;
    padding: 9px 7px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle strong {
    font-size: 13px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle__price {
    font-size: 18px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts {
    margin-top: 12px !important;
    padding: 11px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head {
    display: block !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-bulk-discounts__head small {
    display: block !important;
    margin-top: 3px !important;
    text-align: left !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid.tmc79-entry-bundles__grid--discounts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle {
    min-height: 70px !important;
    padding: 9px 8px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle strong {
    font-size: 12px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--discounts .tmc79-entry-bundle__price {
    font-size: 16px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-step {
    padding: 14px 16px 0 !important;
  }
}

@media (max-width: 390px) {
  body.tmc24-theme.single-product .tmc24-mobile-buy__price small {
    display: none !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__price {
    min-width: 56px !important;
    width: 56px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 6px !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
    width: 108px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy [data-tmc25-mobile-submit] {
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 420px) {
  body.tmc24-theme.single-product .tmc25-ticket-buy-form {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid.tmc79-entry-bundles__grid--packs {
    gap: 6px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle {
    min-height: 82px !important;
    padding: 8px 6px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle strong {
    font-size: 12px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle__price {
    font-size: 16px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc79-entry-bundles__grid--packs .tmc79-entry-bundle__meta {
    padding-right: 5px !important;
    padding-left: 5px !important;
    font-size: 8px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy {
    left: 20px !important;
    right: 20px !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__price {
    min-width: 50px !important;
    width: 50px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__qty {
    width: 96px !important;
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  }
}

@media (max-width: 350px) {
  body.tmc24-theme.single-product .tmc24-mobile-buy {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.tmc24-theme.single-product .tmc24-mobile-buy__controls {
    grid-template-columns: minmax(132px, max-content) minmax(120px, 1fr) !important;
  }
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-slider__head strong,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-stepper strong,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-total-row small {
  font-variant-numeric: tabular-nums !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-stepper {
  grid-template-columns: 42px minmax(78px, max-content) 42px !important;
  width: max-content !important;
  max-width: 100% !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-stepper strong {
  min-width: 78px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
}

body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-row,
body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-total-row {
  min-width: 0 !important;
}

@media (max-width: 480px) {
  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-row {
    flex-wrap: wrap !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-stepper {
    grid-template-columns: 40px minmax(86px, max-content) 40px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-stepper strong {
    min-width: 86px !important;
  }
}

/* Mobile form containment: keep the main product CTA and slider inside the
   purchase panel. Older product CSS gives the button its own width/margins;
   on narrow screens that pushes the CTA past the right edge. */
@media (max-width: 760px) {
  body.tmc24-theme.single-product .tmc25-ticket-buy-form,
  body.tmc24-theme.single-product .tmc25-ticket-buy-form * {
    box-sizing: border-box !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-step {
    padding: 14px 16px 0 !important;
    overflow: hidden !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-quantity-range {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-right: 12px !important;
    margin-left: 12px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-total-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 4px !important;
    text-align: center !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-submit-row {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 16px 16px !important;
  }

  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-submit-row .tmc25-buy-submit.single_add_to_cart_button,
  body.tmc24-theme.single-product .tmc25-ticket-buy-form .tmc25-buy-submit.single_add_to_cart_button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}
