.searchable-filter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  text-align: left;
  justify-content: space-between;
  white-space: normal;
  overflow-wrap: anywhere;
}
.searchable-filter > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.filter-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--surface-border, #dbe5e0);
  border-radius: 12px;
  background: var(--brand-surface, #fff);
  color: var(--surface-ink, #193e40);
  box-shadow: 0 12px 40px
    color-mix(in srgb, var(--brand-ink, #193e40) 15%, transparent);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
  font: inherit;
}
.filter-popover input {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--surface-border, #dbe5e0);
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: inherit;
  background: var(--brand-surface, #fff);
  box-sizing: border-box;
}
.filter-options {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
}
.filter-option {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: var(--brand-surface, #fff);
  color: inherit;
  padding: 10px;
  padding-inline-end: 32px;
  border-radius: 6px;
  min-height: 40px;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.filter-option[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset-inline-end: 14px;
  top: calc(50% - 7px);
  width: 6px;
  height: 11px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.filter-option:hover,
.filter-option[aria-selected='true'] {
  background: color-mix(
    in srgb,
    var(--brand-accent, #0f766e) 8%,
    var(--brand-surface, #fff)
  );
  color: var(--brand-readable-accent, #0f766e);
}
.filter-option:focus-visible,
.filter-popover input:focus-visible {
  outline: 2px solid var(--brand-accent, #0f766e);
  outline-offset: -2px;
}
.filter-option:disabled {
  opacity: 0.45;
  cursor: default;
}
.filter-options > p {
  margin: 0;
  padding: 16px 10px;
  font-size: 14px;
}
.filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
