/* NF Review Cumulative Widget Styles - 3 Column Layout */

.nf-review-cumulative {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 30px;
    flex-wrap: wrap;
}

/* Column 1: Title */
.nf-review-cumulative__header {
    flex: 0 0 auto;
    min-width: 150px;
}

.nf-review-cumulative__title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 0;
}

/* Column 2: Rating and Button */
.nf-review-cumulative__content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    flex: 1;
    min-width: 300px;
}

.nf-review-cumulative__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.nf-review-cumulative__average {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.nf-review-cumulative__average-value {
    font-size: 44px;
    font-weight: 300;
    color: #000;
    line-height: 2;
    flex-shrink: 0;
}

.nf-review-cumulative__stars-and-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.nf-review-cumulative__stars {
    display: flex;
    gap: 2px;
    align-items: center;
    line-height: 1;
}

.nf-review-cumulative__star {
    font-size: 24px;
    color: #000;
    line-height: 1;
}

.nf-review-cumulative__review-text {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    margin-top: 0;
}

.nf-review-cumulative__button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    line-height: 16px;
    transition: background-color 0.2s ease;
}

.nf-review-cumulative__button:hover {
    background-color: #1b934b;
}

.nf-review-cumulative__button:active {
    background-color: #1fb25a;
}

/* Column 3: Breakdown bars - Smaller size */
.nf-review-cumulative__breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 200px;
}

.nf-review-cumulative__breakdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nf-review-cumulative__breakdown-star {
    width: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    flex-shrink: 0;
}

.nf-review-cumulative__breakdown-bar-wrapper {
    flex: 1;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.nf-review-cumulative__breakdown-bar {
    height: 100%;
    background: #eee;
    transition: width 0.3s ease;
}

.nf-review-cumulative__breakdown-bar--filled {
    background: #000;
}

.nf-review-cumulative__breakdown-count {
    min-width: 18px;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    text-align: right;
    flex-shrink: 0;
}

/* Error/Empty states */
.nf-review-cumulative.nf-error,
.nf-review-cumulative.nf-empty {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nf-review-cumulative {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        align-items: center;
        text-align: center;
    }
    
    .nf-review-cumulative__header {
        text-align: center;
        width: 100%;
    }
    
    .nf-review-cumulative__content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        width: 100%;
    }
    
    .nf-review-cumulative__rating {
        align-items: center;
    }
    
    .nf-review-cumulative__average {
        justify-content: center;
    }
    
    .nf-review-cumulative__title {
        font-size: 24px;
        text-align: center;
    }
    
    .nf-review-cumulative__average-value {
        font-size: 36px;
    }
    
    .nf-review-cumulative__breakdown {
        width: 100%;
    }
}
