/* Shared suggestion popup, including the legacy desktop/mobile headers. */
body #results_lists,
body .rd-header #results_lists,
body #global_search_form + #results_lists {
    box-sizing: border-box;
    padding: 6px;
    height: auto;
    max-height: min(480px, calc(100vh - 110px));
    max-height: min(480px, calc(100dvh - 110px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid #e3e8f1;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(29, 47, 82, .14), 0 2px 6px rgba(29, 47, 82, .04);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e5 transparent;
    text-align: left;
    z-index: 100;
}
body .rd-header #results_lists { top: calc(100% + 8px); }
body #results_lists:has(#search_results:empty) { display: none !important; }
body #results_lists #search_results {
    display: block;
    padding: 0;
    margin: 0;
    width: 100%;
    list-style: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body #results_lists #search_results > li { list-style: none; margin: 0; padding: 0; border: 0; float: none; width: 100%; }
body #results_lists #search_results > .list_heading {
    position: sticky;
    top: -6px;
    z-index: 1;
    padding: 11px 12px 8px;
    margin-top: 6px;
    background: #fff;
    color: #8490a3;
    font: 700 10px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-top: 1px solid #edf0f6;
    cursor: default;
}
body #results_lists #search_results > .list_heading:first-child { margin-top: 0; border-top: 0; }
body #results_lists #search_results .inner_link {
    box-sizing: border-box;
    display: block;
    position: relative;
    min-height: 44px;
    padding: 12px 34px 12px 40px;
    border-radius: 9px;
    color: #283750;
    background: transparent;
    font: 500 14px/1.45 Arial, Helvetica, sans-serif;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color .15s ease, color .15s ease;
}
body #results_lists #search_results .inner_link::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 16px;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%238693a9' stroke-width='1.5'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body #results_lists #search_results .inner_link::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 19px;
    width: 5px;
    height: 5px;
    border-top: 1.5px solid #9ba7b9;
    border-right: 1.5px solid #9ba7b9;
    transform: rotate(45deg);
}
body #results_lists #search_results > .selected { background: transparent; }
body #results_lists #search_results .inner_link:hover,
body #results_lists #search_results .selected > .inner_link,
body #results_lists #search_results .inner_link:focus-visible { color: #2e5ac4; background: #edf3ff; }
body #results_lists #search_results .inner_link:focus-visible { outline: 2px solid #799ce9; outline-offset: -2px; }
body #results_lists #search_results .inner_link.disabled,
body #results_lists #search_results .inner_link[href^="javascript:"] {
    padding: 24px 16px;
    color: #7c899d;
    text-align: center;
    background: transparent !important;
    cursor: default;
}
body #results_lists #search_results .inner_link.disabled::before,
body #results_lists #search_results .inner_link.disabled::after,
body #results_lists #search_results .inner_link[href^="javascript:"]::before,
body #results_lists #search_results .inner_link[href^="javascript:"]::after { content: none; }
body .rd-header #global_search_form:focus-within { border-color: #a4b9ed; box-shadow: 0 0 0 3px #3267dc0d; }

@media (max-width: 767px) {
    body #results_lists,
    body .rd-header #results_lists,
    body #global_search_form + #results_lists { max-height: min(420px, calc(100vh - 100px)); max-height: min(420px, calc(100dvh - 100px)); border-radius: 14px; padding: 5px; }
    body .rd-header #results_lists,
    body.rd-enabled.home .rd-header #results_lists { left: auto; right: 0; top: calc(100% + 10px); width: calc(100vw - 32px); max-width: 540px; }
    body #results_lists #search_results .inner_link { min-height: 46px; padding-top: 13px; padding-bottom: 13px; }
    body #results_lists #search_results > .list_heading { top: -5px; }
}
@media (prefers-reduced-motion: reduce) {
    body #results_lists #search_results .inner_link { transition: none; }
}
