/* Review stars (includes/reviews.php). Shown only for products with published reviews. The theme drops
   WooCommerce's CSS (and its star font), so stars are a masked bar: filled to the rating, grey after. */
.mk-stars {
	--mk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
	display: inline-block;
	flex: none;
	width: calc(var(--mk-star-size, 18px) * 5);
	height: var(--mk-star-size, 18px);
	background: linear-gradient(90deg, var(--mk-yellow, #F5B301) calc(var(--mk-rating, 0) / 5 * 100%), var(--mk-line-strong, #9AA8BA) 0);
	-webkit-mask: var(--mk-star) 0 0 / var(--mk-star-size, 18px) var(--mk-star-size, 18px) repeat-x;
	mask: var(--mk-star) 0 0 / var(--mk-star-size, 18px) var(--mk-star-size, 18px) repeat-x;
	vertical-align: -3px;
}
.mk-pdp__rating { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0; font-size: var(--mk-size-small, 15px); font-weight: 600; color: inherit; text-decoration: none; }
.mk-pdp__rating:hover span { text-decoration: underline; }
.mk-card__rating { --mk-star-size: 14px; display: flex; align-items: center; gap: 6px; margin-top: -6px; font-size: var(--mk-size-caption, 13px); color: var(--mk-text-muted, #4A5A70); }

/* Each review's own rating (WooCommerce's .star-rating markup: "Rated 4 out of 5" in a span sized to the rating). */
#reviews .star-rating {
	--mk-star-size: 16px;
	position: relative;
	display: block;
	width: calc(var(--mk-star-size) * 5);
	height: var(--mk-star-size);
	margin: 0 0 8px;
	overflow: hidden;
	font-size: 0;
	background: var(--mk-line-strong, #9AA8BA);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") 0 0 / 16px 16px repeat-x;
}
#reviews .star-rating span { position: absolute; inset: 0 auto 0 0; font-size: 0; background: var(--mk-yellow, #F5B301); }
#reviews .woocommerce-review__verified { font-size: var(--mk-size-caption, 13px); font-style: normal; color: var(--mk-text-muted, #4A5A70); }
#reviews .woocommerce-review__dash { display: none; }
#reviews .meta { margin: 0 0 6px; }
#review_form .comment-form-author input { min-height: 48px; font-size: 16px; }
#review_form .stars a { text-decoration: none; }
#review_form .form-submit input[type="submit"] {
	width: 100%; max-width: 360px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
	background: var(--mk-yellow, #F5B301); color: var(--mk-navy, #10243E); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
#review_form .form-submit input[type="submit"]:hover { background: var(--mk-yellow-hover, #E0A400); }
