/* Search field inserted by the select-search Stimulus controller inside a
   wa-select listbox. The wrapper is light DOM slotted into the component, so
   these selectors style the host content directly — no shadow-part reaching. */
.select-search {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  padding-block-end: 0.25em;
  background: var(--wa-color-surface-raised);
}

.select-search__input {
  width: 100%;
  min-width: 0;
  padding: 0.45em 0.65em;
  border-color: var(--wa-form-control-border-color);
  border-radius: var(--wa-form-control-border-radius);
  border-style: var(--wa-form-control-border-style);
  border-width: var(--wa-form-control-border-width);
  background: var(--wa-form-control-background-color);
  color: var(--wa-form-control-value-color);
  font: inherit;
  line-height: var(--wa-form-control-value-line-height);
  outline: var(--wa-focus-ring-style) var(--wa-focus-ring-width) transparent;
  outline-offset: var(--wa-focus-ring-offset);
  user-select: text;
}

.select-search__input:focus {
  outline-color: var(--wa-color-focus);
}

.select-search__input::placeholder {
  color: var(--wa-form-control-placeholder-color);
}

.select-search__empty {
  padding: 0.5em 0.65em 0.25em;
  color: var(--wa-color-text-quiet);
  font-size: var(--wa-font-size-smaller);
}
