.checkmark {
    display:inline-block;
    width: 22px;
    height:22px;
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg);
    position: absolute;
    left: 8px;
    top:8px;
}

.checkmark_stem {
    position: absolute;
    width:3px;
    height:9px;
    background-color:black;
    left:11px;
    top:6px;
}

.checkmark_kick {
    position: absolute;
    width:3px;
    height:3px;
    background-color:black;
    left:8px;
    top:12px;
}

.filters {
    display:flex;
    flex-direction: row;
    height: 30px;
    width: 80%;
    margin-bottom: 8px;
    padding-left: 16px;
    padding-right:16px;
    box-sizing: border-box;
}
@media all and (-ms-high-contrast:none)
{
    .filters {
        display:block;

    }
}

.filter-list {
    min-width: 180px;
    max-width: 180px;
    height:28px;
    border: 1px solid lightgrey;
}
.filter-list li {
    display: inline-flex;
    width: 100%;
    height: 100%;
}
.filter-list li .activator {
    display: inline-flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
}


.filter-list li .activator:after {
    content: " ";
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    position: absolute;
    right: 16px;
    top: 10px;
    transition: 0.3s all ease-in-out;
}
.filter-list li .activator.active:after {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    top: 12px;
}


.filter-standard-list {
    display:none;
    flex-direction: column;
    width:100%;
    box-sizing: border-box;
}

.filter-column-wrapper {
    display:none;
    position: absolute;
    min-width: 180px;
    width: auto;
    margin-top: 28px;
    border: 1px solid lightgrey;
    background: rgb(248,248,248);
    z-index: 3;
    margin-left: -1px;
}


.filter-item {
    padding: 6px 6px 6px 16px;
    /*margin-bottom: 8px;*/
    border-bottom: 1px solid rgb(235,235,235);
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    transition: 0.15s ease-in;
    text-transform: uppercase;
}

.filter-item:last-of-type, .filter-item:nth-last-child(2) {
    margin-bottom:0;
}

.filter-item:hover {
    background: lightgrey;
}
.filter-item.selected {
    background: #53838B;
    color: white;
}
.filter-item.close {
    padding: 8px;
    display:flex;
    justify-content: flex-end;
    min-height: 47px;
}

.filter-item.close button{
    margin-left: 0;
    min-height: 30px;
}
.filter-item.close:hover {
    background: unset;
}
.gitter {
    transition: 0.2s ease-in-out;
}
.filters.active + .gitter {
    opacity: 0.4;
}
.filter-checkbox {
    display:none;
    position: absolute;
    right:16px;

}
.selected .filter-checkbox{
    display:block;
    width: 18px;
    height: 18px;
}

.filter-list li .activator.active + .filter-column-wrapper {
    display:flex;
}
.filter-list li .activator.active + .filter-column-wrapper .filter-standard-list {
    display: flex;
}

#filters-selected {
    display:block;
    width: 80%;
    float:left;
    /*grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;*/
    /*grid-gap: 16px;*/
    margin-left: 8px;
}

.filter-added {
    display:inline-block;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 8px;
    background: white;
    color: rgba(0,0,0,0.6);
    border: 1px solid rgba(0,0,0,0.6);
    transition: 0.2s all ease-in-out;
    padding: 4px 29px 4px 13px;
    position: relative;
}

.filter-added:hover {
    background: rgb(250,250,250);
    color: rgba(0,0,0,0.6);
}

.close-svg {
    position: absolute;
    right: 7px;
    top: 8px;
    transition: 0.2s all ease-in-out;
}

.checkmark-svg {
    display: none;
    position: absolute;
    right: 9px;
    top: 9px;
    transition: 0.2s all ease-in-out;
    filter: invert(1);
}

.selected .checkmark-svg {
    display: block;
}

.filter-added:hover .close-svg {
    opacity: 1 !important;
}

#filter-remove-all {
    display:none;
    position: relative;
    margin-left: 0;
    padding: 4px 13px 4px 13px;
    margin-bottom: 8px;
    border: 1px solid transparent;
    min-width: 182px;
}

#filter-remove-all .close-svg{
    filter: invert(1);
    right: 14px;
}

#filter-remove-all:hover .close-svg{
    opacity: 1 !important;
}

.remove-all {
    width: 80%;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid lightgrey;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right:16px;
}


@media (max-width: 430px) {
    .filters {
        width: 100%;
        height: unset;
        display: flex !important;
        flex-direction: column;
    }
    .remove-all {
        width: 100%;
    }
    #filters-selected {
        width: calc(100% + 8px);
        margin-top: 18px;
        margin-left: -4px;
    }
    .filter-list {
        width: 100%;
        max-width: unset;
    }
    .filter-list li {
        position: relative;
    }
    .activator {
        width: 100%;
    }

    .filter-added {
        width: calc(50% - 8px);
    }
    .filter-column-wrapper {
        width: 100%;
    }
}

@media (max-width: 1080px) {
    .filters {
        width: 100%;
    }
    .remove-all {
        width: 100%;
    }
}