.stepper {
  display: flex;
  align-items: flex-start;
}

.stepper__item {
  position: relative;
  display: grid;
  flex: 1;
  justify-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.stepper__item::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  right: 50%;
  height: 3px;
  background: var(--gray-200);
}

.stepper__item::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  right: 0;
  height: 3px;
  background: var(--gray-200);
}

.stepper__item:first-child::before,
.stepper__item:last-child::after {
  display: none;
}

.stepper__dot {
  z-index: var(--z-base);
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--radius-circle);
  background: var(--gray-200);
  color: var(--gray-600);
  font-family: var(--font-numeric);
  font-weight: 700;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
}

.stepper__item--done::before,
.stepper__item--done::after {
  background: var(--color-success-500);
}

.stepper__item--done .stepper__dot {
  background: var(--color-success-500);
  color: var(--text-on-brand);
}

.stepper__item--current .stepper__dot {
  background: var(--accent-teal-500);
  color: var(--text-on-brand);
  box-shadow: 0 0 0 4px var(--accent-teal-50);
}
