/* ==========================================================================
   Tier-1 Reviews Summary Card & 5-Star Histogram
   Location: css/single-product/reviews-summary.css
   Color Theme: #17141c (Zero White, Immune to wpautop <p> injection)
   ========================================================================== */

/* 1. Neutralize Rogue WordPress <p> Tags Completely */
.summary-card p,
.summary-header p,
.rating-histogram p {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Main Summary Container */
.summary-card {
    display: flex !important;
    flex-direction: column !important;
    background-color: #17141c !important; /* Theme Color */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 26px 30px !important;
    margin-bottom: 28px !important;
    box-sizing: border-box !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    width: 100% !important;
}

/* 3. Header: Big Score + 5 Stars + Total Count */
.summary-header {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 20px !important;
}

.big-score {
    font-size: 44px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    letter-spacing: -0.5px !important;
    font-family: 'Poppins', sans-serif !important;
}

.score-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.stars-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

.star-icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
}

.star-icon.filled {
    fill: #facc15 !important;
    color: #facc15 !important;
}

.star-icon.empty {
    fill: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.14) !important;
}

.total-count {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

/* ==========================================================================
   4. RATING HISTOGRAM: HARD-LOCKED 3-COLUMN GRID
   ========================================================================== */
.rating-histogram {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.histogram-row {
    display: grid !important;
    grid-template-columns: 65px 1fr 35px !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 4px 8px !important;
    margin: 0 -8px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
    user-select: none !important;
}

.histogram-row.clickable-row {
    cursor: pointer !important;
}

.histogram-row.clickable-row:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.histogram-row.empty-row {
    cursor: default !important;
    opacity: 0.55 !important;
}

/* Column 1: Star Label */
.hist-label {
    font-size: 13px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Column 2: Progress Track */
.hist-bar-bg {
    height: 11px !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative !important;
}

.hist-bar-fill {
    height: 100% !important;
    background-color: #facc15 !important;
    border-radius: 6px !important;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
}

/* Column 3: Count */
.hist-count {
    font-size: 13px !important;
    color: #ffffff !important;
    text-align: right !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.hist-count.zero {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .summary-card {
        padding: 20px 18px !important;
    }
    
    .histogram-row {
        grid-template-columns: 55px 1fr 30px !important;
        gap: 10px !important;
    }
    
    .big-score {
        font-size: 34px !important;
    }
}