/* Quantity Steppers Container */
.rlb-quantity-steppers {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
}

/* Live Region (visually hidden) */
.rlb-quantity-stepper__live-region {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Individual Stepper */
.rlb-quantity-stepper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Label */
.rlb-quantity-stepper__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-color-strong);
}

/* Controls Row */
.rlb-quantity-stepper__controls {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  width: fit-content;
}

.rlb-quantity-stepper__controls:focus-within {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 1px var(--focus-color);
}

/* Buttons */
.rlb-quantity-stepper__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface-muted);
  color: var(--text-color-strong);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.rlb-quantity-stepper__btn:hover:not([aria-disabled="true"]) {
  background: var(--gray-200);
}

.rlb-quantity-stepper__btn:active:not([aria-disabled="true"]) {
  background: var(--border-color);
}

.rlb-quantity-stepper__btn:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -2px;
  z-index: 1;
}

/* Disabled State */
.rlb-quantity-stepper__btn[aria-disabled="true"] {
  color: var(--text-color-faint);
  cursor: not-allowed;
  background: var(--background-color);
}

/* Number Input */
.rlb-quantity-stepper__input {
  width: 56px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color-strong);
  background: var(--surface-color);
  padding: 0;
  -moz-appearance: textfield;
}

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

.rlb-quantity-stepper__input:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -2px;
  z-index: 1;
}

/* Focus indicators - 3:1 contrast ratio */
*:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}
