/**
 * Filtros variables compactos: select múltiple buscable + cápsulas.
 */
.bm-variant-filter,
[data-bm-variant-filter] {
    margin: 0;
    padding: 0;
    border: 0;
}
.bm-variant-filter__label,
[data-bm-variant-filter] > .bm-stores-directory__label,
[data-bm-variant-filter] > .store-catalog-filters__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #1f2937;
}
.store-catalog-filters__label.bm-variant-filter__label {
    font-size: 0.85rem;
    color: #374151;
}
.bm-vfs {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}
.bm-vfs > select.bm-vfs-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}
.bm-vfs__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.35rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.bm-vfs__control:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}
.bm-vfs__display {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-size: 0.9rem;
}
.bm-vfs__caret {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg) translateY(-2px);
}
.bm-vfs__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    padding: 0.45rem;
}
.bm-vfs__filter {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.35rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font: inherit;
    font-size: 0.875rem;
}
.bm-vfs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 14rem;
    overflow: auto;
}
.bm-vfs__group-label {
    padding: 0.35rem 0.5rem 0.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #6b7280;
    pointer-events: none;
}
.bm-vfs__item {
    padding: 0.4rem 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #111827;
}
.bm-vfs__item:hover,
.bm-vfs__item.is-active {
    background: #f3f4f6;
}
.bm-vfs__item.is-selected {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}
.bm-vfs__item.is-selected::before {
    content: '✓ ';
}
.bm-vfs__empty {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}
.bm-variant-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.bm-variant-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.2rem 0.45rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.8rem;
    line-height: 1.3;
    cursor: pointer;
}
.bm-variant-filter__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(100%, 18rem);
}
.bm-variant-filter__chip-remove {
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
}
.bm-variant-filter__chip:hover,
.bm-variant-filter__chip:focus-visible {
    background: #dbeafe;
    outline: none;
}
.store-catalog-filters .bm-variant-filter,
.store-catalog-filters [data-bm-variant-filter],
.bm-directory-filters [data-bm-variant-filter] {
    grid-column: auto;
}
