
/**
 * 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-text);
}

.facets-reset {
    --color: var(--root-color-text);
    --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);
    --color-border: var(--root-color-border);
    --width-border: var(--root-border-width);
}

.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: 0.25em;
}

.facets-group:not(:last-child) {
    padding-bottom: 1.5rem;
}

.facets-group:not(:first-child) {
    border-top-style: solid;
    padding-top: 1.5rem;
}

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

.facets-category__link {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 1em;
}

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

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

@media (min-width: 62rem) {
    .facets-filter .collapsible__header {
        margin-bottom: 1.5em;
    }

    .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-group:first-child {
        border-top-style: solid;
        padding-top: 1.5rem;
    }

    .facets-group:last-child {
        border-bottom-style: solid;
        padding-bottom: 1.5rem;
    }

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

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

.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 {
    border-bottom-color: var(--color-border, hsla(0, 0%, 0%, 0.2));
    border-top-color: var(--color-border, hsla(0, 0%, 0%, 0.2));
    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);
    border-top-width: var(--width-border, 0.063rem);
}

.facets-group:first-child {
    border-top-width: 0;
}

.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);
}

@media (min-width: 62rem) {
    .facets-group:first-child {
        border-top-width: var(--width-border, 0.063rem);
    }

    .facets-group:last-child {
        border-bottom-width: var(--width-border, 0.063rem);
    }
}
