#site-chrome {
    overflow: visible;
}

.search-recent {
    position: absolute;
    top: var(--search-block);
    left: 10px;
    right: 54px;
    max-height: min(52vh, 360px);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 6;
    background: #1c1c1e;
    border: 1px solid #d2a679;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

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

.search-recent-label {
    padding: 10px 12px 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a8a8e;
}

.search-recent-list {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
}

.search-recent-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #ececec;
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.search-recent-item:hover,
.search-recent-item:focus {
    background: #2c2c2e;
    color: #d2a679;
    outline: none;
}

.search-recent-q {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-recent-age {
    flex: 0 0 auto;
    font-size: 11px;
    color: #8a8a8e;
}

.search-recent-empty {
    padding: 8px 12px 12px;
    font-size: 14px;
    color: #8a8a8e;
}

@media (max-width: 768px) {
    .search-recent {
        right: 54px;
    }
}
