.global-search-trigger {
    max-width: 760px;
    height: 44px;
    cursor: text;
    text-align: left;
}

.global-search-trigger kbd,
.global-search-panel kbd {
    align-items: center;
    min-width: 22px;
    padding: 2px 6px;
    border: 1px solid var(--bs-gray-300);
    border-radius: 5px;
    background: var(--bs-gray-100);
    color: var(--bs-gray-600);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.global-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(14vh, 130px) 16px 16px;
    background: rgba(13, 20, 28, .48);
    backdrop-filter: blur(5px);
}

.global-search-panel {
    width: min(720px, 100%);
    max-height: min(680px, calc(100vh - 64px));
    overflow: hidden;
    border: 1px solid var(--bs-gray-300);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.global-search-input .form-control {
    height: 68px;
    background: var(--bs-body-bg);
    color: var(--bs-gray-900);
    font-size: 1.2rem;
}

.global-search-input .form-control:focus {
    box-shadow: none;
}

.global-search-results {
    max-height: min(520px, calc(100vh - 190px));
}

.global-search-group-label {
    color: var(--bs-gray-600);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.global-search-result-row {
    min-width: 0;
}

.global-search-result-link {
    min-width: 0;
    color: var(--bs-gray-800);
}

.global-search-option.is-selected {
    background: var(--bs-primary-light);
    color: var(--bs-primary);
}

.global-search-impersonate {
    border-radius: 9px;
}

.global-search-impersonate.is-selected {
    background: var(--bs-primary);
    color: var(--bs-primary-inverse);
}

[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate.is-selected,
[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate:hover:not(.btn-active),
[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate:focus:not(.btn-active) {
    background: var(--bs-primary-light) !important;
    border-color: var(--bs-primary-light);
    color: var(--bs-primary);
}

[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate.is-selected i,
[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate:hover:not(.btn-active) i,
[data-bs-theme="dark"] .btn.btn-light-primary.global-search-impersonate:focus:not(.btn-active) i {
    color: var(--bs-primary);
}

.global-search-footer {
    background: var(--bs-gray-100);
}

body.global-search-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .global-search-overlay {
        padding: 12px;
    }

    .global-search-panel {
        max-height: calc(100vh - 24px);
        border-radius: 12px;
    }

    .global-search-input .form-control {
        height: 60px;
        font-size: 1rem;
    }

    .global-search-results {
        max-height: calc(100vh - 86px);
    }

}
