/* One anchored dropdown treatment for the vehicle and subscription-routine filters. */
.plan-select {
  position: relative;
  min-width: 0;
}
.plan-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms,
    box-shadow 160ms;
}
.plan-select-trigger:hover {
  border-color: var(--primary);
}
.plan-select-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.plan-select-trigger[aria-expanded="true"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.plan-select-chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-right: 3px;
  margin-top: -4px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms;
}
.plan-select-trigger[aria-expanded="true"] .plan-select-chevron {
  transform: translateY(4px) rotate(225deg);
}
.plan-select-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #cbded4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px #17352f1f;
  transform-origin: top;
}
.plan-select.opens-above .plan-select-list {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom;
}
.plan-select-option {
  position: relative;
  min-height: 44px;
  padding: 11px 36px 11px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.plan-select-option:hover,
.plan-select-option.is-active {
  background: #edf6f1;
}
.plan-select-option[aria-selected="true"] {
  color: var(--primary);
  background: #e0f2eb;
  font-weight: 600;
}
.plan-select-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 11px;
}
.plan-select-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}
@keyframes plan-select-in {
  from {
    opacity: 0;
    transform: translateY(-3px) scaleY(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plan-select-list:not([hidden]) {
    animation: plan-select-in 140ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plan-select-trigger,
  .plan-select-chevron {
    transition: none;
  }
}

.plan-select-list.is-closing {
  pointer-events: none;
  animation: plan-select-out 120ms ease forwards;
}
@keyframes plan-select-out {
  to {
    opacity: 0;
    transform: translateY(-3px) scaleY(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  .plan-select-list.is-closing {
    animation: none;
  }
}
