.autocomplete {
  width: 100%;
}

.autocomplete-input {
  width: 100%;
  position: relative;
  flex: 1;
}

.autocomplete-input:focus,
.autocomplete-input[aria-expanded=true] {
  background-color: #fff;
  outline: none;
}

[data-position=below] .autocomplete-input[aria-expanded=true] {
  border-bottom-color: transparent;
}

[data-position=above] .autocomplete-input[aria-expanded=true] {
  border-top-color: transparent;
  z-index: 2;
}

.autocomplete-result-list {
  margin: 0;
  padding: 0;
  max-height: max(300px, 50vh);
  overflow-y: auto;
  background: #fff;
  list-style: none;
}

.autocomplete-result-list::-webkit-scrollbar {
  display: none;
}

[data-position=below] .autocomplete-result-list {
  /* margin-top: -1px; */
  border-top-color: transparent;
}

[data-position=above] .autocomplete-result-list {
  /* margin-bottom: -1px; */
  border-bottom-color: transparent;
}

.autocomplete-result {
  cursor: pointer;
}

.autocomplete-result:hover,
.autocomplete-result[aria-selected=true] {
  background-color: rgba(0, 0, 0, .06)
}
