.epic-home-search[data-epic-store-search] {
    position: relative;
}

.storefront-catalog-search:focus-within {
    box-shadow: 0 0 0 2px #bfa1ff;
}

.storefront-catalog-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.storefront-search-icon {
    position: relative;
    width: 17px;
    height: 17px;
    display: block;
}

.storefront-search-icon::before {
    content: "";
    position: absolute;
    inset: 0 4px 4px 0;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.storefront-search-icon::after {
    content: "";
    position: absolute;
    bottom: 1px;
    right: 0;
    width: 7px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: right center;
}

.epic-home-search .storefront-search-clear {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    display: inline-grid;
    flex: 0 0 28px;
    place-items: center;
    color: #dedce6;
    background: transparent;
    border-radius: 50%;
    line-height: 1;
}

.storefront-search-clear > span {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #393743;
    font-size: 16px;
}

.epic-home-search-button:focus-visible,
.epic-home-search .storefront-search-clear:focus-visible {
    outline: 2px solid #bfa1ff;
    outline-offset: 2px;
}

.epic-home-search [hidden] {
    display: none !important;
}

.storefront-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 5;
    width: min(23rem, calc(100vw - 32px));
    max-height: min(30rem, var(--search-space-below, 60vh));
    padding: 8px;
    border: 1px solid #393643;
    border-radius: 14px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #5a5268 #181720;
    color: #f5f3fa;
    background: #181720;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.storefront-search-results-title {
    margin: 0;
    padding: 8px 8px 5px;
    color: #c2bacd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.storefront-search-option {
    min-height: 60px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.storefront-search-option:hover,
.storefront-search-option:focus-visible,
.storefront-search-option[aria-selected="true"] {
    color: #fff;
    background: #2b2639;
}

.storefront-search-cover {
    width: 36px;
    height: 48px;
    flex: 0 0 36px;
    border-radius: 5px;
    background: #292733;
    object-fit: cover;
}

.storefront-search-cover--fallback {
    padding: 3px;
    object-fit: contain;
}

.storefront-search-option-text {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.storefront-search-option-type {
    color: #c2bacd;
    font-size: 12px;
}

.storefront-search-option-name {
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.storefront-search-message {
    margin: 0;
    padding: 8px;
    color: #d6cfdf;
    font-size: 14px;
}

.storefront-search-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .epic-home-search[data-epic-store-search] .epic-home-search-button {
        width: 44px;
        height: 44px;
    }

    .epic-home-subnav.is-search-open .storefront-catalog-search {
        width: auto;
        height: auto;
        min-height: 50px;
        margin: 8px 0;
        padding: 0 4px;
        gap: 4px;
        border: 1px solid #4a4658;
        border-radius: 10px;
        background: #17161e;
    }

    .epic-home-subnav.is-search-open .storefront-catalog-search input[type="search"] {
        font-size: 16px;
    }

    .epic-home-subnav.is-search-open .storefront-search-clear {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .epic-home-subnav.is-search-open .epic-home-tabs-trigger,
    .epic-home-subnav.is-search-open .epic-home-tabs,
    .epic-home-subnav.is-search-open .epic-home-tab-actions {
        visibility: hidden;
    }

    .storefront-search-results {
        width: 100%;
    }
}
