/* Keep panel above all page content */
body > .aa-Panel {
    z-index: 9999999 !important;
    min-width: 360px;
    max-width: 480px;
    border-radius: 8px;
    border: 1px solid #d0d5d8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Remove Algolia's default form border/shadow — the .search-wrap already styles the input */
#sps-algolia-autocomplete .aa-Form {
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* Item link — no underline, block display */
.aa-Panel .aa-Item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.aa-Panel .aa-Item a:hover {
    text-decoration: none;
}

/* Result title */
.aa-Panel .aa-ItemTitle {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f282c;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* Result excerpt — clamp to 2 lines */
.aa-Panel .aa-ItemExcerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    color: #5a6770;
    line-height: 1.5;
}

/* "See all results" footer */
.aa-Panel .aa-PanelFooter {
    border-top: 1px solid #e8ebec;
    padding: 10px 16px;
    text-align: right;
    background: #f7f8f8;
}

.aa-Panel .aa-PanelFooter a {
    font-size: 13px;
    font-weight: 600;
    color: #00aae5;
    text-decoration: none;
}

.aa-Panel .aa-PanelFooter a:hover {
    color: #0279a5;
    text-decoration: underline;
}

/* ---- Zero-results panel (EN) ---- */
.aa-Panel .aa-NoResultsPanel {
    padding: 16px;
}

.aa-Panel .aa-NoResultsMessage {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f282c;
    line-height: 1.4;
}

.aa-Panel .aa-NoResultsLinks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aa-Panel .aa-NoResultsLinks li {
    margin: 0;
}

.aa-Panel .aa-NoResultsLinks a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    font-weight: 600;
    color: #00aae5;
    text-decoration: none;
    border-bottom: 1px solid #e8ebec;
}

.aa-Panel .aa-NoResultsLinks li:last-child a {
    border-bottom: none;
}

.aa-Panel .aa-NoResultsLinks a:hover {
    color: #0279a5;
}
