/*
 * Suggestions under the header search boxes while typing (public/frontend/assets/js/search-suggest.js).
 */
.has-search-suggest {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 10050;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
}

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

.search-suggest__group {
    padding: 10px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.search-suggest__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #232e35;
    font-size: 14px;
    text-decoration: none;
}

.search-suggest__option img {
    width: 48px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.search-suggest__option[aria-selected="true"],
.search-suggest__option:hover {
    background: #faf6ef;
    color: #000000;
}

.search-suggest__name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-suggest__meta {
    color: #6b7280;
    font-size: 12px;
}

.search-suggest__all {
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #000000;
}

/* The header search box clips its content while it slides open; once open, let the list hang below it. */
.header-search__wrapper.show {
    overflow: visible;
}
