/* ===========================
   CLEAN ACCESSIBLE FILTER PLUGIN
   Compact & Modern Design
   =========================== */

/* Main Filter Container */
..wpfPriceRangeField#wpfMinPrice, .wpfPriceRangeField#wpfMaxPrice {
	width:15px !important;
}
.wpf-filters-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.wpf-filters-container:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Filter Header - Compact Design */
.wpf-filter-header {
    background: linear-gradient(135deg, #50accd 0%, #4298b7 100%);
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 42px;
}

.wpf-filter-header:hover {
    background: linear-gradient(135deg, #4a9bc4 0%, #3d8ba8 100%);
}

.wpf-filter-header:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

.wpf-filter-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Toggle Icon - Cleaner */
.wpf-toggle-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
    font-weight: bold;
    opacity: 0.9;
}

.wpf-toggle-icon.active {
    transform: rotate(180deg);
}

/* Filter Content - More Compact */
.wpf-filter-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #fafbfc;
}

.wpf-filter-content.open {
    padding: 12px 16px;
    max-height: 600px;
}

/* Individual Filter Groups - Streamlined */
.wpf-filter-group {
    margin-bottom: 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.wpf-filter-group:last-child {
    margin-bottom: 0;
}

/* Filter Group Header - Minimal */
.wpf-filter-group-header {
    background: #f8fafc;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 32px;
}

.wpf-filter-group-header:hover {
    background: #f1f5f9;
}

.wpf-filter-group-header:focus-visible {
    outline: 2px solid #50accd;
    outline-offset: -2px;
}

.wpf-filter-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.wpf-filter-group-toggle {
    font-size: 10px;
    color: #6b7280;
    transition: transform 0.2s ease;
}

.wpf-filter-group-toggle.active {
    transform: rotate(180deg);
}

/* Filter Group Content - Compact */
.wpf-filter-group-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.wpf-filter-group-content.open {
    padding: 8px 12px;
    max-height: 300px;
}

/* Filter Items - Tighter Spacing */
.wpf-filter-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    transition: background 0.2s ease;
    border-radius: 3px;
}

.wpf-filter-item:hover {
    background: #f8fafc;
    margin: 0 -4px;
    padding: 4px 4px;
}

/* Checkboxes and Radio Buttons - Better Accessibility */
.wpf-filter-checkbox,
.wpf-filter-radio {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: #50accd;
    cursor: pointer;
    flex-shrink: 0;
}

.wpf-filter-checkbox:focus,
.wpf-filter-radio:focus {
    outline: 2px solid #50accd;
    outline-offset: 1px;
}

.wpf-filter-label {
    flex: 1;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
}

.wpf-filter-count {
    font-size: 11px;
    color: #6b7280;
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 6px;
    min-width: 16px;
    text-align: center;
}

/* Color Swatches - Compact */
.wpf-color-swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wpf-color-swatch:hover,
.wpf-color-swatch.selected {
    border-color: #50accd;
    border-width: 2px;
    transform: scale(1.05);
}

.wpf-color-swatch:focus {
    outline: 2px solid #50accd;
    outline-offset: 1px;
}

/* Price Range Slider - Streamlined */
.wpf-price-range {
    padding: 6px 2px;
}

.wpf-price-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.wpf-price-slider:focus {
    outline: 2px solid #50accd;
    outline-offset: 2px;
}

.wpf-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #50accd;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wpf-price-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #50accd;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wpf-price-display {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

/* Search Box - Compact */
.wpf-search-box {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.wpf-search-box:focus {
    outline: none;
    border-color: #50accd;
    box-shadow: 0 0 0 1px rgba(80, 172, 205, 0.3);
}

/* Action Buttons - Compact */
.wpf-clear-filters {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.wpf-clear-filters:hover {
    background: #dc2626;
}

.wpf-clear-filters:focus {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
}

.wpf-apply-filters {
    background: #22c55e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 8px;
    margin-left: 8px;
}

.wpf-apply-filters:hover {
    background: #16a34a;
}

.wpf-apply-filters:focus {
    outline: 2px solid #22c55e;
    outline-offset: 1px;
}

/* Loading State - Minimal */
.wpf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #6b7280;
    font-size: 13px;
}

.wpf-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #50accd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Active/Selected States */
.wpf-filter-item.selected {
    background: #f0f9ff;
    border-radius: 3px;
    margin: 0 -4px;
    padding: 4px 4px;
}

.wpf-filter-item.selected .wpf-filter-label {
    color: #0369a1;
    font-weight: 500;
}
.wpf-clear-filters,
    .wpf-apply-filters {
      display:none
    }

/* Responsive Design - More Compact */
@media (max-width: 768px) {
    .wpf-filters-container {
        margin-bottom: 12px;
    }
    
    .wpf-filter-header {
        padding: 8px 12px;
        min-height: 38px;
    }
    
    .wpf-filter-title {
        font-size: 13px;
    }
    
    .wpf-filter-content.open {
        padding: 10px 12px;
    }
    
    .wpf-filter-group-content.open {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .wpf-filter-header {
        padding: 6px 10px;
        min-height: 34px;
    }
    
    .wpf-filter-content.open {
        padding: 8px 10px;
    }
    
    .wpf-filter-group-content.open {
        padding: 6px 8px;
    }
    
    .wpf-price-display {
        font-size: 11px;
    }
    
    .wpf-clear-filters,
    .wpf-apply-filters {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    .wpf-filter-content,
    .wpf-filter-group-content,
    .wpf-toggle-icon,
    .wpf-filter-group-toggle {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .wpf-filters-container {
        border-width: 2px;
    }
    
    .wpf-filter-header {
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .wpf-filter-group {
        border-width: 2px;
    }
}

/* Custom Scrollbar - Minimal */
.wpf-filter-group-content::-webkit-scrollbar {
    width: 4px;
}

.wpf-filter-group-content::-webkit-scrollbar-track {
    background: #f8fafc;
}

.wpf-filter-group-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.wpf-filter-group-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}