.smartsearchcst {
    position: absolute;
    z-index: 10050;
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e2e4e8;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 24, 31, .14);
    font-size: 14px;
    line-height: 1.35;
    color: #1f2329;
    text-align: left;
}
.smartsearchcst[hidden] { display: none; }

.smartsearchcst a { color: inherit; text-decoration: none; }

.smartsearchcst__group {
    padding: 8px 14px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8a9099;
}
.smartsearchcst__note,
.smartsearchcst__empty {
    padding: 8px 14px;
    color: #6b717a;
}
.smartsearchcst__note { font-size: 13px; border-bottom: 1px solid #f0f1f3; }

.smartsearchcst__cat,
.smartsearchcst__product,
.smartsearchcst__all {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
}
.smartsearchcst__cat:hover,
.smartsearchcst__product:hover,
.smartsearchcst__all:hover,
.smartsearchcst .is-active { background: #f3f5f8; }

.smartsearchcst__cat span:first-child { flex: 1; }
.smartsearchcst__count { font-size: 12px; color: #8a9099; }

.smartsearchcst__img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smartsearchcst__img img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.smartsearchcst__name { flex: 1; min-width: 0; }
.smartsearchcst__out { display: block; font-size: 12px; color: #a0a6ad; }
.smartsearchcst__store { display: block; font-size: 12px; color: #2e9e4f; font-weight: 500; }
.smartsearchcst__product.is-out .smartsearchcst__img { opacity: .5; }

.smartsearchcst__price { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }

/* Прилипает к низу: список товаров прокручивается, ссылка всегда видна */
.smartsearchcst__all {
    position: sticky;
    bottom: -6px;
    justify-content: center;
    margin: 4px 0 -6px;
    border-top: 1px solid #f0f1f3;
    padding: 10px 14px 16px;
    background: #fff;
    font-weight: 600;
}

/* ------------------------------------------- Категория + бренд */
.smartsearchcst-shortcut {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    padding: 10px 14px;
    border-radius: 8px;
    /* Цвета задаются в настройках плагина (переменные в <head>) */
    background: var(--smartsearchcst-shortcut-bg, #fff4ec);
    color: #1f2329;
    text-decoration: none;
}
.smartsearchcst-shortcut:hover { background: var(--smartsearchcst-shortcut-bg-hover, #ffe8d6); }
.smartsearchcst-shortcut__label { flex-basis: 100%; font-size: 12px; color: var(--smartsearchcst-shortcut-text, #8a6a55); }
.smartsearchcst-shortcut__name { font-weight: 600; color: var(--smartsearchcst-shortcut-name, #e8590c); }
.smartsearchcst-shortcut__count { font-size: 12px; color: var(--smartsearchcst-shortcut-text, #8a6a55); opacity: .8; }

.smartsearchcst__shortcut { margin: 0 8px 4px; }
.smartsearchcst .smartsearchcst__shortcut.is-active { background: var(--smartsearchcst-shortcut-bg-hover, #ffe8d6); }

/* Блок над выдачей на странице поиска */
.smartsearchcst-top { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.smartsearchcst-top .smartsearchcst-shortcut { align-self: flex-start; padding: 12px 18px; }
.smartsearchcst-top .smartsearchcst-shortcut__name { font-size: 16px; }
.smartsearchcst-note { color: #6b717a; }

@media (max-width: 480px) {
    .smartsearchcst { font-size: 13px; }
    .smartsearchcst__img { flex-basis: 36px; width: 36px; height: 36px; }
}
