/* ===================================
   AGE STEPPER
   The age between a round minus and plus button (age-stepper.ejs), after the entry-age stepper of
   the homepage design. Themeable per tariff through --tc (border/hover fill), --tc-soft (button
   fill, focus ring) and --tc-ink (button glyph); without them it uses the page accent.
   =================================== */

.age-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(37, 39, 33, 0.2);
  border-radius: 999px;
  background: #fff;
}
.age-stepper:focus-within {
  border-color: var(--tc, #0e8377);
  box-shadow: 0 0 0 4px var(--tc-soft, rgba(14, 131, 119, 0.16));
}

.age-stepper__button {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--tc-soft, #e3f2ef);
  color: var(--tc-ink, #0c7568);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.age-stepper__button:hover {
  background: var(--tc, #0e8377);
  color: #fff;
}
.age-stepper__button:focus-visible {
  outline: 3px solid var(--tc, #2bc0ae);
  outline-offset: 2px;
}

.age-stepper__input {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: #252721;
  -moz-appearance: textfield;
  appearance: textfield;
}
.age-stepper__input::-webkit-outer-spin-button,
.age-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.age-stepper__input:focus {
  outline: none;
}

/* Screen-reader hint (visually hidden). */
.age-stepper__hint {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .age-stepper__button {
    transition: none;
  }
}
