.menu-search .search-everywhere-popup {
    position: absolute;
    top: calc(100% + var(--fmd-space-2, 0.5rem));
    left: 0;
    right: 0;
    z-index: var(--fmd-z-shell-search, 1080);
    overflow: hidden;
    border: var(--fmd-border-width, 1px) solid var(--fmd-border-default, var(--bs-border-color));
    border-radius: var(--fmd-radius-md, 0.5rem);
    background: var(--fmd-bg-surface, var(--bs-body-bg));
    box-shadow: var(--fmd-shadow-popover, 0 0.75rem 1.5rem rgba(0, 0, 0, 0.16));
}

.menu-search .search-everywhere-popup[hidden] {
    display: none;
}

.search-everywhere-status {
    padding: var(--fmd-space-3, 0.75rem) var(--fmd-space-4, 1rem);
    color: var(--fmd-text-secondary, var(--bs-secondary-color));
    font-size: var(--fmd-font-size-sm, 0.875rem);
}

.search-everywhere-status-error {
    color: var(--fmd-status-danger, var(--bs-danger));
}

.search-everywhere-results {
    max-height: 22rem;
    overflow-y: auto;
    padding: var(--fmd-space-1, 0.25rem);
}

.search-everywhere-result {
    display: block;
    padding: var(--fmd-space-2, 0.5rem) var(--fmd-space-3, 0.75rem);
    border-radius: var(--fmd-radius-sm, 0.375rem);
    color: var(--fmd-text-primary, var(--bs-body-color));
    text-decoration: none;
}

.search-everywhere-result:hover,
.search-everywhere-result.is-active {
    background: color-mix(in srgb, var(--fmd-action-primary, var(--bs-theme, var(--bs-primary))) 12%, transparent);
    color: var(--fmd-text-primary, var(--bs-body-color));
}

.search-everywhere-result:focus-visible {
    outline: var(--fmd-focus-ring-width, 3px) solid var(--fmd-action-primary, var(--bs-primary));
    outline-offset: 2px;
}

.search-everywhere-result[aria-disabled="true"] {
    cursor: default;
}

.search-everywhere-result-meta {
    display: flex;
    align-items: center;
    gap: var(--fmd-space-2, 0.5rem);
    margin-bottom: var(--fmd-space-1, 0.25rem);
    font-size: var(--fmd-font-size-xs, 0.75rem);
    font-weight: var(--fmd-font-weight-emphasis, 700);
    letter-spacing: var(--fmd-letter-spacing-label, 0.04em);
    text-transform: uppercase;
}

.search-everywhere-result-category {
    color: var(--fmd-action-primary, var(--bs-theme));
}

.search-everywhere-result-source {
    color: var(--fmd-text-secondary, var(--bs-secondary-color));
}

.search-everywhere-result-title {
    font-size: var(--fmd-font-size-body, 1rem);
    font-weight: var(--fmd-font-weight-label, 600);
    line-height: 1.25;
}

.search-everywhere-result-description {
    margin-top: var(--fmd-space-1, 0.25rem);
    color: var(--fmd-text-secondary, var(--bs-secondary-color));
    font-size: var(--fmd-font-size-meta, 0.8125rem);
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .menu-search .search-everywhere-popup {
        left: calc(-1 * var(--fmd-space-2, 0.5rem));
        right: calc(-1 * var(--fmd-space-2, 0.5rem));
    }
}
