/**
 * Custom Reviews Frontend Styles
 */

/* Star Rating Display */
.custom-reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.custom-reviews-stars {
    display: inline-flex;
    color: #ffc107;
    font-size: 18px;
}

.custom-reviews-stars .star {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.custom-reviews-stars .star:before {
    content: "★";
    position: absolute;
    color: #e0e0e0;
}

.custom-reviews-stars .star.filled:before {
    color: #ffc107;
}

.custom-reviews-stars .star.half:before {
    background: linear-gradient(90deg, #ffc107 50%, #e0e0e0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-reviews-count {
    color: #666;
    font-size: 14px;
    margin-left: 5px;
}

/* Review List */
.custom-reviews-list {
    margin: 20px 0;
}

.custom-review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.custom-review-item:last-child {
    border-bottom: none;
}

.custom-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.custom-review-author {
    font-weight: 600;
    color: #333;
}

.custom-review-date {
    color: #666;
    font-size: 12px;
}

.custom-review-rating {
    margin: 5px 0;
}

.custom-review-content {
    color: #555;
    line-height: 1.6;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .custom-reviews-stars {
        font-size: 16px;
    }
}

/* Elementor Widget Styles */
.elementor-widget-custom-reviews-stars .custom-reviews-rating {
    justify-content: var(--alignment, flex-start);
}

.elementor-widget-custom-reviews-stars .custom-reviews-stars {
    font-size: var(--star-size, 18px);
    color: var(--star-color, #ffc107);
}
