body.ricerca-aperta {
    overflow: hidden;
}

.ricerca-filtro-chevron {
    transition: transform .2s ease;
    font-size: .75rem;
}

.ricerca-filtro-toggle.collapsed .ricerca-filtro-chevron {
    transform: rotate(-90deg);
}

.ricerca-overlay {
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 1050;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, .3);
}

.ricerca-overlay #ricercaRisultati .badge-available {
    top: 5px;
    right: 5px;
    z-index: 2;
}

.ricerca-overlay #ricercaScroll #ricercaOffcanvas {
    max-width: 80vw;
    border-radius: 10px;
}

.ricerca-overlay .modal-backdrop {
    height: 100% !important;
    border-radius: 10px;
}

.ricerca-overlay #ricercaCategorieBox {
    background-color: #00283F10;
}

.ricerca-overlay #ricercaCategorieBox #ricercaCategorie {
    max-height: 20vh;
    overflow-y: auto;
    padding-right: 10px;
}

.ricerca-overlay #ricercaCategorieBox #ricercaCategorie .badge {
    white-space: break-spaces;
}

.ricerca-overlay #ricercaCategorieBox #ricercaCategorie .badge:hover {
    background-color: var(--sh-primary) !important;
    border-color: var(--sh-primary) !important;
    color: #fff !important;
}

@media screen and (min-width: 992px) {

    .ricerca-overlay #ricercaScroll #ricercaOffcanvas {
        max-width: 100%;
        visibility: visible !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 1.5rem;
        transform: none !important;
        width: 25% !important;
        border-radius: 0;
    }

    .ricerca-overlay #ricercaCategorieBox #ricercaCategorie {
        max-height: 100%;
        overflow-y: visible;
        padding-right: 0;
    }
}