/* ═══════════════════════════════════════
   Number Stepper — inline +/- control
   ═══════════════════════════════════════ */

.number-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
}

.number-stepper__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  user-select: none;
  line-height: 1;
}

.number-stepper__btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.number-stepper__btn:active {
  background: var(--surface-4);
}

.number-stepper__input {
  width: 2.5em;
  height: 28px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: inherit;
  text-align: center;
  -moz-appearance: textfield;
}

.number-stepper__input::-webkit-outer-spin-button,
.number-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-stepper__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* ── Full-width variant for standard forms ── */

.number-stepper--full {
  display: flex;
  border-radius: var(--radius-md);
}

.number-stepper--full .number-stepper__btn {
  width: 40px;
  height: 48px;
}

.number-stepper--full .number-stepper__input {
  flex: 1;
  width: auto;
  height: 48px;
  font-size: var(--text-base);
}
