/**
 * PDP price layout (correct):
 *   [ sale 96,68 € ]   [ regular 104,48 € struck ]
 *                      [ 79,90€/gab bez PVN ]
 *
 * price-for-m2 is sibling of del/ins (functions.php).
 */

.single-product .add-to-cart-wrapper .price {
	display: grid !important;
	/* col1 = sale, col2 = regular + bez PVN stacked */
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	align-items: end;
	justify-content: start;
	column-gap: 9px;
	row-gap: 2px;
	flex-direction: unset !important;
	flex-wrap: unset !important;
}

.single-product .add-to-cart-wrapper .price.price-reverse {
	flex-direction: unset !important;
	justify-content: start !important;
}

/* Main sale price — left, spans both rows vertically centered to top price */
.single-product .add-to-cart-wrapper .price > ins {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: start;
	justify-self: start;
	margin: 0;
	background: transparent !important;
	position: relative;
	z-index: 1;
}

/* Regular (struck) — top right */
.single-product .add-to-cart-wrapper .price > del {
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	justify-self: start;
	margin: 0;
	position: relative;
}

/* "gab bez PVN" — under the struck regular price */
.single-product .add-to-cart-wrapper .price > .price-for-m2 {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	justify-self: start;
	position: static !important;
	display: block !important;
	float: none !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	max-width: 180px;
	color: #4f4f4f !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	background: transparent !important;
	z-index: 0 !important;
}

/* No-sale product: only amount + price-for-m2 */
.single-product .add-to-cart-wrapper .price > .woocommerce-Price-amount {
	grid-column: 1;
	grid-row: 1;
}

/* Legacy nested — never absolute over sale amount */
.single-product .add-to-cart-wrapper .price .woocommerce-Price-amount .price-for-m2 {
	position: static !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
	display: block !important;
	margin: 2px 0 0 !important;
}

.single-product .add-to-cart-wrapper .price .woocommerce-Price-amount {
	position: relative;
	display: inline-block;
	max-width: 100%;
}
