.bm-ai-dropdown {
    z-index: 10000;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .16);
    padding: 6px;
    box-sizing: border-box;
    font-size: 14px;
    color: #1d2433;
}

.bm-ai-dropdown.is-loading {
    min-height: 58px;
}

.bm-ai-loading,
.bm-ai-empty-message,
.bm-ai-help {
    padding: 14px 12px;
    color: #667085;
    line-height: 1.45;
}

.bm-ai-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    color: #1d2433;
    text-decoration: none;
    transition: background .15s ease;
}

.bm-ai-item.is-active,
.bm-ai-item:hover {
    background: #f2f6ff;
}

.bm-ai-item__image-wrap,
.bm-ai-item__image-placeholder {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 7px;
    background: #f4f6f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-ai-item__image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    background: #fff;
}

.bm-ai-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bm-ai-item__brand {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.bm-ai-item__name {
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bm-ai-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.bm-ai-item__price {
    font-weight: 700;
    color: #111;
}

.bm-ai-item__stock {
    color: #0f8a4b;
    font-size: 11px;
}

.bm-ai-item__stock.is-outstock {
    color: #b42318;
}

.bm-ai-all {
    display: block;
    margin-top: 4px;
    padding: 10px 12px;
    border-top: 1px solid #eef1f4;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.bm-ai-all:hover {
    background: #f7f9fc;
    border-radius: 0 0 8px 8px;
}

.bm-ai-results {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 16px 40px;
    box-sizing: border-box;
}

.bm-ai-results__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.bm-ai-results__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.bm-ai-results__form {
    display: flex;
    gap: 8px;
    width: min(100%, 460px);
}

.bm-ai-results__input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    font-size: 14px;
}

.bm-ai-results__button {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bm-ai-results__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #667085;
    margin-bottom: 12px;
}

.bm-ai-results__time {
    font-size: 12px;
}

.bm-ai-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bm-ai-chip {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.bm-ai-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bm-ai-card {
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bm-ai-card__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    background: #fbfcfd;
}

.bm-ai-card__image {
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.bm-ai-card__noimage {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #e9edf3;
}

.bm-ai-card__body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bm-ai-card__brand {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bm-ai-card__name {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.bm-ai-card__name a {
    color: #1d2433;
    text-decoration: none;
}

.bm-ai-card__name a:hover {
    color: #1d4ed8;
}

.bm-ai-card__category {
    color: #667085;
    font-size: 12px;
}

.bm-ai-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.bm-ai-card__price {
    font-size: 16px;
    font-weight: 800;
}

.bm-ai-card__stock {
    font-size: 11px;
    font-weight: 700;
    color: #0f8a4b;
}

.bm-ai-card__stock.is-outstock {
    color: #b42318;
}

.bm-ai-empty,
.bm-ai-message {
    padding: 34px 18px;
    text-align: center;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #eef1f4;
    border-radius: 10px;
}

.bm-ai-empty__link {
    display: inline-block;
    margin-top: 10px;
    color: #1d4ed8;
    font-weight: 700;
}

.bm-ai-results__all {
    margin-top: 22px;
    text-align: center;
}

.bm-ai-results__all a {
    color: #1d4ed8;
    font-weight: 700;
}

.bm-ai-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1100px) {
    .bm-ai-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .bm-ai-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-ai-card__image-link {
        height: 150px;
    }

    .bm-ai-card__image {
        max-height: 135px;
    }
}

@media (max-width: 520px) {
    .bm-ai-results__title {
        font-size: 21px;
    }

    .bm-ai-results__header {
        align-items: stretch;
    }

    .bm-ai-results__form {
        width: 100%;
    }

    .bm-ai-grid {
        grid-template-columns: 1fr;
    }

    .bm-ai-card {
        flex-direction: row;
    }

    .bm-ai-card__image-link {
        flex: 0 0 112px;
        height: auto;
        min-height: 112px;
    }

    .bm-ai-card__image {
        max-height: 100px;
    }
}
