
/* Sticky styl */
.sticky-filter {
    position: relative;
}

.affix-sidebar {
    position: fixed;
    top: 120px; /* wysokość navbaru */
    width: 22%; /* odpowiada col-md-3 (25% kontenera) */
}

.stop-affix {
    position: absolute !important;
    top: auto !important;
    bottom: 0;
}

/*!* +++++ custom checkbox ++++++++++  *!*/
.checkbox label {
    padding-left: 35px !important;
    font-weight: 400 !important;
}

.checkbox {
    margin-bottom: 8px;
    margin-left: 11px;
}

.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox .fa {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    font-size: 18px;
    color: #f1ad9c;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    line-height: 20px;
    transition: 0.2s;
}

.custom-checkbox input:checked ~ .fa:before {
    content: "\f00c"; /* Font Awesome check icon */
}

.custom-checkbox .fa:before {
    content: "";
}
/*!* +++++ custom checkbox end ++++++++++  *!*/

/* Ukryj wrapper, gdy nie ma parametrów */
#clear_filter_wrapper.hidden {
    display: none;
}

#clear_filter_wrapper .fas {
    font-weight: 400 !important;
    font-size: 12px !important;
}

.btn-general {
    padding: 4px 21px 4px 21px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
}

#clear_filter_wrapper {
    transition: opacity 0.3s ease, height 0.3s ease; /* Płynne przejście dla opacity i height */
    opacity: 1; /* Domyślnie widoczny */
    height: auto; /* Domyślna wysokość */
    overflow: hidden; /* Ukrywa zawartość podczas animacji */
}

#clear_filter_wrapper.hidden {
    opacity: 0; /* Niewidoczny */
    height: 0; /* Zredukowana wysokość */
    padding: 0; /* Usuwa padding, jeśli istnieje */
    margin: 0; /* Usuwa marginesy, jeśli są */
}

.btn.btn-general.btn-yellow .fas {
    margin-left: 5px; /* Odstęp między tekstem a ikoną */
}

.list-group {
    padding-left: 0;
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    .checkbox {
        margin-bottom: 16px;
    }

    div[style*="overflow-y: auto"] {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; /* Dla Firefox */
        scrollbar-color: #888 #f1f1f1; /* Kolor paska */
    }
    div[style*="overflow-y: auto"]::-webkit-scrollbar {
        width: 8px; /* Szerokość paska */
    }
    div[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
        background: #888; /* Kolor "kciuka" paska */
        border-radius: 4px;
    }
    div[style*="overflow-y: auto"]::-webkit-scrollbar-track {
        background: #f1f1f1; /* Kolor tła */
    }
}

