/* Follow the existing case selection for both scroll and button navigation. */
#promise .aftercare-steps.aftercare-segments {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px;
  border: 1px solid #d5d8dd;
  border-radius: 14px;
  background: #e5e7eb;
}
#promise .aftercare-segments::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 10px;
  background: #253128;
  box-shadow: 0 2px 5px #15231514;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(0);
  transition: transform 280ms cubic-bezier(.22,.68,.25,1);
}
#promise[data-aftercare-active] .aftercare-segments::before { visibility: visible; }
#promise[data-aftercare-active="1"] .aftercare-segments::before { transform: translateX(100%); }
#promise[data-aftercare-active="2"] .aftercare-segments::before { transform: translateX(200%); }
#promise .aftercare-steps.aftercare-segments button.action-link {
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin: 0;
  padding: 9px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #454c46;
  transition: color 180ms ease;
}
#promise .aftercare-steps.aftercare-segments button.action-link[aria-current="step"] {
  color: #fff;
}
#promise .aftercare-steps.aftercare-segments button.action-link:focus-visible {
  outline: 2px solid #df542e;
  outline-offset: -2px;
}
#promise .aftercare-steps.aftercare-segments button.action-link > span {
  color: inherit;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  #promise .aftercare-segments::before,
  #promise .aftercare-steps.aftercare-segments button.action-link { transition: none; }
}
