/* --- 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;
}

/* Obrót strzałki sterowany klasą (zamiast stylu inline) */
.moje-wlasne-filtry-kontener .dashicons.obrocona {
    transform: rotate(180deg);
}

/* --- 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,
.moje-wlasne-filtry-kontener .filtr-zawartosc > ul.wlasne-drzewo-kat {
    padding-left: 0 !important;
}

/* Zagnieżdżone poziomy: mniejsze wcięcie + cienka linia prowadząca */
.moje-wlasne-filtry-kontener .cat-li > ul.wlasne-drzewo-kat {
    padding-left: 12px !important;
    margin-left: 4px !important;
    border-left: 1px solid #ececec;
}

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

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

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

/* Wspólne ustawienia dla klikalnych tekstów
   UWAGA: kategorie to linki <a>, atrybuty to <label> - selektory obejmują oba */
.moje-wlasne-filtry-kontener label.cat-label-custom,
.moje-wlasne-filtry-kontener a.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;
    flex: 1;
    min-width: 0;
    text-decoration: none !important;
    line-height: 1.35;
}

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

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

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

/* --- KLOCKI NAJWYŻSZEGO POZIOMU (Akcesoria / Produkty / Wynajem...) --- */
.moje-wlasne-filtry-kontener .cat-li.cat-root {
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 4px 12px;
    transition: border-color 0.3s ease;
}

.moje-wlasne-filtry-kontener .cat-li.cat-root:hover {
    border-color: #cfcfcf;
}

.moje-wlasne-filtry-kontener .cat-li.cat-root > .cat-wiersz {
    padding: 8px 0;
}

.moje-wlasne-filtry-kontener .cat-li.cat-root > .cat-wiersz .cat-nazwa {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Wewnątrz klocka bez linii prowadzącej na pierwszym poziomie */
.moje-wlasne-filtry-kontener .cat-li.cat-root > ul.wlasne-drzewo-kat {
    border-left: none;
    margin-left: 0 !important;
    padding-left: 6px !important;
    padding-bottom: 6px;
}

/* --- UKRYTE RODZEŃSTWO AKTYWNEJ ŚCIEŻKI --- */
.moje-wlasne-filtry-kontener .sib-ukryty {
    display: none;
}

.moje-wlasne-filtry-kontener ul.wlasne-drzewo-kat.pokaz-wszystko > .sib-ukryty {
    display: list-item;
}

.moje-wlasne-filtry-kontener .pokaz-pozostale-li {
    margin-bottom: 4px;
}

.moje-wlasne-filtry-kontener .pokaz-pozostale-btn {
    background: none !important;
    border: none !important;
    padding: 4px 0 !important;
    cursor: pointer;
    font-family: var(--itf-font);
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: color 0.3s ease;
}

.moje-wlasne-filtry-kontener .pokaz-pozostale-btn:hover {
    color: var(--itf-main-color);
}

.moje-wlasne-filtry-kontener .pokaz-pozostale-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* 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);
    flex-shrink: 0;
}

/* --- CHECKBOXY ATRYBUTÓW --- */
.moje-wlasne-filtry-kontener input.zwykly-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--itf-main-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* --- 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;
}