.bf-reviews-wrapper {
    max-width: 900px;
    margin-top: 10px;
    color: #333;
}

.bf-reviews-intro {
    margin-bottom: 22px;
}
.bf-reviews-intro h2 {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.25;
    color: #222;
}
.bf-reviews-intro p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.bf-reviews-progress {
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: 14px;
    background: #f1fbf5;
    border: 1px solid #d5f0df;
}
.bf-progress-copy {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.bf-progress-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
}
.bf-progress-copy h3 {
    margin: 0 0 5px;
    color: #222;
    font-size: 17px;
    line-height: 1.35;
}
.bf-progress-copy p,
.bf-progress-note {
    margin: 0;
    color: #5a655f;
    font-size: 13px;
    line-height: 1.6;
}
.bf-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.bf-progress-track {
    height: 9px;
    flex: 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d5f0df;
    border-radius: 999px;
}
.bf-progress-track span {
    display: block;
    height: 100%;
    background: #25D366;
    border-radius: inherit;
}
.bf-progress-row strong {
    color: #222;
    font-size: 12px;
    white-space: nowrap;
}
.bf-progress-note {
    margin-top: 9px;
}

.bf-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e8e8e8;
}
.bf-tab-button {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 9px 9px 0 0;
    background: #f6f6f6;
    font-weight: 600;
    font-size: 14px;
    color: #555;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
}
.bf-tab-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
}
.bf-tab-button.is-active {
    background: #fff;
    border-color: #e8e8e8;
    color: #222;
}
.bf-tab-content { display: none; }
.bf-tab-content.is-active { display: block; }

.bf-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bf-review-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e7e7e7;
    gap: 18px;
}
.bf-review-card:hover {
    border-color: #d8d8d8;
}
.bf-main { flex: 1 1 auto; min-width: 0; }
.bf-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.bf-thumb {
    flex: 0 0 78px;
}
.bf-thumb img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.bf-text { flex: 1 1 auto; min-width: 0; }
.bf-card-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}
.bf-card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}
.bf-card-topline .bf-card-badge { margin-bottom: 0; }
.bf-card-badge-purchased,
.bf-card-badge-approved {
    background: #eefaf3;
    color: #177647;
}
.bf-card-badge-pending {
    background: #fff7e7;
    color: #956700;
}
.bf-card-badge-rejected {
    background: #fff4ef;
    color: #a04a28;
}
.bf-product-title {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
}
.bf-product-title a {
    color: #222;
    text-decoration: none;
}
.bf-product-title a:hover { text-decoration: underline; }
.bf-product-sub {
    font-size: 13px;
    line-height: 1.55;
    color: #777;
}
.bf-verified-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b6b6b;
    font-size: 11px;
}
.bf-verified-badge {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 12 L19.39 15.06 L18.36 18.36 L15.06 19.39 L12 21 L8.94 19.39 L5.64 18.36 L4.61 15.06 L3 12 L4.61 8.94 L5.64 5.64 L8.94 4.61 L12 3 L15.06 4.61 L18.36 5.64 L19.39 8.94 Z' fill='%2328a745'/%3E%3Cpath d='M10.2 13.8 L7.8 11.4 L6.7 12.5 L10.2 16 L17.3 8.9 L16.2 7.8 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bf-rating-readonly {
    display: flex;
    gap: 2px;
    margin: 7px 0;
}
.bf-rating-readonly .bf-star-card {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}
.bf-star-icon { font-size: 20px; color: #d6d6d6; }
.bf-star-card.is-filled .bf-star-icon { color: #f6b01e; }
.bf-review-content {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}
.bf-review-help {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff8f4;
    border: 1px solid #f2dfd5;
    color: #6d4b3d;
    font-size: 12px;
    line-height: 1.5;
}
.bf-review-help strong,
.bf-review-help span { display: block; }

.bf-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
    align-items: flex-end;
}
.bf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 145px;
    min-height: 40px !important;
    padding: 9px 16px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}
.bf-btn:hover {
    background: #f6f6f6 !important;
    border-color: #c9c9c9 !important;
    color: #111 !important;
}
.bf-btn-primary {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
}
.bf-btn-primary:hover {
    background: #1fb458 !important;
    border-color: #1fb458 !important;
    color: #fff !important;
}
.woocommerce-account .bf-reviews-wrapper .bf-btn { width: auto !important; }

.bf-empty-state {
    padding: 34px 20px;
    text-align: center;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fafafa;
}
.bf-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1fbf5;
    color: #1d8c56;
    font-size: 22px;
    font-weight: 700;
}
.bf-empty-state h3 { margin: 0 0 7px; font-size: 17px; color: #222; }
.bf-empty-state p { margin: 0; color: #777; font-size: 13px; }

.bf-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}
.bf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.bf-modal-inner {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 30px auto;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 14px 42px rgba(0,0,0,.20);
}
.bf-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #444;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.bf-modal-product {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 34px;
    margin-bottom: 20px;
}
#bf-modal-product-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}
#bf-modal-title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.3;
    color: #222;
}
.bf-modal-product-title {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}
.bf-modal-rating { margin-bottom: 18px; }
.bf-modal-rating-label,
.bf-modal-label {
    display: block;
    margin: 0 0 8px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}
