/* A filter's values in a menu under its chip: a search on top, then the values, the chosen one on a pale row with a
   check. */
.wi-filter-select__popover {
  width: min(18rem, calc(100vw - 2 * var(--space-4)));
  max-height: min(24rem, 70vh, var(--wi-popover-room, 100vh));
  overflow-y: auto;
}
.wi-filter-select__search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background-color: var(--background-sunken);
}
/* Focused, it turns white within a thin border: visible, without the heavy ring of a page's field. */
.wi-filter-select__search:focus-within {
  background-color: var(--background-surface);
  box-shadow: inset 0 0 0 var(--border-1) var(--border-strong);
}
.wi-filter-select__search-icon {
  flex: none;
  width: var(--size-icon-sm);
  height: var(--size-icon-sm);
  color: var(--text-tertiary);
}
.wi-filter-select__search-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  /* The field's size hook (surface.css): 16px on a touch screen, so iOS doesn't zoom. */
  font-size: var(--wi-field-font-size, var(--font-size-sm));
  line-height: var(--wi-field-line-height, var(--font-line-height-sm));
}
.wi-filter-select__search-input::placeholder {
  color: var(--text-tertiary);
}
.wi-filter-select__option {
  text-decoration: none;
}
.wi-filter-select__separator {
  height: var(--border-1);
  margin: var(--space-1) var(--space-2);
  background-color: var(--border-subtle);
}
/* A value's note after its name (a closed agency's "Closed"): small and grey, as the mockup draws it. */
.wi-filter-select__note {
  flex: none;
  color: var(--text-tertiary);
  font-size: var(--font-size-xs);
  line-height: var(--font-line-height-xs);
  font-weight: var(--font-weight-regular);
}
/* Phone: as wide as the page, so a long agency name reads in full. */
@media (max-width: 767.98px) {
  .wi-filter-select__popover {
    width: calc(100vw - 2 * var(--space-4));
  }
}
/* In a phone's sheet (SheetComponent): the search stays above the values, which scroll on their own under it, each one a
   finger's height (48px) with its check at the end. */
.wi-sheet .wi-filter-select__search {
  flex: none;
  margin-bottom: var(--space-2);
}
.wi-sheet .wi-filter-select__options {
  flex: 1;
  min-height: 0;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.wi-sheet .wi-popover__item.wi-filter-select__option {
  min-height: var(--size-control-lg);
  padding-inline: var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  line-height: var(--font-line-height-base);
}
.wi-sheet .wi-filter-select__option .wi-menu-option__check {
  width: var(--size-icon-md);
  height: var(--size-icon-md);
}
