.filter {
    position: sticky;
    top: calc(var(--navbar-height) + 95px);
    /* Height of the Bootstrap navbar */
    max-height: calc(90vh - 150px);
    /* Subtract the height of the Bootstrap navbar from 100vh */
    overflow-y: auto;
    overflow-x: hidden;
    /* Enable vertical scrolling if content exceeds the max height */
    padding: 10px;
    margin-bottom: 20px;
    /* Add bottom margin for additional spacing */

    transition: top 0.2s ease-in-out;
    /* animation */


    border: 1px solid #ddd;
    border-radius: 8px;
}

.accordion-button::after {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.filter p {
    color: rgb(87, 87, 87);
    line-height: 1.1;
}

/* Target the expanded state of the accordion header */
.accordion-button:not(.collapsed) {
    background-color: #a73f3f;
    /* Change to your desired color */
    color: #ffffff;
    /* Text color */
}

/* Optionally, change the color back when it's collapsed */
.accordion-button.collapsed {
    background-color: #ffffff;
    /* Original or different color */
    color: #000;
    /* Original or different text color */
}

#clear-button {
    text-align: right;
    align-items: center;
    border: none;
}

#clear-button .text {
    border: none;
    background-color: rgb(214, 84, 84);
    color: white;
    border-radius: 0.7rem;
    padding: 2px 6px;
}

#clear-button .text:hover {
    background-color: rgb(211, 56, 56);
}

#submitFilter {
    width: 100%;
    background-color: rgb(0, 161, 0);
    border: none;
}

#submitFilter:hover {
    background-color: rgb(0, 139, 0);

}

/*  Filter amount in brackets text  */
.variation-count {
    font-size: 0.9rem;
    color: rgb(94, 94, 94);
}