/**
 * Summary meta row: Sell Tag (left) + product rating (right), above the title.
 * Loaded on variable product pages only (see inc/product-rating.php).
 */

.konte-pdp-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 0.5rem;
}

/* Sell Tag inside the row: the row owns the spacing. */
.konte-pdp-meta-row .konte-sell-tag {
	margin: 0;
}

/* Rating: star + average + review count. `margin-left:auto` keeps it pinned to
   the right even when no Sell Tag is present in the row. */
.konte-product-rating {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
	white-space: nowrap;
}

.konte-product-rating__star {
	color: #161619;
	font-size: 13px;
	line-height: 1;
}

.konte-product-rating__average {
	font-size: 13px;
	font-weight: 600;
	color: #161619;
	line-height: 1;
}

.konte-product-rating__count {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #838889;
	text-decoration: none;
	line-height: 1;
}

.konte-product-rating__count:hover,
.konte-product-rating__count:focus {
	color: #161619;
	text-decoration: none;
}

/*
 * Variable PDP: the summary's top gap (previously the title's 3.5rem top
 * margin) now sits above the meta row, with the title pulled up close beneath.
 * Higher specificity + !important overrides the existing title top-margin rule.
 */
body.konte-variable-pdp .product-type-variable .summary .konte-pdp-meta-row {
	margin-top: 3.5rem;
	margin-bottom: 0.5rem;
}

body.konte-variable-pdp .product-type-variable .summary .konte-pdp-meta-row + .product_title {
	margin-top: 0 !important;
}
