/**
 * Mindful Services Rating System Styles
 */

/* Rating field in comment form */
.comment-form-rating {
	margin-bottom: 20px;
}

.comment-form-rating label {
	display: block;
	margin-bottom: 10px;
	font-weight: bold;
}

.commentratingbox {
	display: flex;
	gap: 5px;
	align-items: center;
	flex-direction: row;
	justify-content: flex-start;
}

.commentrating {
	position: relative;
	display: inline-block;
}

.commentrating input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	padding: 0;
}

.commentrating .star-label {
	font-size: 1.5em;
	color: rgba(0 0 0 / 0.15);
	cursor: pointer;
	transition: color 0.2s ease;
	display: inline-block;
	line-height: 1;
	user-select: none;
}

.commentrating input[type="radio"]:checked ~ .star-label {
	color: #ffc107;
}

/* Hover effect is handled by JavaScript */

/* Display rating in comments */
.comment-rating-display {
	margin-bottom: 10px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0 0 0 / 0.1);
}

.rating-stars {
	display: inline-block;
	margin-right: 10px;
}

.rating-stars .star {
	font-size: 18px;
	color: rgba(0 0 0 / 0.15);
	display: inline-block;
	margin-right: 2px;
}

.rating-stars .star.filled {
	color: #ffc107;
}

.rating-stars .star.empty {
	color: rgba(0 0 0 / 0.1);
}

.rating-value {
	font-size: 14px;
	color: #666;
	font-weight: normal;
}

/* Average rating display */
.average-rating-display {
	margin: 20px 0;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.average-rating-stars {
	display: inline-block;
}

.average-rating-stars .star {
	font-size: 20px;
	color: #ddd;
	display: inline-block;
	margin-right: 3px;
	position: relative;
}

.average-rating-stars .star.filled {
	color: #ffc107;
}

.average-rating-stars .star.half-filled {
	color: #ffc107;
	opacity: 0.6;
}

.average-rating-stars .star.empty {
	color: #ddd;
}

.average-rating-info {
	display: flex;
	flex-direction: row;
	gap: 5px;
}

.average-rating-value {
	font-size: inherit;
	font-weight: bold;
	color: #333;
}

.average-rating-count {
	font-size: inherit;
	color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.commentrating .star-label {
		font-size: 28px;
	}

	.average-rating-display {
		flex-direction: column;
		text-align: center;
	}

	.average-rating-stars .star {
		font-size: 20px;
	}

	.average-rating-value {
		font-size: 20px;
	}
}

.comments-title {
	padding: 1.5em 0 !important;
}

/* Rating display on service cards (archive page) */
.gsw-service-rating {
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gsw-service-rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
}

.gsw-service-rating-stars .star {
	font-size: 14px;
	color: #ddd;
	display: inline-block;
	line-height: 1;
}

.gsw-service-rating-stars .star.filled {
	color: #ffc107;
}

.gsw-service-rating-stars .star.half-filled {
	color: #ffc107;
	opacity: 0.6;
}

.gsw-service-rating-stars .star.empty {
	color: #ddd;
}

.gsw-service-rating-info {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
}

.gsw-service-rating-value {
	font-weight: 600;
	color: #333;
}

.gsw-service-rating-count {
	color: #666;
	font-size: 12px;
}