.bf-rating-modal {
    display: flex;
    gap: 5px;
}
.bf-rating-modal .bf-star-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.bf-rating-modal .bf-star-card:hover { border-color: #f0c86b; }
.bf-rating-modal .bf-star-icon { font-size: 28px; }
#bf-comment {
    width: 100%;
    min-height: 120px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}
#bf-comment:focus {
    outline: none;
    border-color: #9edab6;
    box-shadow: 0 0 0 3px rgba(37,211,102,.10);
}
.bf-btn-full {
    width: 100% !important;
    margin-top: 14px;
}
.bf-review-message {
    min-height: 18px;
    margin-top: 9px;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 767px) {
    .bf-reviews-intro h2 { font-size: 23px; }
    .bf-reviews-progress { padding: 17px; }
    .bf-progress-copy { gap: 10px; }
    .bf-progress-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 19px; }
    .bf-tabs { overflow-x: auto; }
    .bf-tab-button { white-space: nowrap; }
    .bf-review-card {
        display: block;
        padding: 15px;
    }
    .bf-thumb { flex-basis: 68px; }
    .bf-thumb img { width: 68px; height: 68px; }
    .bf-actions {
        margin-top: 14px;
        align-items: stretch;
    }
    .bf-actions .bf-btn { width: 100% !important; }
    .bf-modal { padding: 10px; }
    .bf-modal-inner {
        margin: 20px auto;
        padding: 20px 16px;
        border-radius: 14px;
    }
    .bf-rating-modal { justify-content: space-between; }
    .bf-rating-modal .bf-star-card {
        width: calc(20% - 5px);
        max-width: 52px;
        height: 48px;
    }
}

/* --- DNM Review-uri 2.0.2: UI unificat cu DNM Vouchere --- */

/* Taburi: aceeasi structura vizuala ca in DNM Vouchere, inclusiv linia de jos. */
.bf-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 22px !important;
    padding: 5px !important;
    list-style: none !important;
    background: #f5f5f5;
    border: 0 !important;
    border-bottom: 1px solid #e2e2e2 !important;
    border-radius: 11px;
    overflow: visible;
}
.bf-tab-button {
    flex: 1;
    margin: 0 !important;
    padding: 10px 14px !important;
    text-align: center;
    font-size: 13px !important;
    line-height: 1.35;
    font-weight: 700 !important;
    color: #666 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: .18s ease;
    white-space: normal;
}
.bf-tab-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px #ececec;
}
.bf-tab-button.is-active {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 1px 5px rgba(0,0,0,.06);
}

/* Imagini produs: dimensiune stabila indiferent de stilurile temei. */
.bf-thumb {
    flex: 0 0 78px !important;
    width: 78px !important;
    min-width: 78px !important;
}
.bf-thumb a {
    display: block !important;
    width: 78px !important;
    height: 78px !important;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f7f7;
}
.bf-thumb img {
    display: block !important;
    width: 78px !important;
    height: 78px !important;
    max-width: 78px !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 10px !important;
}
.bf-product-title a[target="_blank"] {
    display: inline;
}

/* Popup review: izolat de WoodMart/WooCommerce, clar pe desktop si mobil. */
body.bf-review-modal-open {
    overflow: hidden !important;
}
.bf-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: none;
    padding: 24px 16px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}
