:root {
    --tofaa-pilot-purple: #7C4FA0;
    --tofaa-pilot-purple-light: #B083BC;
    --tofaa-pilot-beige: #F8EAE1;
    --tofaa-pilot-green: #d1d635;
    --tofaa-pilot-ink: #171717;
    --tofaa-pilot-paper: #fffdfb;
}

body.tofaa-product-pilot-page,
body.tofaa-product-pilot-page #page,
body.tofaa-product-pilot-page main#primary,
body.tofaa-product-pilot-page div#page {
    background: var(--tofaa-pilot-beige) !important;
}

body.tofaa-product-pilot-page main#primary,
body.tofaa-product-pilot-page main#main,
body.tofaa-product-pilot-page .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.tofaa-product-pilot-page .woocommerce-breadcrumb,
body.tofaa-product-pilot-page .woocommerce-notices-wrapper:empty {
    display: none !important;
}

.tofaa-product-pilot,
.tofaa-product-pilot * {
    box-sizing: border-box;
}

.tofaa-product-pilot {
    width: min(1780px, calc(100% - 48px));
    margin: 0 auto;
    color: var(--tofaa-pilot-purple);
    font-family: "Rubik", Arial, sans-serif;
}

.tofaa-product-pilot__hero {
    min-height: min(780px, calc(100vh - 170px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(520px, .94fr);
    overflow: hidden;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background: var(--tofaa-pilot-beige);
    box-shadow: 0 18px 44px rgba(80, 45, 91, .12);
}

.tofaa-product-pilot__visual {
    min-height: 720px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--tofaa-pilot-ink);
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.28), transparent 28%),
        linear-gradient(145deg, var(--tofaa-pilot-purple-light), var(--tofaa-pilot-purple));
}

.tofaa-product-pilot__shape {
    position: absolute;
    display: block;
    pointer-events: none;
    border: 1px solid rgba(23, 23, 23, .55);
}

.tofaa-product-pilot__shape--one {
    width: min(58vw, 680px);
    aspect-ratio: 1;
    left: 50%;
    top: 51%;
    z-index: -2;
    border-radius: 50%;
    background: linear-gradient(145deg, #e4e85d, var(--tofaa-pilot-green));
    transform: translate(-50%, -50%);
}

.tofaa-product-pilot__shape--two {
    width: min(36vw, 430px);
    aspect-ratio: 1;
    right: -9%;
    bottom: -13%;
    z-index: -1;
    border-radius: 48% 52% 58% 42% / 55% 46% 54% 45%;
    background: rgba(248, 234, 225, .54);
    transform: rotate(-12deg);
}

.tofaa-product-pilot__back {
    width: 58px;
    height: 58px;
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 12;
    display: grid;
    place-items: center;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-beige);
    color: var(--tofaa-pilot-purple) !important;
    box-shadow: 0 8px 0 rgba(23, 23, 23, .16);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease;
}

.tofaa-product-pilot__back:hover,
.tofaa-product-pilot__back:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(23, 23, 23, .16);
    outline: none;
}

.tofaa-product-pilot__back svg,
.tofaa-product-pilot__gallery-arrow svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tofaa-product-pilot__gallery {
    width: 100%;
    height: 100%;
    min-height: 720px;
    position: relative;
    display: grid;
    place-items: center;
}

.tofaa-product-pilot__gallery-stage {
    width: 88%;
    height: 72%;
    position: relative;
    display: grid;
    place-items: center;
}

.tofaa-product-pilot__gallery-image {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 30px 28px rgba(42, 23, 50, .25));
    opacity: 0;
    transform: translate3d(28px, 0, 0) scale(.96);
    transition: opacity .48s ease, transform .58s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}

.tofaa-product-pilot__gallery-image.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.tofaa-product-pilot__gallery-arrow {
    width: 62px;
    height: 62px;
    position: absolute;
    top: 50%;
    z-index: 9;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-beige);
    color: var(--tofaa-pilot-ink);
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(23, 23, 23, .13);
    transform: translateY(-50%);
    transition: transform .24s cubic-bezier(.2,.8,.2,1), background .24s ease;
}

.tofaa-product-pilot__gallery-arrow:hover,
.tofaa-product-pilot__gallery-arrow:focus-visible {
    background: var(--tofaa-pilot-green);
    outline: none;
}

.tofaa-product-pilot__gallery-arrow--prev {
    left: 28px;
}

.tofaa-product-pilot__gallery-arrow--next {
    right: 28px;
}

.tofaa-product-pilot__gallery-arrow--prev:hover,
.tofaa-product-pilot__gallery-arrow--prev:focus-visible {
    transform: translate(-4px, -50%);
}

.tofaa-product-pilot__gallery-arrow--next:hover,
.tofaa-product-pilot__gallery-arrow--next:focus-visible {
    transform: translate(4px, -50%);
}

.tofaa-product-pilot__gallery-dots {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 9;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tofaa-product-pilot__gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-beige);
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, background .25s ease;
}

.tofaa-product-pilot__gallery-dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: var(--tofaa-pilot-green);
}

.tofaa-product-pilot__info {
    min-width: 0;
    padding: clamp(54px, 5vw, 94px) clamp(46px, 5vw, 94px) 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 94% 5%, rgba(176, 131, 188, .18), transparent 28%),
        var(--tofaa-pilot-beige);
}

.tofaa-product-pilot__eyebrow {
    margin: 0 0 12px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 14px !important;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1.2;
    text-transform: uppercase;
}

.tofaa-product-pilot__title {
    max-width: 720px;
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(52px, 5.1vw, 92px) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em;
    line-height: .95 !important;
    text-transform: uppercase;
}

.tofaa-product-pilot__subtitle {
    margin: 22px 0 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(18px, 1.35vw, 25px) !important;
    font-weight: 700;
    line-height: 1.35;
}

.tofaa-product-pilot__rating-row {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.tofaa-product-pilot__rating {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--tofaa-pilot-purple) !important;
    text-decoration: none;
}

.tofaa-product-pilot__rating .star-rating {
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
}

.tofaa-product-pilot__empty-stars {
    color: var(--tofaa-pilot-purple-light);
    letter-spacing: .12em;
}

.tofaa-product-pilot__rating-label,
.tofaa-product-pilot__stock {
    font-size: 14px;
    font-weight: 800;
}

.tofaa-product-pilot__stock {
    padding: 8px 13px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 999px;
    background: var(--tofaa-pilot-green);
    color: var(--tofaa-pilot-purple);
    text-transform: uppercase;
}

.tofaa-product-pilot__taste {
    margin-top: clamp(28px, 3vw, 48px);
}

.tofaa-product-pilot__taste h2 {
    margin: 0 0 7px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(26px, 2vw, 36px) !important;
    line-height: 1.1;
}

.tofaa-product-pilot__taste p {
    max-width: 680px;
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(17px, 1.25vw, 22px) !important;
    line-height: 1.55;
}

.tofaa-product-pilot__price {
    margin-top: 12px;
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__price .price,
.tofaa-product-pilot__price bdi,
.tofaa-product-pilot__price .woocommerce-Price-amount {
    margin: 0;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(30px, 2.4vw, 42px) !important;
    font-weight: 900;
    line-height: 1;
}

.tofaa-product-pilot__purchase {
    margin-top: 28px;
}

.tofaa-product-pilot__purchase-label {
    min-height: 64px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: rgba(255, 253, 251, .7);
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__purchase-label span {
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.tofaa-product-pilot__purchase-label small {
    font-size: 14px;
    font-weight: 700;
}

.tofaa-product-pilot__purchase form.cart {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(150px, .34fr) minmax(260px, 1fr);
    gap: 12px;
}

.tofaa-product-pilot__purchase form.cart::before,
.tofaa-product-pilot__purchase form.cart::after {
    display: none !important;
}

.tofaa-product-pilot__purchase .qib-button-wrapper,
.tofaa-product-pilot__purchase .quantity {
    width: 100% !important;
    min-height: 72px;
    margin: 0 !important;
    display: flex !important;
    align-items: stretch;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 0 0 0 22px !important;
    background: var(--tofaa-pilot-paper) !important;
    overflow: hidden;
}

.tofaa-product-pilot__purchase .qib-button-wrapper .quantity {
    min-height: auto;
    border: 0 !important;
    border-radius: 0 !important;
}

.tofaa-product-pilot__purchase .quantity input,
.tofaa-product-pilot__purchase button.minus.qib-button,
.tofaa-product-pilot__purchase button.plus.qib-button {
    min-width: 48px;
    height: 70px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--tofaa-pilot-paper) !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 20px !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__purchase .quantity input {
    width: 64px !important;
    padding: 0 4px !important;
    font-weight: 900;
    text-align: center;
}

.tofaa-product-pilot__purchase button.single_add_to_cart_button {
    width: 100% !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 15px 26px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 0 0 22px 0 !important;
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: clamp(18px, 1.35vw, 24px) !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 0 rgba(124, 79, 160, .18) !important;
    transform: translateY(0);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background-color .3s ease !important;
}

.tofaa-product-pilot__purchase button.single_add_to_cart_button:hover,
.tofaa-product-pilot__purchase button.single_add_to_cart_button:focus-visible {
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    outline: none !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 0 rgba(124, 79, 160, .18) !important;
}

.tofaa-product-pilot__benefits {
    margin-top: 42px;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    border-top: 1px solid rgba(23,23,23,.28);
}

.tofaa-product-pilot__benefit {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--tofaa-pilot-purple);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.18;
    text-align: center;
    text-transform: uppercase;
}

.tofaa-product-pilot__benefit-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--tofaa-pilot-beige), #fff);
    box-shadow: 0 7px 0 rgba(176, 131, 188, .28);
}

.tofaa-product-pilot__benefit-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--tofaa-pilot-purple);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tofaa-product-pilot__description {
    margin: 48px 0 72px;
    padding: clamp(38px, 5vw, 78px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background:
        radial-gradient(circle at 86% 24%, rgba(209, 214, 53, .42), transparent 28%),
        var(--tofaa-pilot-purple-light);
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__description h2 {
    max-width: 920px;
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(40px, 5vw, 78px) !important;
    line-height: .98;
    text-transform: uppercase;
}

.tofaa-product-pilot__description-copy {
    max-width: 900px;
    margin-top: 24px;
    color: var(--tofaa-pilot-purple);
    font-size: 19px;
    line-height: 1.65;
}

body.tofaa-product-pilot-page section.blog_product {
    width: min(1780px, calc(100% - 48px));
    margin: 0 auto 72px;
}

@media (max-width: 1240px) {
    .tofaa-product-pilot__hero {
        grid-template-columns: minmax(0, 1fr) minmax(460px, .92fr);
    }

    .tofaa-product-pilot__visual,
    .tofaa-product-pilot__gallery {
        min-height: 650px;
    }

    .tofaa-product-pilot__info {
        padding: 48px 38px 38px;
    }

    .tofaa-product-pilot__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }
}

@media (max-width: 980px) {
    .tofaa-product-pilot {
        width: min(100% - 28px, 820px);
    }

    .tofaa-product-pilot__hero {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__visual {
        min-height: 580px;
        border-right: 0;
        border-bottom: 1px solid var(--tofaa-pilot-ink);
    }

    .tofaa-product-pilot__gallery {
        min-height: 580px;
    }

    .tofaa-product-pilot__shape--one {
        width: min(78vw, 560px);
    }

    .tofaa-product-pilot__info {
        padding: 46px 34px 40px;
    }

    body.tofaa-product-pilot-page section.blog_product {
        width: min(100% - 28px, 820px);
    }
}

@media (max-width: 620px) {
    .tofaa-product-pilot {
        width: calc(100% - 18px);
    }

    .tofaa-product-pilot__hero,
    .tofaa-product-pilot__description {
        border-radius: 24px;
    }

    .tofaa-product-pilot__visual,
    .tofaa-product-pilot__gallery {
        min-height: 430px;
    }

    .tofaa-product-pilot__gallery-stage {
        width: 94%;
        height: 68%;
    }

    .tofaa-product-pilot__back {
        width: 48px;
        height: 48px;
        top: 18px;
        left: 18px;
    }

    .tofaa-product-pilot__gallery-arrow {
        width: 48px;
        height: 48px;
    }

    .tofaa-product-pilot__gallery-arrow--prev {
        left: 14px;
    }

    .tofaa-product-pilot__gallery-arrow--next {
        right: 14px;
    }

    .tofaa-product-pilot__info {
        padding: 38px 22px 30px;
    }

    .tofaa-product-pilot__title {
        font-size: clamp(43px, 15vw, 64px) !important;
    }

    .tofaa-product-pilot__rating-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .tofaa-product-pilot__purchase form.cart {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__purchase .qib-button-wrapper,
    .tofaa-product-pilot__purchase .quantity {
        border-radius: 0 !important;
    }

    .tofaa-product-pilot__purchase button.single_add_to_cart_button {
        border-radius: 0 0 20px 20px !important;
    }

    .tofaa-product-pilot__purchase-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .tofaa-product-pilot__benefit-icon {
        width: 54px;
        height: 54px;
    }

    .tofaa-product-pilot__description {
        margin-top: 28px;
        padding: 34px 24px;
    }

    body.tofaa-product-pilot-page section.blog_product {
        width: calc(100% - 18px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__gallery-image,
    .tofaa-product-pilot__back,
    .tofaa-product-pilot__gallery-arrow,
    .tofaa-product-pilot__purchase button.single_add_to_cart_button {
        transition: none !important;
    }
}

/* ============================================================
   V46 — pełna strona pilotażowa: skład, FAQ, opinie i rekomendacje
   ============================================================ */

.tofaa-product-pilot__section-heading {
    margin-bottom: clamp(30px, 4vw, 58px);
}

.tofaa-product-pilot__section-heading h2,
.tofaa-product-pilot__recommended-header h2 {
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(42px, 5vw, 82px) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em;
    line-height: .96 !important;
    text-transform: uppercase;
}

.tofaa-product-pilot__section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .65fr);
    align-items: end;
    gap: 34px;
}

.tofaa-product-pilot__section-heading--split > p {
    max-width: 520px;
    margin: 0 0 4px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(17px, 1.3vw, 22px) !important;
    font-weight: 700;
    line-height: 1.5;
}

.tofaa-product-pilot__section-heading--center {
    text-align: center;
}

/* Skład i tabela wartości odżywczych. */
.tofaa-product-pilot__nutrition {
    margin: 0 0 72px;
    padding: clamp(42px, 6vw, 90px);
    overflow: hidden;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background:
        radial-gradient(circle at 5% 10%, rgba(255,255,255,.22), transparent 25%),
        var(--tofaa-pilot-purple-light);
}

.tofaa-product-pilot__nutrition-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
    gap: clamp(24px, 3vw, 46px);
}

.tofaa-product-pilot__ingredients-card,
.tofaa-product-pilot__nutrition-table {
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 28px;
    background: var(--tofaa-pilot-beige);
    box-shadow: 0 12px 0 rgba(124,79,160,.18);
}

.tofaa-product-pilot__ingredients-card {
    min-height: 580px;
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 4vw, 56px);
    display: flex;
    flex-direction: column;
}

.tofaa-product-pilot__ingredients-card::before {
    content: "";
    width: min(34vw, 460px);
    aspect-ratio: 1;
    position: absolute;
    right: -9%;
    bottom: 10%;
    border: 1px solid rgba(23,23,23,.42);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(209,214,53,.66), rgba(248,234,225,.9));
}

.tofaa-product-pilot__ingredients-copy {
    max-width: 76%;
    position: relative;
    z-index: 3;
}

.tofaa-product-pilot__ingredients-copy h3 {
    margin: 0 0 16px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(30px, 3vw, 48px) !important;
    text-transform: uppercase;
}

.tofaa-product-pilot__ingredients-copy,
.tofaa-product-pilot__ingredients-copy p {
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(16px, 1.2vw, 20px) !important;
    line-height: 1.55;
}

.tofaa-product-pilot__ingredients-copy p {
    margin: 0 0 10px !important;
}

.tofaa-product-pilot__nutrition-product {
    min-height: 240px;
    position: relative;
    z-index: 2;
    margin: auto -2% 20px 8%;
    display: grid;
    place-items: center;
}

.tofaa-product-pilot__nutrition-product img {
    width: min(100%, 620px) !important;
    max-height: 270px;
    object-fit: contain;
    filter: drop-shadow(0 22px 22px rgba(42,23,50,.23));
    transform: rotate(3deg);
}

.tofaa-product-pilot__serving-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tofaa-product-pilot__serving-box {
    min-height: 92px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 18px;
    background: rgba(255,253,251,.9);
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__serving-box span {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.tofaa-product-pilot__serving-box strong {
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(23px, 2vw, 34px);
    line-height: 1;
}

.tofaa-product-pilot__nutrition-table {
    padding: clamp(26px, 3.4vw, 50px);
}

.tofaa-product-pilot__nutrition-table-head,
.tofaa-product-pilot__nutrition-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, .38fr);
    gap: 18px;
    align-items: center;
}

