/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* Facet search */
#search_filters .facet-search-input {
    margin-bottom: .625rem;
}

#search_filters .facet-list {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#search_filters .facet .collapse.in {
    display: block;
    width: 100%;
}

#search_filters .facet .title:not(.title-toggle) {
    cursor: default;
}

#search_filters .facet .title-toggle {
    cursor: pointer;
}

#search_filters .facet .facet-toggle-arrow {
    display: inline-block;
    margin-top: .35rem;
    color: #7a7a7a;
    line-height: 1;
}

#search_filters .facet .facet-toggle-arrow svg {
    display: block;
}

#search_filters .facet-dropdown .dropdown-menu .facet-search-wrapper {
    padding: .5rem .75rem 0;
}

/* Facet filters */
.facet-label .custom-checkbox input[type=checkbox] + span {
    width: 16px;
    height: 16px;
}

#search_filters .facet .facet-label .custom-checkbox,
#search_filters .facet .facet-label .custom-radio {
    margin-right: 10px !important;
}

/* Footer newsletter: keep the submit button inside the input row */
.block_newsletter form .input-wrapper .newsletter-submit {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: #85B032;
    box-shadow: none;
    float: none;
}

.block_newsletter form .input-wrapper .newsletter-submit:hover {
    background-color: #6F9428;
}

/* Active filter chips */
.active_filters .filter-block {
    background: #7BA42C;
}
