/* ========================================
   PEDAGOGIA — PRODUCT REVIEWS
   ======================================== */

.single-product .woocommerce-Reviews {
    margin-top: 18px;
}

.single-product .woocommerce-Reviews .woocommerce-Reviews-title {
    font-size: clamp(20px, 3vw, 26px);
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 16px;
}

.single-product .woocommerce-Reviews #comments ol.commentlist {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .comment_container {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e7edd7;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review img.avatar {
    position: static !important;
    float: none !important;
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eef4df;
    background: #fff;
    padding: 0 !important;
    margin: 0 !important;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .star-rating {
    float: none !important;
    margin: 0 0 8px;
    color: #f5b301;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review p.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 8px;
    font-size: 12px;
    color: #6b7280;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .woocommerce-review__author {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .woocommerce-review__verified.verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f4fdf5;
    border: 1px solid #d8ebca;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .description {
    color: #374151;
    font-size: 14px;
    line-height: 1.65;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review .description p:last-child {
    margin-bottom: 0;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review ul.children {
    list-style: none;
    margin: 12px 0 0 58px !important;
    padding: 0;
    display: grid;
    gap: 10px;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review ul.children li .comment_container {
    background: linear-gradient(180deg, #fbfdf6 0%, #f5faea 100%);
    border-color: #d9e7bc;
    box-shadow: none;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review ul.children li .comment-text::before {
    content: 'Resposta da equipe';
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef7d6;
    color: #52760b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.single-product .woocommerce-Reviews #comments ol.commentlist li.review ul.children li img.avatar {
    border-color: #d9e7bc;
}

.single-product .woocommerce-Reviews .review-image-front {
    justify-content: flex-start;
    margin-top: 10px;
}

.single-product .woocommerce-Reviews .review-thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    border: 2px solid #fff;
}

.single-product .woocommerce-Reviews #review_form_wrapper {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #efe4a4;
    background: linear-gradient(180deg, #fffdf2 0%, #fff 100%);
}

.single-product .woocommerce-Reviews #reply-title,
.single-product .woocommerce-Reviews .comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.single-product .woocommerce-Reviews #respond textarea,
.single-product .woocommerce-Reviews #respond input[type="text"],
.single-product .woocommerce-Reviews #respond input[type="email"] {
    border-radius: 12px;
    border-color: #d9e1c7;
}

.single-product .woocommerce-Reviews #respond textarea:focus,
.single-product .woocommerce-Reviews #respond input[type="text"]:focus,
.single-product .woocommerce-Reviews #respond input[type="email"]:focus {
    border-color: #7ab730;
    box-shadow: 0 0 0 3px rgba(122, 183, 48, 0.14);
    outline: none;
}

@media (max-width: 767px) {
    .single-product .woocommerce-Reviews #comments ol.commentlist li.review .comment_container {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
    }

    .single-product .woocommerce-Reviews #comments ol.commentlist li.review img.avatar {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
    }

    .single-product .woocommerce-Reviews #comments ol.commentlist li.review ul.children {
        margin-left: 0 !important;
    }

    .single-product .woocommerce-Reviews #review_form_wrapper {
        padding: 14px;
    }
}