.tofaa-product-pilot__nutrition-table-head {
    padding: 0 5px 16px;
    border-bottom: 2px solid var(--tofaa-pilot-ink);
    color: var(--tofaa-pilot-purple);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tofaa-product-pilot__nutrition-table-head span:last-child,
.tofaa-product-pilot__nutrition-row strong {
    text-align: right;
}

.tofaa-product-pilot__nutrition-group + .tofaa-product-pilot__nutrition-group {
    margin-top: 14px;
}

.tofaa-product-pilot__nutrition-row {
    min-height: 51px;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(23,23,23,.38);
    color: var(--tofaa-pilot-purple);
    font-size: clamp(15px, 1.15vw, 19px);
    line-height: 1.3;
}

.tofaa-product-pilot__nutrition-row strong {
    font-weight: 900;
}

.tofaa-product-pilot__nutrition-empty {
    padding: 30px 5px;
    color: var(--tofaa-pilot-purple);
    font-size: 18px;
    line-height: 1.5;
}

/* FAQ. */
.tofaa-product-pilot__faq {
    margin-bottom: 72px;
    padding: clamp(42px, 6vw, 90px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background:
        radial-gradient(circle at 10% 85%, rgba(176,131,188,.16), transparent 28%),
        var(--tofaa-pilot-beige);
}

.tofaa-product-pilot__faq-layout {
    display: grid;
    grid-template-columns: minmax(250px, .5fr) minmax(0, 1.15fr);
    gap: clamp(32px, 6vw, 96px);
}

.tofaa-product-pilot__faq-intro {
    align-self: start;
    position: sticky;
    top: 150px;
}

.tofaa-product-pilot__faq-intro p {
    margin: 0 0 28px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(18px, 1.45vw, 24px) !important;
    font-weight: 700;
    line-height: 1.5;
}

.tofaa-product-pilot__faq-intro a,
.tofaa-product-pilot__recommended-header > a,
.tofaa-product-pilot__review-cta {
    min-height: 54px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 999px;
    background: var(--tofaa-pilot-green);
    color: var(--tofaa-pilot-purple) !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    text-transform: uppercase;
    box-shadow: 0 8px 0 rgba(124,79,160,.18);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.tofaa-product-pilot__faq-intro a:hover,
.tofaa-product-pilot__faq-intro a:focus-visible,
.tofaa-product-pilot__recommended-header > a:hover,
.tofaa-product-pilot__recommended-header > a:focus-visible,
.tofaa-product-pilot__review-cta:hover,
.tofaa-product-pilot__review-cta:focus-visible {
    outline: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(124,79,160,.18);
}

.tofaa-product-pilot__faq-list {
    border-top: 1px solid var(--tofaa-pilot-ink);
}

.tofaa-product-pilot__faq-item {
    border-bottom: 1px solid var(--tofaa-pilot-ink);
}

.tofaa-product-pilot__faq-item summary {
    min-height: 84px;
    padding: 19px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--tofaa-pilot-purple);
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.tofaa-product-pilot__faq-item summary::-webkit-details-marker {
    display: none;
}

.tofaa-product-pilot__faq-plus {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    position: relative;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-green);
}

.tofaa-product-pilot__faq-plus::before,
.tofaa-product-pilot__faq-plus::after {
    content: "";
    width: 16px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--tofaa-pilot-purple);
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}

.tofaa-product-pilot__faq-plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tofaa-product-pilot__faq-item[open] .tofaa-product-pilot__faq-plus::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.tofaa-product-pilot__faq-answer {
    padding: 0 68px 24px 4px;
    color: var(--tofaa-pilot-purple);
    font-size: 17px;
    line-height: 1.65;
}

.tofaa-product-pilot__faq-answer p {
    margin: 0 0 12px !important;
}

/* Opinie. */
.tofaa-product-pilot__reviews {
    scroll-margin-top: 150px;
    margin-bottom: 72px;
    padding: clamp(42px, 6vw, 90px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 4%, rgba(209,214,53,.32), transparent 26%),
        var(--tofaa-pilot-beige);
}

.tofaa-product-pilot__reviews-summary {
    margin-bottom: 48px;
    padding: clamp(26px, 3vw, 42px);
    display: grid;
    grid-template-columns: minmax(190px, .38fr) minmax(360px, 1fr) minmax(190px, .38fr);
    align-items: center;
    gap: clamp(26px, 4vw, 58px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 26px;
    background: rgba(255,253,251,.72);
}

.tofaa-product-pilot__reviews-score {
    display: flex;
    flex-direction: column;
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__reviews-score > span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.tofaa-product-pilot__reviews-score > strong {
    margin: 6px 0;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(58px, 5vw, 84px);
    line-height: 1;
}

.tofaa-product-pilot__reviews-score .star-rating {
    float: none !important;
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
}

.tofaa-product-pilot__reviews-score small {
    margin-top: 10px;
    font-weight: 700;
}

.tofaa-product-pilot__rating-bars {
    display: grid;
    gap: 12px;
}

.tofaa-product-pilot__rating-bar {
    display: grid;
    grid-template-columns: 18px 88px minmax(100px, 1fr) 24px;
    align-items: center;
    gap: 12px;
    color: var(--tofaa-pilot-purple);
    font-weight: 800;
}

.tofaa-product-pilot__rating-bar-stars {
    font-size: 12px;
    letter-spacing: .02em;
    white-space: nowrap;
}

.tofaa-product-pilot__rating-track {
    height: 10px;
    overflow: hidden;
    border: 1px solid rgba(23,23,23,.28);
    border-radius: 999px;
    background: rgba(176,131,188,.25);
}

.tofaa-product-pilot__rating-track i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--tofaa-pilot-green);
}

.tofaa-product-pilot__review-cta {
    text-align: center;
}

/* Natywna lista WooCommerce i formularz opinii, wystylizowane dla pilota. */
.tofaa-product-pilot__reviews-native .woocommerce-Reviews {
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__reviews-native .woocommerce-Reviews-title {
    margin: 0 0 26px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(28px, 2.8vw, 46px) !important;
    text-transform: uppercase;
}

.tofaa-product-pilot__reviews-native .commentlist {
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    list-style: none !important;
}

.tofaa-product-pilot__reviews-native .commentlist > li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.tofaa-product-pilot__reviews-native .comment_container {
    min-height: 220px;
    padding: 26px !important;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 24px;
    background: rgba(255,253,251,.78);
}

.tofaa-product-pilot__reviews-native .avatar {
    width: 58px !important;
    height: 58px !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 50%;
}

.tofaa-product-pilot__reviews-native .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__reviews-native .star-rating {
    float: none !important;
    margin: 0 0 12px !important;
    color: var(--tofaa-pilot-purple) !important;
}

.tofaa-product-pilot__reviews-native .meta {
    color: var(--tofaa-pilot-purple) !important;
    font-size: 14px !important;
}

.tofaa-product-pilot__reviews-native .description,
.tofaa-product-pilot__reviews-native .description p {
    color: var(--tofaa-pilot-purple) !important;
    font-size: 16px !important;
    line-height: 1.55;
}

.tofaa-product-pilot__reviews-native #review_form_wrapper {
    margin-top: 34px;
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 26px;
    background: var(--tofaa-pilot-purple-light);
}

.tofaa-product-pilot__reviews-native #reply-title {
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(26px, 2.4vw, 40px) !important;
    text-transform: uppercase;
}

.tofaa-product-pilot__reviews-native label {
    color: var(--tofaa-pilot-purple) !important;
    font-weight: 800;
}

