:root {
    --wcdf-accent:    #2271b1;
    --wcdf-accent-bg: #e8f1f8;
    --wcdf-text:      #1e1e1e;
    --wcdf-muted:     #6b7280;
    --wcdf-border:    #e5e7eb;
    --wcdf-radius:    6px;
}

.wcdf-panel {
    font-size: 14px;
    color: var(--wcdf-text);
}

.wcdf-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--wcdf-muted);
    text-decoration: none;
    border: 1px solid var(--wcdf-border);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.wcdf-clear-all:hover { color: #c0392b; border-color: #c0392b; }

.wcdf-group {
    border-bottom: 1px solid var(--wcdf-border);
}
.wcdf-group:last-child { border-bottom: none; }

.wcdf-group__header {
    padding: 12px 0;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.wcdf-group__header::after {
    content: '\2212';
    font-size: 18px;
    font-weight: 300;
    color: var(--wcdf-muted);
}
.wcdf-group.is-collapsed .wcdf-group__header::after {
    content: '\002B';
}
.wcdf-group.is-collapsed .wcdf-group__body {
    display: none;
}

.wcdf-group__body {
    padding-bottom: 12px;
}

.wcdf-terms {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.wcdf-term { margin: 0; padding: 0; }

.wcdf-term__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
    cursor: pointer;
    border-radius: 4px;
}
.wcdf-term__label:hover { background: var(--wcdf-accent-bg); }
.wcdf-term__label.is-checked { color: var(--wcdf-accent); font-weight: 600; }

.wcdf-term__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.wcdf-term__check {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    border: 2px solid var(--wcdf-border);
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}
.wcdf-term__input:checked + .wcdf-term__check {
    background: var(--wcdf-accent);
    border-color: var(--wcdf-accent);
}
.wcdf-term__input:checked + .wcdf-term__check::after {
    content: '';
    display: block;
    width: 4px;
    height: 7px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
}

.wcdf-term__name { flex: 1; font-size: 13px; }
.wcdf-term__count { font-size: 11px; color: var(--wcdf-muted); }

/* Active bar */
.wcdf-active-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.wcdf-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 12px;
    background: var(--wcdf-accent-bg);
    color: var(--wcdf-accent);
    border: 1px solid var(--wcdf-accent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.wcdf-active-tag:hover { background: var(--wcdf-accent); color: #fff; }
.wcdf-active-tag--clear {
    background: transparent;
    color: var(--wcdf-muted);
    border-color: var(--wcdf-border);
}
.wcdf-active-tag--clear:hover { background: #f3f4f6; color: var(--wcdf-text); }

/* Mobile */
.wcdf-mobile-toggle {
    display: none;
    width: 100%;
    padding: 10px;
    background: var(--wcdf-accent);
    color: #fff;
    border: none;
    border-radius: var(--wcdf-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}
@media (max-width: 767px) {
    .wcdf-mobile-toggle { display: block; }
    .wcdf-panel.is-mobile-hidden { display: none; }
}
