/* IP-Class Filter - Multi-select Checkboxes in 3-column Grid */

.voltride-filter-ip-class {
    padding: 0;
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: auto !important;
}

.voltride-filter-ip-class .wd-pf-dropdown,
.voltride-filter-ip-class .voltride-ip-grid {
    position: relative !important;
    z-index: auto !important;
}

.voltride-filter-ip-class .wd-pf-title {
    padding: 0 !important;
    border: none !important;
}

.voltride-filter-ip-class .title-text {
    text-transform: inherit !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.2;
    color: var(--new-green, #0f3f36);
}

/* Desktop - Always open, no dropdown styling */
.voltride-filter-ip-class .wd-pf-dropdown {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.voltride-filter-ip-class .wd-pf-title {
    cursor: default !important;
}

/* 3-Column Grid Layout - Always */
.voltride-ip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto !important;
}

.voltride-ip-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 0;
    transition: opacity 0.2s ease;
    margin: 0;
    position: relative;
    z-index: 1;
}

.voltride-ip-option:hover {
    opacity: 0.8;
}

.voltride-ip-option:hover .voltride-ip-checkbox {
    border-color: var(--new-green, #0f3f36);
}

/* Custom Checkbox Styling - Woodmart Style (Circle with Checkmark) */
.voltride-ip-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #bbb;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin: 0;
    background-color: #e0e0e0;
    z-index: 2;
    pointer-events: auto !important;
}

.voltride-ip-checkbox:hover {
    border-color: var(--new-green, #0f3f36);
    transform: scale(1.05);
}

.voltride-ip-checkbox:checked {
    background-color: var(--new-green, #0f3f36);
    border-color: var(--new-green, #0f3f36);
}

/* Checkmark - White checkmark like Woodmart */
.voltride-ip-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

/* Label Text */
.voltride-ip-label {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
    user-select: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

/* Mobile Responsive - Accordion behavior */
@media (max-width: 768px) {
    /* Enable accordion on mobile */
    .voltride-filter-ip-class .wd-pf-title {
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    .voltride-filter-ip-class .wd-pf-dropdown {
        display: none !important;
    }
    
    .voltride-filter-ip-class.wd-opened .wd-pf-dropdown {
        display: block !important;
    }
    
    .voltride-ip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .voltride-ip-option {
        padding: 8px 0;
        gap: 10px;
    }
    
    .voltride-ip-checkbox {
        width: 22px;
        height: 22px;
    }
    
    .voltride-ip-checkbox:checked::after {
        font-size: 13px;
    }
    
    .voltride-ip-label {
        font-size: 13px;
    }
    
    .voltride-filter-ip-class .title-text {
        font-size: 13px !important;
    }
}

/* Very small screens - keep 2 columns but smaller */
@media (max-width: 480px) {
    .voltride-ip-option {
        padding: 6px 0;
        gap: 8px;
    }
    
    .voltride-ip-checkbox {
        width: 20px;
        height: 20px;
    }
    
    .voltride-ip-checkbox:checked::after {
        font-size: 12px;
    }
    
    .voltride-ip-label {
        font-size: 12px;
    }
}
