/* Autocomplete lists: content search (search-suggestions-v1.js) and document names (document-suggestions-v1.js) */
.search-suggestions-anchor {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1010;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px 0;
    background-color: var(--white);
    border: solid 1px var(--grey);
    border-radius: calc(var(--borderRadius) * 2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-suggestions[hidden] {
    display: none;
}

.search-suggestions-header {
    padding: 8px 14px 4px;
    border-top: solid 1px var(--greyLight);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
}

.search-suggestions-header:first-child {
    border-top: none;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    cursor: pointer;
    line-height: 1.35;
}

.search-suggestion:hover,
.search-suggestion.active {
    background-color: var(--greyLight);
}

.search-suggestion-icon {
    flex: none;
    color: #888;
}

.search-suggestion-text {
    min-width: 0;
    font-weight: 600;
    color: #222;
}

/* Typed words in normal weight, the completion in bold */
.search-suggestion-text .highlight {
    font-weight: 400;
    background-color: transparent;
}

.search-suggestion-detail {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 0.85rem;
    color: #666;
}

.search-suggestion-document .search-suggestion-text,
.search-suggestion-article .search-suggestion-text {
    color: var(--blue);
}

/* Color of the document type (document-suggestions-v1.js) */
.search-suggestion-type {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
