/* ── HTMLSearchSelect widget ── */

.htmlsearchselect {
  position: relative;
}

.htmlsearchselect-control {
  position: relative;
}

.htmlsearchselect-input-wrap {
  position: relative;
}

.htmlsearchselect-input {
  width: 100%;
}

.htmlsearchselect-clear {
  border-left: 0;
}

.htmlsearchselect-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 280px;
  overflow-y: auto;
  margin-top: 2px;
  padding: 4px 0;
  border: 1px solid rgba(15, 15, 63, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.htmlsearchselect.htmlsearchselect-open .htmlsearchselect-menu,
.htmlsearchselect-menu.show {
  display: block;
}

.htmlsearchselect-item {
  display: block;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--bettrackr-blue, #0f0f3f);
  white-space: normal;
}

.htmlsearchselect-item:hover,
.htmlsearchselect-item.htmlsearchselect-active {
  background: var(--bettrackr-blue, #0f0f3f);
  color: var(--bettrackr-blue) !important;
  outline: none;
}

.htmlsearchselect-item.htmlsearchselect-active .htmlsearchselect-match,
.htmlsearchselect-item:hover .htmlsearchselect-match {
  color: var(--bettrackr-green, #6ee81f);
}

.htmlsearchselect-match {
  font-weight: 700;
  color: var(--bettrackr-blue, #0f0f3f);
}

.htmlsearchselect-hint {
  list-style: none;
  padding: 8px 12px;
}

.htmlsearchselect-group {
  list-style: none;
  padding: 6px 12px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bettrackr-blue, #0f0f3f);
  background: rgba(15, 15, 63, 0.08);
  border-top: 1px solid rgba(15, 15, 63, 0.12);
  cursor: default;
}

.htmlsearchselect-group:first-child {
  border-top: none;
}

.htmlsearchselect-subtitle {
  font-size: 0.75rem;
  color: rgba(15, 15, 63, 0.5);
  margin-top: 1px;
}
