.wcfm-0fc7ddfc-wrapper {
    position: relative;
}

.wcfm-0fc7ddfc-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.wcfm-0fc7ddfc-trigger:hover {
    opacity: 0.85;
}

.wcfm-0fc7ddfc-trigger svg {
    flex-shrink: 0;
}

.wcfm-0fc7ddfc-count {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wcfm-0fc7ddfc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wcfm-0fc7ddfc-overlay.wcfm-0fc7ddfc-active {
    opacity: 1;
    visibility: visible;
}

.wcfm-0fc7ddfc-panel {
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.wcfm-0fc7ddfc-panel--left {
    left: 0;
    transform: translateX(-100%);
}

.wcfm-0fc7ddfc-panel--right {
    right: 0;
    transform: translateX(100%);
}

.wcfm-0fc7ddfc-panel.wcfm-0fc7ddfc-active.wcfm-0fc7ddfc-panel--left,
.wcfm-0fc7ddfc-panel.wcfm-0fc7ddfc-active.wcfm-0fc7ddfc-panel--right {
    transform: translateX(0);
}

.wcfm-0fc7ddfc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.wcfm-0fc7ddfc-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.wcfm-0fc7ddfc-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wcfm-0fc7ddfc-close:hover {
    opacity: 1;
}

.wcfm-0fc7ddfc-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.wcfm-0fc7ddfc-section {
    border-bottom: 1px solid #f0f0f0;
}

.wcfm-0fc7ddfc-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: inherit;
    text-align: left;
}

.wcfm-0fc7ddfc-section-title:hover {
    background: rgba(0,0,0,0.02);
}

.wcfm-0fc7ddfc-section-count {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 4px;
}

.wcfm-0fc7ddfc-chevron {
    font-size: 10px;
    transition: transform 0.25s ease;
    margin-left: auto;
}

.wcfm-0fc7ddfc-section-title[aria-expanded="false"] .wcfm-0fc7ddfc-chevron {
    transform: rotate(-90deg);
}

.wcfm-0fc7ddfc-section-content {
    padding: 0 20px 14px;
    max-height: 220px;
    overflow-y: auto;
}

.wcfm-0fc7ddfc-section-content[hidden] {
    display: none;
}

.wcfm-0fc7ddfc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.wcfm-0fc7ddfc-checkbox-label.wcfm-0fc7ddfc-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.wcfm-0fc7ddfc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.wcfm-0fc7ddfc-term-count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.5;
}

.wcfm-0fc7ddfc-panel-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.wcfm-0fc7ddfc-clear {
    flex: 1;
    padding: 12px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.wcfm-0fc7ddfc-clear:hover {
    background: #f5f5f5;
}

.wcfm-0fc7ddfc-apply {
    flex: 2;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.wcfm-0fc7ddfc-apply:hover {
    opacity: 0.9;
}

.wcfm-0fc7ddfc-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.wcfm-0fc7ddfc-active-filters:empty {
    display: none;
}

.wcfm-0fc7ddfc-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: default;
    line-height: 1;
    text-transform: capitalize;
}

.wcfm-0fc7ddfc-active-tag-remove {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-decoration: none;
    color: inherit;
}

.wcfm-0fc7ddfc-active-tag-remove:hover {
    opacity: 1;
}

.wcfm-0fc7ddfc-clear-all-link {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.wcfm-0fc7ddfc-clear-all-link:hover {
    color: #333;
}

@media (max-width: 768px) {
    .wcfm-0fc7ddfc-panel {
        width: 100% !important;
    }
}
