/* Search result page (EXT:izimpx_search). The filter, sorting and pagination
   markup reuses the product list styles of template_local (.tx-cart-products). */

.tx-izimpx-search .izimpx-search-title {
    margin-bottom: 1rem;
}

/* Filter form */
.tx-izimpx-search .izimpx-search-facet-option label {
    cursor: pointer;
}

.tx-izimpx-search .izimpx-search-facet-option label:hover .izimpx-search-option-label {
    text-decoration: underline;
}

.tx-izimpx-search .filter-sidebar .form-check-input:checked {
    background-color: var(--theme-color, #717A06);
    border-color: var(--theme-color, #717A06);
}

.tx-izimpx-search .izimpx-search-swatch {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .2);
}

.tx-izimpx-search .izimpx-search-more {
    color: var(--theme-color, #717A06);
}

/* No line above the first block of the sidebar */
.tx-izimpx-search .filter-sidebar > .izimpx-search-facet-block:first-of-type > hr {
    display: none;
}

/* "Zobraziť … produktov": stays visible at the bottom of the mobile panel */
.tx-izimpx-search .izimpx-search-apply {
    position: sticky;
    bottom: 0;
    margin: 1rem -1.5rem -1.5rem;
    padding: .75rem 1.5rem;
    background: #fff;
    border-top: 1px solid #dee2e6;
}

.tx-izimpx-search .izimpx-search-apply [data-izimpx-search-apply].is-loading {
    opacity: .7;
}

/* Desktop applies every change at once (results.js), the button is only needed without JavaScript */
@media (min-width: 992px) {
    .tx-izimpx-search .filter-sidebar.is-enhanced .izimpx-search-apply {
        display: none;
    }
}

.tx-izimpx-search .sorting-filters-wrapper .nav-link {
    cursor: pointer;
}
