/* Terminology combobox (terminology/widgets/combobox.html + combobox.js). Uses app.css tokens. */
.combobox { position: relative; }
.combobox__control { position: relative; }
.combobox__input[type="text"] { padding-right: 2.4rem; }
.combobox.is-loading .combobox__control::after {
  content: ""; position: absolute; right: 2.3rem; top: 19px; width: .9rem; height: .9rem; margin-top: -.45rem;
  border: 2px solid var(--brand-sub); border-top-color: var(--brand); border-radius: 50%;
  animation: th-spin .8s linear infinite;
}
.combobox__clear {
  position: absolute; right: .3rem; top: 19px; transform: translateY(-50%);
  width: 1.9rem; height: 1.9rem; border: 0; border-radius: var(--radius); background: none;
  color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.combobox__clear:hover { background: var(--neutral-tint); color: var(--text); }
.combobox__listbox {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px);
  max-height: 20rem; overflow-y: auto; margin: 0; padding: .25rem 0; list-style: none;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
/* Inside the modal (overflow: auto) keep the popup in the flow so it is not clipped. */
.modal .combobox__listbox { position: static; margin-top: .25rem; box-shadow: var(--shadow); }
.combobox__option {
  display: block; padding: .45rem .75rem; cursor: pointer; line-height: 1.35;
  border-left: 3px solid transparent;
}
.combobox__option:hover { background: var(--neutral-tint); }
.combobox__option.is-active, .combobox__option[aria-selected="true"] {
  background: var(--brand-tint); border-left-color: var(--brand); color: var(--brand-dark);
}
.combobox__term { font-weight: 550; }
.combobox__empty { padding: .5rem .75rem; color: var(--muted); font-style: italic; }
.combobox__meta { margin: .2rem 0 0; color: var(--muted); font-size: .8125rem; }
.combobox__meta:empty { display: none; }
.combobox__hint { display: none; margin: .2rem 0 0; color: var(--amber); font-weight: 600; font-size: .8125rem; }
.combobox.needs-choice .combobox__hint { display: block; }
.combobox.needs-choice .combobox__input { border-color: var(--amber); }
@media (forced-colors: active) {
  .combobox__option.is-active { outline: 2px solid Highlight; }
}
