/* --- Styles for Advanced Product Filters --- */

/* Main container for all filters */
.advanced-product-filters-wrapper .advanced-product-filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* This adds space between each filter block */
}

/* Container for a single label and control (dropdown OR checkbox group) */
.advanced-product-filters-wrapper .filter-block {
    display: flex;
    flex-direction: column;
}

/* The title label above the control */
.advanced-product-filters-wrapper .filter-block-title {
    font-weight: bold;
    margin-bottom: 8px; /* Space between label and control */
}

/* Shared style for all controls (dropdowns and checkbox containers) */
.advanced-product-filters-wrapper .filter-block-control {
    width: 100%; /* Makes all controls the same full width */
    max-width: 400px; /* Optional: prevents them from getting too wide on large screens */
}

/* --- NEW: Checkbox Specific Styles --- */

/* Container for a list of checkboxes */
.advanced-product-filters-wrapper .filter-block-checkboxes {
    /* You could add a border or padding here if you like */
    /* border: 1px solid #ddd; */
    /* padding: 10px; */
}

/* A single checkbox row (input + label) */
.advanced-product-filters-wrapper .filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between checkbox and label */
    margin-bottom: 5px;
}

/* The checkbox input */
.advanced-product-filters-wrapper .filter-checkbox-item input[type="checkbox"] {
    width: auto; /* Override theme defaults that might make it 100% wide */
    margin: 0;
}

/* The checkbox label */
.advanced-product-filters-wrapper .filter-checkbox-item label {
    margin-bottom: 0; /* Override theme defaults */
    font-weight: normal; /* Override theme defaults */
}

/* The count span inside the label */
.advanced-product-filters-wrapper .filter-checkbox-item .filter-count {
    color: #777;
    font-size: 0.9em;
}
/* ... all your other styles above this line ... */

/* --- NEW: Force-hide utility class (v4.3.1) --- */
/* This class is added by JS to hide 0-count options */
/* and overrides theme styles. */
.apf-filter-hidden {
    display: none !important;
}
/* ... all your other styles above this line ... */