/* --- NAGŁÓWKI --- */
.moje-wlasne-filtry-kontener h3.filtr-naglowek {
    font-size: 16px !important;
    font-family: var(--itf-font) !important;
    font-weight: 600 !important;
    margin: 10px 0px 5px 0px !important;
    padding-bottom: 7px !important;
    border-bottom: 1px solid #e6e6e6 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    color: var(--itf-text-color) !important;
}

.moje-wlasne-filtry-kontener h3.filtr-naglowek:hover {
    color: var(--itf-main-color) !important;
}

.moje-wlasne-filtry-kontener h3 .dashicons {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* --- DRZEWKO KATEGORII & ATRYBUTÓW --- */
.moje-wlasne-filtry-kontener ul.wlasne-drzewo-kat {
    list-style-type: none !important;
    padding-left: 15px !important;
    margin: 0 !important;
}

.moje-wlasne-filtry-kontener > .filtr-sekcja > .filtr-zawartosc > ul.wlasne-drzewo-kat {
    padding-left: 0 !important;
}

.cat-li {
    margin-bottom: 8px;
}

.cat-wiersz {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moje-wlasne-filtry-kontener .ukryty-checkbox {
    display: none; /* Hide checkboxes */
}

/* Wspólne ustawienia dla klikalnych tekstów */
.moje-wlasne-filtry-kontener label.cat-label-custom,
.moje-wlasne-filtry-kontener label.attr-label-custom {
    cursor: pointer;
    font-family: var(--itf-font);
    font-size: 14px;
    color: var(--itf-text-color);
    transition: color 0.3s ease;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moje-wlasne-filtry-kontener label.cat-label-custom:hover,
.moje-wlasne-filtry-kontener label.attr-label-custom:hover {
    color: var(--itf-main-color) !important;
}

/* Gdy wybrana */
.moje-wlasne-filtry-kontener label.aktywna-opcja .cat-nazwa {
    color: var(--itf-main-color) !important;
    font-weight: 600 !important;
}

/* Strzałki wewnątrz kategorii */
.cat-rozwin-btn {
    cursor: pointer;
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    color: var(--itf-text-color);
}

/* --- PROFESJONALNY SUWAK ZAKRESU --- */
.podwojny-suwak-kontener {
    position: relative;
    width: 100%;
    height: 50px;
}

.suwak-track {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--itf-slider-bg);
    top: 10px;
    border-radius: 2px;
}

.suwak-zakres {
    position: absolute;
    height: 3px;
    background-color: #000000;
    top: 10px;
    z-index: 1;
    border-radius: 2px;
}

.podwojny-suwak-kontener input[type="range"] {
    position: absolute;
    width: 100%;
    top: 2px;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
    margin: 0;
    outline: none;
}

/* Kuleczki (Thumbs) */
.podwojny-suwak-kontener input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #e6e6e6;
    cursor: pointer;
    pointer-events: auto;
    border: 1px solid #ccc;
}
.podwojny-suwak-kontener input[type="range"]::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #e6e6e6;
    cursor: pointer;
    border: 1px solid #ccc;
    pointer-events: auto;
}

.suwak-wartosci {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 30px;
    font-size: 14px;
    font-family: var(--itf-font);
    font-weight: 500;
    color: var(--itf-text-color);
}

/* --- PRZYCISKI --- */
.wlasny-btn-filtruj {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    margin-top: 20px !important;
    padding: 15px 20px !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-family: var(--itf-font) !important;
    font-weight: 700 !important;
    border: none !important;
    background-color: var(--itf-main-color) !important;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--itf-main-color), black 25%) 50%, var(--itf-main-color) 50%) !important;
    background-size: 200% 100% !important;
    background-position: right bottom !important;
    transition: background-position 0.4s ease-out !important;
    cursor: pointer;
}

.wlasny-btn-filtruj:hover {
    background-position: left bottom !important;
}

.wlasny-btn-wyczysc {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--itf-main-color);
    font-family: var(--itf-font);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}
