/* Dareor 3.8: product-page presentation only. */
/*
 * Astrid fixes .star-rating at 78px. Measure all five stars instead so larger
 * fonts and theme letter-spacing cannot crop the right side. The background
 * stays in flow; WooCommerce's original inline percentage clips only the gold.
 */
body.drr38-modern-reviews .dareor-clickable-rating .star-rating,
body.drr38-modern-reviews .drr38-summary-score > .star-rating,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating {
    width: max-content;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto;
}
body.drr38-modern-reviews .dareor-clickable-rating .star-rating::before,
body.drr38-modern-reviews .drr38-summary-score > .star-rating::before,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating::before {
    content: "SSSSS";
    display: block;
    position: relative;
    float: none;
    top: 0;
    left: 0;
}
body.drr38-modern-reviews .dareor-clickable-rating .star-rating > span,
body.drr38-modern-reviews .dareor-clickable-rating .star-rating::before,
body.drr38-modern-reviews .dareor-clickable-rating .star-rating > span::before,
body.drr38-modern-reviews .drr38-summary-score > .star-rating > span,
body.drr38-modern-reviews .drr38-summary-score > .star-rating::before,
body.drr38-modern-reviews .drr38-summary-score > .star-rating > span::before,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating > span,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating::before,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating > span::before {
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    white-space: nowrap;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating {
    margin: 10px 0 18px;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-clickable-rating-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #dfe8dd;
    border-radius: 12px;
    background: #f3f7f2;
    line-height: 1.4;
    text-decoration: none;
    box-sizing: border-box;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-clickable-rating-link:hover {
    background: #eaf3e8;
    border-color: #c6d8c3;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-clickable-rating-link:focus-visible {
    outline: 2px solid #23643e;
    outline-offset: 3px;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-clickable-rating-link .star-rating {
    float: none;
    flex-shrink: 0;
    margin: 0;
    font-size: 21px;
    color: #b77a13;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-rating-score {
    color: #21352a;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-rating-count {
    color: #23643e;
    font-size: 14px;
    font-weight: 500;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-rating-empty {
    color: #8a9489;
}
body.drr38-modern-reviews .drr38-review-summary {
    display: grid;
    grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    padding: 24px;
    margin: 0 0 26px;
    border: 1px solid #dfe7df;
    border-radius: 16px;
    background: #f7faf5;
    color: #21352a;
}
body.drr38-modern-reviews .drr38-summary-average {
    margin: 0 0 8px;
    line-height: 1.15;
    white-space: nowrap;
}
body.drr38-modern-reviews .drr38-summary-average strong {
    color: #21352a;
    font-size: 44px;
    font-weight: 700;
}
body.drr38-modern-reviews .drr38-summary-average > span {
    color: #667369;
    font-size: 16px;
}
body.drr38-modern-reviews .drr38-summary-score > .star-rating {
    display: block;
    float: none;
    margin: 0 0 8px;
    font-size: 18px;
    color: #b77a13;
}
body.drr38-modern-reviews .drr38-summary-score > .drr38-summary-total {
    margin: 0;
    color: #667369;
    font-size: 13px;
    line-height: 1.5;
}
body.drr38-modern-reviews .drr38-summary-distribution {
    display: grid;
    gap: 10px;
    min-width: 0;
}
body.drr38-modern-reviews .drr38-summary-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) minmax(24px, auto);
    align-items: center;
    gap: 10px;
    color: #526357;
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
body.drr38-modern-reviews .drr38-summary-level {
    white-space: nowrap;
}
body.drr38-modern-reviews .drr38-summary-level > [aria-hidden] {
    color: #b77a13;
}
body.drr38-modern-reviews .drr38-summary-track {
    display: block;
    height: 8px;
    border: 0;
    border-radius: 5px;
    overflow: hidden;
    background: #e4eadf;
}
body.drr38-modern-reviews .drr38-summary-track > span {
    display: block;
    height: 100%;
    border: 0;
    border-radius: 5px;
    background: #b77a13;
}
body.drr38-modern-reviews .drr38-summary-count {
    color: #21352a;
    text-align: right;
}
body.drr38-modern-reviews #reviews #comments .woocommerce-Reviews-title {
    color: #21352a;
    font-size: 21px;
    line-height: 1.4;
    margin: 0 0 22px;
}
body.drr38-modern-reviews #reviews #comments ol.commentlist {
    padding: 0;
    list-style: none;
}
body.drr38-modern-reviews #reviews #comments ol.commentlist > li {
    margin: 0 0 22px;
    padding: 0;
    background: transparent;
    border: 0;
}
body.drr38-modern-reviews #reviews #comments ol.commentlist li .comment_container {
    position: relative;
}
body.drr38-modern-reviews #reviews #comments ol.commentlist li .comment_container > .comment-text {
    margin: 0 0 0 50px;
    padding: 18px 20px;
    border: 1px solid #dfe7df;
    border-radius: 13px;
    background: #fff;
    color: #2c3830;
    overflow-wrap: anywhere;
    word-break: normal;
}
body.drr38-modern-reviews #reviews #comments ol.commentlist li .comment_container > img.avatar:not(.drr37-store-avatar) {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    background: #f3f7f2;
}
body.drr38-modern-reviews #reviews #comments .commentlist .comment-text > .star-rating {
    font-size: 16px;
    margin: 0 0 10px 12px;
    color: #b77a13;
}
body.drr38-modern-reviews .dareor-clickable-rating .star-rating::before,
body.drr38-modern-reviews .drr38-review-summary .star-rating::before,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating::before {
    color: #d9dfd5;
}
body.drr38-modern-reviews .dareor-clickable-rating .star-rating span::before,
body.drr38-modern-reviews .drr38-review-summary .star-rating span::before,
body.drr38-modern-reviews #reviews #comments .comment-text > .star-rating span::before {
    color: #b77a13;
}
body.drr38-modern-reviews #reviews #comments .commentlist .comment-text .drr37-review-meta {
    margin: 0 0 12px;
    line-height: 1.8;
}
body.drr38-modern-reviews #reviews #comments .commentlist .woocommerce-review__author {
    color: #21352a;
    font-size: 15px;
    font-weight: 700;
}
body.drr38-modern-reviews #reviews #comments .commentlist .woocommerce-review__verified.verified {
    display: inline-block;
    margin: 2px 4px;
    padding: 2px 8px;
    border: 0;
    border-radius: 20px;
    background: #eaf4e9;
    color: #23643e;
    font-size: 11px;
    line-height: 1.7;
    font-style: normal;
    font-weight: 600;
}
body.drr38-modern-reviews #reviews #comments .commentlist .woocommerce-review__verified.verified::before {
    content: "\2713";
    margin-right: 4px;
}
/* 3.9.1: the existing verified-purchase flag, shown as a small local SVG. */
body.drr38-modern-reviews #reviews .drr391-verified {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 0 0 2px;
    line-height: 1;
}
body.drr38-modern-reviews #reviews button.drr391-verified-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    box-sizing: border-box;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #23643e;
    font: inherit;
    line-height: 1;
    text-transform: none;
    cursor: help;
}
body.drr38-modern-reviews #reviews button.drr391-verified-trigger:hover {
    background: #eaf4e9;
    color: #23643e;
}
body.drr38-modern-reviews #reviews button.drr391-verified-trigger:focus-visible {
    outline: 2px solid #23643e;
    outline-offset: 2px;
}
body.drr38-modern-reviews #reviews .drr391-verified-trigger svg {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}
body.drr38-modern-reviews #reviews .drr391-verified-tooltip {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(calc(-50% + var(--drr391-tooltip-shift, 0px)));
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 7px 10px;
    border-radius: 6px;
    background: #21352a;
    color: #fff;
    box-shadow: 0 3px 10px rgba(33, 53, 42, 0.16);
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}
/* Bridge the gap so the pointer can move onto the tooltip without closing it. */
body.drr38-modern-reviews #reviews .drr391-verified-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 6px;
}
body.drr38-modern-reviews #reviews .drr391-verified:not([data-drr391-ready]):hover .drr391-verified-tooltip,
body.drr38-modern-reviews #reviews .drr391-verified:not([data-drr391-ready]):focus-within .drr391-verified-tooltip,
body.drr38-modern-reviews #reviews .drr391-verified.drr391-tooltip-open .drr391-verified-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
body.drr38-modern-reviews #reviews #comments .commentlist .comment-text > .description {
    font-size: 15px;
    line-height: 1.7;
}
body.drr38-modern-reviews #reviews #comments .commentlist .comment-text > .description > :last-child {
    margin-bottom: 0;
}
body.drr38-modern-reviews #reviews #comments .commentlist li.drr37-store-reply > .comment_container > .comment-text,
body.drr38-modern-reviews #reviews #comments .drr37-official-reply {
    background: #f3f8f2;
    border-color: #d5e4d2;
}
body.drr38-modern-reviews #reviews #comments .drr37-official-reply {
    margin-top: 18px;
    padding: 16px;
    border-left: 3px solid #88aa7c;
    border-radius: 10px;
}
body.drr38-modern-reviews #reviews #comments .drr38-review-text--collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}
body.drr38-modern-reviews #reviews #comments button.drr38-review-readmore {
    display: inline-block;
    min-height: 36px;
    padding: 7px 0 2px;
    margin: 5px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #23643e;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    cursor: pointer;
}
@media (max-width: 600px) {
    body.drr38-modern-reviews .drr38-review-summary {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }
    body.drr38-modern-reviews .drr38-summary-score {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 15px;
    }
    body.drr38-modern-reviews .drr38-summary-average,
    body.drr38-modern-reviews .drr38-summary-score > .star-rating {
        margin: 0;
    }
    body.drr38-modern-reviews .drr38-summary-score > .drr38-summary-total {
        flex-basis: 100%;
    }
    body.drr38-modern-reviews #reviews #comments ol.commentlist li .comment_container > .comment-text {
        padding: 15px;
        margin-left: 46px;
    }
    body.drr38-modern-reviews #reviews #comments ol.commentlist .children > li:not(.drr37-store-reply) > .comment_container > .comment-text {
        margin-left: 0;
    }
    body.drr38-modern-reviews #reviews #comments .drr37-official-reply {
        padding: 12px;
    }
}
@media (max-width: 420px) {
    body.drr38-modern-reviews div.product .dareor-clickable-rating .dareor-clickable-rating-link {
        padding: 11px 12px;
        gap: 8px 10px;
    }
    body.drr38-modern-reviews #reviews #comments .commentlist .comment-text > .star-rating {
        float: none;
        margin: 0 0 10px;
    }
}
@media (pointer: coarse) {
    body.drr38-modern-reviews #reviews #comments button.drr38-review-readmore {
        min-height: 44px;
    }
}
