/* Scoped to the existing 4hifi header, on desktop and in the mobile search overlay. */
:is(#hifi-home,#hifi-header) .hifi-search-suggestions {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1500;
    float: none; width: 100%; padding: 0; margin: 0; border: 1px solid #dedee6;
    border-radius: 6px; background: #fff; color: #202026; box-shadow: 0 12px 28px #0002;
    overflow: hidden; text-align: left; font-size: 14px; line-height: 1.4;
}
:is(#hifi-home,#hifi-header) .hifi-search-suggestions [hidden],
:is(#hifi-home,#hifi-header) .hifi-search-suggestions[hidden] { display: none; }
:is(#hifi-home,#hifi-header) .hifi-search-suggestions ul {
    display: block; position: static; width: auto; padding: 0; margin: 0; list-style: none;
    max-height: min(60vh, 480px); overflow-y: auto; overscroll-behavior: contain;
}
:is(#hifi-home,#hifi-header) .hifi-search-suggestions li { display: block; padding: 0; margin: 0; border-bottom: 1px solid #eeeeF3; }
:is(#hifi-home,#hifi-header) .hifi-search-result {
    display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 12px; align-items: center;
    padding: 12px; color: #202026; text-decoration: none; white-space: normal;
}
:is(#hifi-home,#hifi-header) .hifi-search-result:hover,
:is(#hifi-home,#hifi-header) .hifi-search-result:focus,
:is(#hifi-home,#hifi-header) .hifi-search-result[aria-selected="true"] { background: #fff2f5; outline: 2px solid #dd0b35; outline-offset: -2px; }
:is(#hifi-home,#hifi-header) .hifi-search-result img { display: block; width: 64px; height: 64px; object-fit: contain; background: #fff; }
:is(#hifi-home,#hifi-header) .hifi-search-name { grid-column: 2; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
:is(#hifi-home,#hifi-header) .hifi-search-price { grid-column: 3; color: #dd0b35; font-weight: 700; white-space: nowrap; }
:is(#hifi-home,#hifi-header) .hifi-search-all { display: block; padding: 13px; color: #c90832; text-align: center; font-weight: 700; text-decoration: none; background: #fafafa; }
:is(#hifi-home,#hifi-header) .hifi-search-all:hover { background: #fff2f5; text-decoration: underline; }
:is(#hifi-home,#hifi-header) .hifi-search-status { padding: 16px; margin: 0; }
@media(max-width: 600px) {
    :is(#hifi-home,#hifi-header) .hifi-search-result { grid-template-columns: 48px minmax(0,1fr); gap: 4px 10px; padding: 10px; }
    :is(#hifi-home,#hifi-header) .hifi-search-result img { grid-row: 1 / span 2; width: 48px; height: 48px; }
    :is(#hifi-home,#hifi-header) .hifi-search-price { grid-column: 2; }
    :is(#hifi-home,#hifi-header) .hifi-search-suggestions ul { max-height: 55vh; }
}
