.search-box[data-search-autocomplete] {
    position: relative;
}

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

.search-suggestions {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 1080;
    max-height: min(420px, 62vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    text-align: right;
}

.search-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    border-radius: 9px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.search-suggestion:hover,
.search-suggestion.is-active {
    background: rgba(0, 0, 0, 0.045);
    color: #222;
}

.search-suggestion__main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 650;
}

.search-suggestion__meta {
    flex: 0 0 auto;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #888;
    font-size: 11px;
}

.search-suggestion--search-all {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 0 0 9px 9px;
    color: var(--theme-search, var(--theme-page-accent));
}

.search-suggestion--search-all .search-suggestion__main {
    font-weight: 700;
}

@media (max-width: 767px) {
    .search-suggestions {
        top: calc(100% + 5px);
        max-height: min(360px, 58vh);
        padding: 5px;
        border-radius: 12px;
    }

    .search-suggestion {
        padding: 9px 10px;
    }

    .search-suggestion__main {
        font-size: 12px;
    }

    .search-suggestion__meta {
        max-width: 38%;
        font-size: 10px;
    }
}
