.hdc-live-search-panel {
    outline: var(--hdc-raised-edge-width) solid var(--hdc-raised-edge-outline);
    outline-offset: 0;
    position: fixed;
    top: var(--hdf-live-top, 0);
    left: var(--hdf-live-left, 0);
    z-index: 2147482400;
    width: min(var(--hdf-live-width, 600px), calc(100vw - 16px));
    max-height: min(76vh, 660px);
    overflow: hidden;
    border: var(--hdc-raised-edge-width) solid var(--hdc-raised-edge-border);
    border-block-start-color: var(--hdc-raised-edge-light);
    border-inline-start-color: var(--hdc-raised-edge-light);
    border-block-end: var(--hdc-raised-edge-depth-width) solid var(--hdc-raised-edge-dark);
    border-inline-end: var(--hdc-raised-edge-depth-width) solid var(--hdc-raised-edge-dark);
    border-radius: 10px;
    background: var(--hdc-surface);
    color: var(--hdc-text);
    font-family: var(--hdc-font-ui);
    overscroll-behavior: contain;
}

.hdc-live-search-panel::before {
    position: absolute;
    inset: 2px;
    z-index: 0;
    border-block-start: 1px solid var(--hdc-raised-edge-light);
    border-inline-start: 1px solid var(--hdc-raised-edge-light);
    border-radius: 8px;
    content: "";
    pointer-events: none;
}

.hdc-live-search-shell {
    position: relative;
    z-index: 1;
    display: flex;
    max-height: min(76vh, 660px);
    flex-direction: column;
    background: var(--hdc-surface);
}

.hdc-live-search-header {
    display: flex;
    min-height: 32px;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid var(--hdc-border);
    background: var(--hdc-raised-edge-heading-background);
}

.hdc-live-search-header__title {
    color: var(--hdc-raised-edge-heading-color);
    font-family: var(--hdc-font-heading);
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdc-live-search-header__description {
    display: none;
}

.hdc-live-search-body {
    min-height: 0;
    max-height: 304px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.hdc-live-search-body::-webkit-scrollbar {
    width: 8px;
}

.hdc-live-search-body::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--hdc-surface) 92%, var(--hdc-subtle));
}

.hdc-live-search-body::-webkit-scrollbar-thumb {
    border: 2px solid var(--hdc-surface);
    border-radius: 999px;
    background: color-mix(in srgb, var(--hdc-border) 62%, var(--hdc-text));
}

.hdc-live-group + .hdc-live-group {
    border-top: 1px solid var(--hdc-border);
}

.hdc-live-group__title {
    margin: 0;
    padding: 6px 10px 5px;
    background: color-mix(in srgb, var(--hdc-surface) 97%, var(--hdc-subtle));
    color: var(--hdc-muted-text);
    font-family: var(--hdc-font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hdc-live-search-list {
    margin: 0;
    padding: 2px 6px 4px;
    list-style: none;
}

.hdc-live-search-list li::marker {
    content: "";
}

.hdc-live-product {
    position: relative;
    display: grid;
    min-height: 58px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 1px 0;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: var(--hdc-surface);
    color: var(--hdc-text);
    text-decoration: none;
}


.hdc-live-product:hover,
.hdc-live-product:focus-visible,
.hdc-live-product.is-active {
    z-index: 2;
    border-color: var(--hdc-primary);
    background: var(--hdc-flat-hover);
    color: var(--hdc-text);
    outline: 0;
}


.hdc-live-product__image {
    display: block;
    width: 46px;
    height: 46px;
    border: 1px solid var(--hdc-border);
    border-radius: var(--hdc-compact-radius);
    background: var(--hdc-subtle);
    object-fit: cover;
}

.hdc-live-product__content {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.hdc-live-product__content strong {
    overflow: hidden;
    color: var(--hdc-text);
    font-family: var(--hdc-font-heading);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdc-live-product__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    line-height: 1.2;
}

.hdc-live-product__prices {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.hdc-live-product__facts {
    display: inline-flex;
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    white-space: nowrap;
}

.hdc-live-product__group {
    max-width: 120px;
    overflow: hidden;
    color: var(--hdc-muted-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.hdc-live-product__price-old {
    flex: 0 1 auto;
    overflow: hidden;
    color: #DC2626;
    font-size: 11px;
    font-weight: 650;
    text-decoration: line-through;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdc-live-product__price-current {
    flex: 0 1 auto;
    overflow: hidden;
    color: var(--hdc-primary-hover);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hdc-live-product__stock {
    flex: 0 0 auto;
    color: #15803d;
    font-weight: 650;
    white-space: nowrap;
}

.hdc-live-product__stock.is-out {
    color: #b91c1c;
}

.hdc-live-empty {
    margin: 0;
    padding: 28px 16px;
    color: var(--hdc-muted-text);
    font-size: 14px;
    text-align: center;
}

.hdc-live-search-footer {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 10px;
    border-top: 1px solid var(--hdc-border);
    background: color-mix(in srgb, var(--hdc-surface) 95%, var(--hdc-subtle));
}

.hdc-live-search-footer__view-all {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 11px;
    border: 1px solid var(--hdc-primary);
    border-radius: 999px;
    background: var(--hdc-surface);
    color: var(--hdc-primary-hover);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.hdc-live-search-footer__view-all:hover,
.hdc-live-search-footer__view-all:focus-visible {
    background: color-mix(in srgb, var(--hdc-primary) 10%, var(--hdc-surface));
    color: var(--hdc-primary-hover);
    outline: 0;
}

.hdc-live-search-footer__info {
    overflow: hidden;
    color: var(--hdc-muted-text);
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .hdc-live-search-header {
        min-height: 30px;
        padding: 6px 10px;
    }

    .hdc-live-search-body {
        max-height: 270px;
    }

    .hdc-live-search-header__title {
        font-size: 11.5px;
    }

    .hdc-live-product {
        min-height: 54px;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 7px;
        padding: 4px 5px;
    }

    .hdc-live-product__image {
        width: 42px;
        height: 42px;
    }

    .hdc-live-product__meta {
        gap: 8px;
    }

    .hdc-live-product__facts {
        gap: 12px;
    }

    .hdc-live-product__group {
        max-width: 88px;
    }

    .hdc-live-product__prices {
        gap: 6px;
    }

    .hdc-live-search-footer {
        gap: 8px;
        padding-inline: 9px;
    }

    .hdc-live-search-footer__info {
        font-size: 10px;
    }
}
