/* Wrapper */
.bf-reviews-wrapper {
    max-width: 900px;
    margin-top: 20px;
}

/* Tabs */
.bf-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #e2e2e2;
}
.bf-tab-button {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    background: #f5f5f5;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}
.bf-tab-button.is-active {
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-bottom: 1px solid #ffffff;
}

/* Tab content */
.bf-tab-content { 
    display: none; 
}
.bf-tab-content.is-active { 
    display: block; 
}

/* Progress box */
.bf-reviews-progress {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f7fb;
    font-size: 13px;
    border: 1px solid #e0e6f5;
}

/* Product / review list */
.bf-product-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bf-review-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e1e7f5;
    font-size: 14px;
    gap: 16px;
}
.bf-review-card-done {
    background: #f9fbff;
}

.bf-main { 
    flex: 1 1 auto; 
}

.bf-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.bf-thumb img {
    max-width: 70px;
    border-radius: 6px;
    display: block;
}
.bf-text {
    flex: 1 1 auto;
    min-width: 0;
}

.bf-product-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}
.bf-product-title a {
    color: inherit;
    text-decoration: none;
}
.bf-product-title a:hover {
    text-decoration: underline;
}

/* Verified badge */
.bf-verified-badge {
    width: 18px;
    height: 18px;
    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-position: center;
    background-repeat: no-repeat;
}

.bf-product-sub {
    font-size: 12px;
    color: #777;
}

.bf-review-content {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

/* Status labels */
.bf-review-status {
    margin-top: 6px;
    font-size: 12px;
}
.bf-review-status-pending {
    color: #d08900;
}
.bf-review-status-rejected {
    color: #b3261e;
}

/* Stars */
.bf-rating-readonly {
    margin-top: 2px;
}
.bf-star-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid #ededed;
    background: #fff;
    margin-right: 4px;
    box-sizing: border-box;
}
.bf-star-card .bf-star-icon {
    font-size: 17px;
    color: #d0d6e2;
}
.bf-star-card.is-filled .bf-star-icon {
    color: #f6b01e;
}

/* Actions */
.bf-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: 12px;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
}

/* Buttons - cu !important ca să bată tema Woodmart */
.bf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    min-width: 150px;
    height: 36px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    text-decoration: none !important;
    cursor: pointer !important;
    background: #ffffff !important;
    white-space: nowrap !important;
    gap: 6px !important;
    color: #333 !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
}
.bf-btn span {
    display: inline-block;
}
.bf-btn:hover {
    background: #f1f1f1 !important;
    border-color: #c5c5c5 !important;
    color: #111 !important;
}
.bf-btn-full {
    margin-top: 10px;
    min-width: 180px;
}

/* să nu fie full width din cauza temei */
.woocommerce-account .bf-reviews-wrapper .bf-btn {
    width: auto !important;
}

/* Modal */
.bf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.bf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.bf-modal-inner {
    position: relative;
    max-width: 520px;
    margin: 40px auto;
    background: #fff;
    padding: 18px 18px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.bf-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
#bf-modal-title {
    text-align: center;
    margin: 0 0 4px;
    font-size: 18px;
}
.bf-modal-product-title {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.bf-modal-rating {
    margin-bottom: 12px;
}
.bf-modal-rating-label {
    font-size: 13px;
    margin-bottom: 6px;
    text-align: center;
}
.bf-rating-modal {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.bf-modal-label {
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}
#bf-comment {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d0d6e2;
    padding: 8px 10px;
    font-size: 14px;
    resize: vertical;
}
.bf-review-message {
    margin-top: 8px;
    font-size: 13px;
}

/* Shortcode coupons */
.bf-reviews-wrapper-coupons .bf-reviews-progress {
    margin-bottom: 15px;
}
.bf-reviews-coupons {
    margin-bottom: 20px;
}
.bf-coupon-item {
    border-radius: 6px;
    border: 1px dashed #e0e6f5;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f7f9ff;
}
.bf-coupon-code {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
}
.bf-coupon-meta {
    font-size: 12px;
    margin-top: 4px;
}
.bf-coupon-usage {
    margin-left: 4px;
}
.bf-review-rejected-reason {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
    padding: 6px 8px;
    border-left: 3px solid #b3261e;
    background: #fff3f3;
}

/* Responsive */
@media (max-width: 600px) {
    .bf-review-card {
        flex-direction: column;
        align-items: stretch;
    }
    .bf-actions {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-top: 10px;
        gap: 6px;
    }
    .bf-btn,
    .bf-btn-full {
        width: 100% !important;
        min-width: 0;
        justify-content: center;
    }
    .bf-thumb img {
        max-width: 60px;
    }
    .bf-modal-inner {
        margin: 20px 10px;
        border-radius: 10px;
    }
}
