.filter-popup,
.filter-popup * {
    box-sizing: border-box;
}

/* hidden inputs */
.filter-popup--toggler {
    position: fixed;
    clip: rect(1px 1px 1px 1px);
    pointer-events: none;
    z-index: -1;
}

/* the bg */
.filter-popup--bg {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, .85);
    transition: opacity .5s;
    z-index: 998;
}

/* the actual div */
.filter-popup {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    width: 980px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0);
    padding: 15px 15px 33px 15px;
    transition: .5s ease-in-out;
    z-index: 999;
}

.filter-popup--bg,
.filter-popup {
    opacity: 0;
    transform: translateY(-100vh);
    pointer-events: none;
}

body:not(.js-enabled) a.more-filters.js-only,
body:not(.js-enabled) a.filter-popup--close.js-only {
    display: none;
}

.js-enabled .filter-popup--bg {
    cursor: pointer;
}

:checked + .filter-popup--bg,
:checked + .filter-popup--bg + .filter-popup {
    box-shadow: 0 0 15px rgba(0, 0, 0, .15);
    opacity: 1;
    transform: translate(0);
    pointer-events: auto;
}

/* scroller */
.filter-popup--scroller {
    margin: 15px -15px 0;
    overflow: auto;
}

.filter-popup.no-menu .filter-popup--scroller {
    margin-top: 0;
}

/* the items div */
.filter-popup--items {
    clear: both;
    padding: 15px;
    column-width: 220px;
    column-gap: 15px;
    /*column-fill: auto;*/
}

.filter-popup--items > div {
    margin: 0;
    -webkit-column-break-inside: avoid; /* Chrome, Safari */
    page-break-inside: avoid; /* Theoretically FF 20+ */
    break-inside: avoid-column; /* IE 11 */
    display: table; /* Actually FF 20+ */
    width: 100%;
}

@media (min-height: 1px) {
    .filter-popup.has-menu .filter-popup--scroller {
        max-height: calc(100vh - 175px);
    }

    .filter-popup.no-menu .filter-popup--scroller {
        max-height: calc(100vh - 100px);
    }
}

/*
.filter-popup--items label,
.filter-popup--items a[href] {
    display: block;
    padding-top:3px !important;
    padding-bottom:3px !important;
    margin-bottom: 0 !important;
}

.filter-popup--items .filter-wrap {
    display: table;
    width: 100%;
}

.filter-popup--items .filter-wrap > * {
    display:table-cell;
    vertical-align: top;
}

.filter-popup--items .filter-wrap .filter-i-aantal {
    width: 1px;
    padding-left: 3px;
    padding-right: 5px;
}
*/

/* the menu*/
.filter-popup--menu {
    display: block;
}

.filter-popup--menu label {
    float: left;
    font-weight: normal;
    line-height: 28px;
    min-width: 28px;
    padding: 0 5px;
    text-align: center;
    margin-right: 3px;
    margin-bottom: 3px;
    color: #000;
    background: #fff;
    transition: .5s;
}

.filter-popup--menu :focus + label {
    outline: 1px dotted;
}

/* checked state */
.filter-popup--menu :checked + label {
    background-color: rgb(73, 188, 28);
    color: #fff;
}

.filter-popup--menu :checked:focus + label {
    outline-color: #000;
    outline-offset: 1px;
}

/* disabled state */
.filter-popup--menu :disabled + label,
.filter-popup--menu [disabled] + label {
    background-color: #fff;
    color: #999;
    cursor: default;
    opacity: .5;
}

/* the title */
.filter-popup--title {
    margin: 0 0 30px !important;
    display: inline-block;
}

.filter-popup--title span {
    color: #999;
}

.filter-popup.no-menu .filter-popup--title {
    margin-bottom: 15px !important;
}

/* close */
.filter-popup--close {
    float: right;
    color: #999;
    font-size: 1.5em;
    margin-top: -15px;
    margin-right: -15px;
    width: 2em;
    height: 2em;
    line-height: 2em;
    text-align: center;
}

/* clearfixes */

.filter-popup--menu:after,
.filter-popup:after {
    display: table;
    clear: both;
    content: '';
}

/* misc */
.filter-popup .btn-remove-filter {
    display: none;
}

.more-filters:focus-within {
    outline: 1px dotted;
}

.btn-apply-filter:focus {
    outline: 1px dotted #000;
}

/* wordt aangezet door js */
.filter-popup .focusguard {
    display: none;
}