.store-search { position: relative; margin: 0; }
.store-search [hidden] { display: none; }
.store-search-panel {
    background: #fff;
    color: #262626;
    border: 1px solid #e2e2e2;
    border-top: 2px solid #bf1017;
    max-height: min(55vh, 480px);
    overflow: auto;
    overscroll-behavior: contain;
    text-align: left;
}
.store-search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    min-height: 44px;
    color: #272727;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    text-decoration: none;
}
.store-search-option > span { flex: 1; min-width: 0; }
.store-search-option strong { overflow-wrap: anywhere; }
.store-search-option small { display: block; color: #555; }
.store-search-option img { width: 40px; height: 40px; object-fit: contain; }
.store-search-option .store-search-type { color: #a31016; flex-shrink: 0; }
.store-search-option:hover, .store-search-option[aria-selected="true"] {
    background: #fff0f0;
    color: #a31016;
}
.store-search-status { padding: 10px 12px; font-size: 13px; }
.store-search-status:empty { padding: 0; }
.store-search-related { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.store-search-related h2 { width: 100%; margin: 0 0 4px; font-size: 16px; }
.store-search-related a {
    display: grid;
    gap: 3px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    color: #252525;
}
.store-search-related small { color: #a31016; }
.store-search-desktop { display: none; }
.store-search-palette { display: none; }
@media (min-width: 768px) {
    .top .store-search-desktop {
        display: flex;
        float: right;
        align-items: stretch;
        width: clamp(270px, 33vw, 445px);
        margin: 4px 16px 4px 0;
        min-height: 38px;
        border: 1px solid #c9c9c9;
        border-radius: 4px;
        background: #fafafa;
        z-index: 650;
    }
    .top .store-search-desktop:focus-within { border-color: #bd1219; }
    .store-search-desktop input[type="search"], .store-search-command input[type="search"] {
        width: 100%;
        min-width: 0;
        flex: 1;
        background: transparent;
        color: #222;
        border: 0;
        margin: 0;
        padding: 8px 12px;
        font: inherit;
    }
    .store-search-submit, .store-search-open-palette, .store-search-close {
        border: 0;
        color: #a31016;
        background: transparent;
        padding: 0 10px;
        cursor: pointer;
    }
    .store-search-open-palette kbd { font-size: 11px; white-space: nowrap; }
    .store-search-desktop .store-search-panel {
        position: absolute;
        top: 100%;
        right: -1px;
        width: max(100%, 350px);
        box-shadow: 0 10px 22px rgb(0 0 0 / 14%);
    }
    .top-holder.fixed:has(.store-search-desktop) .almenu {
        margin-top: 0;
        margin-right: 0;
    }
    .store-search-palette[open] {
        display: block;
        position: fixed;
        inset: 12vh 0 auto;
        width: min(640px, calc(100% - 32px));
        max-height: 78vh;
        margin: 0 auto;
        padding: 0;
        border: 1px solid #ddd;
        border-top: 3px solid #bf1017;
        border-radius: 5px;
        box-shadow: 0 18px 70px rgb(0 0 0 / 27%);
    }
    .store-search-palette::backdrop { background: rgb(0 0 0 / 52%); }
    .store-search-palette-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }
    .store-search-close { min-height: 32px; }
    .store-search-command { display: grid; grid-template-columns: 1fr 44px; }
    .store-search-command input[type="search"] { min-height: 48px; font-size: 17px; }
    .store-search-command .store-search-panel { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .store-mobile-menu-search .store-search-submit { background: #353535; color: white; }
    .store-mobile-menu-search .store-search-panel { grid-column: 1 / -1; max-height: min(42dvh, 370px); }
}
