/* The original input, icon, spacing and typography stay in the theme CSS. */
.betterdocs-searchform .help-search-panel {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  border: 1px solid #f1f1f1;
  box-sizing: border-box;
}

.betterdocs-searchform .help-search-panel[hidden],
.betterdocs-searchform .help-search-message[hidden] {
  display: none;
}

.betterdocs-searchform .help-search-results {
  position: static;
  width: 100%;
  min-width: 0;
  max-height: min(400px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  text-align: left;
}

.betterdocs-searchform .help-search-results li,
.betterdocs-searchform .help-search-results li:only-child {
  display: block;
  padding: 5px;
  border-bottom: 1px solid #f5f5f5;
}

.betterdocs-searchform .help-search-results li a {
  display: block;
  padding: 10px;
  color: #444;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.betterdocs-searchform .help-search-results li a:hover,
.betterdocs-searchform .help-search-results [aria-selected="true"] {
  background: #f5f5f5;
  outline: 2px solid #566e8b;
  outline-offset: -2px;
}

.betterdocs-searchform .help-search-excerpt {
  display: block;
  margin-top: 4px;
  color: #444b54;
  font-size: .8em;
  line-height: 1.5;
}

.help-search-excerpt mark {
  color: inherit;
  background: #fff0b3;
}

.betterdocs-searchform .help-search-message {
  margin: 0;
  padding: 15px;
  color: #444b54;
}

.betterdocs-searchform .help-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.betterdocs-searchform:focus-within {
  outline: 2px solid #566e8b;
  outline-offset: 2px;
}
