.wash-picker {
  display: none;
}

.wash-motion .plan[data-plan-card]::before {
  position: absolute;
  inset: -2px 23px auto auto;
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: #ff812e;
  content: "";
  pointer-events: none;
}

.wash-motion .plan[data-plan-card]:focus {
  outline: 3px solid #a33a0c;
  outline-offset: 4px;
}

.wash-motion .plan .btn .arrow {
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 650px) {
  .wash-picker {
    position: sticky;
    top: var(--wash-header-height, 68px);
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 12px;
    padding: 5px;
    border: 1px solid #f3c6a9;
    border-radius: 14px;
    background: #fff7f0;
    box-shadow: 0 5px 14px #122a411a;
  }

  .wash-picker a {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding-inline: 4px;
    border-radius: 9px;
    color: #122a41;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
  }

  .wash-picker a[aria-current="location"] {
    background: #ffb47a;
    color: #122a41;
  }

  .wash-picker a:focus-visible {
    outline: 2px solid #a33a0c;
    outline-offset: -2px;
  }

  .wash-motion .plan[data-plan-card] {
    /* The site's 100px scroll padding already accounts for part of the offset. */
    scroll-margin-top: max(14px, calc(var(--wash-header-height, 68px) - 26px));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .wash-motion .plan[data-wash-entered]:not(:focus-within) {
    animation: spark-wash-enter 450ms cubic-bezier(.2, .65, .25, 1) var(--wash-enter-delay, 0ms) both;
  }

  .wash-motion .plan[data-wash-entered]:not(:focus-within)::before {
    transform-origin: right;
    animation: spark-wash-accent 550ms ease-out var(--wash-enter-delay, 0ms) both;
  }

  .wash-motion .plan .btn .arrow {
    transition: translate 160ms ease;
  }

  .wash-motion .plan .btn:focus-visible .arrow {
    translate: 3px -2px;
  }

  .wash-motion .plan .btn:active .arrow {
    translate: 3px 0;
  }

  .wash-picker a {
    transition: background-color 150ms ease;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .wash-motion .plan .btn:hover .arrow {
    translate: 3px -2px;
  }
}

@media (min-width: 651px) {
  .wash-motion .plan[data-plan-card="best"] { --wash-enter-delay: 75ms; }
  .wash-motion .plan[data-plan-card="good"] { --wash-enter-delay: 150ms; }
}

@keyframes spark-wash-enter {
  from { translate: 0 15px; opacity: .87; }
  to { translate: 0; opacity: 1; }
}

@keyframes spark-wash-accent {
  from { transform: scaleX(.18); }
  to { transform: scaleX(1); }
}
