/**
 * Filter collapse styles
 */


/* Filter group styles */
.issf-filter-group {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Filter heading styles */
.issf-filter-heading {
    position: relative;
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    align-content: center;
    margin-bottom: 0px !important;!I;!;
    padding: 7px;
}

/* Filter content styles */
.issf-filter-group-content {
    padding: 15px;
    background-color: #fff;
}

/* Toggle icon styles */
.issf-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Rotate icon when collapsed */
.issf-collapsed .issf-toggle-icon {
    transform: rotate(-90deg);
}

/* Color the icon when expanded */
.issf-expanded .issf-toggle-icon svg {
    stroke: #0073aa;
}

/* Make collapsed content invisible */
.issf-collapsed .issf-filter-group-content {
    display: none;
}

/* Mobile styles */
@media screen and (max-width: 767px) {
    .issf-filter-group {
        margin-bottom: 10px;
    }
    
    .issf-filter-heading {
        padding: 10px;
    }
    
    .issf-filter-group-content {
        padding: 10px;
    }
}

/* Add animation to content */
.issf-filter-group-content {
    transition: max-height 0.3s ease;
}

/* Ensure heading and toggle icon alignment */
.issf-filter-heading {
    position: relative;
}

.issf-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.issf-collapsed .issf-toggle-icon {
    transform: translateY(-50%) rotate(-90deg);
}

.issf-expanded .issf-toggle-icon {
    transform: translateY(-50%) rotate(0);
}

.issf-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: #555;
    stroke-width: 2;
}

/* Special handling for active filters */
.issf-active-filters .issf-filter-heading {
    color: #0073aa;
}

/* Price range specific styles */
.issf-price-slider-wrapper {
    margin-top: 15px;
}

/* Make sure filters look good in the mobile sidebar */
.issf-mobile-sidebar-body .issf-filter-group {
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Fix for any nested containers */
.issf-filter-group .issf-filter-content {
    padding: 0;
    border: none;
}

/* Ensure font consistency */
.issf-filter-heading {
    font-family: inherit;
    line-height: 1.4;
}

/* Add space for checkboxes */
.issf-filter-item {
    margin-bottom: 5px;
}

.issf-filter-item:last-child {
    margin-bottom: 0;
}
