/**
 * Product Rating Enhancements
 * 
 * Scoped styling improvements for .product__rating element on single product pages.
 * Only affects the rating block, does not modify global WooCommerce styles.
 * 
 * @package RinnoTools
 */

/* Product Rating Container */
body.single-product .product__rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

/* Rating Stars */
body.single-product .product__rating-stars {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	line-height: 1;
}

/* Ensure stars align properly with text baseline */
body.single-product .product__rating-stars .rating {
	display: flex;
	align-items: center;
	line-height: 1;
}

body.single-product .product__rating-stars .rating__body {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Rating Legend (Links) */
body.single-product .product__rating-legend {
	display: flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
	color: var(--color-muted, #777777);
	gap: 4px;
}

/* Rating Legend Links */
body.single-product .product__rating-legend a {
	color: var(--color-primary, #aa1c1c);
	text-decoration: none;
	transition: color 0.2s ease, text-decoration 0.2s ease;
	font-weight: 500;
}

body.single-product .product__rating-legend a:hover,
body.single-product .product__rating-legend a:focus {
	color: var(--color-primary-dark, #8e0000);
	text-decoration: underline;
	outline: none;
}

/* Separator between links */
body.single-product .product__rating-legend span {
	color: var(--color-muted, #b3b3b3);
	padding: 0 4px;
	font-weight: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	body.single-product .product__rating {
		gap: 8px;
		margin-bottom: 12px;
	}
	
	body.single-product .product__rating-legend {
		font-size: 13px;
		gap: 3px;
	}
	
	body.single-product .product__rating-legend span {
		padding: 0 3px;
	}
}