.tofaa-product-pilot__reviews-native input[type="text"],
.tofaa-product-pilot__reviews-native input[type="email"],
.tofaa-product-pilot__reviews-native textarea,
.tofaa-product-pilot__reviews-native select {
    width: 100%;
    padding: 14px 16px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 14px !important;
    background: var(--tofaa-pilot-beige) !important;
    color: var(--tofaa-pilot-purple) !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__reviews-native input[type="submit"] {
    min-height: 54px;
    padding: 13px 24px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 999px !important;
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 0 rgba(124,79,160,.18) !important;
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease !important;
}

.tofaa-product-pilot__reviews-native input[type="submit"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(124,79,160,.18) !important;
}

/* Polecane produkty. */
.tofaa-product-pilot__recommended {
    margin-bottom: 80px;
    overflow: hidden;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background: var(--tofaa-pilot-beige);
}

.tofaa-product-pilot__recommended-header {
    padding: clamp(34px, 4vw, 60px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid var(--tofaa-pilot-ink);
}

.tofaa-product-pilot__recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tofaa-product-pilot__recommended-card {
    min-width: 0;
    border-right: 1px solid var(--tofaa-pilot-ink);
}

.tofaa-product-pilot__recommended-card:last-child {
    border-right: 0;
}

.tofaa-product-pilot__recommended-card--1 {
    background: linear-gradient(145deg, #dce44a, #b7bd38);
}

.tofaa-product-pilot__recommended-card--2 {
    background: linear-gradient(145deg, #c49bca, var(--tofaa-pilot-purple-light));
}

.tofaa-product-pilot__recommended-card--3 {
    background: linear-gradient(145deg, var(--tofaa-pilot-beige), #f1ddd1);
}

.tofaa-product-pilot__recommended-link {
    min-height: 630px;
    padding: clamp(28px, 3vw, 44px);
    display: flex;
    flex-direction: column;
    color: var(--tofaa-pilot-purple) !important;
    text-decoration: none !important;
}

.tofaa-product-pilot__recommended-link h3 {
    min-height: 2em;
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(30px, 2.8vw, 48px) !important;
    line-height: .98;
    text-transform: uppercase;
}

.tofaa-product-pilot__recommended-circle {
    width: min(88%, 440px);
    aspect-ratio: 1;
    margin: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(23,23,23,.45);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(248,234,225,.42));
    transition: transform .5s cubic-bezier(.2,.8,.2,1), background .45s ease;
}

.tofaa-product-pilot__recommended-circle img {
    width: 118% !important;
    max-height: 260px;
    object-fit: contain;
    filter: drop-shadow(0 20px 18px rgba(42,23,50,.2));
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.tofaa-product-pilot__recommended-link:hover .tofaa-product-pilot__recommended-circle {
    transform: scale(1.035);
    background: linear-gradient(145deg, rgba(124,79,160,.28), rgba(248,234,225,.5));
}

.tofaa-product-pilot__recommended-link:hover .tofaa-product-pilot__recommended-circle img {
    transform: translateY(-10px) rotate(-2deg) scale(1.04);
}

.tofaa-product-pilot__recommended-meta {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(23,23,23,.5);
    color: var(--tofaa-pilot-purple);
    font-family: "Rubik", Arial, sans-serif;
    font-size: 25px;
    font-weight: 900;
}

.tofaa-product-pilot__recommended-meta .price,
.tofaa-product-pilot__recommended-meta bdi {
    color: inherit !important;
    font-size: inherit !important;
}

.tofaa-product-pilot__recommended-arrow {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-green);
    transition: transform .3s ease;
}

.tofaa-product-pilot__recommended-link:hover .tofaa-product-pilot__recommended-arrow {
    transform: translateX(5px);
}

/* Ukrycie starych sekcji, gdy wtyczka/motyw spróbuje dołączyć je drugi raz. */
body.tofaa-product-pilot-page section.blog_product {
    display: none !important;
}

@media (max-width: 1180px) {
    .tofaa-product-pilot__nutrition-grid,
    .tofaa-product-pilot__faq-layout {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__faq-intro {
        position: static;
    }

    .tofaa-product-pilot__reviews-summary {
        grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
    }

    .tofaa-product-pilot__review-cta {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .tofaa-product-pilot__recommended-link {
        min-height: 560px;
    }
}

@media (max-width: 820px) {
    .tofaa-product-pilot__section-heading--split {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__nutrition,
    .tofaa-product-pilot__faq,
    .tofaa-product-pilot__reviews {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .tofaa-product-pilot__reviews-summary {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__reviews-native .commentlist {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__recommended-grid {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__recommended-card {
        border-right: 0;
        border-bottom: 1px solid var(--tofaa-pilot-ink);
    }

    .tofaa-product-pilot__recommended-card:last-child {
        border-bottom: 0;
    }

    .tofaa-product-pilot__recommended-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tofaa-product-pilot__recommended-link {
        min-height: 520px;
    }
}

@media (max-width: 560px) {
    .tofaa-product-pilot__ingredients-copy {
        max-width: 100%;
    }

    .tofaa-product-pilot__ingredients-card::before {
        width: 390px;
        right: -42%;
    }

    .tofaa-product-pilot__serving-grid {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__nutrition-table-head,
    .tofaa-product-pilot__nutrition-row {
        grid-template-columns: minmax(0, 1fr) 90px;
    }

    .tofaa-product-pilot__rating-bar {
        grid-template-columns: 16px 68px minmax(80px, 1fr) 20px;
        gap: 8px;
    }

    .tofaa-product-pilot__rating-bar-stars {
        font-size: 10px;
    }

    .tofaa-product-pilot__reviews-native .comment_container {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__recommended-header,
    .tofaa-product-pilot__recommended-link {
        padding: 28px 22px;
    }

    .tofaa-product-pilot__recommended-link {
        min-height: 470px;
    }
}

/* ============================================================
   V48 — dopracowanie hero produktu Jabłko × Malina
   ============================================================ */

/* Tytuł pozostaje nieruchomy. Animuje się wyłącznie separator × → +. */
.tofaa-product-pilot__title,
.tofaa-product-pilot__title-part {
    transform: none !important;
    transition: none !important;
}

.tofaa-product-pilot__title-separator {
    display: inline-block;
    margin-inline: .06em;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.tofaa-product-pilot__title-part:last-child {
    display: block;
}

.tofaa-product-pilot__title:hover .tofaa-product-pilot__title-separator {
    transform: rotate(45deg);
}

/* Oceny i dostępność w jednym, lewostronnym rzędzie. */
.tofaa-product-pilot__rating-row {
    justify-content: flex-start;
    gap: 12px;
}

.tofaa-product-pilot__rating {
    gap: 10px;
}

.tofaa-product-pilot__rating-label {
    white-space: nowrap;
}

.tofaa-product-pilot__stock {
    margin: 0;
    padding: 8px 14px;
    border: 1px solid var(--tofaa-pilot-ink);
    background: var(--tofaa-pilot-purple-light);
    color: var(--tofaa-pilot-purple);
}

/* Osobne pole ilości oraz osobny przycisk koszyka. */
.tofaa-product-pilot__purchase .tofaa-product-pilot__cart {
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
}

.tofaa-product-pilot__quantity-panel {
    min-height: 74px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 22px;
    background: rgba(255, 253, 251, .72);
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__quantity-title {
    min-width: 0;
    padding: 0 22px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.tofaa-product-pilot__qty-control {
    min-width: 188px;
    display: grid;
    grid-template-columns: 56px 76px 56px;
    align-items: stretch;
    border-left: 1px solid var(--tofaa-pilot-ink);
    background: var(--tofaa-pilot-paper);
}

.tofaa-product-pilot__qty-button,
.tofaa-product-pilot__qty-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center;
    box-shadow: none !important;
}

.tofaa-product-pilot__qty-button {
    cursor: pointer;
    transition: background-color .2s ease;
}

.tofaa-product-pilot__qty-button:first-child {
    border-right: 1px solid rgba(23, 23, 23, .18) !important;
}

.tofaa-product-pilot__qty-button:last-child {
    border-left: 1px solid rgba(23, 23, 23, .18) !important;
}

.tofaa-product-pilot__qty-button:hover,
.tofaa-product-pilot__qty-button:focus-visible {
    background: rgba(176, 131, 188, .18) !important;
    outline: none !important;
}

.tofaa-product-pilot__qty-button:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.tofaa-product-pilot__qty-input {
    appearance: textfield;
    -moz-appearance: textfield;
}

.tofaa-product-pilot__qty-input::-webkit-inner-spin-button,
.tofaa-product-pilot__qty-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* CTA 1:1 jak w katalogu produktów. */
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
    width: auto !important;
    min-width: 260px !important;
    min-height: 54px !important;
    justify-self: start;
    margin: 0 !important;
    padding: 15px 24px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 999px !important;
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
    box-shadow: 0 10px 0 rgba(124, 79, 160, .18) !important;
    transform: translateY(0) !important;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease !important;
}

.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart:hover,
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart:focus-visible {
    border-color: var(--tofaa-pilot-ink) !important;
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    outline: none !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 0 rgba(124, 79, 160, .22) !important;
}

@media (max-width: 620px) {
    .tofaa-product-pilot__rating-row {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tofaa-product-pilot__quantity-panel {
        min-height: 68px;
    }

    .tofaa-product-pilot__quantity-title {
        padding-inline: 16px;
        font-size: 14px;
    }

    .tofaa-product-pilot__qty-control {
        min-width: 156px;
        grid-template-columns: 46px 64px 46px;
    }

    .tofaa-product-pilot__qty-button,
    .tofaa-product-pilot__qty-input {
        height: 66px !important;
    }

    .tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
        width: 100% !important;
        min-width: 0 !important;
        justify-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__title-separator {
        transition: none !important;
    }
}


/* ============================================================
   V49 — licznik, pełnoszerokie CTA i benefity 1:1 ze strony głównej
   ============================================================ */

/* Separatory licznika mają ten sam czarny kontur co całe pole. */
.tofaa-product-pilot__qty-button:first-child {
    border-right: 1px solid var(--tofaa-pilot-ink) !important;
}

.tofaa-product-pilot__qty-button:last-child {
    border-left: 1px solid var(--tofaa-pilot-ink) !important;
}

/* Przycisk koszyka ma dokładnie tę samą szerokość i wysokość co panel ilości. */
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 74px !important;
    justify-self: stretch !important;
    border-radius: 22px !important;
}

/* Ten sam zestaw, grafiki, proporcje i podpisy co w hero strony głównej. */
.tofaa-product-pilot__benefits {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.tofaa-product-pilot__benefit {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-items: initial !important;
    gap: 10px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.tofaa-product-pilot__benefit-icon {
    width: 68px !important;
    height: 68px !important;
    display: grid !important;
    place-items: center;
    border: 6px solid rgba(176, 131, 188, .2) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .26) !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__benefit-icon img {
    width: 45px !important;
    height: 45px !important;
    display: block;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .tofaa-product-pilot__benefits {
        grid-template-columns: repeat(3, minmax(95px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
        min-height: 68px !important;
    }

    .tofaa-product-pilot__benefits {
        grid-template-columns: repeat(2, minmax(110px, 1fr)) !important;
    }
}


/* ============================================================
   V50 — większy tekst CTA i jednolite czarne separatory licznika
   ============================================================ */

/* Jedna czarna linia po obu stronach liczby — bez szarego konturu WooCommerce. */
.tofaa-product-pilot__qty-button:first-child,
.tofaa-product-pilot__qty-button:last-child {
    border-left: 0 !important;
    border-right: 0 !important;
}

.tofaa-product-pilot__qty-input,
.tofaa-product-pilot__purchase input.tofaa-product-pilot__qty-input.input-text.qty.text {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid var(--tofaa-pilot-ink) !important;
    border-right: 1px solid var(--tofaa-pilot-ink) !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Wyraźniejszy napis na pełnoszerokim przycisku koszyka. */
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
    font-size: 20px !important;
    letter-spacing: .01em !important;
}

@media (max-width: 640px) {
    .tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart {
        font-size: 17px !important;
    }
}


/* ============================================================
   V151 — sekcja składników bez dekoracyjnego koła i packshotu
   ============================================================ */
.tofaa-product-pilot__ingredients-card::before {
    content: none !important;
    display: none !important;
}

.tofaa-product-pilot__ingredients-card {
    min-height: 0;
}

.tofaa-product-pilot__ingredients-copy {
    max-width: 100%;
}

.tofaa-product-pilot__serving-grid {
    margin-top: auto;
    padding-top: clamp(28px, 4vw, 52px);
}

/* ============================================================
   V52 — skład w accordionie + formularz opinii w modalu
   Dotyczy wyłącznie pilotażowej strony Jabłko × Malina.
   ============================================================ */

/* Nagłówek sekcji bez dodatkowych, zbędnych podpisów. */
.tofaa-product-pilot__nutrition > .tofaa-product-pilot__section-heading {
    margin-bottom: clamp(24px, 3vw, 42px);
}

.tofaa-product-pilot__nutrition > .tofaa-product-pilot__section-heading h2 {
    max-width: 920px;
}

/* Rozwijana lista składników i wartości odżywczych. */
.tofaa-product-pilot__info-accordion {
    overflow: hidden;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 28px;
    background: rgba(248, 234, 225, .94);
    box-shadow: 0 14px 0 rgba(124, 79, 160, .16);
}

.tofaa-product-pilot__info-item {
    margin: 0;
    border: 0;
}

.tofaa-product-pilot__info-item + .tofaa-product-pilot__info-item {
    border-top: 1px solid var(--tofaa-pilot-ink);
}

.tofaa-product-pilot__info-item > summary {
    min-height: 94px;
    padding: 20px clamp(22px, 3vw, 44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: var(--tofaa-pilot-purple);
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(21px, 1.8vw, 30px);
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
    transition: background-color .28s ease, color .28s ease;
}

.tofaa-product-pilot__info-item > summary::-webkit-details-marker {
    display: none;
}

.tofaa-product-pilot__info-item > summary:hover,
.tofaa-product-pilot__info-item > summary:focus-visible,
.tofaa-product-pilot__info-item[open] > summary {
    outline: none;
    background: var(--tofaa-pilot-green);
}

.tofaa-product-pilot__info-toggle {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    position: relative;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-beige);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), background-color .28s ease;
}

.tofaa-product-pilot__info-toggle::before,
.tofaa-product-pilot__info-toggle::after {
    content: "";
    width: 17px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 999px;
    background: var(--tofaa-pilot-purple);
    transform: translate(-50%, -50%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.tofaa-product-pilot__info-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tofaa-product-pilot__info-item[open] .tofaa-product-pilot__info-toggle {
    transform: rotate(180deg);
    background: var(--tofaa-pilot-purple-light);
}

.tofaa-product-pilot__info-item[open] .tofaa-product-pilot__info-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.tofaa-product-pilot__info-panel {
    padding: clamp(24px, 3vw, 44px);
    border-top: 1px solid var(--tofaa-pilot-ink);
    background:
        radial-gradient(circle at 88% 8%, rgba(209, 214, 53, .20), transparent 29%),
        var(--tofaa-pilot-beige);
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-card,
.tofaa-product-pilot__info-panel .tofaa-product-pilot__nutrition-table {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy {
    max-width: 1050px;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy h3 {
    display: none;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy,
.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy p,
.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy div {
    color: var(--tofaa-pilot-purple) !important;
    font-size: clamp(17px, 1.25vw, 21px) !important;
    line-height: 1.65;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__serving-grid {
    margin-top: 28px;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__nutrition-table-head,
.tofaa-product-pilot__info-panel .tofaa-product-pilot__nutrition-row {
    padding-right: 4px;
    padding-left: 4px;
}

/* Formularz opinii nie jest już częścią normalnego przepływu strony. */
.tofaa-product-pilot__reviews-native #review_form_wrapper {
    display: none !important;
}

.tofaa-product-pilot__review-cta {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: "Rubik", Arial, sans-serif;
}

body.tofaa-review-modal-open {
    overflow: hidden;
}

.tofaa-product-pilot__review-modal[hidden] {
    display: none !important;
}

.tofaa-product-pilot__review-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

.tofaa-product-pilot__review-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.tofaa-product-pilot__review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, .62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tofaa-product-pilot__review-modal-dialog {
    width: min(1040px, 100%);
    max-height: min(90vh, 920px);
    position: relative;
    z-index: 1;
    overflow: auto;
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 34px;
    background:
        radial-gradient(circle at 94% 8%, rgba(209, 214, 53, .34), transparent 26%),
        var(--tofaa-pilot-purple-light);
    box-shadow: 0 18px 0 rgba(23, 23, 23, .20), 0 34px 90px rgba(23, 23, 23, .34);
    transform: translateY(18px) scale(.98);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
}

.tofaa-product-pilot__review-modal.is-open .tofaa-product-pilot__review-modal-dialog {
    transform: translateY(0) scale(1);
}

.tofaa-product-pilot__review-modal-close {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-green);
    color: var(--tofaa-pilot-purple);
    font-family: "Rubik", Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 0 rgba(124, 79, 160, .18);
    transition: transform .22s ease, box-shadow .22s ease;
}

.tofaa-product-pilot__review-modal-close:hover,
.tofaa-product-pilot__review-modal-close:focus-visible {
    outline: none;
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 10px 0 rgba(124, 79, 160, .18);
}

.tofaa-product-pilot__review-modal-header {
    padding-right: 64px;
    margin-bottom: 30px;
}

.tofaa-product-pilot__review-modal-header p {
    margin: 0 0 7px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tofaa-product-pilot__review-modal-header h2 {
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(38px, 5vw, 72px) !important;
    font-weight: 900;
    line-height: .96;
    text-transform: uppercase;
}

.tofaa-product-pilot__review-modal #review_form_wrapper {
    display: block !important;
    margin: 0;
    padding: clamp(24px, 3vw, 42px);
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 26px;
    background: rgba(248, 234, 225, .88);
}

.tofaa-product-pilot__review-modal #reply-title {
    display: none;
}

.tofaa-product-pilot__review-modal label,
.tofaa-product-pilot__review-modal .comment-form-rating,
.tofaa-product-pilot__review-modal .stars,
.tofaa-product-pilot__review-modal p {
    color: var(--tofaa-pilot-purple) !important;
}

.tofaa-product-pilot__review-modal label {
    font-weight: 800;
}

.tofaa-product-pilot__review-modal input[type="text"],
.tofaa-product-pilot__review-modal input[type="email"],
.tofaa-product-pilot__review-modal input[type="url"],
.tofaa-product-pilot__review-modal input[type="file"],
.tofaa-product-pilot__review-modal textarea,
.tofaa-product-pilot__review-modal select {
    width: 100%;
    padding: 14px 16px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 14px !important;
    background: #fffdfb !important;
    color: var(--tofaa-pilot-purple) !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal input[type="checkbox"],
.tofaa-product-pilot__review-modal input[type="radio"] {
    accent-color: var(--tofaa-pilot-green);
}

.tofaa-product-pilot__review-modal input[type="submit"],
.tofaa-product-pilot__review-modal button[type="submit"] {
    min-height: 56px;
    padding: 14px 28px !important;
    border: 1px solid var(--tofaa-pilot-ink) !important;
    border-radius: 999px !important;
    background: var(--tofaa-pilot-green) !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 0 rgba(124, 79, 160, .18) !important;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:hover,
.tofaa-product-pilot__review-modal button[type="submit"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(124, 79, 160, .18) !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__info-item > summary {
        min-height: 76px;
        padding: 16px 18px;
    }

    .tofaa-product-pilot__info-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .tofaa-product-pilot__info-panel {
        padding: 22px 18px 26px;
    }

    .tofaa-product-pilot__review-modal {
        padding: 10px;
    }

    .tofaa-product-pilot__review-modal-dialog {
        max-height: 94vh;
        padding: 24px 16px 22px;
        border-radius: 24px;
    }

    .tofaa-product-pilot__review-modal-close {
        width: 44px;
        height: 44px;
        top: 12px;
        right: 12px;
    }

    .tofaa-product-pilot__review-modal-header {
        padding: 14px 52px 0 6px;
    }

    .tofaa-product-pilot__review-modal #review_form_wrapper {
        padding: 20px 16px;
        border-radius: 20px;
    }
}

/* ============================================================
   V53 — kompaktowy skład + FAQ i opinie w dwóch kolumnach
   ============================================================ */

/* Sekcja składu bez zewnętrznego fioletowego kontenera i nagłówka. */
.tofaa-product-pilot__nutrition {
    margin: 0 0 clamp(42px, 5vw, 72px) !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.tofaa-product-pilot__nutrition > .tofaa-product-pilot__section-heading {
    display: none !important;
}

.tofaa-product-pilot__info-accordion {
    width: 100%;
    max-width: none;
}

/* Wszystkie okrągłe przyciski plus w tej części strony używają akcentu Tofaa. */
.tofaa-product-pilot__info-toggle,
.tofaa-product-pilot__info-item[open] .tofaa-product-pilot__info-toggle,
.tofaa-product-pilot__faq-plus {
    background: #d1d635 !important;
}

/* FAQ i opinie działają jako jeden, dwukolumnowy moduł. */
.tofaa-product-pilot__knowledge-grid {
    margin: 0 0 clamp(48px, 6vw, 84px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 34px);
    align-items: start;
}

.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__faq,
.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: clamp(28px, 3vw, 48px) !important;
    border-radius: 30px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__section-heading {
    margin-bottom: clamp(22px, 2.4vw, 34px);
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__section-heading h2 {
    font-size: clamp(34px, 3.35vw, 58px) !important;
}

/* W węższej kolumnie FAQ intro jest nad listą zamiast obok niej. */
.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-layout {
    display: block;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-intro {
    position: static;
    margin-bottom: 26px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-intro p {
    margin-bottom: 20px !important;
    font-size: clamp(16px, 1.15vw, 20px) !important;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-item summary {
    min-height: 70px;
    padding: 15px 2px;
    font-size: clamp(15px, 1.08vw, 19px);
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-answer {
    padding: 0 58px 20px 2px;
    font-size: 16px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-plus {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

/* Podsumowanie opinii mieści się czytelnie w prawej kolumnie. */
.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-summary {
    margin-bottom: 28px;
    padding: clamp(20px, 2.1vw, 30px);
    grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
    gap: 22px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-score > strong {
    font-size: clamp(46px, 4vw, 68px);
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__rating-bar {
    grid-template-columns: 16px 70px minmax(70px, 1fr) 20px;
    gap: 8px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__rating-bar-stars {
    font-size: 10px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__review-cta {
    width: 100%;
    grid-column: 1 / -1;
}

/* Długie listy opinii przewijają się wewnątrz kolumny zamiast wydłużać całą stronę. */
.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-native .commentlist {
    max-height: 510px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #B083BC rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-native .commentlist::-webkit-scrollbar {
    width: 8px;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-native .commentlist::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #B083BC;
}

.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-native .commentlist::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(124, 79, 160, .12);
}

@media (max-width: 1180px) {
    .tofaa-product-pilot__knowledge-grid {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__faq,
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        height: auto;
    }

    .tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-native .commentlist {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 620px) {
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__faq,
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        padding: 24px 18px !important;
        border-radius: 24px;
    }

    .tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__reviews-summary {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__review-cta {
        grid-column: auto;
    }
}

/* ============================================================
   V54 — wyrównane odstępy, uproszczone FAQ i najnowsze opinie
   ============================================================ */

/* Taki sam odstęp nad i pod akordeonem składu. */
.tofaa-product-pilot__nutrition {
    margin: clamp(42px, 5vw, 72px) 0 !important;
}

/* FAQ: CTA znajduje się pod całą listą pytań. */
.tofaa-product-pilot__knowledge-grid .tofaa-product-pilot__faq-intro {
    margin-bottom: 10px;
}

.tofaa-product-pilot__faq-footer {
    margin-top: 24px;
}

.tofaa-product-pilot__faq-footer a {
    min-height: 54px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 999px;
    background: var(--tofaa-pilot-green);
    color: var(--tofaa-pilot-purple) !important;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 8px 0 rgba(124, 79, 160, .18);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}

.tofaa-product-pilot__faq-footer a:hover,
.tofaa-product-pilot__faq-footer a:focus-visible {
    transform: translateY(-4px);
    border-color: var(--tofaa-pilot-ink) !important;
    box-shadow: 0 12px 0 rgba(124, 79, 160, .18);
}

/* CTA opinii nie może tracić czarnego konturu na hoverze. */
.tofaa-product-pilot__review-cta,
.tofaa-product-pilot__review-cta:hover,
.tofaa-product-pilot__review-cta:focus-visible {
    border: 1px solid var(--tofaa-pilot-ink) !important;
}

/* Natywna lista WooCommerce zostaje tylko jako źródło formularza dla modala. */
.tofaa-product-pilot__reviews-native .woocommerce-Reviews-title,
.tofaa-product-pilot__reviews-native #comments,
.tofaa-product-pilot__reviews-native .commentlist {
    display: none !important;
}

/* Dziesięć najnowszych opinii — regularna siatka zaczynająca się od lewego górnego rogu. */
.tofaa-product-pilot__review-list {
    max-height: 510px;
    padding-right: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #B083BC rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__review-list::-webkit-scrollbar {
    width: 8px;
}

.tofaa-product-pilot__review-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #B083BC;
}

.tofaa-product-pilot__review-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__review-card {
    min-width: 0;
    min-height: 210px;
    padding: 24px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 24px;
    background: rgba(255, 253, 251, .78);
    color: var(--tofaa-pilot-purple);
}

.tofaa-product-pilot__review-avatar img {
    width: 58px;
    height: 58px;
    display: block;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
}

.tofaa-product-pilot__review-content {
    min-width: 0;
}

.tofaa-product-pilot__review-stars .star-rating {
    float: none !important;
    margin: 0 0 10px !important;
    color: var(--tofaa-pilot-purple) !important;
}

.tofaa-product-pilot__review-meta {
    margin: 0 0 14px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 14px;
    line-height: 1.4;
}

.tofaa-product-pilot__review-meta strong {
    font-weight: 900;
}

.tofaa-product-pilot__review-text,
.tofaa-product-pilot__review-text p {
    margin: 0 !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.tofaa-product-pilot__reviews-empty {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 22px;
    background: rgba(255, 253, 251, .72);
    color: var(--tofaa-pilot-purple);
    font-weight: 800;
}

@media (max-width: 1180px) {
    .tofaa-product-pilot__review-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 700px) {
    .tofaa-product-pilot__review-list {
        grid-template-columns: 1fr;
    }

    .tofaa-product-pilot__review-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 20px;
    }

    .tofaa-product-pilot__review-avatar img {
        width: 48px;
        height: 48px;
    }

    .tofaa-product-pilot__faq-footer a {
        width: 100%;
    }
}


/* ============================================================
   V65 — wciskane CTA + płynne akordeony produktu
   Styl 1:1 jak „Kup Tofaa!” w navbarze.
   ============================================================ */

/* Wszystkie wskazane CTA na pilotażowej stronie produktu. */
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart,
.tofaa-product-pilot__faq-footer a,
.tofaa-product-pilot__review-cta,
.tofaa-product-pilot__recommended-header > a {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    outline: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart:hover,
.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart:focus-visible,
.tofaa-product-pilot__faq-footer a:hover,
.tofaa-product-pilot__faq-footer a:focus-visible,
.tofaa-product-pilot__review-cta:hover,
.tofaa-product-pilot__review-cta:focus-visible,
.tofaa-product-pilot__recommended-header > a:hover,
.tofaa-product-pilot__recommended-header > a:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart:active,
.tofaa-product-pilot__faq-footer a:active,
.tofaa-product-pilot__review-cta:active,
.tofaa-product-pilot__recommended-header > a:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

/* Bez dekoracyjnego cienia pod akordeonem składu. */
.tofaa-product-pilot__info-accordion {
    box-shadow: none !important;
}

/* Przygotowanie natywnych <details> do animowanego otwierania i zamykania. */
.tofaa-product-pilot__info-item,
.tofaa-product-pilot__faq-item {
    will-change: height;
}

.tofaa-product-pilot__info-item.is-tofaa-details-animating,
.tofaa-product-pilot__faq-item.is-tofaa-details-animating {
    overflow: hidden !important;
}

.tofaa-product-pilot__info-panel,
.tofaa-product-pilot__faq-answer {
    transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__purchase button.single_add_to_cart_button.tofaa-product-pilot__add-to-cart,
    .tofaa-product-pilot__faq-footer a,
    .tofaa-product-pilot__review-cta,
    .tofaa-product-pilot__recommended-header > a {
        transition: none !important;
    }
}


/* 66 — wartości odżywcze w dwóch równych kolumnach. */
.tofaa-product-pilot__nutrition-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(30px, 4vw, 64px);
    align-items: start;
}

.tofaa-product-pilot__nutrition-column {
    min-width: 0;
}

.tofaa-product-pilot__nutrition-column + .tofaa-product-pilot__nutrition-column {
    padding-left: clamp(30px, 4vw, 64px);
    border-left: 1px solid rgba(23, 23, 23, .38);
}

.tofaa-product-pilot__nutrition-column .tofaa-product-pilot__nutrition-group {
    margin-top: 0;
}

@media (max-width: 900px) {
    .tofaa-product-pilot__nutrition-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tofaa-product-pilot__nutrition-column + .tofaa-product-pilot__nutrition-column {
        padding-top: 28px;
        padding-left: 0;
        border-top: 1px solid rgba(23, 23, 23, .38);
        border-left: 0;
    }
}

/* ============================================================
   V67 — formularz opinii: paleta Tofaa, poprawne gwiazdki i CTA
   ============================================================ */

/* Cały modal i jego wewnętrzny formularz korzystają z jasnego fioletu. */
.tofaa-product-pilot__review-modal-dialog,
.tofaa-product-pilot__review-modal #review_form_wrapper,
.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform,
.tofaa-product-pilot__review-modal .acf-fields,
.tofaa-product-pilot__review-modal .acf-form-fields,
.tofaa-product-pilot__review-modal .acf-field,
.tofaa-product-pilot__review-modal .acf-label,
.tofaa-product-pilot__review-modal .acf-input,
.tofaa-product-pilot__review-modal .mega_input,
.tofaa-product-pilot__review-modal .push_group {
    background: #B083BC !important;
    background-color: #B083BC !important;
    color: #7C4FA0 !important;
}

.tofaa-product-pilot__review-modal-dialog {
    background-image: none !important;
}

.tofaa-product-pilot__review-modal #review_form_wrapper {
    border-color: #171717 !important;
}

.tofaa-product-pilot__review-modal,
.tofaa-product-pilot__review-modal p,
.tofaa-product-pilot__review-modal label,
.tofaa-product-pilot__review-modal legend,
.tofaa-product-pilot__review-modal h1,
.tofaa-product-pilot__review-modal h2,
.tofaa-product-pilot__review-modal h3,
.tofaa-product-pilot__review-modal h4,
.tofaa-product-pilot__review-modal .acf-label label,
.tofaa-product-pilot__review-modal .acf-label p,
.tofaa-product-pilot__review-modal .description {
    color: #7C4FA0 !important;
}

/* Białe pozostają wyłącznie pola przeznaczone do wpisywania tekstu. */
.tofaa-product-pilot__review-modal input[type="text"],
.tofaa-product-pilot__review-modal input[type="email"],
.tofaa-product-pilot__review-modal input[type="url"],
.tofaa-product-pilot__review-modal input[type="search"],
.tofaa-product-pilot__review-modal input[type="tel"],
.tofaa-product-pilot__review-modal textarea {
    background: #fff !important;
    background-color: #fff !important;
    color: #7C4FA0 !important;
    border: 1px solid #171717 !important;
}

.tofaa-product-pilot__review-modal input[type="file"],
.tofaa-product-pilot__review-modal select {
    background: transparent !important;
    color: #7C4FA0 !important;
}

/* Checkbox „Polecam Tofaa moim znajomym”. */
.tofaa-product-pilot__review-modal input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #171717 !important;
    border-radius: 4px !important;
    background: #7C4FA0 !important;
    background-color: #7C4FA0 !important;
    accent-color: #7C4FA0 !important;
    cursor: pointer;
}

.tofaa-product-pilot__review-modal input[type="checkbox"]:checked {
    background-color: #7C4FA0 !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M7.63 13.31 4.29 10l1.42-1.41 1.92 1.9 6.66-6.66 1.42 1.41z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px !important;
}

/* Wybory „Co Ci się najbardziej spodobało?” jak CTA katalogu. */
.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input ul,
.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input .acf-checkbox-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input li {
    margin: 0 !important;
    padding: 0 !important;
}

.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input input[type="checkbox"] {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input label {
    width: 100% !important;
    min-height: 54px !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid #171717 !important;
    border-radius: 16px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-weight: 800 !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input label:hover,
.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input label:focus-within {
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
}

.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input label.selected,
.tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input label:has(input:checked) {
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717, inset 0 0 0 3px #7C4FA0 !important;
    transform: translateY(6px) !important;
}

/* Przycisk „Wyślij” — ten sam efekt wciskania co CTA produktu. */
.tofaa-product-pilot__review-modal input[type="submit"],
.tofaa-product-pilot__review-modal button[type="submit"] {
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:hover,
.tofaa-product-pilot__review-modal input[type="submit"]:focus-visible,
.tofaa-product-pilot__review-modal button[type="submit"]:hover,
.tofaa-product-pilot__review-modal button[type="submit"]:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:active,
.tofaa-product-pilot__review-modal button[type="submit"]:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

/* Własny, progresywny podgląd gwiazdek: hover 1 = jedna, hover 3 = trzy. */
.tofaa-product-pilot__review-modal p.stars,
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars {
    width: 100% !important;
    margin: 14px 0 26px !important;
    zoom: 1 !important;
    text-align: center !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
    position: relative !important;
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: transparent !important;
    text-indent: -9999px !important;
    text-decoration: none !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    content: "☆" !important;
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #7C4FA0 !important;
    opacity: 1 !important;
    font-family: Arial, sans-serif !important;
    font-size: 52px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    transform: none !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a.is-tofaa-filled::before {
    content: "★" !important;
    color: #7C4FA0 !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input ul,
    .tofaa-product-pilot__review-modal .acf-field-checkbox .acf-input .acf-checkbox-list {
        grid-template-columns: 1fr !important;
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
        width: 44px !important;
        height: 44px !important;
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
        font-size: 42px !important;
    }
}

/* ============================================================
   V68 — formularz opinii: beżowe tło, wybór produktu i CTA navbaru
   ============================================================ */

/* Cały modal, łącznie z wewnętrznym panelem formularza, wraca do beżu Tofaa. */
.tofaa-product-pilot__review-modal-dialog,
.tofaa-product-pilot__review-modal-header,
.tofaa-product-pilot__review-modal-body,
.tofaa-product-pilot__review-modal #review_form_wrapper,
.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform,
.tofaa-product-pilot__review-modal .acf-fields,
.tofaa-product-pilot__review-modal .acf-form-fields,
.tofaa-product-pilot__review-modal .acf-field,
.tofaa-product-pilot__review-modal .acf-label,
.tofaa-product-pilot__review-modal .acf-input,
.tofaa-product-pilot__review-modal .mega_input,
.tofaa-product-pilot__review-modal .push_group,
.tofaa-product-pilot__review-modal .cr-review-form-field,
.tofaa-product-pilot__review-modal .comment-form-field,
.tofaa-product-pilot__review-modal .form-row,
.tofaa-product-pilot__review-modal .form-submit {
    background: #F8EAE1 !important;
    background-color: #F8EAE1 !important;
    color: #7C4FA0 !important;
}

.tofaa-product-pilot__review-modal-dialog {
    background-image: none !important;
}

.tofaa-product-pilot__review-modal #review_form_wrapper {
    border: 1px solid #171717 !important;
}

/* Wyłącznie pola, do których użytkownik wpisuje tekst, pozostają białe. */
.tofaa-product-pilot__review-modal input[type="text"],
.tofaa-product-pilot__review-modal input[type="email"],
.tofaa-product-pilot__review-modal input[type="url"],
.tofaa-product-pilot__review-modal input[type="search"],
.tofaa-product-pilot__review-modal input[type="tel"],
.tofaa-product-pilot__review-modal textarea {
    background: #fff !important;
    background-color: #fff !important;
    color: #7C4FA0 !important;
    border: 1px solid #171717 !important;
}

/* Oryginalne pole „Smak” pozostaje technicznie w formularzu, ale jest ukryte. */
.tofaa-product-pilot__review-modal .tofaa-review-original-product-field,
.tofaa-product-pilot__review-modal .tofaa-review-field-hidden {
    display: none !important;
}

/* Nowa lista produktów. */
.tofaa-product-pilot__review-modal .tofaa-review-product-select {
    width: 100% !important;
    min-height: 56px !important;
    padding: 12px 52px 12px 18px !important;
    border: 1px solid #171717 !important;
    border-radius: 16px !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-product-select:focus-visible {
    outline: 3px solid rgba(124, 79, 160, .28) !important;
    outline-offset: 2px !important;
}

/* „Wyślij” dokładnie jak wciskany przycisk „Kup Tofaa!” w navbarze. */
.tofaa-product-pilot__review-modal input[type="submit"],
.tofaa-product-pilot__review-modal button[type="submit"],
.tofaa-product-pilot__review-modal #submit,
.tofaa-product-pilot__review-modal .acf-button,
.tofaa-product-pilot__review-modal .cr-review-form-submit,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button {
    min-height: 42px !important;
    width: auto !important;
    min-width: 150px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]::before,
.tofaa-product-pilot__review-modal input[type="submit"]::after,
.tofaa-product-pilot__review-modal button[type="submit"]::before,
.tofaa-product-pilot__review-modal button[type="submit"]::after,
.tofaa-product-pilot__review-modal .acf-button::before,
.tofaa-product-pilot__review-modal .acf-button::after {
    content: none !important;
    display: none !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:hover,
.tofaa-product-pilot__review-modal input[type="submit"]:focus-visible,
.tofaa-product-pilot__review-modal button[type="submit"]:hover,
.tofaa-product-pilot__review-modal button[type="submit"]:focus-visible,
.tofaa-product-pilot__review-modal #submit:hover,
.tofaa-product-pilot__review-modal #submit:focus-visible,
.tofaa-product-pilot__review-modal .acf-button:hover,
.tofaa-product-pilot__review-modal .acf-button:focus-visible,
.tofaa-product-pilot__review-modal .cr-review-form-submit:hover,
.tofaa-product-pilot__review-modal .cr-review-form-submit:focus-visible,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:hover,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:active,
.tofaa-product-pilot__review-modal button[type="submit"]:active,
.tofaa-product-pilot__review-modal #submit:active,
.tofaa-product-pilot__review-modal .acf-button:active,
.tofaa-product-pilot__review-modal .cr-review-form-submit:active,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

/* ============================================================
   V169 — uporządkowany formularz opinii i CTA 1:1 z navbarem
   ============================================================ */

/* Pole treści opinii zawsze ma czytelny czarny kontur. */
.tofaa-product-pilot__review-modal textarea,
.tofaa-product-pilot__review-modal textarea#comment,
.tofaa-product-pilot__review-modal textarea[name="comment"],
.tofaa-product-pilot__review-modal .comment-form-comment textarea {
    border: 1px solid #171717 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.tofaa-product-pilot__review-modal textarea:focus,
.tofaa-product-pilot__review-modal textarea:focus-visible,
.tofaa-product-pilot__review-modal textarea#comment:focus,
.tofaa-product-pilot__review-modal textarea#comment:focus-visible {
    border-color: #171717 !important;
    outline: 3px solid rgba(124, 79, 160, .22) !important;
    outline-offset: 2px !important;
}

/* Kontenery przycisku nie mogą przejmować tła, obramowania ani ucinać cienia. */
.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .cr-review-form-submit:not(button):not(input):not(a) {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    padding: 0 0 10px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* „Wyślij” — dokładna mechanika i geometria „Kup Tofaa!” z navbara. */
.tofaa-product-pilot__review-modal .tofaa-review-submit-button {
    min-height: 42px !important;
    width: auto !important;
    min-width: 160px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: visible !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-button:hover,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-button:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__review-modal .tofaa-review-submit-button {
        transition: none !important;
    }
}


/* ============================================================
   V170 — finalne dopracowanie modala opinii
   ============================================================ */

/* Usunięty mały eyebrow — nagłówek zaczyna się od razu od tytułu. */
.tofaa-product-pilot__review-modal-header > p {
    display: none !important;
}

/* Gwiazdki są nieco większe i zachowują progresywne podświetlenie JS. */
.tofaa-product-pilot__review-modal p.stars.tofaa-review-stars,
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars {
    min-height: 62px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars > span {
    gap: 10px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
    width: 54px !important;
    height: 54px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    font-size: 52px !important;
    line-height: 1 !important;
}

/* Pole produktu i rozwijane opcje mają beżowe tło Tofaa. */
.tofaa-product-pilot__review-modal .tofaa-review-product-select,
.tofaa-product-pilot__review-modal .tofaa-review-product-select:hover,
.tofaa-product-pilot__review-modal .tofaa-review-product-select:focus {
    background: #F8EAE1 !important;
    background-color: #F8EAE1 !important;
    color: #7C4FA0 !important;
    border: 1px solid #171717 !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-product-select option {
    background: #F8EAE1 !important;
    background-color: #F8EAE1 !important;
    color: #7C4FA0 !important;
}

/* Checkbox rekomendacji jest usuwany przez JS; fallback zabezpiecza ładowanie dynamiczne. */
.tofaa-product-pilot__review-modal .tofaa-review-field-hidden {
    display: none !important;
}

/* Zamknięcie modala: bez cienia i bez animacji hover. */
.tofaa-product-pilot__review-modal-close,
.tofaa-product-pilot__review-modal-close:hover,
.tofaa-product-pilot__review-modal-close:focus-visible,
.tofaa-product-pilot__review-modal-close:active {
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    border: 1px solid #171717 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    outline: none !important;
}

/* Kontener CTA jest wyśrodkowany i nie ucina fizycznego cienia. */
.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .cr-review-form-submit:not(button):not(input):not(a),
.tofaa-product-pilot__review-modal .acf-form-submit {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: 0 0 12px !important;
    margin: 24px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* „Wyślij” — geometria, cień i wciskanie 1:1 jak „Kup Tofaa!” w navbarze. */
.tofaa-product-pilot__review-modal .tofaa-review-submit-button,
.tofaa-product-pilot__review-modal input[type="submit"].tofaa-review-submit-button,
.tofaa-product-pilot__review-modal button[type="submit"].tofaa-review-submit-button {
    min-height: 42px !important;
    width: auto !important;
    min-width: 160px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin: 0 auto !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: visible !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-button:hover,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-button:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

/* ============================================================
   V171 — finalne wyrównanie modala opinii
   ============================================================ */

/* Krzyżyk optycznie i matematycznie wycentrowany w kole. */
.tofaa-product-pilot__review-modal-close,
.tofaa-product-pilot__review-modal-close:hover,
.tofaa-product-pilot__review-modal-close:focus-visible,
.tofaa-product-pilot__review-modal-close:active {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
}

.tofaa-product-pilot__review-modal-close::before {
    content: "×" !important;
    display: block !important;
    margin: 0 !important;
    color: #7C4FA0 !important;
    font-family: Arial, sans-serif !important;
    font-size: 31px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: translateY(-1px) !important;
}

/* Awaryjne ukrycie pustego pola po usuniętym checkboxie rekomendacji. */
.tofaa-product-pilot__review-modal .tofaa-review-field-hidden,
.tofaa-product-pilot__review-modal p:has(> input[type="checkbox"]:only-child),
.tofaa-product-pilot__review-modal li:has(> input[type="checkbox"]:only-child) {
    display: none !important;
}

/* Większe gwiazdki: czarny kontur 1 px, zielone wypełnienie po zaznaczeniu. */
.tofaa-product-pilot__review-modal p.stars.tofaa-review-stars,
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars {
    min-height: 74px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars > span {
    gap: 12px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
    width: 64px !important;
    height: 64px !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    content: "★" !important;
    color: #F8EAE1 !important;
    font-size: 62px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    -webkit-text-stroke: 1px #171717 !important;
    paint-order: stroke fill !important;
    text-shadow: none !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a.is-tofaa-filled::before {
    content: "★" !important;
    color: #d1d635 !important;
    -webkit-text-stroke: 1px #171717 !important;
    paint-order: stroke fill !important;
}

/* Usunięcie uchwytu do ręcznego skalowania pola opinii. */
.tofaa-product-pilot__review-modal textarea,
.tofaa-product-pilot__review-modal textarea#comment,
.tofaa-product-pilot__review-modal textarea[name="comment"],
.tofaa-product-pilot__review-modal .comment-form-comment textarea {
    resize: none !important;
}

/* Formularz i jego stopka nie mogą ucinać czarnego cienia CTA. */
.tofaa-product-pilot__review-modal-body,
.tofaa-product-pilot__review-modal #review_form_wrapper,
.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform,
.tofaa-product-pilot__review-modal .comment-form,
.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .acf-form-submit,
.tofaa-product-pilot__review-modal .cr-review-form-submit {
    overflow: visible !important;
}

.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .acf-form-submit,
.tofaa-product-pilot__review-modal .cr-review-form-submit:not(button):not(input):not(a) {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0 14px !important;
    margin: 26px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/*
 * „Wyślij” — dosłownie ta sama geometria i fizyka co „Kup Tofaa!”.
 * Selektory są celowo szerokie, ponieważ formularz może pochodzić z
 * WooCommerce, Customer Reviews albo ACF.
 */
.tofaa-product-pilot__review-modal input[type="submit"],
.tofaa-product-pilot__review-modal button[type="submit"],
.tofaa-product-pilot__review-modal #submit,
.tofaa-product-pilot__review-modal input.submit,
.tofaa-product-pilot__review-modal button.submit,
.tofaa-product-pilot__review-modal .acf-button,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button {
    min-height: 42px !important;
    height: 42px !important;
    width: auto !important;
    min-width: 160px !important;
    max-width: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin: 0 auto !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: visible !important;
    outline: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:hover,
.tofaa-product-pilot__review-modal input[type="submit"]:focus-visible,
.tofaa-product-pilot__review-modal button[type="submit"]:hover,
.tofaa-product-pilot__review-modal button[type="submit"]:focus-visible,
.tofaa-product-pilot__review-modal #submit:hover,
.tofaa-product-pilot__review-modal #submit:focus-visible,
.tofaa-product-pilot__review-modal input.submit:hover,
.tofaa-product-pilot__review-modal input.submit:focus-visible,
.tofaa-product-pilot__review-modal button.submit:hover,
.tofaa-product-pilot__review-modal button.submit:focus-visible,
.tofaa-product-pilot__review-modal .acf-button:hover,
.tofaa-product-pilot__review-modal .acf-button:focus-visible,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:hover,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:focus-visible,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button:hover,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal input[type="submit"]:active,
.tofaa-product-pilot__review-modal button[type="submit"]:active,
.tofaa-product-pilot__review-modal #submit:active,
.tofaa-product-pilot__review-modal input.submit:active,
.tofaa-product-pilot__review-modal button.submit:active,
.tofaa-product-pilot__review-modal .acf-button:active,
.tofaa-product-pilot__review-modal .cr-review-form-submit-button:active,
.tofaa-product-pilot__review-modal .tofaa-review-submit-button:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
        width: 52px !important;
        height: 52px !important;
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
        font-size: 50px !important;
    }
}

/* ============================================================
   V172 — bezwarunkowo spójny modal opinii
   ============================================================ */

/*
 * Zamknięcie: zamiast glifu fontowego rysujemy dwa identyczne paski.
 * Dzięki temu krzyżyk jest idealnie wycentrowany niezależnie od fontu,
 * systemu i renderowania przeglądarki.
 */
.tofaa-product-pilot__review-modal-close,
.tofaa-product-pilot__review-modal-close:hover,
.tofaa-product-pilot__review-modal-close:focus-visible,
.tofaa-product-pilot__review-modal-close:active {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.tofaa-product-pilot__review-modal-close::before,
.tofaa-product-pilot__review-modal-close::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 18px !important;
    height: 4px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #7C4FA0 !important;
    transform-origin: center !important;
    pointer-events: none !important;
}

.tofaa-product-pilot__review-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.tofaa-product-pilot__review-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

/*
 * Gwiazdki z prawdziwą, czarną obwódką. Dwie warstwy tego samego
 * clip-pathu dają równy wizualnie kontur, zgodny z ramką formularza.
 */
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
    position: relative !important;
    width: 68px !important;
    height: 68px !important;
    color: transparent !important;
    text-shadow: none !important;
    overflow: visible !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before,
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    pointer-events: none !important;
    clip-path: polygon(
        50% 2%, 61.4% 35.1%, 96.4% 35.8%, 68.5% 57%,
        78.7% 90.5%, 50% 70.5%, 21.3% 90.5%, 31.5% 57%,
        3.6% 35.8%, 38.6% 35.1%
    ) !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    inset: 0 !important;
    background: #171717 !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::after {
    inset: 1px !important;
    background: #F8EAE1 !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a.is-tofaa-filled::after {
    background: #d1d635 !important;
}

/* Oryginalny submit pozostaje funkcjonalny, lecz wizualnie zastępuje go proxy. */
.tofaa-product-pilot__review-modal .tofaa-review-submit-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/*
 * „Wyślij” — ten sam zestaw parametrów co .tofaa-nav__trigger--featured.
 * Osobna klasa eliminuje wpływ stylów WooCommerce/Customer Reviews.
 */
.tofaa-product-pilot__review-modal .tofaa-review-submit-proxy {
    min-height: 42px !important;
    height: 42px !important;
    width: auto !important;
    min-width: 160px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    margin: 0 auto !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    background-color: #d1d635 !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 8px 0 #171717 !important;
    transform: translateY(0) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: visible !important;
    outline: none !important;
    transition:
        transform .18s cubic-bezier(.2, .8, .2, 1),
        box-shadow .18s cubic-bezier(.2, .8, .2, 1),
        background-color .18s ease !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-proxy:hover,
.tofaa-product-pilot__review-modal .tofaa-review-submit-proxy:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-submit-proxy:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
        width: 56px !important;
        height: 56px !important;
    }
}

/* ============================================================
   V173 — pozycja zamknięcia + kontur gwiazdek zgodny z formularzem
   ============================================================ */

/* Przycisk zamknięcia zawsze w prawym górnym rogu modala. */
.tofaa-product-pilot__review-modal-close,
.tofaa-product-pilot__review-modal-close:hover,
.tofaa-product-pilot__review-modal-close:focus-visible,
.tofaa-product-pilot__review-modal-close:active {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 20 !important;
}

/* Dokładnie ten sam kolor i grubość obrysu co ramka formularza. */
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    background: var(--tofaa-pilot-ink, #171717) !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::after {
    inset: 1px !important;
    background: #F8EAE1 !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a.is-tofaa-filled::after {
    background: #d1d635 !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal-close,
    .tofaa-product-pilot__review-modal-close:hover,
    .tofaa-product-pilot__review-modal-close:focus-visible,
    .tofaa-product-pilot__review-modal-close:active {
        top: 12px !important;
        right: 12px !important;
    }
}

/* ============================================================
   V174 — scrollbar modala, mocniejszy kontur gwiazdek i szerokie CTA
   ============================================================ */

/*
 * Pasek przewijania pozostaje wewnątrz zaokrąglonego modala.
 * Margines na torze skraca go u góry i u dołu, a fioletowy kciuk
 * zachowuje pełną czytelność na beżowym tle.
 */
.tofaa-product-pilot__review-modal-dialog {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #7C4FA0 transparent !important;
    scrollbar-gutter: stable !important;
}

.tofaa-product-pilot__review-modal-dialog::-webkit-scrollbar {
    width: 8px !important;
}

.tofaa-product-pilot__review-modal-dialog::-webkit-scrollbar-track {
    margin-block: 26px !important;
    background: transparent !important;
}

.tofaa-product-pilot__review-modal-dialog::-webkit-scrollbar-thumb {
    min-height: 54px !important;
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background: #7C4FA0 !important;
    background-clip: padding-box !important;
}

.tofaa-product-pilot__review-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: #7C4FA0 !important;
    background-clip: padding-box !important;
}

/*
 * Kontur gwiazdek ma teraz 2 px: czarna warstwa zewnętrzna oraz
 * beżowy/fioletowy środek odsunięty dokładnie o dwa piksele.
 */
.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
    inset: 0 !important;
    background: var(--tofaa-pilot-ink, #171717) !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::after {
    inset: 2px !important;
    background: #F8EAE1 !important;
}

.tofaa-product-pilot__review-modal .stars.tofaa-review-stars a.is-tofaa-filled::after {
    background: #7C4FA0 !important;
}

/*
 * Szerokie CTA zachowuje dokładnie ten sam kontur, cień i ruch,
 * ale otrzymuje większą powierzchnię kliknięcia i czytelniejszy napis.
 */
.tofaa-product-pilot__review-modal .tofaa-review-submit-proxy {
    width: min(440px, 100%) !important;
    min-width: min(440px, 100%) !important;
    min-height: 52px !important;
    height: 52px !important;
    padding: 14px 34px !important;
    font-size: 18px !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal-dialog::-webkit-scrollbar-track {
        margin-block: 18px !important;
    }

    .tofaa-product-pilot__review-modal .tofaa-review-submit-proxy {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        height: 50px !important;
        font-size: 17px !important;
    }
}

/* ============================================================
   V175 — przywrócony kształt modala i scrollbar wewnątrz formularza
   ============================================================ */

/*
 * Zewnętrzny dialog ponownie odpowiada wyłącznie za zaokrąglony kształt.
 * Przewijana jest jego wewnętrzna część, więc pasek nie przecina rogów
 * i nie wychodzi poza obrys modala.
 */
.tofaa-product-pilot__review-modal-dialog {
    overflow: hidden !important;
    scrollbar-gutter: auto !important;
}

.tofaa-product-pilot__review-modal-body {
    max-height: calc(min(90vh, 920px) - 170px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 12px !important;
    scrollbar-width: thin !important;
    scrollbar-color: #7C4FA0 transparent !important;
}

.tofaa-product-pilot__review-modal-body::-webkit-scrollbar {
    width: 8px !important;
}

.tofaa-product-pilot__review-modal-body::-webkit-scrollbar-track {
    margin-block: 10px !important;
    background: transparent !important;
}

.tofaa-product-pilot__review-modal-body::-webkit-scrollbar-thumb {
    min-height: 54px !important;
    border: 2px solid transparent !important;
    border-radius: 999px !important;
    background: #7C4FA0 !important;
    background-clip: padding-box !important;
}

.tofaa-product-pilot__review-modal-body::-webkit-scrollbar-thumb:hover {
    background: #7C4FA0 !important;
    background-clip: padding-box !important;
}

@media (max-width: 760px) {
    .tofaa-product-pilot__review-modal-body {
        max-height: calc(94vh - 112px) !important;
        padding-right: 8px !important;
    }

    .tofaa-product-pilot__review-modal-body::-webkit-scrollbar-track {
        margin-block: 8px !important;
    }
}

/* ============================================================
   V176 — scrollbar jak w sekcji opinii i formularz bez ramki
   ============================================================ */

/* Kolor paska przewijania identyczny jak w liście opinii produktu. */
.tofaa-product-pilot__review-modal-body {
    scrollbar-color: #B083BC transparent !important;
}

.tofaa-product-pilot__review-modal-body::-webkit-scrollbar-thumb,
.tofaa-product-pilot__review-modal-body::-webkit-scrollbar-thumb:hover {
    background: #B083BC !important;
    background-clip: padding-box !important;
}

/* Usunięcie zbędnej wewnętrznej ramki otaczającej pola formularza. */
.tofaa-product-pilot__review-modal #review_form_wrapper {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* Walidacja wymaganych pól formularza opinii. */
.tofaa-product-pilot__review-modal .tofaa-review-required-error {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 0 !important;
    color: #c5162e !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-product-select.is-tofaa-invalid,
.tofaa-product-pilot__review-modal textarea.is-tofaa-invalid {
    border-color: #c5162e !important;
    box-shadow: 0 0 0 1px #c5162e !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-stars.is-tofaa-invalid {
    border-radius: 12px !important;
    outline: 2px solid #c5162e !important;
    outline-offset: 6px !important;
}

/* ============================================================
   V181 — modal bez cienia + ciaśniejszy układ składników
   ============================================================ */

/* Modal zachowuje kontur i zaokrąglenie, ale bez dekoracyjnego cienia. */
.tofaa-product-pilot__review-modal-dialog {
    box-shadow: none !important;
}

/* Mniejszy odstęp pomiędzy tekstem alergenów a kartami porcji. */
.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy > :last-child,
.tofaa-product-pilot__info-panel .tofaa-product-pilot__ingredients-copy > div > :last-child {
    margin-bottom: 0 !important;
}

.tofaa-product-pilot__info-panel .tofaa-product-pilot__serving-grid {
    margin-top: clamp(10px, 1.2vw, 16px) !important;
    padding-top: 0 !important;
}

/* ============================================================
   V185 — „Jeszcze więcej Tofaa!” jako przewijany katalog produktów
   Karty korzystają z tego samego komponentu co główny katalog sklepu.
   ============================================================ */
.tofaa-product-pilot__recommended {
    --tofaa-recommended-visible: 3;
    overflow: hidden !important;
}

.tofaa-product-pilot__recommended-header {
    align-items: center !important;
}

.tofaa-product-pilot__recommended-header > h2 {
    flex: 1 1 auto;
}

.tofaa-product-pilot__recommended-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.tofaa-product-pilot__recommended-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tofaa-product-pilot__recommended-controls button {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 0;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7C4FA0;
    box-shadow: 0 6px 0 #171717;
    cursor: pointer;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.tofaa-product-pilot__recommended-controls button:hover,
.tofaa-product-pilot__recommended-controls button:focus-visible {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #171717;
    outline: none;
}

.tofaa-product-pilot__recommended-controls button:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #171717;
}

.tofaa-product-pilot__recommended-controls button:disabled {
    cursor: default;
    opacity: .38;
    transform: none;
    box-shadow: 0 6px 0 rgba(23, 23, 23, .55);
}

.tofaa-product-pilot__recommended-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #7C4FA0 #F8EAE1;
}

.tofaa-product-pilot__recommended-viewport:focus-visible {
    outline: 3px solid rgba(124, 79, 160, .28);
    outline-offset: -3px;
}

.tofaa-product-pilot__recommended-viewport::-webkit-scrollbar {
    height: 10px;
}

.tofaa-product-pilot__recommended-viewport::-webkit-scrollbar-track {
    border-top: 1px solid #171717;
    background: #F8EAE1;
}

.tofaa-product-pilot__recommended-viewport::-webkit-scrollbar-thumb {
    border: 2px solid #F8EAE1;
    border-radius: 999px;
    background: #7C4FA0;
}

body.single-product .tofaa-product-pilot__recommended-track.products {
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    min-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    list-style: none !important;
    background: #171717;
}

body.single-product .tofaa-product-pilot__recommended-track.products::before,
body.single-product .tofaa-product-pilot__recommended-track.products::after {
    display: none !important;
    content: none !important;
}

body.single-product .tofaa-product-pilot__recommended-track.products > li.product.tofaa-product-card {
    float: none !important;
    clear: none !important;
    flex: 0 0 calc(100% / var(--tofaa-recommended-visible));
    width: calc(100% / var(--tofaa-recommended-visible)) !important;
    min-width: 0 !important;
    min-height: clamp(660px, 76vh, 860px);
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-right: 1px solid #171717 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    text-align: left !important;
    isolation: isolate;
}

body.single-product .tofaa-product-pilot__recommended-track.products > li.product.tofaa-product-card:last-child {
    border-right: 0 !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-product-card__surface {
    min-height: inherit;
}

/* Zachowujemy identyczny footer i kontury jak w katalogu. */
body.single-product .tofaa-product-pilot__recommended-track .tofaa-product-card__footer {
    border-top: 1px solid #171717 !important;
    box-shadow: none !important;
}

@media (max-width: 1180px) {
    .tofaa-product-pilot__recommended {
        --tofaa-recommended-visible: 2;
    }

    .tofaa-product-pilot__recommended-header {
        align-items: flex-start !important;
    }
}

@media (max-width: 720px) {
    .tofaa-product-pilot__recommended {
        --tofaa-recommended-visible: 1;
    }

    .tofaa-product-pilot__recommended-header {
        gap: 24px !important;
    }

    .tofaa-product-pilot__recommended-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tofaa-product-pilot__recommended-controls button {
        width: 46px;
        height: 46px;
    }

    body.single-product .tofaa-product-pilot__recommended-track.products > li.product.tofaa-product-card {
        min-height: 650px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__recommended-viewport {
        scroll-behavior: auto;
    }

    .tofaa-product-pilot__recommended-controls button {
        transition: none;
    }
}

/* ============================================================
   V186 — CTA przywrócone + strzałki na bocznych krawędziach kart
   ============================================================ */
.tofaa-product-pilot__recommended-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 28px !important;
}

/* Przywrócony pełny przycisk „Zobacz wszystkie produkty”. */
.tofaa-product-pilot__recommended-header > a {
    flex: 0 0 auto;
    min-height: 54px !important;
    padding: 13px 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    border: 1px solid #171717 !important;
    border-radius: 999px !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 8px 0 #171717 !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transform: translateY(0) !important;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s cubic-bezier(.2, .8, .2, 1) !important;
}

.tofaa-product-pilot__recommended-header > a:hover,
.tofaa-product-pilot__recommended-header > a:focus-visible {
    border-color: #171717 !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: 0 2px 0 #171717 !important;
    transform: translateY(6px) !important;
    outline: none !important;
}

.tofaa-product-pilot__recommended-header > a:active {
    box-shadow: 0 0 0 #171717 !important;
    transform: translateY(8px) !important;
}

.tofaa-product-pilot__recommended-carousel-shell {
    position: relative;
    width: 100%;
}

/* Strzałki znajdują się przy lewej krawędzi pierwszej i prawej krawędzi
   trzeciej widocznej karty. Celowo bez cienia i bez animacji. */
.tofaa-product-pilot__recommended-edge-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0;
    padding: 0;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7C4FA0;
    box-shadow: none !important;
    cursor: pointer;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%) !important;
    transition: none !important;
}

.tofaa-product-pilot__recommended-edge-arrow--prev {
    left: 22px;
}

.tofaa-product-pilot__recommended-edge-arrow--next {
    right: 22px;
}

.tofaa-product-pilot__recommended-edge-arrow:hover,
.tofaa-product-pilot__recommended-edge-arrow:focus-visible,
.tofaa-product-pilot__recommended-edge-arrow:active {
    background: #d1d635;
    color: #7C4FA0;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    outline: none;
}

.tofaa-product-pilot__recommended-edge-arrow:focus-visible {
    outline: 2px solid #7C4FA0;
    outline-offset: 3px;
}

.tofaa-product-pilot__recommended-edge-arrow:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 1180px) {
    .tofaa-product-pilot__recommended-header {
        align-items: flex-start !important;
    }
}

@media (max-width: 720px) {
    .tofaa-product-pilot__recommended-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .tofaa-product-pilot__recommended-header > a {
        width: 100%;
    }

    .tofaa-product-pilot__recommended-edge-arrow {
        width: 46px;
        height: 46px;
        font-size: 21px;
    }

    .tofaa-product-pilot__recommended-edge-arrow--prev {
        left: 12px;
    }

    .tofaa-product-pilot__recommended-edge-arrow--next {
        right: 12px;
    }
}


/* ============================================================
   V187 — wyrównane footery + sterowanie pod katalogiem + wheel
   ============================================================ */

/* Każda karta w karuzeli wypełnia identyczną wysokość. Dzięki temu
   linia nad ceną jest zawsze na tym samym poziomie, niezależnie od
   liczby wierszy w nazwie produktu. */
body.single-product .tofaa-product-pilot__recommended-track.products > li.product.tofaa-product-card {
    align-self: stretch !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-product-card__surface {
    height: 100% !important;
    min-height: 100% !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-product-card__main {
    min-height: 0 !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-product-card__footer {
    align-self: end !important;
    width: 100% !important;
}

/* Przewijanie kółkiem/trackpadem jest naturalniejsze przy trybie proximity. */
.tofaa-product-pilot__recommended-viewport {
    scroll-snap-type: x proximity !important;
    overscroll-behavior: contain !important;
}

/* Strzałki znajdują się pod kartami, obok siebie. Bez cienia i bez
   animacji — zgodnie z wcześniejszym założeniem. */
.tofaa-product-pilot__recommended-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 22px 24px 28px;
    border-top: 1px solid #171717;
    background: #F8EAE1;
}

.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    flex: 0 0 auto;
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:hover,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:focus-visible,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:active {
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 720px) {
    .tofaa-product-pilot__recommended-bottom-controls {
        padding: 18px 16px 22px;
    }
}


/* ============================================================
   V188 — stały kontur strzałek + ciągłe przewijanie karuzeli
   ============================================================ */

/* Kółko myszy i trackpad mają sterować pozycją bez wymuszonego
   zatrzymywania na granicy każdej karty. Płynne przejście pozostaje
   wyłącznie dla kliknięć strzałek i jest uruchamiane w JavaScript. */
.tofaa-product-pilot__recommended-viewport {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    overscroll-behavior-x: contain !important;
}

/* Po kliknięciu obwódka nie może być zastępowana przerywanym
   focus ringiem przeglądarki. Kontur pozostaje zawsze czarny 1 px. */
.tofaa-product-pilot__recommended-edge-arrow,
.tofaa-product-pilot__recommended-edge-arrow:hover,
.tofaa-product-pilot__recommended-edge-arrow:focus,
.tofaa-product-pilot__recommended-edge-arrow:focus-visible,
.tofaa-product-pilot__recommended-edge-arrow:active,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:hover,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:focus,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:focus-visible,
.tofaa-product-pilot__recommended-bottom-controls .tofaa-product-pilot__recommended-edge-arrow:active {
    border: 1px solid #171717 !important;
    border-style: solid !important;
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.tofaa-product-pilot__recommended-edge-arrow::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* V190 — subtelny parallax produktu i kola w hero */
.tofaa-product-pilot__visual {
    perspective: 1100px;
}

.tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__gallery-stage {
    transform:
        translate3d(
            var(--tofaa-product-parallax-x, 0px),
            var(--tofaa-product-parallax-y, 0px),
            0
        )
        rotateX(var(--tofaa-product-parallax-rotate-x, 0deg))
        rotateY(var(--tofaa-product-parallax-rotate-y, 0deg));
    transform-origin: 50% 50%;
    transform-style: preserve-3d;
    will-change: transform;
}

.tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__shape--one {
    transform:
        translate(
            calc(-50% + var(--tofaa-circle-parallax-x, 0px)),
            calc(-50% + var(--tofaa-circle-parallax-y, 0px))
        )
        rotate(var(--tofaa-circle-parallax-rotate, 0deg))
        scale(var(--tofaa-circle-parallax-scale, 1));
    transform-origin: 50% 50%;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
    .tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__gallery-stage {
        transform: none !important;
    }

    .tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__shape--one {
        transform: translate(-50%, -50%) !important;
    }
}


/* 92 — remove the secondary pale decorative blob from product hero */
.tofaa-product-pilot__shape--two {
    display: none !important;
}

/* ============================================================
   V196 — karuzela oddaje scroll pionowy po osiągnięciu krawędzi
   ============================================================ */
.tofaa-product-pilot__recommended-viewport {
    /* Poprzednie `overscroll-behavior: contain` blokowało scroll chaining
       także w osi Y. Ograniczamy je wyłącznie do osi poziomej. */
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
}


/* ============================================================
   V198 — płynna lewitacja malin niezależna od parallaxu kursora
   ============================================================ */
.tofaa-product-pilot__fruit {
    position: absolute;
    z-index: 1;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 16px 18px rgba(66, 34, 83, .18));
    opacity: .96;
    transform-origin: 50% 50%;
    will-change: transform, translate, opacity;
    backface-visibility: hidden;
    translate: 0 0;
}

.tofaa-product-pilot__fruit--raspberry-cluster {
    width: clamp(112px, 10.5vw, 162px);
    top: 16%;
    right: 13%;
    animation: tofaaFruitFloatCluster 6.8s cubic-bezier(.45, 0, .55, 1) infinite;
    transform:
        translate3d(
            var(--tofaa-fruit-cluster-x, 0px),
            var(--tofaa-fruit-cluster-y, 0px),
            0
        )
        rotate(var(--tofaa-fruit-cluster-rotate, -6deg));
}

.tofaa-product-pilot__fruit--raspberry-one {
    width: clamp(82px, 7vw, 118px);
    top: 33%;
    left: 8.5%;
    animation: tofaaFruitFloatOne 5.9s cubic-bezier(.45, 0, .55, 1) infinite -1.35s;
    transform:
        translate3d(
            var(--tofaa-fruit-one-x, 0px),
            var(--tofaa-fruit-one-y, 0px),
            0
        )
        rotate(var(--tofaa-fruit-one-rotate, -10deg));
}

.tofaa-product-pilot__fruit--raspberry-two {
    width: clamp(78px, 6.7vw, 112px);
    right: 20%;
    bottom: 23%;
    animation: tofaaFruitFloatTwo 6.2s cubic-bezier(.45, 0, .55, 1) infinite -2.4s;
    transform:
        translate3d(
            var(--tofaa-fruit-two-x, 0px),
            var(--tofaa-fruit-two-y, 0px),
            0
        )
        rotate(var(--tofaa-fruit-two-rotate, 10deg));
}

@keyframes tofaaFruitFloatCluster {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@keyframes tofaaFruitFloatOne {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes tofaaFruitFloatTwo {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -14px; }
}

.tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__fruit {
    transition: none;
}

@media (max-width: 991px) {
    .tofaa-product-pilot__fruit--raspberry-cluster {
        top: 14%;
        right: 8%;
    }

    .tofaa-product-pilot__fruit--raspberry-one {
        left: 6%;
        top: 31%;
    }

    .tofaa-product-pilot__fruit--raspberry-two {
        right: 10%;
        bottom: 17%;
    }
}

@media (max-width: 767px) {
    .tofaa-product-pilot__fruit--raspberry-cluster {
        width: clamp(84px, 24vw, 120px);
        top: 15%;
        right: 6%;
    }

    .tofaa-product-pilot__fruit--raspberry-one {
        width: clamp(62px, 16vw, 90px);
        left: 4%;
        top: 38%;
    }

    .tofaa-product-pilot__fruit--raspberry-two {
        width: clamp(58px, 15vw, 84px);
        right: 8%;
        bottom: 19%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-product-pilot__fruit {
        animation: none !important;
    }

    .tofaa-product-pilot__visual.is-tofaa-pointer-parallax .tofaa-product-pilot__fruit {
        transform: none !important;
        transition: none !important;
    }
}

/* 133 — plusy FAQ animują się identycznie jak plusy w sekcji skład / wartości odżywcze. */
.tofaa-product-pilot__faq-plus {
    transition: transform .32s cubic-bezier(.2, .8, .2, 1), background-color .28s ease;
}

.tofaa-product-pilot__faq-plus::before,
.tofaa-product-pilot__faq-plus::after {
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.tofaa-product-pilot__faq-item[open] .tofaa-product-pilot__faq-plus {
    transform: rotate(180deg);
}

/* 134 — własne, niezależne od CusRev pola opinii Tofaa. */
.tofaa-product-pilot__review-modal .comment-form-rbs-product,
.tofaa-product-pilot__review-modal .comment-form-rbs-eligible,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos {
    margin: 0 0 22px !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-product > label,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos > label {
    display: block !important;
    margin: 0 0 9px !important;
    color: #7C4FA0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-weight: 900 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible {
    padding: 12px 15px !important;
    border: 1px solid #171717 !important;
    border-radius: 14px !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible strong {
    color: #7C4FA0 !important;
    font-weight: 900 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos small {
    display: block !important;
    margin-top: 3px !important;
    color: #66566d !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos input[type="file"] {
    background: #fff !important;
    color: #7C4FA0 !important;
}

.tofaa-product-pilot__review-modal .tofaa-review-photo-error {
    display: block !important;
    margin-top: 8px !important;
    color: #c5162e !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible[hidden],
.tofaa-product-pilot__review-modal .comment-form-rbs-photos[hidden] {
    display: none !important;
}

.tofaa-product-pilot__review-modal .rbs-review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 135 — natywna, niezależna od CusRev prezentacja opinii Tofaa. */
.tofaa-product-pilot__review-cta {
    text-decoration: none !important;
}

.tofaa-product-pilot__review-notice {
    margin: 0 0 24px;
    padding: 16px 18px;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #d1d635;
    color: #7c4fa0;
    font-weight: 800;
    line-height: 1.45;
}

.tofaa-product-pilot__review-avatar .rbs-review-avatar {
    width: 58px;
    height: 58px;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7c4fa0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}

.tofaa-product-pilot__review-content .rbs-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -4px 0 12px;
}

.tofaa-product-pilot__review-content .rbs-review-badge {
    display: inline-flex;
    padding: 4px 9px;
    border: 1px solid #171717;
    border-radius: 999px;
    color: #7c4fa0;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.tofaa-product-pilot__review-content .rbs-review-badge--verified {
    background: #d1d635;
}

.tofaa-product-pilot__review-content .rbs-review-badge--rewarded {
    background: #eadcf0;
}

.tofaa-product-pilot__review-content .rbs-review-badge--reward {
    background: #eadcf0;
}

.tofaa-product-pilot__review-content .rbs-review-images {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.tofaa-product-pilot__review-content .rbs-review-images a {
    aspect-ratio: 1;
    border: 1px solid #171717;
    border-radius: 10px;
    overflow: hidden;
}

.tofaa-product-pilot__review-content .rbs-review-images img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tofaa-product-pilot__reviews-all {
    margin: 24px 0 0;
    text-align: center;
}

.tofaa-product-pilot__reviews-all a {
    color: #7c4fa0;
    font-weight: 900;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-privacy,
.tofaa-product-pilot__review-modal .comment-form-rbs-incentive {
    margin: 0 0 14px !important;
    color: #5f5264 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-privacy a {
    color: #7c4fa0 !important;
    font-weight: 900 !important;
}

/* Bez JavaScriptu formularz pozostaje widoczny w sekcji opinii. */
.tofaa-product-pilot__reviews-native #review_form_wrapper {
    display: block;
}

@media (max-width: 700px) {
    .tofaa-product-pilot__review-avatar .rbs-review-avatar {
        width: 48px;
        height: 48px;
    }
}

/* ============================================================
   V201 — formularz opinii i karty #Tofaani 2026
   ============================================================ */
.tofaa-product-pilot__review-list {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-right: 0 !important;
}

.tofaa-product-pilot__review-action {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.tofaa-product-pilot__review-reward,
.tofaa-reviewable-product__reward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: #efe2f2;
    color: #7c4fa0;
    font-family: Rubik, Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.tofaa-product-pilot__review-sent {
    margin: 0 !important;
    padding: 14px 18px;
    border-radius: 16px;
    background: #efe2f2;
    color: #7c4fa0 !important;
    font-family: Rubik, Arial, sans-serif;
    font-weight: 800;
}

.tofaa-product-pilot__review-modal-dialog {
    width: min(920px, 100%) !important;
    max-height: min(94vh, 1040px) !important;
    padding: clamp(24px, 4vw, 46px) !important;
    border-radius: 30px !important;
    background: #fff9f3 !important;
    color: #7c4fa0 !important;
}

.tofaa-product-pilot__review-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
    align-items: center;
    padding: 0 64px 24px 0 !important;
    background: transparent !important;
}

.tofaa-product-pilot__review-modal-header h2 {
    grid-column: 1 / -1;
    font-family: Rubik, Arial, sans-serif !important;
    font-size: clamp(36px, 5vw, 62px) !important;
    letter-spacing: -.045em;
    text-transform: none !important;
}

.tofaa-product-pilot__review-modal-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.tofaa-product-pilot__review-modal-product img {
    width: 76px !important;
    height: 76px !important;
    display: block;
    border: 1px solid #171717;
    border-radius: 16px;
    background: #fff;
    object-fit: cover;
}

.tofaa-product-pilot__review-modal-product div {
    display: grid;
    gap: 4px;
}

.tofaa-product-pilot__review-modal-product span,
.tofaa-product-pilot__review-modal-product strong {
    color: #7c4fa0;
    font-family: Rubik, Arial, sans-serif;
}

.tofaa-product-pilot__review-modal-product span {
    font-size: 12px;
    font-weight: 700;
}

.tofaa-product-pilot__review-modal-product strong {
    font-size: 18px;
    font-weight: 900;
}

.tofaa-product-pilot__review-modal #review_form_wrapper,
.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform,
.tofaa-product-pilot__review-modal .comment-form-field,
.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .comment-form-rbs-title,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos,
.tofaa-product-pilot__review-modal .comment-form-rbs-choices,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend {
    background: transparent !important;
}

.tofaa-product-pilot__review-modal #review_form_wrapper {
    padding: clamp(20px, 3vw, 34px) !important;
    border: 1px solid #171717 !important;
    border-radius: 24px !important;
}

.tofaa-product-pilot__review-modal form#commentform {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rating { order: 10; }
.tofaa-product-pilot__review-modal .comment-form-rbs-title { order: 20; }
.tofaa-product-pilot__review-modal .comment-form-comment { order: 30; }
.tofaa-product-pilot__review-modal .comment-form-rbs-photos { order: 40; }
.tofaa-product-pilot__review-modal .comment-form-rbs-review-flavors { order: 50; }
.tofaa-product-pilot__review-modal .comment-form-rbs-review-standouts { order: 60; }
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend { order: 70; }
.tofaa-product-pilot__review-modal .comment-form-rbs-eligible { order: 80; }
.tofaa-product-pilot__review-modal .comment-form-rbs-privacy { order: 90; }
.tofaa-product-pilot__review-modal .comment-form-rbs-incentive { order: 100; }
.tofaa-product-pilot__review-modal .form-submit { order: 120; }

.tofaa-product-pilot__review-modal .comment-form-rating,
.tofaa-product-pilot__review-modal .comment-form-rbs-title,
.tofaa-product-pilot__review-modal .comment-form-comment,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos,
.tofaa-product-pilot__review-modal .comment-form-rbs-choices,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend {
    margin: 0 0 28px !important;
}

.tofaa-product-pilot__review-modal label,
.tofaa-product-pilot__review-modal legend {
    color: #7c4fa0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    font-weight: 900 !important;
}

.tofaa-product-pilot__review-modal legend small,
.tofaa-product-pilot__review-modal label small {
    display: block;
    margin-top: 3px;
    color: #7c4fa0 !important;
    font-size: 12px;
    font-weight: 600;
}

.tofaa-product-pilot__review-modal input[type="text"],
.tofaa-product-pilot__review-modal textarea {
    width: 100% !important;
    padding: 15px 16px !important;
    border: 1px solid #171717 !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #7c4fa0 !important;
    font-family: Rubik, Arial, sans-serif !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal textarea {
    min-height: 180px !important;
    resize: vertical;
}

.tofaa-product-pilot__review-modal input::placeholder,
.tofaa-product-pilot__review-modal textarea::placeholder {
    color: rgba(124, 79, 160, .65) !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos {
    position: relative;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos__drop {
    min-height: 100px;
    display: grid;
    grid-template-columns: 36px auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-content: center;
    padding: 18px;
    border: 1px dashed #7c4fa0;
    border-radius: 14px;
    background: #fff;
    color: #7c4fa0;
    pointer-events: none;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos__drop > span {
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d1d635;
    font-size: 24px;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos__drop b,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos__drop small {
    color: #7c4fa0;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-photos input[type="file"] {
    position: absolute !important;
    z-index: 2;
    inset: 34px 0 0 !important;
    width: 100% !important;
    height: calc(100% - 34px) !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
}

.tofaa-review-photo-preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.tofaa-review-photo-preview img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    border: 1px solid #171717;
    border-radius: 10px;
    object-fit: cover;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices {
    padding: 0 !important;
    border: 0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices label,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend label {
    position: relative;
    display: inline-flex;
    margin: 0 !important;
    cursor: pointer;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices input,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices label span,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend label span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid rgba(124, 79, 160, .55);
    border-radius: 999px;
    background: #fff;
    color: #7c4fa0;
    font-size: 13px;
    font-weight: 800;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices input:checked + span,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend input:checked + span {
    border-color: #171717;
    background: #d1d635;
    transform: translateY(-2px);
}

.tofaa-product-pilot__review-modal .comment-form-rbs-choices input:focus-visible + span,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend input:focus-visible + span {
    outline: 3px solid rgba(124, 79, 160, .24);
    outline-offset: 2px;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-recommend {
    padding: 0 !important;
    border: 0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-recommend label {
    margin: 12px 8px 0 0 !important;
}

.tofaa-review-choice-error,
.tofaa-review-required-error {
    display: block;
    margin-top: 8px;
    color: #b42332 !important;
    font-family: Rubik, Arial, sans-serif;
    font-size: 13px;
    font-weight: 850;
}

.tofaa-product-pilot__review-modal .is-tofaa-invalid {
    border-color: #b42332 !important;
    outline: 2px solid rgba(180, 35, 50, .18) !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible {
    display: grid;
    gap: 4px;
    padding: 13px 15px !important;
    border: 1px solid #171717 !important;
    border-radius: 14px !important;
    background: #efe2f2 !important;
    color: #7c4fa0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible strong,
.tofaa-product-pilot__review-modal .comment-form-rbs-eligible span {
    color: #7c4fa0 !important;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-eligible span {
    font-size: 12px;
    font-weight: 650;
}

.tofaa-product-pilot__review-modal .comment-form-rbs-privacy,
.tofaa-product-pilot__review-modal .comment-form-rbs-incentive {
    color: #7c4fa0 !important;
}

.tofaa-product-pilot__review-title {
    margin: 0 0 10px;
    color: #7c4fa0;
    font-family: Rubik, Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
}

.tofaa-product-pilot__review-content .rbs-review-recommendation,
.tofaa-product-pilot__review-content .rbs-review-traits {
    color: #7c4fa0;
    font-family: Rubik, Arial, sans-serif;
}

.tofaa-product-pilot__review-content .rbs-review-traits > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 12px;
}

.tofaa-product-pilot__review-content .rbs-review-traits span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #efe2f2;
    color: #7c4fa0;
    font-size: 10px;
    font-weight: 800;
}

.tofaa-product-pilot__review-content .rbs-review-helpful {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin-top: 15px;
    color: #7c4fa0;
    font-size: 11px;
    font-weight: 750;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button {
    min-width: 48px;
    height: 34px;
    border: 1px solid rgba(124, 79, 160, .42);
    border-radius: 999px;
    background: #fff;
    color: #7c4fa0;
    cursor: pointer;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button[aria-pressed="true"] {
    border-color: #171717;
    background: #d1d635;
}

.tofaa-product-pilot__review-content .rbs-review-helpful__status {
    flex-basis: 100%;
}

.tofaa-product-pilot .tofaa-review-transparency {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 16px;
    background: #efe2f2;
    color: #7c4fa0;
}

.tofaa-product-pilot .tofaa-review-transparency__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7c4fa0;
    font-weight: 900;
}

.tofaa-product-pilot .tofaa-review-transparency p {
    margin: 2px 0 0 !important;
    color: #7c4fa0 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .tofaa-product-pilot__review-modal-header {
        grid-template-columns: 1fr;
        padding: 12px 50px 20px 0 !important;
    }

    .tofaa-product-pilot__review-modal-header h2,
    .tofaa-product-pilot__review-modal-header .tofaa-product-pilot__review-reward {
        grid-column: 1;
    }

    .tofaa-product-pilot__review-modal-product {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .tofaa-product-pilot__review-modal-product img {
        width: 62px !important;
        height: 62px !important;
    }

    .tofaa-review-photo-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars > span {
        gap: 5px !important;
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a {
        width: 39px !important;
        height: 39px !important;
    }

    .tofaa-product-pilot__review-modal .stars.tofaa-review-stars a::before {
        font-size: 38px !important;
    }
}

/* ============================================================
   Tofaa 2.91 — drobniejsze informacje pomocnicze i centrowanie cech produktu
   ============================================================ */

/* Przypis dotyczący naturalnie występujących cukrów: 50% dotychczasowych 24 px. */
.tofaa-product-pilot .tofaa-sugar-claim-note {
    margin-top: 22px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-size: 12px !important;
    line-height: 1.4;
}

/* Cena jednostkowa: dokładnie połowa skali głównej ceny produktu. */
.tofaa-product-pilot__price .tofaa-unit-price {
    display: block;
    margin-top: 4px;
    font-size: clamp(15px, 1.2vw, 21px) !important;
    line-height: 1.3;
}

.tofaa-product-pilot__price .tofaa-unit-price .woocommerce-Price-amount,
.tofaa-product-pilot__price .tofaa-unit-price bdi,
.tofaa-product-pilot__price .tofaa-unit-price .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
}

/* Cechy produktu są centrowane niezależnie od tego, czy są 3 czy 4 badge'e. */
.tofaa-product-pilot__benefits {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 16px !important;
}

.tofaa-product-pilot__benefit {
    flex: 0 1 calc((100% - 48px) / 4);
}

@media (max-width: 1100px) {
    .tofaa-product-pilot__benefit {
        flex-basis: calc((100% - 32px) / 3);
    }
}

@media (max-width: 640px) {
    .tofaa-product-pilot__benefit {
        flex-basis: calc((100% - 16px) / 2);
    }
}

/* ============================================================
   Tofaa 2.92 — dopracowanie sekcji opinii na kartach produktu
   ============================================================ */

/* Cena jednostkowa: dodatkowe 20% mniej względem wariantu z 2.91. */
.tofaa-product-pilot__price .tofaa-unit-price {
    font-size: clamp(12px, .96vw, 16.8px) !important;
}

/* CTA opinii zajmuje pełną szerokość karty podsumowania. */
.tofaa-product-pilot__reviews-summary .tofaa-product-pilot__review-action {
    width: 100%;
    grid-column: 1 / -1;
    justify-items: stretch;
}

.tofaa-product-pilot__reviews-summary .tofaa-product-pilot__review-action .tofaa-product-pilot__review-cta,
.tofaa-product-pilot__reviews-summary > .tofaa-product-pilot__review-cta {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    grid-column: 1 / -1;
}

/* Informacja o sposobie zbierania opinii: pełny nagłówek + toggle jak w FAQ. */
.tofaa-product-pilot .tofaa-review-transparency {
    display: block !important;
    width: 100%;
    box-sizing: border-box;
    margin: 22px 0;
    padding: 0 18px;
    overflow: hidden;
    border-radius: 16px;
    background: #efe2f2;
    color: #7c4fa0;
}

.tofaa-product-pilot .tofaa-review-transparency summary {
    width: 100%;
    min-height: 76px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
    padding: 15px 0;
    color: var(--tofaa-pilot-purple);
    font-size: clamp(17px, 1.35vw, 22px);
    font-weight: 900;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.tofaa-product-pilot .tofaa-review-transparency summary::-webkit-details-marker {
    display: none;
}

.tofaa-product-pilot .tofaa-review-transparency summary > span:nth-child(2) {
    min-width: 0;
}

.tofaa-product-pilot .tofaa-review-transparency__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-green);
    color: var(--tofaa-pilot-purple);
    font-weight: 900;
}

.tofaa-product-pilot .tofaa-review-transparency__toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    justify-self: end;
    position: relative;
    border: 1px solid var(--tofaa-pilot-ink);
    border-radius: 50%;
    background: var(--tofaa-pilot-green);
}

.tofaa-product-pilot .tofaa-review-transparency__toggle::before,
.tofaa-product-pilot .tofaa-review-transparency__toggle::after {
    content: "";
    width: 16px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--tofaa-pilot-purple);
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}

.tofaa-product-pilot .tofaa-review-transparency__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.tofaa-product-pilot .tofaa-review-transparency[open] .tofaa-review-transparency__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.tofaa-product-pilot .tofaa-review-transparency__body {
    padding: 0 60px 18px 42px;
}

.tofaa-product-pilot .tofaa-review-transparency__body p {
    margin: 0 0 12px !important;
    color: #7c4fa0 !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.tofaa-product-pilot .tofaa-review-transparency__body p:last-child {
    margin-bottom: 0 !important;
}

@media (max-width: 640px) {
    .tofaa-product-pilot .tofaa-review-transparency {
        padding: 0 14px;
    }

    .tofaa-product-pilot .tofaa-review-transparency summary {
        grid-template-columns: 26px minmax(0, 1fr) 40px;
        gap: 11px;
        min-height: 70px;
        font-size: 16px;
    }

    .tofaa-product-pilot .tofaa-review-transparency__toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .tofaa-product-pilot .tofaa-review-transparency__body {
        padding: 0 0 16px 37px;
    }
}

/* ============================================================
   Tofaa 2.93 — spójna cena jednostkowa + uproszczona weryfikacja opinii
   ============================================================ */

/* Rekomendacje na stronie produktu: cena jednostkowa ma dokładnie tę samą
   typografię co wariant używany przy finalizacji zakupu. */
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price,
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price .woocommerce-Price-amount,
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price bdi,
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price .woocommerce-Price-currencySymbol {
    color: #7C4FA0 !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-synthesis: none !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price {
    display: block !important;
    margin-top: 4px !important;
}

/* Na karcie „Jak zbieramy i weryfikujemy opinie?” nie potrzebujemy ikony i.
   Po jej ukryciu nagłówek korzysta z pełnej szerokości na tekst + toggle. */
.tofaa-product-pilot .tofaa-review-transparency__icon {
    display: none !important;
}

.tofaa-product-pilot .tofaa-review-transparency summary {
    grid-template-columns: minmax(0, 1fr) 44px !important;
}

.tofaa-product-pilot .tofaa-review-transparency__body {
    padding-left: 0 !important;
}

@media (max-width: 640px) {
    .tofaa-product-pilot .tofaa-review-transparency summary {
        grid-template-columns: minmax(0, 1fr) 40px !important;
    }

    .tofaa-product-pilot .tofaa-review-transparency__body {
        padding-left: 0 !important;
    }
}


/* ============================================================
   Tofaa 2.94 — komunikat cooldownu opinii na pełną szerokość
   ============================================================ */

.tofaa-product-pilot__reviews-summary .tofaa-product-pilot__review-sent {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 14px 18px;
}

.tofaa-product-pilot__review-sent-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid var(--tofaa-pilot-ink, #171717);
    border-radius: 50%;
    background: var(--tofaa-pilot-green, #d1d635);
    color: var(--tofaa-pilot-purple, #7C4FA0);
    font-family: "Rubik", Arial, sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.tofaa-product-pilot__review-sent > span:last-child {
    min-width: 0;
    color: #7C4FA0;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .tofaa-product-pilot__reviews-summary .tofaa-product-pilot__review-sent {
        align-items: flex-start;
    }
}


/* ============================================================
   Tofaa 2.95 — czas opinii + rekomendacja + kompaktowy cooldown
   ============================================================ */

/* Komunikat o możliwości dodania kolejnej opinii: tekst o 50% mniejszy. */
.tofaa-product-pilot__review-sent > span:last-child {
    font-size: 50% !important;
}

/* Data opinii na karcie produktu używa tego samego względnego czasu co #Tofaani. */
.tofaa-product-pilot__review-meta time {
    color: inherit;
    font: inherit;
}

/* Checkmark rekomendacji w zielonym kółku Tofaa. */
.tofaa-product-pilot__review-content .rbs-review-recommendation--yes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tofaa-product-pilot__review-content .rbs-review-recommendation--yes > span:first-child {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid var(--tofaa-pilot-ink, #171717);
    border-radius: 50%;
    background: #d1d635;
    color: #7C4FA0;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

/* ============================================================
   Tofaa 2.96 — stała wysokość opinii + pełna szerokość treści + łapki #Tofaani
   ============================================================ */

/* Karta opinii nie rośnie wraz z długością treści. Dłuższą opinię przewijamy wewnątrz karty. */
.tofaa-product-pilot__review-card {
    height: 510px;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    overflow: hidden;
}

.tofaa-product-pilot__review-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    min-width: 0;
}

.tofaa-product-pilot__review-header-copy {
    min-width: 0;
}

/* Cała treść poniżej imienia i czasu korzysta z pełnej szerokości karty. */
.tofaa-product-pilot__review-body.tofaa-product-pilot__review-content {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 8px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #B083BC rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__review-body::-webkit-scrollbar {
    width: 7px;
}

.tofaa-product-pilot__review-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #B083BC;
}

.tofaa-product-pilot__review-body::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__review-body .tofaa-product-pilot__review-title,
.tofaa-product-pilot__review-body .tofaa-product-pilot__review-text,
.tofaa-product-pilot__review-body .tofaa-product-pilot__review-text p {
    width: 100%;
    max-width: none;
}

/* Łapki dokładnie w lekkim stylu używanym na stronie #Tofaani. */
.tofaa-product-pilot__review-content .rbs-review-helpful {
    gap: 7px;
    font-family: "Rubik", Arial, sans-serif;
    font-weight: 500;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button,
.tofaa-product-pilot__review-content .rbs-review-helpful button:hover,
.tofaa-product-pilot__review-content .rbs-review-helpful button:focus-visible,
.tofaa-product-pilot__review-content .rbs-review-helpful button[aria-pressed="true"] {
    min-width: 0;
    width: auto;
    height: auto;
    gap: 4px;
    padding: 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7C4FA0;
    box-shadow: none;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button:focus-visible {
    outline: 2px solid #d1d635;
    outline-offset: 2px;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.tofaa-product-pilot__review-content .rbs-review-helpful button b {
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .tofaa-product-pilot__review-card {
        height: 460px;
    }

    .tofaa-product-pilot__review-header {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }
}



/* ============================================================
   Tofaa 2.97 — przewijanie opinii bez blokowania strony + kompaktowa rekomendacja
   ============================================================ */

/* Lista opinii nie przechwytuje pionowego scrolla całej strony. */
.tofaa-product-pilot__review-list {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-right: 0 !important;
}

/* Każda karta ma stałą, kompaktową wysokość. Dłuższa treść przewija się wewnątrz karty. */
.tofaa-product-pilot__review-card {
    height: 360px !important;
    min-height: 360px !important;
    box-sizing: border-box;
    overflow: hidden !important;
}

.tofaa-product-pilot__review-body.tofaa-product-pilot__review-content {
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: stable;
}

/* Rekomendacja siedzi bezpośrednio pod imieniem i czasem dodania opinii. */
.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-recommendation {
    margin: 5px 0 0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7C4FA0;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-recommendation.rbs-review-recommendation--yes > span:first-child {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7C4FA0;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

/* Zabezpieczenie przed podwójnym renderem rekomendacji w przewijanej części. */
.tofaa-product-pilot__review-body .rbs-review-recommendation {
    display: none !important;
}

@media (max-width: 700px) {
    .tofaa-product-pilot__review-card {
        height: 340px !important;
        min-height: 340px !important;
    }
}

/* ============================================================
   Tofaa 2.98 — kompaktowa rekomendacja z checkmarkiem w kółku
   ============================================================ */

/* „Polecam ten produkt” — 50% mniejszy tekst, bez utraty czytelności. */
.tofaa-product-pilot__review-header-copy .rbs-review-recommendation.tofaa-product-pilot__review-recommendation {
    margin: 5px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100%;
    color: #7C4FA0 !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

/* Zielone kółko wokół checkmarku rekomendacji. */
.tofaa-product-pilot__review-header-copy .rbs-review-recommendation--yes.tofaa-product-pilot__review-recommendation > span:first-child {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    display: inline-grid !important;
    place-items: center !important;
    box-sizing: border-box;
    border: 1px solid #171717 !important;
    border-radius: 50% !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.tofaa-product-pilot__review-header-copy .rbs-review-recommendation.tofaa-product-pilot__review-recommendation > span:last-child {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* ============================================================
   Tofaa 2.99 — scroll całej karty #Tofaani zamiast pojedynczych opinii
   ============================================================ */

/* Cały moduł opinii zachowuje stałą wysokość. Jeśli jego zawartość jest
   dłuższa, przewija się cała prawa karta — od podsumowania po opinie. */
.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
    height: 690px !important;
    min-height: 0 !important;
    max-height: 690px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #B083BC rgba(124, 79, 160, .12);
}

.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews::-webkit-scrollbar {
    width: 8px;
}

.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #B083BC;
}

.tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(124, 79, 160, .12);
}

/* Lista i pojedyncze opinie nie mają już własnego pionowego scrolla. */
.tofaa-product-pilot__review-list {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-right: 0 !important;
}

.tofaa-product-pilot__review-card {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.tofaa-product-pilot__review-body.tofaa-product-pilot__review-content {
    min-height: 0 !important;
    height: auto !important;
    flex: 0 1 auto !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding-right: 0 !important;
    scrollbar-gutter: auto;
}

/* W układzie jednokolumnowym karta nadal przewija własną zawartość,
   ale ma trochę niższy limit, żeby nie dominować ekranu. */
@media (max-width: 1180px) {
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        height: 640px !important;
        max-height: 640px !important;
    }
}

@media (max-width: 700px) {
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        height: 600px !important;
        max-height: 600px !important;
    }
}

/* ============================================================
   Tofaa 3.00 — #Tofaani tej samej wysokości co karta FAQ
   ============================================================ */

/* Na desktopie obie karty w module wiedzy mają tę samą wysokość.
   Zawartość #Tofaani nadal przewija się wewnątrz całej karty. */
@media (min-width: 1181px) {
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__faq,
    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        height: 870px !important;
        min-height: 870px !important;
        max-height: 870px !important;
        box-sizing: border-box;
    }

    .tofaa-product-pilot__knowledge-grid > .tofaa-product-pilot__reviews {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}


/* ============================================================
   Tofaa 3.01 — weryfikacja opinii wewnątrz karty z oceną
   ============================================================ */

/* Akordeon trafia bezpośrednio pod CTA / komunikat cooldownu i zajmuje
   tę samą pełną szerokość podsumowania ocen. */
.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #efe2f2 !important;
    color: #7C4FA0 !important;
}

/* W stanie zamkniętym wysokość odpowiada boxowi „Już dodałeś opinię…”. */
.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency summary {
    min-height: 54px !important;
    grid-template-columns: minmax(0, 1fr) 26px !important;
    gap: 12px !important;
    padding: 9px 0 !important;
    color: #7C4FA0 !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency .tofaa-review-transparency__toggle {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    border: 1px solid #171717 !important;
    background: #d1d635 !important;
}

.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency .tofaa-review-transparency__toggle::before,
.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency .tofaa-review-transparency__toggle::after {
    width: 11px !important;
    height: 1.5px !important;
}

.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency .tofaa-review-transparency__body {
    padding: 0 0 14px !important;
}

.tofaa-product-pilot__reviews-summary > .tofaa-review-transparency .tofaa-review-transparency__body p {
    font-size: 11px !important;
    line-height: 1.45 !important;
}

@media (max-width: 640px) {
    .tofaa-product-pilot__reviews-summary > .tofaa-review-transparency {
        padding: 0 14px !important;
    }

    .tofaa-product-pilot__reviews-summary > .tofaa-review-transparency summary {
        min-height: 54px !important;
        grid-template-columns: minmax(0, 1fr) 26px !important;
        gap: 10px !important;
        padding: 9px 0 !important;
        font-size: 11px !important;
    }
}

/* ============================================================
   Tofaa 3.02 — badge „Polecam ten produkt” obok gwiazdek
   ============================================================ */

/* W nagłówku opinii gwiazdki i rekomendacja siedzą w jednej linii,
   a imię + czas pozostają pod nimi. */
.tofaa-product-pilot__review-header-copy {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 2px !important;
    align-items: center !important;
}

.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-stars {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
}

.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-stars .star-rating {
    margin: 0 !important;
}

.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-recommendation {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    white-space: nowrap;
}

.tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-meta {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
}

@media (max-width: 520px) {
    .tofaa-product-pilot__review-header-copy {
        column-gap: 7px !important;
    }

    .tofaa-product-pilot__review-header-copy .tofaa-product-pilot__review-recommendation {
        white-space: normal;
    }
}

/* ============================================================
   Tofaa 3.03 — stopka opinii: pomocność po lewej, zgłoszenie po prawej
   ============================================================ */

/* Treść opinii wypełnia wysokość karty, dzięki czemu akcje mogą osiąść na dole. */
.tofaa-product-pilot__review-body.tofaa-product-pilot__review-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.tofaa-product-pilot__review-actions {
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
}

.tofaa-product-pilot__review-actions .rbs-review-helpful {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0;
}

.tofaa-product-pilot__review-actions .rbs-review-helpful > span:first-child {
    white-space: nowrap;
}

.tofaa-product-pilot__review-actions .rbs-review-helpful__status:empty {
    display: none !important;
}

.tofaa-product-pilot__review-actions .tofaa-review-report {
    flex: 0 0 auto;
    margin: 0 !important;
    color: #7C4FA0 !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .tofaa-product-pilot__review-actions {
        gap: 8px;
    }

    .tofaa-product-pilot__review-actions .rbs-review-helpful,
    .tofaa-product-pilot__review-actions .tofaa-review-report {
        font-size: 10px !important;
    }

    .tofaa-product-pilot__review-actions .rbs-review-helpful button svg {
        width: 15px;
        height: 15px;
    }
}

/* ============================================================
   Tofaa 3.04 — strona produktu: bez etykiety „Czy ta opinia była pomocna?”
   ============================================================ */
.tofaa-product-pilot__review-actions .rbs-review-helpful > span:first-child {
    display: none !important;
}

/* ============================================================
   Tofaa 3.05 — cechy opinii jako tekst w jednej linii
   ============================================================ */
.tofaa-product-pilot__review-content .rbs-review-traits {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px !important;
    margin: 8px 0 10px !important;
    color: #7C4FA0 !important;
}

.tofaa-product-pilot__review-content .rbs-review-traits > strong {
    display: inline !important;
    margin: 0 !important;
    color: #7C4FA0 !important;
    font: inherit !important;
    font-weight: 800 !important;
}

.tofaa-product-pilot__review-content .rbs-review-traits > strong::after {
    content: ":";
}

.tofaa-product-pilot__review-content .rbs-review-traits > div {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tofaa-product-pilot__review-content .rbs-review-traits span {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #7C4FA0 !important;
    font: inherit !important;
    font-weight: 500 !important;
}

/* ============================================================
   Tofaa 3.07 — cena jednostkowa rekomendacji 1:1 jak w produkcie
   ============================================================ */
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price {
    display: block !important;
    margin-top: 4px !important;
    color: var(--tofaa-pilot-purple) !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: clamp(12px, .96vw, 16.8px) !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-synthesis: none !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price .woocommerce-Price-amount,
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price bdi,
body.single-product .tofaa-product-pilot__recommended-track .tofaa-unit-price .woocommerce-Price-currencySymbol {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 900 !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

/* ============================================================
   Tofaa 3.09 — separatory w kartach opinii na stronie produktu
   ============================================================ */

/* Czarna linia na pełną szerokość treści karty bezpośrednio pod
   nagłówkiem opinii (imię + czas dodania). */
.tofaa-product-pilot__review-card .tofaa-product-pilot__review-header {
    padding-bottom: 14px !important;
    border-bottom: 1px solid #171717 !important;
}

/* Druga linia przed blokiem cech („Smak i tekstura” / „Wyróżniki”).
   Tylko pierwszy blok cech dostaje separator, aby nie rozdzielać
   „Smak i tekstura” od „Wyróżników”. */
.tofaa-product-pilot__review-body .rbs-review-traits {
    padding-top: 12px !important;
    border-top: 1px solid #171717 !important;
}

.tofaa-product-pilot__review-body .rbs-review-traits + .rbs-review-traits {
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* ============================================================
   Tofaa 3.14 — ostre rogi zdjęć dodanych do opinii na produkcie
   ============================================================ */
.tofaa-product-pilot__review-content .rbs-review-images a,
.tofaa-product-pilot__review-content .rbs-review-images img {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ============================================================
   Tofaa 3.15 — popup galerii zdjęć w opiniach produktu
   ============================================================ */
.tofaa-product-pilot__review-content .rbs-review-images a {
    cursor: zoom-in;
}

body.tofaa-review-lightbox-open {
    overflow: hidden !important;
}

.tofaa-review-lightbox[hidden] {
    display: none !important;
}

.tofaa-review-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tofaa-review-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tofaa-review-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 23, 23, .72);
    backdrop-filter: blur(5px);
}

.tofaa-review-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #171717;
    border-radius: 20px;
    background: #fffdfb;
    box-shadow: 0 10px 0 rgba(23, 23, 23, .9);
}

.tofaa-review-lightbox__figure {
    min-width: 0;
    margin: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.tofaa-review-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

.tofaa-review-lightbox__counter {
    min-height: 18px;
    color: #7C4FA0;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.tofaa-review-lightbox__close,
.tofaa-review-lightbox__nav {
    border: 1px solid #171717;
    background: #d1d635;
    color: #7C4FA0;
    font-family: "Rubik", Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
}

.tofaa-review-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.tofaa-review-lightbox__nav {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.tofaa-review-lightbox__nav[hidden] {
    visibility: hidden;
}

.tofaa-review-lightbox__close:focus-visible,
.tofaa-review-lightbox__nav:focus-visible {
    outline: 2px solid #7C4FA0;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .tofaa-review-lightbox {
        padding: 12px;
    }

    .tofaa-review-lightbox__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 54px 10px 14px;
        border-radius: 14px;
    }

    .tofaa-review-lightbox__image {
        max-height: calc(100vh - 110px);
    }

    .tofaa-review-lightbox__nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-review-lightbox {
        transition: none;
    }
}

/* ============================================================
   Tofaa 3.16 — lightbox zdjęć opinii bez cienia
   ============================================================ */
.tofaa-review-lightbox__dialog {
    border: 1px solid #000 !important;
    box-shadow: none !important;
}

/* ============================================================
   Tofaa 3.17 — galeria opinii z paskiem miniaturek
   ============================================================ */
.tofaa-review-lightbox__dialog {
    width: min(1180px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 18px !important;
    border: 1px solid #000 !important;
    background: #fffdfb !important;
    box-shadow: none !important;
}

.tofaa-review-lightbox__stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 14px;
}

.tofaa-review-lightbox__figure {
    min-width: 0;
    min-height: 0;
    margin: 0 !important;
    display: grid !important;
    justify-items: center !important;
    gap: 6px !important;
}

.tofaa-review-lightbox__image {
    display: block !important;
    max-width: 100% !important;
    max-height: calc(100vh - 235px) !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

.tofaa-review-lightbox__thumbs-shell {
    width: 100%;
    min-width: 0;
    padding: 8px;
    background: #000;
    overflow: hidden;
}

.tofaa-review-lightbox__thumbs {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #d1d635 #000;
    scroll-behavior: smooth;
}

.tofaa-review-lightbox__thumbs::-webkit-scrollbar {
    height: 7px;
}

.tofaa-review-lightbox__thumbs::-webkit-scrollbar-track {
    background: #000;
}

.tofaa-review-lightbox__thumbs::-webkit-scrollbar-thumb {
    background: #d1d635;
    border: 1px solid #000;
}

.tofaa-review-lightbox__thumb {
    flex: 0 0 112px;
    width: 112px;
    height: 78px;
    margin: 0 !important;
    padding: 2px !important;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    line-height: 0;
}

.tofaa-review-lightbox__thumb:hover,
.tofaa-review-lightbox__thumb:focus-visible,
.tofaa-review-lightbox__thumb:active {
    border: 2px solid #B083BC !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.tofaa-review-lightbox__thumb.is-active,
.tofaa-review-lightbox__thumb.is-active:hover,
.tofaa-review-lightbox__thumb.is-active:focus-visible,
.tofaa-review-lightbox__thumb.is-active:active {
    border: 2px solid #fffdfb !important;
}

.tofaa-review-lightbox__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.tofaa-review-lightbox__close,
.tofaa-review-lightbox__close:hover,
.tofaa-review-lightbox__close:focus,
.tofaa-review-lightbox__close:focus-visible,
.tofaa-review-lightbox__close:active,
.tofaa-review-lightbox__nav,
.tofaa-review-lightbox__nav:hover,
.tofaa-review-lightbox__nav:focus,
.tofaa-review-lightbox__nav:focus-visible,
.tofaa-review-lightbox__nav:active {
    border: 1px solid #000 !important;
    background: #d1d635 !important;
    color: #7C4FA0 !important;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 640px) {
    .tofaa-review-lightbox__dialog {
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        padding: 54px 10px 10px !important;
        gap: 8px !important;
    }

    .tofaa-review-lightbox__stage {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        gap: 6px;
    }

    .tofaa-review-lightbox__image {
        max-height: calc(100vh - 220px) !important;
    }

    .tofaa-review-lightbox__thumb {
        flex-basis: 82px;
        width: 82px;
        height: 60px;
    }
}


/* ============================================================
   Tofaa 3.18 — jasna, wyśrodkowana rolka miniaturek galerii
   ============================================================ */
.tofaa-review-lightbox__thumbs-shell {
    background: #fffdfb !important;
}

.tofaa-review-lightbox__thumbs {
    width: max-content !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    scrollbar-color: #d1d635 #fffdfb !important;
}

.tofaa-review-lightbox__thumbs::-webkit-scrollbar-track {
    background: #fffdfb !important;
}

/* ============================================================
   Tofaa 3.19 — ikona zgłoszenia jak na stronie #Tofaani
   ============================================================ */
.tofaa-product-pilot__review-actions .tofaa-review-report {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.tofaa-product-pilot__review-actions .tofaa-review-report::before {
    content: "!";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid #171717;
    border-radius: 50%;
    background: #d1d635;
    color: #7C4FA0;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

/* =========================================================
   Tofaa 3.20 — własna opinia bez głosowania pomocności
   ========================================================= */
.tofaa-product-pilot__review-actions > .tofaa-review-report:only-child {
    margin-left: auto !important;
}

/* ============================================================
   Tofaa 3.21 — prostszy formularz opinii i poprawna galeria
   ============================================================ */
.tofaa-product-pilot__stock.is-available {
    background: #d1d635 !important;
}

.tofaa-product-pilot__stock.is-unavailable {
    background: #d9d5d8 !important;
    color: #625868 !important;
}

.tofaa-product-pilot__review-modal-dialog {
    --tofaa-review-form-surface: #fff9f3;
    display: flex !important;
    flex-direction: column !important;
    max-height: min(94dvh, 1040px) !important;
    background: var(--tofaa-review-form-surface) !important;
}

.tofaa-product-pilot__review-modal-header {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
}

.tofaa-product-pilot__review-modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: var(--tofaa-review-form-surface) !important;
    padding: 0 12px 22px 0 !important;
    scroll-padding-bottom: 22px;
}

.tofaa-product-pilot__review-modal #review_form_wrapper,
.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform,
.tofaa-product-pilot__review-modal .comment-form-field,
.tofaa-product-pilot__review-modal .form-submit,
.tofaa-product-pilot__review-modal .comment-form-rating,
.tofaa-product-pilot__review-modal .comment-form-rbs-title,
.tofaa-product-pilot__review-modal .comment-form-comment,
.tofaa-product-pilot__review-modal .comment-form-rbs-photos,
.tofaa-product-pilot__review-modal .comment-form-rbs-choices,
.tofaa-product-pilot__review-modal .comment-form-rbs-recommend {
    background-color: var(--tofaa-review-form-surface) !important;
}

.tofaa-product-pilot__review-modal form#commentform > *:not(input):not(script) {
    background-color: var(--tofaa-review-form-surface) !important;
}

.tofaa-product-pilot__review-modal form#commentform > .comment-notes,
.tofaa-product-pilot__review-modal form#commentform > .logged-in-as {
    display: none !important;
}

.tofaa-product-pilot__review-modal #review_form_wrapper {
    margin: 0 !important;
    padding: 0 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal #review_form,
.tofaa-product-pilot__review-modal #respond,
.tofaa-product-pilot__review-modal form#commentform {
    background: var(--tofaa-review-form-surface) !important;
}

.tofaa-product-pilot__review-modal #rbs_review_title {
    border: 1px solid #171717 !important;
    box-shadow: none !important;
}

.tofaa-product-pilot__review-modal .required {
    color: #c5162e !important;
}

.tofaa-review-lightbox__backdrop {
    background: rgba(23, 23, 23, .78) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.tofaa-review-lightbox__dialog {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(.985);
    transform-origin: 50% 55%;
    transition: opacity .24s ease, transform .28s cubic-bezier(.2, .75, .25, 1) !important;
    will-change: transform, opacity;
}

.tofaa-review-lightbox.is-open .tofaa-review-lightbox__dialog {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.tofaa-review-lightbox__media {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 160px;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: pan-y;
    transform: translate3d(0, 0, 0);
    will-change: transform, opacity;
}

.tofaa-review-lightbox__media .tofaa-review-lightbox__image {
    grid-area: 1 / 1;
    opacity: 1;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    transition: opacity .22s ease !important;
}

.tofaa-review-lightbox__media .tofaa-review-lightbox__image--full {
    z-index: 2;
    opacity: 0;
}

.tofaa-review-lightbox__media .tofaa-review-lightbox__image--full.is-ready {
    opacity: 1;
}

.tofaa-review-lightbox__media.is-full-ready .tofaa-review-lightbox__image--preview {
    opacity: 0;
}

.tofaa-review-lightbox__loading {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #171717;
    border-radius: 999px;
    background: rgba(255, 253, 251, .94);
    color: #7C4FA0;
    font: 700 11px/1.2 "Rubik", Arial, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, 5px, 0);
    transition: opacity .18s ease, transform .18s ease;
}

.tofaa-review-lightbox__loading::before {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(124, 79, 160, .24);
    border-top-color: #7C4FA0;
    border-radius: 50%;
    content: "";
    animation: tofaa-review-loader-spin .75s linear infinite;
}

.tofaa-review-lightbox.is-image-loading .tofaa-review-lightbox__loading {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes tofaa-review-loader-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .tofaa-review-lightbox__media {
        min-height: 120px;
    }

    .tofaa-review-lightbox__loading {
        right: 8px;
        bottom: 8px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tofaa-review-lightbox__dialog,
    .tofaa-review-lightbox__media .tofaa-review-lightbox__image,
    .tofaa-review-lightbox__loading {
        transition: none !important;
    }

    .tofaa-review-lightbox__loading::before {
        animation: none;
    }
}
