/**
 * Search & Filter Pro Fix - Styles
 * Visual feedback and loading states
 */

/* Loading State */
.sfp-fix-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

/* Loading Overlay */
.sfp-fix-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Spinner */
.sfp-fix-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: sfp-spin 1s linear infinite;
}

@keyframes sfp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Active Filter Highlight */
input[type="checkbox"]:checked+label,
input[type="checkbox"]:checked~label {
    font-weight: 600;
    color: #2563eb;
}

/* Better Checkbox Visual */
input[type="checkbox"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* Active State for Results */
.searchandfilter[data-sf-form-id] {
    transition: opacity 0.3s ease;
}

/* Optional: Smooth transitions for result updates */
.sf-ajax-results-container {
    transition: opacity 0.2s ease-in-out;
}

.sf-ajax-results-container.sf-loading {
    opacity: 0.5;
}