/**
 * Custom Reviews Widget Styles
 * 适配 Candy Jewelry Store 站点风格
 */

.crw-reviews-widget {
    --border-color: #ff6b6b;
    --rating-color: #2d9f8f;
    --text-color: #333;
    --verified-bg: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.crw-reviews-box {
    border-radius: 8px;
    padding: 20px 30px;
    background: #fff;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    transition: all 0.3s ease;
}

/* 评分分数区域 */
.crw-rating-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.crw-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--rating-color);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.crw-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--rating-color);
    line-height: 1;
}

/* 星星样式 */
.crw-stars {
    display: flex;
    gap: 2px;
}

.crw-star {
    font-size: 20px;
    line-height: 1;
}

.crw-star-full {
    color: #ffc107;
}

.crw-star-half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.crw-star-empty {
    color: #ddd;
}

/* 评分文本 */
.crw-rating-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.crw-rating-text strong {
    font-weight: 600;
    color: #000;
}

/* 已验证标识 */
.crw-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--verified-bg);
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.crw-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #4caf50;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .crw-reviews-box {
        padding: 16px 20px;
    }
    
    .crw-score {
        font-size: 28px;
    }
    
    .crw-stars {
        gap: 1px;
    }
    
    .crw-star {
        font-size: 18px;
    }
    
    .crw-rating-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .crw-reviews-box {
        padding: 14px 16px;
    }
    
    .crw-rating-score {
        gap: 8px;
    }
    
    .crw-checkmark {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .crw-score {
        font-size: 24px;
    }
    
    .crw-star {
        font-size: 16px;
    }
    
    .crw-rating-text {
        font-size: 12px;
    }
    
    .crw-verified {
        font-size: 12px;
        padding: 5px 10px;
    }
}

