:root {
    --vf-orange: #fb471f;
    --vf-orange-600: #e63e18;
    --vf-orange-100: #ffd9cb;
    --vf-ink: #0f172a;
    --vf-ink-2: #334155;
    --vf-ink-3: #64748b;
    --vf-line: #e2e8f0;
    --vf-bg-2: #f1f5f9;
    --vf-radius-pill: 999px;
    --vf-radius-panel: 14px;
    --vf-shadow-xs: 0 2px 6px -2px rgba(15, 23, 42, 0.08);
    --vf-shadow-orange: 0 18px 40px -18px rgba(251, 71, 31, 0.42);
}

.vfilter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.vfilter-toolbar label {
    display: none;
}

.vfilter-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}
.vfilter-search__group {
    margin: 0;
}
.vfilter-search__group small {
    display: none;
}
.vfilter-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vf-ink-3);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}
.vfilter-search .vfilter-search__input {
    height: 44px;
    width: 100%;
    border-radius: var(--vf-radius-pill);
    border: 1px solid var(--vf-line);
    padding: 0 16px 0 40px;
    background: #fff;
    font-size: 13.5px;
}
.vfilter-search .vfilter-search__input:focus {
    border-color: var(--vf-orange);
    box-shadow: 0 0 0 3px rgba(251, 71, 31, 0.12);
    outline: none;
}

.vfilter-filters {
    display: flex;
    gap: 10px;
    flex: 1 1 320px;
    min-width: 0;
}
.vfilter-filter {
    margin: 0;
    flex: 1 1 150px;
    min-width: 0;
}
.vfilter-filter--wide {
    flex: 1.5 1 180px;
}
@media (max-width: 575.98px) {
    .vfilter-filters {
        flex-wrap: wrap;
    }
    .vfilter-filter {
        flex: 1 1 calc(50% - 5px);
    }
}

.vfilter-toolbar .vfilter-select {
    height: 44px;
    width: 100%;
    border-radius: var(--vf-radius-pill);
    border: 1.5px solid var(--vf-line);
    padding: 0 38px 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-ink-2);
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 13px;
    cursor: pointer;
}
.vfilter-toolbar .vfilter-select:focus {
    border-color: var(--vf-orange);
    box-shadow: 0 0 0 3px rgba(251, 71, 31, 0.16);
    outline: none;
}

.vfilter-actions {
    display: inline-flex;
    flex-shrink: 0;
    gap: 8px;
}
.vfilter-btn {
    height: 44px;
    border-radius: var(--vf-radius-pill);
    padding: 0 18px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s,
        filter 0.15s;
}
.vfilter-btn--filter {
    background: var(--vf-orange);
    color: #fff;
}
.vfilter-btn--filter:hover {
    filter: brightness(0.93);
    color: #fff;
}
.vfilter-btn--clear {
    background: #fff;
    color: var(--vf-ink-2);
    border-color: var(--vf-line);
}
.vfilter-btn--clear:hover {
    border-color: var(--vf-orange);
    color: var(--vf-orange);
}

.vfilter-view {
    display: inline-flex;
    flex-shrink: 0;
    background: var(--vf-bg-2);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius-pill);
    padding: 3px;
    gap: 2px;
}
.vfilter-view__btn {
    width: 40px;
    height: 38px;
    border: 0;
    background: transparent;
    border-radius: var(--vf-radius-pill);
    color: var(--vf-ink-3);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s,
        color 0.15s;
}
.vfilter-view__btn.is-active {
    background: #fff;
    color: var(--vf-orange);
    box-shadow: var(--vf-shadow-xs);
}

.vfilter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.vfilter-tabs::-webkit-scrollbar {
    display: none;
}
.vfilter-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--vf-line);
    background: #fff;
    color: var(--vf-ink-2);
    padding: 8px 16px;
    border-radius: var(--vf-radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s,
        box-shadow 0.2s;
}
@media (hover: hover) and (pointer: fine) {
    .vfilter-chip:hover {
        border-color: var(--vf-orange-100);
        color: var(--vf-orange);
    }
}
.vfilter-chip.is-active {
    background: linear-gradient(135deg, var(--vf-orange), var(--vf-orange-600));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--vf-shadow-orange);
}
.vfilter-chip__count {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
}
.vfilter-chip.is-active .vfilter-chip__count {
    opacity: 0.85;
}

.vfilter-toolbar .select2-container {
    width: 100% !important;
    min-width: 0;
}
.vfilter-toolbar .select2-container--bootstrap-5 .select2-selection,
.vfilter-toolbar .select2-selection {
    min-height: 44px;
    height: 44px;
    border-radius: var(--vf-radius-pill);
    border: 1.5px solid var(--vf-line);
    display: flex;
    align-items: center;
    padding: 0 6px 0 14px;
    background: #fff;
}
.vfilter-toolbar .select2-selection__rendered {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vf-ink-2);
    line-height: 1.2;
    padding: 0;
}
.vfilter-toolbar .select2-selection__arrow {
    top: 50%;
    transform: translateY(-50%);
}
.vfilter-toolbar .select2-container--focus .select2-selection,
.vfilter-toolbar .select2-container--open .select2-selection {
    border-color: var(--vf-orange);
    box-shadow: 0 0 0 3px rgba(251, 71, 31, 0.12);
}
.vfilter-toolbar .select2-container--open .select2-selection {
    border-radius: var(--vf-radius-panel) var(--vf-radius-panel) 0 0;
    box-shadow: none;
}
body:has(.vfilter-toolbar) .select2-dropdown {
    border-color: var(--vf-orange);
    border-radius: 0 0 var(--vf-radius-panel) var(--vf-radius-panel);
    overflow: hidden;
    box-shadow: 0 14px 30px -16px rgba(15, 23, 42, 0.25);
}
body:has(.vfilter-toolbar) .select2-dropdown--above {
    border-radius: var(--vf-radius-panel) var(--vf-radius-panel) 0 0;
}
body:has(.vfilter-toolbar) .select2-dropdown .select2-search__field {
    border: 1px solid var(--vf-line);
    border-radius: 8px;
    padding: 6px 10px;
}
body:has(.vfilter-toolbar) .select2-dropdown .select2-search__field:focus {
    border-color: var(--vf-orange);
    box-shadow: 0 0 0 2px rgba(251, 71, 31, 0.15);
    outline: none;
}
/* Selected row: the bootstrap-5 theme paints it #fff text on a bg that only shows
   when Bootstrap CSS is present. The public web (landing layout) has no Bootstrap,
   so the bg drops out and the text is white-on-white (invisible). Pin a readable
   brand style so the current option always shows. */
body:has(.vfilter-toolbar) .select2-dropdown .select2-results__option--selected,
body:has(.vfilter-toolbar)
    .select2-dropdown
    .select2-results__option[aria-selected="true"] {
    background-color: var(--vf-orange-100) !important;
    color: var(--vf-ink) !important;
}
body:has(.vfilter-toolbar)
    .select2-dropdown
    .select2-results__option--highlighted {
    background-color: var(--vf-orange) !important;
    color: #fff !important;
}
