/* Predictive header search suggestions. */

.hebd-search-anchor {
    position: relative;
}

.hebd-search-live {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hebd-search-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: min(74vh, 540px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--hebd-surface, #FFFDF9);
    border: 1px solid var(--hebd-line, #E9E1D5);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(31, 42, 34, .13);
}

.hebd-search-panel[hidden] {
    display: none;
}

.hebd-search-status {
    margin: 0;
    padding: 16px 18px;
    font-family: var(--hebd-font-body, inherit);
    font-size: 15px;
    color: var(--hebd-text-muted, #6B7568);
}

.hebd-search-list {
    margin: 0;
    padding: 6px;
    list-style: none;
}

.hebd-search-result {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--hebd-text, #1F2A22);
    text-decoration: none;
}

.hebd-search-result:hover,
.hebd-search-result:focus,
.hebd-search-result.is-active {
    background: var(--hebd-soft-tint, #F8F1E7);
    color: var(--hebd-text, #1F2A22);
}

.hebd-search-result__media {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--hebd-line, #E9E1D5);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.hebd-search-result__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hebd-search-result__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hebd-search-result__title {
    font-family: var(--hebd-font-body, inherit);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hebd-search-result__price,
.hebd-search-result__price .woocommerce-Price-amount,
.hebd-search-result__price bdi {
    font-size: 14px;
    font-weight: 600;
    color: var(--hebd-primary, #2E7046);
}

.hebd-search-result__price del {
    margin-right: 6px;
    font-weight: 400;
    color: var(--hebd-text-muted, #6B7568);
}

.hebd-search-result__price del .woocommerce-Price-amount,
.hebd-search-result__price del bdi {
    color: inherit;
    font-weight: inherit;
}

.hebd-search-result__stock {
    font-size: 12.5px;
    color: #A6502C;
}

.hebd-search-footer {
    padding: 6px;
    border-top: 1px solid var(--hebd-line, #E9E1D5);
}

.hebd-search-all {
    display: block;
    padding: 11px 12px;
    border-radius: 9px;
    font-family: var(--hebd-font-body, inherit);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--hebd-primary, #2E7046);
    text-decoration: none;
}

.hebd-search-all:hover,
.hebd-search-all:focus {
    background: var(--hebd-soft-tint, #F8F1E7);
    color: var(--hebd-primary, #2E7046);
}

@media (max-width: 991.98px) {
    .hebd-search-panel {
        max-height: min(60vh, 380px);
    }

    .hebd-search-result__media {
        width: 48px;
        height: 48px;
    }
}
