/* BF_SEARCH_MOBILE_VIEW_STYLE_20261025_V3 */
#bf_live_search {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 11;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 36rem);
    color: #20201e;
    background: #fff;
    border: 1px solid #deded9;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    text-align: left;
    line-height: 1.4;
}

#bf_live_search.hidden,
#bf_live_search[hidden] {
    display: none !important;
}

#bf_live_search .h4 {
    margin: 0;
    padding: 16px 18px 12px;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-search-correction {
    margin: 0 18px 12px;
    font-size: .875rem;
    line-height: 1.4;
}

#bf_live_search .bf-live-status:not(:empty) {
    padding: 12px 18px;
    font-size: .875rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-live-products {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bf_live_search .bf-live-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    border-top: 1px solid #efefeb;
}

#bf_live_search .bf-live-item:focus-within {
    background: #f6f8f5;
}

#bf_live_search .bf-live-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    min-width: 0;
    height: 72px;
    border-radius: 6px;
    background: #fff;
}

#bf_live_search .bf-live-image img {
    display: block;
    width: 100%;
    max-width: 64px;
    height: 72px;
    max-height: 72px;
    object-fit: contain;
}

#bf_live_search .bf-live-details {
    min-width: 0;
}

#bf_live_search .bf-live-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
    color: inherit;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-live-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#bf_live_search .bf-live-name:focus-visible,
#bf_live_search .bf-live-all:focus-visible,
#bf_live_search .bf-live-price a:focus-visible {
    outline: 2px solid #245b39;
    outline-offset: 3px;
    border-radius: 3px;
}

#bf_live_search .bf-live-price {
    margin-top: 6px;
    font-size: .9375rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-live-price .price {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.35;
}

#bf_live_search .bf-live-status.bf-live-status--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#bf_live_search .bf-live-availability {
    margin-top: 6px;
    font-size: .8125rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-live-availability .delivery-status {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 6px;
    margin: 0;
}

#bf_live_search .bf-live-availability .delivery-status > div {
    display: inline-block;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 5px;
    color: #454b43;
    background: #f1f3ef;
}

#bf_live_search .bf-live-availability .delivery-status small,
#bf_live_search .bf-live-availability .delivery-status .small {
    font-size: inherit;
    line-height: inherit;
}

#bf_live_search .bf-live-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 18px;
    border-top: 1px solid #deded9;
    background: #fff;
}

#bf_live_search .bf-live-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 7px;
    color: #fff;
    background: #20201e;
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

#bf_live_search .bf-live-all:hover {
    background: #383833;
}

#bf_live_search .bf-live-empty {
    padding: 4px 18px 18px;
    font-size: .9375rem;
}

#bf_live_search .bf-live-empty p {
    margin: 0 0 8px;
}

@media (max-width: 479px) {
    #bf_live_search .bf-live-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    #bf_live_search .bf-live-image,
    #bf_live_search .bf-live-image img {
        width: 56px;
        max-width: 56px;
        height: 64px;
        max-height: 64px;
    }

    #bf_live_search .h4,
    #bf_live_search .bf-live-footer {
        padding-right: 12px;
        padding-left: 12px;
    }

    #bf_live_search .bf-search-correction {
        margin-right: 12px;
        margin-left: 12px;
    }
}

/* Term suggestions reuse the current product response. */
#bf_live_search .bf-live-terms {
    margin: 0;
    padding: 0 18px 14px;
}

#bf_live_search .bf-live-terms-label {
    display: block;
    margin: 0 0 7px;
    color: #53584f;
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.4;
}

#bf_live_search .bf-live-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bf_live_search .bf-live-terms-list > li {
    display: flex;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#bf_live_search .bf-live-term {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #deded9;
    border-radius: 7px;
    color: #20201e;
    background: #f6f8f5;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#bf_live_search .bf-live-term:hover {
    border-color: #868d81;
    background: #edf1e9;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#bf_live_search .bf-live-term:focus-visible {
    outline: 2px solid #245b39;
    outline-offset: 2px;
}

@media (max-width: 479px) {
    #bf_live_search .bf-live-terms {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* The keyboard is dismissed only through this explicit mobile action. */
#bf_live_search .bf-live-toolbar {
    display: none;
}

@media (max-width: 991px) {
    #bf_live_search {
        max-height: min(70vh, 36rem, var(--bf-live-available-height, 70vh));
    }

    #bf_live_search .bf-live-toolbar {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        justify-content: flex-end;
        padding: 0 12px;
        border-bottom: 1px solid #efefeb;
        background: #fff;
    }

    #bf_live_search .bf-live-keyboard-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-height: 44px;
        max-width: 100%;
        margin: 0;
        padding: 8px 2px;
        border: 0;
        border-radius: 3px;
        color: #20201e;
        background: transparent;
        font: inherit;
        font-size: .8125rem;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    #bf_live_search .bf-live-keyboard-toggle:hover {
        color: #245b39;
    }

    #bf_live_search .bf-live-keyboard-toggle:focus-visible {
        outline: 2px solid #245b39;
        outline-offset: -2px;
    }

    #bf_live_search .h4 {
        padding-top: 10px;
        padding-bottom: 8px;
    }

    #bf_live_search .bf-live-terms {
        padding-bottom: 8px;
    }

    #bf_live_search .bf-live-footer {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
