.glossary-autocomplete {
  position: relative;
}

.glossary-autocomplete__list {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d0d7de;
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
  max-height: 18rem;
  overflow-y: auto;
}

.glossary-autocomplete__option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #eef1f4;
}

.glossary-autocomplete__option:last-child {
  border-bottom: 0;
}

.glossary-autocomplete__option.is-active,
.glossary-autocomplete__option:hover {
  background: #f3f7fb;
}

.glossary-autocomplete__title {
  font-weight: 600;
  color: #0d3b66;
}

.glossary-autocomplete__definition {
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.35;
}

.glossary-autocomplete__empty {
  padding: 0.85rem;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.4;
}
