/* ============================================================
   calc-stepper.css — aicost.ai v4.1 add-on #3
   Big-thumb numeric steppers with "nice number" ballpark snapping.
   Load AFTER calc-view-cards.css.
   ============================================================ */

/* ---- Kill unusable native spinners ---- */
.calc-stepper input::-webkit-outer-spin-button,
.calc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-stepper input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---- Stepper wrap ---- */
.calc-stepper {
  display: flex; align-items: stretch; gap: 0;
  border: 1.5px solid var(--vc-border, #d1d5db);
  border-radius: 12px; overflow: hidden; background: #fff;
}
.calc-stepper input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none;
  text-align: center; font-size: 16px;          /* no iOS zoom */
  font-weight: 700; color: var(--vc-ink, #1d3a4a);
  font-variant-numeric: tabular-nums; padding: 10px 4px;
  background: transparent;
}
.calc-stepper:focus-within {
  border-color: var(--calc-accent, #00a67e);
  box-shadow: 0 0 0 3px rgba(0,166,126,.12);
}
.calc-stepper .step-btn {
  flex: 0 0 52px; min-height: 48px;             /* > 44px tap target */
  display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 800; line-height: 1;
  color: var(--calc-accent-dark, #007a5c);
  background: var(--vc-mint, #e8f5f0);
  border: none; cursor: pointer;
  touch-action: manipulation; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.calc-stepper .step-btn:active { background: var(--calc-accent, #00a67e); color: #fff; }
.calc-stepper .step-btn[disabled] { opacity: .35; cursor: default; }
.calc-stepper .step-down { border-right: 1.5px solid var(--vc-border, #d1d5db); }
.calc-stepper .step-up   { border-left: 1.5px solid var(--vc-border, #d1d5db); }

/* Snapped-value flash feedback */
.calc-stepper.snapped input { animation: stepFlash .25s ease; }
@keyframes stepFlash { 0% { background: var(--vc-peach, #fdf3ec); } 100% { background: transparent; } }

/* ---- Bonus: thumb-friendly range sliders (e.g. #al-turns) ---- */
.calc-page input[type=range] { -webkit-appearance: none; appearance: none;
  height: 34px; background: transparent; touch-action: pan-x; }
.calc-page input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px; background: #e5e7eb; }
.calc-page input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px;
  border-radius: 50%; background: var(--calc-accent, #00a67e);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.calc-page input[type=range]::-moz-range-track {
  height: 8px; border-radius: 999px; background: #e5e7eb; }
.calc-page input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--calc-accent, #00a67e);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }

@media (prefers-reduced-motion: reduce) {
  .calc-stepper.snapped input { animation: none; }
}
