
/**
 * This element is using CSS from the following:
 *
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible.css
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible-Header.css
 * - opengemeenten_cefeaturecollapsible/Feature/Collapsible/OpenGemeentenCeFeatureCollapsible-Panel.css
 *
 * The checkboxes are NOT inheriting CSS from the form checkbox
 *
 * Variables can be set there globally or override them here!
 */

.facets-filter {
    --font-size: var(--root-font-size); /* Reset: use REM */
}

.facets-filter > .collapsible__header > .collapsible__button {
    --color: var(--root-color--black);
    --font-family: var(--root-heading-3-family);
    --font-size: var(--root-heading-3-size);
    --font-style: var(--root-heading-3-style);
    --font-weight: var(--root-heading-3-weight);
    --line-height: var(--root-heading-3-line-height);
}

.facets-reset {
    --color: var(--root-color--black);
    --font-family: inherit;
    --font-size: 1em; /* Mobile 16px / > Mobile 18px */
    --font-style: normal;
    --font-weight: var(--root-font-weight--normal);
    --line-height: inherit;
}

.facets-reset:active,
.facets-reset:focus,
.facets-reset:hover {
    --color: var(--root-color-text-link--hover);
}

.facets-group {
    --color: var(--root-heading-4-color);
    --font-family: var(--root-heading-4-family);
    --font-size: var(--root-heading-4-size);
    --font-style: var(--root-heading-4-style);
    --font-weight: var(--root-heading-4-weight);
    --line-height: var(--root-heading-4-line-height);
}

.facets-category__link {
    --color: var(--root-color-text-link);
    --font-family: inherit;
    --font-size: 1em; /* Mobile 16px / > Mobile 18px */
    --font-style: normal;
    --font-weight: var(--root-font-weight--normal);
    --line-height: inherit;
}

.facets-category__link:focus,
.facets-category__link:hover {
    --color: var(--root-color-text-link--hover);
}

.facets-category__link[aria-selected="true"] {
    --font-weight: var(--root-font-weight--bold);
}

.facets-category__link__icon {
    --width: 1.333em;
}

@media (min-width: 62rem) {
    .facets-filter .collapsible__button,
    .facets-filter .collapsible__panel {
        --color-background: transparent;
    }
}

.facets-filter {
    position: relative;
}

.facets-groups {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.facets-group:not(:first-child) {
    margin-top: 1.5rem;
}

.facets-categories {
    list-style: none;
    margin-top: 0;
    padding: 0;
}

.facets-category {
    margin-top: 0.75em;
}

.facets-category__link {
    display: flex;
    align-items: center;
    position: relative;
}

.facets-category__link__icon {
    align-self: baseline;
    fill: currentColor;
    margin-right: 0.5rem;
}

@media (max-width: 62rem) {
    .facets-reset {
        display: block;
        margin-top: 2rem;
    }
}

@media (min-width: 62rem) {
    .facets-filter .collapsible__button {
        border-width: 0;
        cursor: default;
        padding: 0;
    }

    .facets-filter .collapsible__toggle-icon {
        display: none;
    }

    .facets-filter .collapsible__panel {
        border-width: 0;
    }

    .facets-filter .collapsible__content {
        padding: 0;
    }

    .facets-filter__count {
        display: none;
    }

    .facets-reset {
        line-height: 2;
        position: absolute;
        top: 0;
        right: 0;
    }
}

.facets-filter {
    font-size: var(--font-size, 1rem);
}

.facets-filter > .collapsible__header > .collapsible__button {
    color: var(--color, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-weight: var(--font-weight, normal);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}

.facets-reset {
    color: var(--color, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-weight: var(--font-weight, normal);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}

.facets-group {
    color: var(--color, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-weight: var(--font-weight, bold);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}

.facets-category__link {
    color: var(--color, black);
    font-family: var(--font-family, inherit);
    font-size: var(--font-size, 1em);
    font-weight: var(--font-weight, normal);
    font-style: var(--font-style, normal);
    line-height: var(--line-height, inherit);
}

.facets-category__link__icon {
    fill: currentColor;
    width: var(--width, 1.333em);
    min-width: var(--width, 1.333em);
}
