/**
 * Nexus Brand Filter — left-column sidebar widget styling.
 *
 * Kept neutral so it inherits typography from the active theme.
 * Tweak colors via the CSS variables at the top.
 */

.widget_nexus_brand_filter,
.nexus-brand-filter {
    --nbf-text:        #1f2328;
    --nbf-muted:       #6e7781;
    --nbf-accent:      #2563eb;
    --nbf-accent-soft: #dbeafe;
    --nbf-line:        #e5e7eb;
    --nbf-active-bg:   #eff6ff;
    --nbf-badge-bg:    #fef3c7;
    --nbf-badge-text:  #92400e;
    --nbf-chip-bg:     #1f2937;
    --nbf-chip-text:   #ffffff;
    font-size: 14px;
    line-height: 1.45;
    color: var(--nbf-text);
}

.nexus-brand-filter__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nbf-text);
}

.nexus-brand-filter__active {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.6rem 0;
    padding: 0 0 0.6rem 0;
    border-bottom: 1px solid var(--nbf-line);
    align-items: center;
}

.nexus-brand-filter__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--nbf-chip-bg);
    color: var(--nbf-chip-text);
    text-decoration: none;
    padding: 0.15rem 0.5rem 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.nexus-brand-filter__chip:hover {
    opacity: 0.85;
    color: var(--nbf-chip-text);
}

.nexus-brand-filter__chip-x {
    font-size: 0.95rem;
    line-height: 1;
}

.nexus-brand-filter__clear {
    font-size: 0.78rem;
    color: var(--nbf-muted);
    text-decoration: underline;
    margin-left: auto;
}

.nexus-brand-filter__clear:hover {
    color: var(--nbf-accent);
}

.nexus-brand-filter__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 24rem;
    overflow-y: auto;
}

.nexus-brand-filter__list::-webkit-scrollbar {
    width: 6px;
}

.nexus-brand-filter__list::-webkit-scrollbar-thumb {
    background: var(--nbf-line);
    border-radius: 3px;
}

.nexus-brand-filter__item {
    border-bottom: 1px dashed transparent;
}

.nexus-brand-filter__item.is-featured .nexus-brand-filter__name::before {
    content: "★ ";
    color: #d97706;
    font-size: 0.85em;
}

.nexus-brand-filter__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.4rem;
    margin: 0 -0.4rem;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: background-color 120ms ease;
}

.nexus-brand-filter__link:hover {
    background: var(--nbf-accent-soft);
    color: inherit;
}

.nexus-brand-filter__item.is-active .nexus-brand-filter__link {
    background: var(--nbf-active-bg);
    color: var(--nbf-accent);
    font-weight: 600;
}

.nexus-brand-filter__check {
    width: 0.85rem;
    display: inline-block;
    color: var(--nbf-accent);
    font-weight: 700;
}

.nexus-brand-filter__name {
    flex: 1 1 auto;
}

.nexus-brand-filter__count {
    color: var(--nbf-muted);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.nexus-brand-filter__badge {
    background: var(--nbf-badge-bg);
    color: var(--nbf-badge-text);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
