.combobox-list {
  position: relative;
}

.combobox .group {
  display: inline-flex;
}

.combobox .group input,
.combobox .group button {
  background-color: white;
  color: black;
  box-sizing: border-box;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  vertical-align: bottom;
  border: 1px solid gray;
}

.combobox .group input {
  width: 10.75rem;
  border-right: none;
  outline: none;
  font-size: 87.5%;
  padding: 0.1em 0.3em;
}

.combobox .group button {
  width: 1.25rem;
  border-left: none;
  outline: none;
  font-size: 70%;
}

.combobox .group.focus {
  outline: 2px solid black;
  outline-offset: 1px;
}

ul[role="listbox"] {
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  top: 1.75rem;
  list-style: none;
  background-color: white;
  display: none;
  box-sizing: border-box;
  border: 1px gray solid;
  border-top: none;
  max-height: 12em;
  width: 12rem;
  overflow: scroll;
  overflow-x: hidden;
  font-size: 87.5%;
}

ul[role="listbox"] li[role="option"] {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  display: block;
  margin: 0;
  padding: 0.1em 0.3em;
}

/* focus and hover styling */

[role="listbox"].focus [role="option"][aria-selected="true"] {
  background-color: #DEF;
  border-color: #8CCBF2;
}

@media (forced-colors: active), (-ms-high-contrast: active) {
  [role="listbox"].focus [role="option"][aria-selected="true"] {
    -ms-high-contrast-adjust: none; /* disable the backgrounds that Edge puts behind text */
    background-color: highlight;
    color: highlighttext;
    border-color: currentcolor;
  }
}

[role="listbox"] li[role="option"]:hover {
  background-color: #DEF;
}
