/* Scoped header autocomplete; not part of the custom.css minified bundle. */
.amt-search-suggest-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  min-width: min(320px, 90vw);
  max-height: min(410px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 1060;
  padding: 6px 0;
  border: 1px solid #dedfe5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  color: #343a40;
}
.amt-search-suggest-panel[hidden] { display: none !important; }
.amt-search-suggest-heading {
  padding: 8px 12px 4px;
  color: #6c757d;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.amt-search-suggest-option {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .9rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.amt-search-suggest-option i { flex: 0 0 16px; color: #e74a3b; }
.amt-search-suggest-option span { overflow-wrap: anywhere; }
.amt-search-suggest-option:hover,
.amt-search-suggest-option:focus,
.amt-search-suggest-option[aria-selected="true"] {
  outline: 0;
  background: #f5f6fa;
}
html:has(#dark_theme:not([disabled])) .amt-search-suggest-panel {
  border-color: #4d4d4d;
  background: #222;
  color: #f8f9fc;
}
html:has(#dark_theme:not([disabled])) .amt-search-suggest-heading { color: #aaa; }
html:has(#dark_theme:not([disabled])) .amt-search-suggest-option:hover,
html:has(#dark_theme:not([disabled])) .amt-search-suggest-option:focus,
html:has(#dark_theme:not([disabled])) .amt-search-suggest-option[aria-selected="true"] {
  background: #333;
}
@media (max-width: 575px) {
  .amt-search-suggest-panel { min-width: 0; max-height: 55vh; }
}
