/* ============================================================================
   HV Bundle Picker — ticket quantity stepper  [−] [ 1 ticket ] [+]
   + participate button "Enter now for £X (›)".
   Pairs with templates/range-slider.php + assets/js/qty-stepper.js.
   Uses the Highland Vault theme tokens (--hv-*) with fallbacks.
   ========================================================================== */

/* Ticket quantity box — design: [−] [ 1 ticket ] [+]
   Theme override lottery-for-woocommerce/single-product/add-to-cart/range-slider.php
   (+ assets/js/qty-stepper.js). The plugin slider is kept but hidden.
   Colours are FIXED (white box, light border, dark number) — the buy box is the
   white variant, so the dark-theme tokens (--hv-surface etc.) must not leak in. */
body.hv-theme .hv-qty-stepper .hv-qty-stepper__slider { display: none !important; }
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-content { display: flex; align-items: center; gap: 12px; padding-top: 0; }
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn {
  flex: 0 0 48px; width: 48px !important; height: 48px !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid #D7DCE8 !important; border-radius: 10px !important;
  background-color: #fff !important; box-shadow: none !important;
  /* −/+ icon: 16px, centred (the general rule above draws it at 20px) */
  background-size: 16px 16px !important; background-position: center !important; background-repeat: no-repeat !important;
  color: transparent !important; font-size: 0 !important;
}
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn {
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
}
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn:hover { border-color: var(--hv-primary, #065BE0) !important; background-color: rgba(var(--hv-primary-rgb, 6, 91, 224), .05) !important; }
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn:active { transform: scale(0.94); background-color: rgba(var(--hv-primary-rgb, 6, 91, 224), .10) !important; }
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn:focus-visible { outline: none; border-color: var(--hv-primary, #065BE0) !important; box-shadow: var(--hv-ring, 0 0 0 3px rgba(6, 91, 224, 0.4)) !important; }
/* At the min / max the button greys out (set by qty-stepper.js) */
body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn.is-limit { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
@media (max-width: 480px) {
  body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-content { gap: 8px; }
  body.hv-theme .hv-qty-stepper .lty-lottery-range-slider-btn { flex-basis: 46px; width: 46px !important; height: 46px !important; }
  body.hv-theme .hv-qty-stepper__field { height: 46px; }
}
body.hv-theme .hv-qty-stepper__field {
  flex: 1 1 auto; min-width: 0; height: 48px; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px;
  background: #fff; border: 1px solid #D7DCE8; border-radius: 10px; box-shadow: none;
  cursor: text; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
body.hv-theme .hv-qty-stepper__field:hover { border-color: var(--hv-primary, #065BE0); }
body.hv-theme .hv-qty-stepper__field:focus-within { border-color: var(--hv-primary, #065BE0); box-shadow: var(--hv-ring, 0 0 0 3px rgba(6, 91, 224, 0.4)); }
body.hv-theme .hv-qty-stepper input.hv-qty-stepper__input {
  /* width tracks the digit count (set by qty-stepper.js) so "1 ticket" stays centred */
  width: calc(var(--hv-qty-ch, 1) * 1ch + 0.15em) !important; min-width: 0; max-width: 8ch;
  height: auto !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none;
  text-align: right; color: #111827 !important;
  font-family: inherit; font-size: 22px !important; font-weight: var(--hv-fw-bold, 700) !important; line-height: 1;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
body.hv-theme .hv-qty-stepper input.hv-qty-stepper__input::-webkit-outer-spin-button,
body.hv-theme .hv-qty-stepper input.hv-qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.hv-theme .hv-qty-stepper__unit { color: #4B5563; font-size: 15px; font-weight: var(--hv-fw-regular, 400); line-height: 1; white-space: nowrap; }

/* Participate button → "Enter now for £X" + arrow circle on the right (text set
   by qty-stepper.js, which adds .hv-enter). */
body.hv-theme .lty-participate-now button.hv-enter {
  position: relative; width: 100%; min-height: 56px; margin-top: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 64px !important; border-radius: 12px !important;
  font-size: var(--hv-fs-h4, 1.125rem) !important; font-weight: var(--hv-fw-bold, 700) !important; text-transform: none; letter-spacing: 0;
}
body.hv-theme .lty-participate-now button.hv-enter .hv-enter__label { font-variant-numeric: tabular-nums; }
body.hv-theme .lty-participate-now button.hv-enter .hv-enter__arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); color: #fff; transition: transform 0.15s ease, background-color 0.15s ease;
}
body.hv-theme .lty-participate-now button.hv-enter:hover .hv-enter__arrow { background: rgba(255, 255, 255, 0.3); transform: translate(3px, -50%); }