.bf-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: rgba(20,20,20,.58) !important;
    backdrop-filter: blur(2px);
}
.bf-modal-inner {
    position: relative !important;
    z-index: 1 !important;
    width: min(560px, 100%) !important;
    max-width: 560px !important;
    margin: 24px auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border: 1px solid #e7e7e7 !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 70px rgba(0,0,0,.26) !important;
    overflow: hidden !important;
}
.bf-modal-close,
.woocommerce-account .bf-modal-close,
.woocommerce-account button.bf-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.08) !important;
    color: #444 !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
}
.bf-modal-close span {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: -2px 0 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.bf-modal-close::before,
.bf-modal-close::after {
    content: none !important;
    display: none !important;
}
.bf-modal-close:hover {
    background: #f5f5f5 !important;
    color: #111 !important;
}
.bf-modal-product {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 84px;
    margin: 0 !important;
    padding: 20px 62px 18px 20px !important;
    background: #fafafa;
    border-bottom: 1px solid #eeeeee;
}
#bf-modal-product-image {
    display: block;
    flex: 0 0 68px;
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 11px !important;
    background: #f1f1f1;
}
#bf-modal-title {
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    color: #222 !important;
}
.bf-modal-product-title {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #666 !important;
}
#bf-review-form {
    margin: 0 !important;
    padding: 22px !important;
}
.bf-modal-rating {
    margin: 0 0 20px !important;
}
.bf-modal-rating-label,
.bf-modal-label {
    display: block !important;
    margin: 0 0 9px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #333 !important;
}
.bf-rating-modal {
    display: flex !important;
    gap: 7px !important;
    margin: 0 !important;
}
.bf-rating-modal button.bf-star-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: inherit !important;
    cursor: pointer !important;
    appearance: none !important;
}
.bf-rating-modal button.bf-star-card:hover,
.bf-rating-modal button.bf-star-card.is-filled {
    border-color: #f0c86b !important;
    background: #fffaf0 !important;
}
.bf-rating-modal .bf-star-icon {
    font-size: 28px !important;
    line-height: 1 !important;
}
#bf-comment {
    display: block !important;
    width: 100% !important;
    min-height: 128px !important;
    margin: 0 !important;
    padding: 12px 13px !important;
    box-sizing: border-box !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    resize: vertical !important;
}
#bf-comment:focus {
    outline: none !important;
    border-color: #9edab6 !important;
    box-shadow: 0 0 0 3px rgba(37,211,102,.10) !important;
}
.bf-btn-full {
    width: 100% !important;
    margin-top: 16px !important;
    min-height: 44px !important;
}
.bf-review-message {
    min-height: 18px;
    margin-top: 9px;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .bf-tabs {
        overflow: visible !important;
        gap: 5px;
        padding: 5px !important;
    }
    .bf-tab-button {
        padding: 9px 8px !important;
        font-size: 12px !important;
        white-space: normal !important;
    }
    .bf-tab-button span {
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        font-size: 10px;
    }
    .bf-thumb,
    .bf-thumb a {
        flex-basis: 68px !important;
        width: 68px !important;
        min-width: 68px !important;
        height: 68px !important;
    }
    .bf-thumb img {
        width: 68px !important;
        height: 68px !important;
        max-width: 68px !important;
    }
    .bf-modal {
        padding: 10px !important;
    }
    .bf-modal-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 8px auto !important;
        border-radius: 15px !important;
    }
    .bf-modal-close,
    .woocommerce-account .bf-modal-close,
    .woocommerce-account button.bf-modal-close {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
    }
    .bf-modal-product {
        gap: 11px !important;
        min-height: 74px;
        padding: 16px 52px 15px 16px !important;
    }
    #bf-modal-product-image {
        flex-basis: 58px;
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
    }
    #bf-modal-title {
        font-size: 18px !important;
    }
    #bf-review-form {
        padding: 18px 16px 16px !important;
    }
    .bf-rating-modal {
        justify-content: space-between !important;
        gap: 5px !important;
    }
    .bf-rating-modal button.bf-star-card {
        width: calc(20% - 4px) !important;
        min-width: 0 !important;
        max-width: 50px !important;
        height: 46px !important;
        min-height: 46px !important;
    }
    #bf-comment {
        min-height: 118px !important;
    }
}
