/* Scoped to the currently rendered qmh_quince search form.
   Preserve the Flatsome autocomplete container as its own scroll target. */
.qmh-header .qmh-search form.searchform {
  position: relative;
}

.qmh-header .qmh-search form.searchform .live-search-results {
  position: absolute;
  inset: 100% 0 auto;
  max-height: none;
  overflow: visible;
}

.qmh-header .qmh-search form.searchform .autocomplete-suggestions {
  max-height: min(300px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #dedede;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.qmh-header .qmh-search input[type="search"]:focus-visible {
  outline: 2px solid #21201f;
  outline-offset: -2px;
}
