/* ============================================================
   FLOAT 21.09.2026 — сторінка пошуку: блок знайдених категорій
   Плагін searchpro віддає чипи без стилів теми, тому вони
   розповзалися на весь екран. Підключається лише на /search/,
   після {$wa->css()}, тому перебиває стилі плагіна.
   ============================================================ */

.searchpro__page .searchpro__page-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 20px;
    padding: 0;
    position: relative;
}

.searchpro__page .searchpro__page-categories.fl-cats--collapsed {
    max-height: 80px;
    overflow: hidden;
}

.searchpro__page .searchpro__page-categories.fl-cats--collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.searchpro__page a.searchpro__page-category,
.searchpro__page a.searchpro__page-category:link,
.searchpro__page a.searchpro__page-category:visited {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 14px;
    height: 36px;
    max-width: 100%;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    background: #fff;
    color: #1f2124;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .15s ease, background-color .15s ease;
}

.searchpro__page a.searchpro__page-category:hover {
    border-color: #f2994a;
    background: #fff6ee;
    color: #1f2124;
}

.searchpro__page .searchpro__page-category_name {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchpro__page .searchpro__page-category_hint {
    color: #9aa0a6;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.searchpro__page a.searchpro__page-category:hover .searchpro__page-category_hint {
    color: #c9762a;
}

.fl-cats-toggle {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: -8px 0 20px;
    padding: 0 14px;
    border: 1px dashed #d9d9d9;
    border-radius: 999px;
    background: transparent;
    color: #c9762a;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.fl-cats-toggle:hover {
    border-color: #f2994a;
    background: #fff6ee;
}

@media (max-width: 767px) {
    .searchpro__page .searchpro__page-categories {
        gap: 6px;
        margin: 12px 0 16px;
    }

    .searchpro__page .searchpro__page-categories.fl-cats--collapsed {
        max-height: 74px;
    }

    .searchpro__page a.searchpro__page-category {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }
}