﻿.predictive-search
{
    display: none;
    position: absolute;
    top: calc(100% + .75rem);
    border: 1px solid var(--color-border);
    background-color: var(--background-primary);
    z-index: 3;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.predictive-search-search-template
{
    z-index: 2;
}
.predictive-search-results-groups-wrapper
{
    display: flex;
    padding: var(--text-spacing-sm) 0;
}
@media(max-width: 1049px)
{
    .predictive-search-results-groups-wrapper
    {
        flex-direction: column;
    }
    .predictive-search-results-groups-wrapper:not(.predictive-search-results-groups-wrapper-no-suggestions)
    {
        gap: 1.5rem;
    }
}
.predictive-search-result-group
{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.predictive-search-result-group:first-child .predictive-search-pages-wrapper
{
    display: none;
}
@media(min-width: 820px)
{
    .predictive-search-result-group:first-child:not(:only-child)
    {
        flex: 0 0 40%;
    }
    .predictive-search-result-group:first-child:not(:only-child) .predictive-search-pages-wrapper
    {
        display: initial;
    }
}
@media(min-width: 820px)
{
    .predictive-search-results-groups-wrapper-no-products .predictive-search-result-group:nth-child(2), .predictive-search-results-groups-wrapper-no-products .predictive-search-result-group:last-child .predictive-search-pages-wrapper
    {
        display: none;
    }
    .predictive-search-results-groups-wrapper-no-products .predictive-search-result-group:first-child, .predictive-search-results-groups-wrapper-no-products .predictive-search-result-group:only-child
    {
        flex-grow: 1;
    }
}
@media(max-width: 1049px)
{
    .predictive-search-header
    {
        margin: 0 auto;
        top: 100%;
        border: none;
    }
}
.predictive-search-heading
{
    margin: 0 auto;
    padding: 1rem var(--text-spacing-lg) 0 var(--text-spacing-lg);
    width: 100%;
    color: var(--text-primary);
    text-align: left;
}
.predictive-search-heading::after
{
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--color-neutral-300);
    display: block;
    margin-top: .75rem;
}
.predictive-search-results-list
{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: .75rem 1.5rem;
}
predictive-search .spinner
{
    width: 1.5rem;
    height: 1.5rem;
    line-height: 0;
}
predictive-search[open] .predictive-search
{
    display: block;
    width: 100%;
}
@media(max-width: 1049px)
{
    predictive-search[open] .predictive-search
    {
        left: 0;
    }
}
predictive-search:not([loading]) .predictive-search-loading-state, predictive-search:not([loading]) .predictive-search-status-loading
{
    display: none;
}
predictive-search[loading] .predictive-search-loading-state
{
    display: flex;
    justify-content: center;
    padding: 1rem;
    margin: 0 auto;
}
predictive-search[loading] .predictive-search-search-for-button
{
    display: none;
}
predictive-search[loading] .predictive-search-heading~.predictive-search-loading-state, predictive-search[loading] .predictive-search-results-list:first-child
{
    display: none;
}
predictive-search[loading] .predictive-search
{
    display: block;
}
predictive-search[loading] .predictive-search-results-groups-wrapper~.predictive-search-loading-state
{
    display: none;
}
predictive-search[loading] .predictive-search-results-groups-wrapper~.predictive-search-search-for-button
{
    display: initial;
}
.predictive-search-search-for-button
{
    border-top: 1px solid var(--color-neutral-300);
}
.predictive-search-item-heading
{
    margin: 0;
}
.predictive-search-item-vendor+.predictive-search-item-heading, .predictive-search .price
{
    margin-top: .5rem;
}
.predictive-search-list-item
{
    width: 100%;
}
.predictive-search-item
{
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    width: 100%;
    transition: background-color .25s ease-out;
    cursor: pointer;
}
.predictive-search-item:hover, .predictive-search-list-item[aria-selected=true]>.predictive-search-item
{
    background-color: var(--color-neutral-100);
}
.predictive-search-image
{
    width: 3rem;
    flex: 0 0 auto;
}
.predictive-search-image .media
{
    width: 100%;
    padding-top: 100%;
}
.predictive-search-item-content
{
    flex: 1 1 auto;
}
.predictive-search-item-vendor
{
    font-size: 1rem;
}
.predictive-search-item-term
{
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background-color: rgba(0,0,0,0);
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: var(--line-height-base);
    width: 100%;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    position: relative;
}
.predictive-search-item-term .icon-arrow
{
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-left: 1.5rem;
    color: var(--text-primary);
}
.predictive-search-item-term>*
{
    margin-bottom: 0;
}