
/* PRAWNIKOM PRO GLOBAL SEARCH */

html body #global-search-suggestions {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    padding: 18px !important;
    margin: 0 !important;
    box-shadow: 0 16px 40px rgba(11,22,40,.18) !important;
    z-index: 100010 !important;
    font-family: "Inter","Segoe UI",Arial,sans-serif;
}

html body #global-search-suggestions[hidden],
html body #global-search-suggestions.hidden {
    display: none !important;
}

html body .global-search {
    position: relative !important;
    min-width: 0 !important;
}

/* NAGLOWEK */

#global-search-suggestions .search-suggestions-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid #dce4ee;
}

#global-search-suggestions .search-suggestions-head b {
    color: #142641 !important;
    font-family: Georgia,serif;
    font-size: 22px !important;
    font-weight: 600;
}

#global-search-suggestions .search-suggestions-head small {
    color: #64748b !important;
    font-size: 11px !important;
}

/* FILTRY WYSZUKIWANIA */

html body #global-search-suggestions
.search-suggestion-scopes {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 5px !important;
    padding: 0 0 14px !important;
    margin: 0 0 8px !important;
    border-bottom: 1px solid #dce4ee;
}

html body #global-search-suggestions
button[data-global-search-scope] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    min-height: 32px !important;
    height: auto !important;
    padding: 7px 12px !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    color: #253449 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    cursor: pointer;
}

html body #global-search-suggestions
button[data-global-search-scope]:hover {
    background: #e2e8f0 !important;
    color: #142641 !important;
}

html body #global-search-suggestions
button[data-global-search-scope].active,
html body #global-search-suggestions
button[data-global-search-scope][aria-pressed="true"] {
    background: #142641 !important;
    color: #e6c990 !important;
    border-color: #142641 !important;
}

/* WYNIKI */

html body #global-search-suggestions a.suggestion {
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px !important;
    width: 100% !important;
    min-height: 68px;
    padding: 12px 8px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    color: #142641 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

html body #global-search-suggestions a.suggestion:last-child {
    border-bottom: 0 !important;
}

html body #global-search-suggestions a.suggestion:hover,
html body #global-search-suggestions a.suggestion.active,
html body #global-search-suggestions
a.suggestion[aria-selected="true"] {
    background: #f1f5f9 !important;
}

#global-search-suggestions .suggestion-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    background: #142641 !important;
    color: #d6b77c !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#global-search-suggestions .suggestion-icon svg {
    width: 23px !important;
    height: 23px !important;
    color: #d6b77c !important;
    stroke: currentColor;
}

#global-search-suggestions .suggestion b {
    display: block !important;
    color: #142641 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#global-search-suggestions .suggestion small {
    display: block !important;
    margin-top: 4px;
    color: #64748b !important;
    font-size: 12px !important;
    line-height: 1.5;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

#global-search-suggestions .suggestion em {
    display: none !important;
}

#global-search-suggestions .suggestion::after {
    content: "›";
    color: #96702d;
    font-size: 24px;
}

/* USUNIECIE FOCUS PRZY KLIKANIU */

html body .global-search :focus,
html body #global-search-suggestions :focus {
    outline: none !important;
    box-shadow: none !important;
}

html body .global-search .pp-input-shell:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: #40536e !important;
}

html body input[data-global-search]:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Dyskretne zaznaczenie przy nawigacji klawiatura */

html body #global-search-suggestions :focus-visible {
    outline: 1px solid #96702d !important;
    outline-offset: -2px;
}

/* BRAK ZAOKRAGLEN I PODKRESLEN */

#global-search-suggestions *,
#global-search-suggestions *::before,
#global-search-suggestions *::after {
    border-radius: 0 !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* MOBILE */

@media (max-width: 600px) {

    html body #global-search-suggestions {
        padding: 12px !important;
        max-height: 60dvh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    #global-search-suggestions::-webkit-scrollbar {
        display: none;
    }

    html body #global-search-suggestions
    button[data-global-search-scope] {
        min-height: 38px !important;
        padding: 6px 9px !important;
    }

    #global-search-suggestions
    .search-suggestions-head b {
        font-size: 18px !important;
    }

    html body #global-search-suggestions a.suggestion {
        grid-template-columns: 36px minmax(0,1fr) auto;
        gap: 8px !important;
    }

    #global-search-suggestions .suggestion-icon {
        width: 36px !important;
        height: 36px !important;
    }
}

