/* --- Tło -- */

/* Kafelek filtra (tło jak w przykładzie) */
.chk-filter-group {
    background: #f6f7f9;
    border-radius: 10px;
    padding: 1rem 2rem 1rem 1rem;
    margin-bottom: 12px;
    border: 1px solid #eceff3;
}

/* Tytuł filtra */
.chk-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--chk-text-main);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Podtytuł, np. [dB] */
.chk-filter-title small,
.chk-filter-subtitle {
    font-size: 11px;
    color: var(--chk-text-muted);
}

/* --- SUWAKI -- */

.chk-range-double.noUi-target {
    background: #e5e9ef;
    border-radius: 999px;
    height: 6px;
    border: none;
    box-shadow: none;
    margin: 12px 0; /* więcej przestrzeni góra/dół */
}

/* --- NIEBIESKI FRAGMENT AKTYWNY --- */
.chk-range-double .noUi-connect {
    background: #006C93 !important;
}

/* --- UCHWYTY (kółka) --- */
.chk-range-double .noUi-handle {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;

    /* BIAŁY ŚRODEK + NIEBIESKA OBRAMÓWKA */
    background: #ffffff !important;
    border: 4px solid #006C93 !important;

    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    top: -10px !important; /* dopasowanie do nowej wielkości */
}

/* Usunięcie kresek w uchwycie noUi */
.chk-range-double .noUi-handle::before,
.chk-range-double .noUi-handle::after {
    display: none !important;
}

/* --- Hover (ciemniejsza ramka) --- */
.chk-range-double .noUi-handle:hover {
    border-color: #00587a !important;
}

/* --- Teksty pod suwakiem: więcej przestrzeni --- */
.chk-range-double-values {
    margin-top: 8px;
}

/* --- CHECKBOXY -- */

/* Kontener pojedynczego pola (checkbox / radio) */
.chk-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Ukrycie natywnego inputa (checkbox / radio) */
.chk-box input[type="checkbox"],
.chk-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Kwadratowa „ikona” obok tekstu */
.chk-box-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #006C93;
    border-radius: 4px;          /* jeśli chcesz bardziej okrągłe, daj 999px */
    background: #ffffff;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Tekst etykiety */
.chk-box-label {
    color: #222;
    line-height: 1.3;
}

/* Stan :hover – lekkie podświetlenie */
.chk-box:hover .chk-box-icon {
    box-shadow: 0 0 0 2px rgba(0, 108, 147, 0.15);
}

/* ZAZNACZONE (checkbox lub radio) */
.chk-box input[type="checkbox"]:checked + .chk-box-icon,
.chk-box input[type="radio"]:checked + .chk-box-icon {
    background-color: #006C93;
    border-color: #006C93;
}

/* Ptaszek wewnątrz zaznaczonego pola */
.chk-box input[type="checkbox"]:checked + .chk-box-icon::after,
.chk-box input[type="radio"]:checked + .chk-box-icon::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

/* Focus z klawiatury – wyraźny outline */
.chk-box input[type="checkbox"]:focus-visible + .chk-box-icon,
.chk-box input[type="radio"]:focus-visible + .chk-box-icon {
    outline: 2px solid #004766;
    outline-offset: 2px;
}

.chk-products-archive-bottom-section {
    padding: 0 !important;
}

.align-items-center {
    align-items: center !important  ;
}

/* --- kod do filtrów aktywnych --- */
.chk-active-filters {
    margin-bottom: 0px !important;
    font-size: 14px;
}

.chk-filter-pill {
    display: inline-block;
    background: #eee;
    border-radius: 16px;
    padding: 4px 10px;
    margin-right: 6px;
    margin-top: 6px;
}

.chk-pill-remove {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    margin-left: 6px;
}

.chk-pill-remove:hover {
    color: #000;
}

.chk-clear-all {
    font-weight: bold;
    color: #d00;
}

/* --- STYLOWANIE DROPDOWNA DO SORTOWANIA --- */
/* ===== SORTOWANIE ===== */
.chk-sorting {
    display: flex;
    justify-content: flex-end !important;
    margin-bottom: 0px !important;
    font-size: 14px;
}

.chk-sorting .woocommerce-ordering {
    margin: 0;
}

/* ===== SELECT ===== */
.chk-sorting .woocommerce-ordering select.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 8px 40px 8px 12px;
    min-width: 220px;

    border-radius: 6px;
    border: 1px solid #006C93;
    background-color: #ffffff;
    color: #222;

    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
    box-sizing: border-box;

    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;

    /* Estetyczna strzałka ▼ */
    background-image: url("data:image/svg+xml;utf8,<svg width='10' height='6' xmlns='http://www.w3.org/2000/svg'><path d='M0 0 L5 6 L10 0' fill='%23006C93'/></svg>");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: right 12px center;
}

/* Hover */
.chk-sorting .woocommerce-ordering select.orderby:hover {
    background-color: #f5fafc;
}

/* Kliknięcie — eliminujemy niebieską ramkę */
.chk-sorting .woocommerce-ordering select.orderby:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 108, 147, 0.2); /* delikatna halo */
    border-color: #004c6b;
}

/* Mobile */
@media (max-width: 767px) {
    .chk-sorting {
        justify-content: flex-start;
        margin-bottom: 20px;
    }
    .chk-sorting .woocommerce-ordering select.orderby {
        width: 100%;
    }
}


/* ===== PAGINACJA CHK ===== */

.chk-pagination {
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.chk-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Bazowy styl dla numerów stron (span i a) */
.chk-pagination .chk-page-item .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;
    padding: 0 10px;

    border-radius: 5px;
    border: 1px solid #006C93;
    background-color: #ffffff;
    color: #006C93;

    font-size: 14px;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

/* Aktualna strona */
.chk-pagination .chk-page-item .page-numbers.current,
.chk-pagination .chk-page-item .page-numbers[aria-current="page"] {
    background-color: #006C93;
    color: #ffffff;
    cursor: default;
}

/* Hover tylko dla linków (a), nie dla current (span) */
.chk-pagination .chk-page-item a.page-numbers:hover {
    background-color: #f5fafc;
    box-shadow: 0 0 0 2px rgba(0, 108, 147, 0.15);
}

/* Poprzednia / Następna (strzałki » «) – trochę większy padding */
.chk-pagination .chk-page-item a.next.page-numbers,
.chk-pagination .chk-page-item a.prev.page-numbers {
    padding: 0 14px;
    font-size: 13px;
}

.chk-range-double.noUi-target {
    margin: 8px 0 4px;
}

.chk-range-double-values {
    font-size: 13px;
    margin-top: 4px;
}

.chk-range-value {
    font-weight: 600;
    margin: 0 4px;
}

/* Mobile tweak */
@media (max-width: 480px) {
    .chk-pagination .chk-page-item .page-numbers {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
        padding: 0 8px;
    }
}

@media (max-width: 1024px) {
    .elementor-hidden-tablet,
    .elementor-hidden-mobile {
        display: none !important;
    }
}

.chk-filter-actions {
    display: flex;
    flex-flow: column;
}

.chk-button-clear {
    border: 1px solid #006C93 !important;
    background-color: white !important;
    color: #006C93 !important;
    text-align: center;
    cursor: pointer;
}

.chk-button-filter {
    padding-top: 1rem;
    padding-bottom: 1rem;
}