/* ================================
   CENESTI — SUWAK ZGODNOŚCI
   ================================ */

/* kontener całej sekcji */
.cenesti-fit-slider-group {
    position: relative;
    margin: 22px 0 52px;
    padding: 0;
    background: none !important;
    border: none !important;
    width: 100%;
    max-width: 460px;  /* węższe, eleganckie */
    text-align: left;  /* start od lewej */
}

/* tylko w formularzu opinii */
.comment-form .cenesti-fit-slider-group {
    margin-left: 0;
    margin-right: 0;
}

/* linia: "za mały" — suwak — "za duży" */
.cenesti-fit-slider-line {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* "za mały" / "za duży" */
.cenesti-fit-edge-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b8179;
    white-space: nowrap;
}

/* tor suwaka */
.cenesti-fit-slider-track {
    position: relative;
    flex: 1;
}

/* sam range */
.cenesti-fit-slider-track input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* linia suwaka (Chrome/Safari/Edge) */
.cenesti-fit-slider-track input[type="range"]::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 999px;
    background: #dad3cc;
}

/* linia suwaka (Firefox) */
.cenesti-fit-slider-track input[type="range"]::-moz-range-track {
    height: 3px;
    border-radius: 999px;
    background: #dad3cc;
}

/* kółko (Chrome/Safari/Edge) */
.cenesti-fit-slider-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a2f28;
    border: 2px solid #f7f6f5;
    margin-top: -6px;
    box-shadow: 0 0 0 1px #3a2f2899;
    cursor: pointer;
}

/* kółko (Firefox) */
.cenesti-fit-slider-track input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3a2f28;
    border: 2px solid #f7f6f5;
    box-shadow: 0 0 0 1px #3a2f2899;
    cursor: pointer;
}



/* kropeczki pod suwakiem */
.cenesti-fit-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(15px);
    display: flex;
    justify-content: space-between;
}

.cenesti-fit-slider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d2cbc4;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.cenesti-fit-slider-dots span.is-active {
    transform: scale(1.25);
    background: #3a2f28;
}

/* podpis pod suwakiem – jeździ razem z wartością */
.cenesti-fit-slider-caption {
    position: absolute;
    top: 48px;           /* pod suwakiem */
    left: 50%;           /* środek toru */
    transform: translateX(-50%);
    font-size: 12px;
    color: #6d625b;
    white-space: nowrap;
    pointer-events: none;
text-align: center;
}

/* MOBILE dla suwaka */
@media (max-width: 600px) {
    .cenesti-fit-slider-group {
        max-width: 100%;
    }
    .cenesti-fit-slider-line {
        gap: 10px;
    }
    .cenesti-fit-edge-label {
        font-size: 10px;
    }
}

/* DODATKOWE DOSTOSOWANIA W FORMULARZU (#commentform) */

/* Caption trochę niżej od treści komentarza */
#commentform .cenesti-fit-slider-group .cenesti-fit-slider-caption {
    padding-top: 75px!important;
}

/* lekki odstęp nad linią suwaka */
#commentform .cenesti-fit-slider-group .cenesti-fit-slider-line {
    padding-top: 10px!important;
}

/* odstęp przed przyciskiem "Dodaj opinię" */
#commentform .form-submit {
    padding-top: 40px!important;
}

/* label nad suwakiem */
#commentform .cenesti-fit-slider-group .cenesti-field-label {
    font-weight: 500!important;
    margin-bottom: 3px!important;
}

/* opis pomocniczy pod labelką */
#commentform .cenesti-fit-slider-group .cenesti-field-helper {
    color: #666!important;
    font-size: 12px!important;
}

/* hook pod ewentualne przyszłe zmiany range’a */
#cenesti_fit {
    /* na razie pusto */
}

/* ================================
   RESZTA – opinie / rating / dropdown
   ================================ */

/* Ukryj tekst "(1 opinia…)" */
.single-product .woocommerce-review-link {
    display: none !important;
}

/* Spraw, żeby gwiazdki były klikalne (używamy ukrytego linka) */
.single-product .star-rating {
    position: relative;
}

.single-product .star-rating::after {
    content: "";
    position: absolute;
    inset: 0;
    cursor: pointer;
    pointer-events: auto;
}

