/**
 * WooCommerce Price Filter Widget Styles
 */

.wpf-price-filter {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wpf-price-range-item {
    margin-bottom: 10px;
    padding: 5px 0;
}

.wpf-price-range-item:last-child {
    margin-bottom: 0;
}

.wpf-price-range-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    user-select: none;
}

.wpf-price-range-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.wpf-price-label {
    flex: 1;
    color: #333;
}

.wpf-product-count {
    color: #dc3232;
    font-weight: 600;
    margin-left: 5px;
}

.wpf-price-range-item input[type="checkbox"]:checked + .wpf-price-label {
    font-weight: 600;
}

/* Widget title styling */
.widget .widget-title {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 16px;
}

/* Loading state */
.wpf-price-filter.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wpf-price-filter.loading::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wpf-price-range-item label {
        font-size: 13px;
    }
    
    .wpf-product-count {
        font-size: 13px;
    }
}
