.filterbar {
    display: flex;
    padding: 10px 0 5px;
    z-index: 99;
    /*
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    */
    position: relative;
}

.filterpanel .field {
    margin: 12px 0;
}

.filterpanel .field.stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.filterpanel .field.checkbox,
.filterpanel .field.radio {
    position: relative;
}
.filterpanel .field.checkbox input,
.filterpanel .field.radio input {
    position: absolute;
    opacity: 0;
}
.filterpanel .field.checkbox label,
.filterpanel .field.radio label {
    display: block;
    padding-left: 32px;
    line-height: 1.3;
    margin: 0;
    cursor: pointer;
    font-size: 15px
}
.filterpanel .field.checkbox label:before,
.filterpanel .field.radio label:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(24, 21, 69, 0.2);
    background: white center center / 20px 20px no-repeat url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCAyMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNS41IDEwbDMgM2w2IC02IiBmaWxsPSJub25lIiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMS41Ii8+PC9zdmc+");

    transition: background-color .2s;
}
.filterpanel .field.radio :checked + label:before,
.filterpanel .field.checkbox :checked + label:before {
    background-color: #1d8af0;
    border-color: #1d8af0;
}
.filterpanel .field.checkbox label:before {
    border-radius: 3px;
}
.filterpanel .field.radio label:before {
    border-radius: 50%;
}

.filterpanel .stepper {
    display: flex;
}
.filterpanel .stepper button {

    -webkit-appearance: none;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #1d8af0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: white;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.filterpanel .stepper button:hover {
    background-color: #1d8af0;
}
.filterpanel .stepper input {
    -webkit-appearance: none;
    margin: 0 5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #FFF;
    color: #222;
    height: 36px;
    width: 64px;
    font-size: 14px;
    border-radius: 5px;
    text-align: center;

    transition: border-color .2s;
}
.filterpanel .stepper input:focus {
    border-color: #1d8af0;
}

.filteritem, .filtertext {
    position: relative;
    margin: 0 10px 10px 0;
}
.filteritem > .filterlabel {
    padding: 15px 20px;
    border: 1px solid rgba(24, 21, 69, 0.2);
    font-size: 16px;
    line-height: 1;
    border-radius: 5px;
    background: #FFF;
    cursor: pointer;
}

.filtertext {
    padding: 16px 20px 16px 0;
    font-size: 16px;
    line-height: 1;
    margin-right: 0;
    opacity: 0.75;
}


.filteritem.open > .filterlabel {
    border-color: rgba(24, 21, 69, 0.3);
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.12);
}
.filteritem.set > .filterlabel {
    border-color: #1d8af0;
    background-color: rgba(29, 138, 240, 0.1);
}

.filterpanel {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: #FFF;
    border-radius: 5px;
    width: 360px;
    border: 1px solid rgba(24, 21, 69, 0.1);
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.12);
    /* padding-bottom: 70px; */
    z-index: 99999999 !important;
}


.filteritem.open .filterpanel {
    display: block;
}
.filterpanel.large {
    width: 800px;
    /*max-height: calc(100vh - 300px);*/
}


.filterpanel .content {
    position: relative;
    padding: 10px 20px;
    max-height: calc(100vh - 370px);
    overflow: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}


.filterpanel .content .cols {
    display: flex;
    justify-content: space-evenly;


    padding: 0px 0 20px;
    border-bottom: 1px solid #eee;

}
.filterpanel .content .cols:last-child {
    border-bottom: none;
}
.filterpanel .content .cols .col {
    width: 100%;

}

.filterpanel .foot {

    width: 100%;
    height: 70px;
    background: #fff;
    padding: 1rem;
    border-top: 1px solid #ebebeb;
    border-radius: 0 0 5px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filterpanel.large .foot {
    /* position: absolute;
    bottom: 0; */
}

.filterbar button {
    -webkit-appearance: none;
    margin: 0;
    padding: 12px 1.5rem;
    font-size: 16px;
   
    line-height: 1;
}
.filterbar button.clear-button {
    padding-left: 0;
    padding-right: 0;
    border: none;
    background: none;
    color: #ccc;
    text-decoration: underline;
    margin-left: 10px;
}
.filterbar button.clear-button:hover {
    color: #aaa;
}
.filterbar button.save-button {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #4ec577 !important;
    color: white;
    border-radius: 5px;
    font-weight: 700;
}
.filterbar button.save-button:hover {
    background-color: #44b16a !important;
}

.filterpanel .subheader {

    font-weight: 700;
    margin: 20px 0 0rem 0;
    line-height: 1;
    color: #181545;
}


@media (max-width: 970px) {

    .filterpanel.large {

        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 300px);
        overflow: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    .filterpanel .content .cols {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .filterpanel .content .cols .col {
        width: 50%;
        padding:0;

    }

}
@media (max-width: 640px) {
    .filterbar {
       flex-wrap: wrap;
    }
    .filterpanel .content .cols .col {
        width: 100%;
        padding:0;

    }

}