/* link ukryty, ale nadal aktywny */
.single-product .woocommerce-product-rating a {
    display: block !important;
    opacity: 0 !important;
    position: absolute;
    inset: 0;
}

/* Count */
.ratings-list .ratings-item .count {
    font-size: 11px !important;
    color: #777 !important;
}

/* Heading */
.comment-section h4 {
    padding-bottom: 15px;
}

/* Heading – rozmiar */
#primary #main .product .main-product .comment-section .container h4 {
    font-size: 20px !important;
}

/* Active tab */
.tabs_review_questios .tabs_review_nav .active {
    color: #333;
    font-weight: 500;
}

/* Tabs span */
.tabs_review_questios .tabs_review_nav span {
    font-weight: 500;
}

/* Active tab – size */
.tabs_review_questios .tabs_review_nav .active {
    font-size: 14px;
}

/* Tabs span – size */
#main .product .main-product .comment-section .container #reviews .tabs_review_questios .tabs_review_nav span {
    font-size: 14px !important;
}

/* Star rating */
.entry-summary .woocommerce-product-rating .star-rating {
    font-size: 16px;
}

/* Star rating span */
.woocommerce-product-rating .star-rating > span {
    font-size: 16px;
}

/* Woocommerce product rating */
.main-product .entry-summary .woocommerce-product-rating {
    margin-top: -3px;
    margin-bottom: -3px;
}

/* ------------------------------
   CENESTI – dropdown sort/filtr
   ------------------------------ */

.cenesti-reviews-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 10px 0 18px;
    font-size: 13px;
}

/* Kontener dropdowna */
.cenesti-dropdown {
    position: relative;
}

/* Trigger */
.cenesti-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e2ddd6 !important;
    background: #ffffff !important;
    color: #3a2f28 !important;
    font-size: 10px;            /* 1px mniejsza */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: all .15s ease;
}

.cenesti-dropdown-label {
    opacity: .55;
}

.cenesti-dropdown-value {
    font-weight: 600;
}

.cenesti-dropdown-chevron {
    width: 7px;
    height: 7px;
    border-left: 1px solid #7b7068;
    border-bottom: 1px solid #7b7068;
    transform: rotate(-45deg);
    margin-top: -2px;
    opacity: .7;
    transition: transform .15s ease, opacity .15s ease;
}

.cenesti-dropdown-trigger:hover {
    border-color: #d5cdc4 !important;
    background: #faf8f6 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

/* ------------------------------
   MENU
   ------------------------------ */

.cenesti-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px); /* mała luka */
    right: 0;
    min-width: 210px;
    padding: 6px 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 30;
    display: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .12s ease, transform .12s ease;
}

/* Niewidzialny buffer, aby hover NIE przerywał */
.cenesti-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
    pointer-events: auto;
}

/* otwarte menu */
.cenesti-dropdown:hover .cenesti-dropdown-menu,
.cenesti-dropdown.is-open .cenesti-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cenesti-dropdown:hover .cenesti-dropdown-chevron,
.cenesti-dropdown.is-open .cenesti-dropdown-chevron {
    transform: rotate(135deg);
    opacity: .9;
}

/* Opcje */
.cenesti-dropdown-option {
    width: 100%;
    text-align: left;
    border: none !important;
    background: transparent !important;
    padding: 7px 12px;
    font-size: 10px;              /* też 1px mniejsze */
    color: #3a2f28 !important;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.cenesti-dropdown-option + .cenesti-dropdown-option {
    border-top: 1px solid #eee7df;
}

.cenesti-dropdown-option:hover {
    background: #f6f2ee;
}

.cenesti-dropdown-option.is-active {
    background: #ece7e0;
    font-weight: 600;
}

/* mobile dropdown */
@media (max-width: 640px) {
    .cenesti-dropdown-trigger {
        font-size: 9px;
        padding: 5px 8px;
    }

    .cenesti-dropdown-menu {
        min-width: 100%;
    }
}

/* desktop – zachowaj max-width suwaka */
@media (min-width: 1024px) {
    .cenesti-fit-slider-group {
        max-width: 460px;
    }
}
