/* ===== Rating Summary ===== */
.hp-rating-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /*background: #fffaf5;*/
    border: 1px solid #f0e6d8;
    border-radius: 12px;
    padding: 22px 20px;
    margin-bottom: 20px;
}

/* Top: score + stars + count (centered column) */
.hp-rating-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8ddd0;
}

.hp-avg-number {
    font-size: 40px;
    font-weight: 800;
    color: #111;
    line-height: 1;
    letter-spacing: -2px;
}

.hp-avg-stars-display {
    color: #fed700;
    font-size: 20px;
    letter-spacing: 3px;
}

.hp-avg-label {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: 0 !important;
}

/* Bottom: histogram */
.hp-rating-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hp-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    margin-bottom: 0 !important;
}

.hp-bar-row:hover .hp-bar-fill {
    filter: brightness(0.92);
}

.hp-bar-label {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    width: 34px;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
}

.hp-bar-label .fas {
    color: #fed700;
    font-size: 11px;
}

.hp-bar-track {
    flex: 1;
    height: 10px;
    background: #ede8e0;
    border-radius: 6px;
    overflow: hidden;
}

.hp-bar-fill {
    height: 100%;
    background: #fed700;
    border-radius: 6px;
    transition: width 0.5s ease;
    min-width: 2px;
}

.hp-bar-fill.zero-fill {
    background: transparent;
    min-width: 0;
}

.hp-bar-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 28px;
    text-align: right;
    flex-shrink: 0;
}

.hp-bar-count.zero {
    font-weight: 400;
    color: #bbb;
}

@media (max-width: 600px) {
    .hp-avg-number {
        font-size: 36px;
    }
}

/* ===== Review List ===== */
#comments {
    margin-top: 24px;
}

.woocommerce-Reviews-title {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hp-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Card ===== */
.hp-review-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 18px;
    transition: box-shadow 0.2s;
}

.hp-review-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

/* ===== Header row ===== */
.hp-review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

/* ===== Avatar ===== */
.hp-review-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #e86c00;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

/* ===== Meta ===== */
.hp-review-meta {
    flex: 1;
    min-width: 0;
}

.hp-review-author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Stars ===== */
.hp-review-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.hp-review-stars .stars {
    color: #fed700;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}

.hp-review-stars .stars .empty {
    color: #ddd;
}

.hp-review-stars .label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.hp-review-date {
    font-size: 12px;
    color: #aaa;
}

/* ===== Body ===== */
.hp-review-body {
    padding-left: 54px;
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    word-break: break-word;
}

.hp-review-body p {
    margin: 0;
}

/* ===== Empty state ===== */
.hp-no-reviews {
    text-align: center;
    padding: 32px 16px;
    color: #aaa;
    font-size: 14px;
    border: 1px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.hp-no-reviews i {
    font-size: 36px;
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

/* ===== New badge ===== */
.hp-review-new-badge {
    font-size: 11px;
    font-weight: 600;
    color: #e86c00;
    background: #fff4eb;
    border: 1px solid #ffd5a8;
    border-radius: 4px;
    padding: 1px 7px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .hp-review-body {
        padding-left: 0;
        margin-top: 8px;
    }
}
