/* CasaOmnia - native single-product price relocation 2.1.1 */

/* The base .co-variable-price-note rule is printed inline on every page
 * (handle casaomnia-price-note); only the single-product refinements live here. */
.single-product .summary .co-single-variable-price {
	display: inline;
}

.single-product .summary .co-single-variable-price .co-variable-price-note {
	font-size: 12px;
	line-height: 1.4;
}

/* The real WooCommerce price is printed server-side next to the purchase
 * controls with this class, so these rules apply from the first paint (no
 * layout shift). No cloned/proxy price exists. */
.single-product .summary .co-native-relocated-price,
.single-product .summary .co-native-relocated-variation-price {
	box-sizing: border-box;
	flex: 0 0 100%;
	clear: both;
	width: 100%;
	margin: 24px 0 16px;
	padding: 20px 0 0;
	border-top: 1px solid rgba(22, 22, 22, 0.12);
}

.single-product .summary .co-native-relocated-price {
	display: block;
}

/* Without YITH, once a variation is selected the native
 * `.woocommerce-variation-price` becomes the only visible price. */
.single-product .product.co-native-price-relocation-active.co-native-variation-visible .summary .co-native-relocated-price {
	display: none !important;
}

.single-product .summary .co-native-relocated-variation-price .price {
	margin: 0;
}

.single-product .summary .co-native-relocated-price .amount,
.single-product .summary .co-native-relocated-price .woocommerce-price-suffix,
.single-product .summary .co-native-relocated-variation-price .amount,
.single-product .summary .co-native-relocated-variation-price .woocommerce-price-suffix {
	color: inherit;
}

.single-product .summary .co-native-relocated-price .co-variable-price-note {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	color: rgba(32, 32, 32, 0.58);
}

/* When YITH has taken over the main price, the native variation-price block is
 * redundant; it stays in the DOM and in WooCommerce's lifecycle. */
.single-product .product.co-native-price-relocation-active.co-native-yith-active .single_variation .woocommerce-variation-price {
	display: none !important;
}

/* Razzi may use flex for the purchase area: the price occupies its own row.
 * The :has() rule applies from the first paint; it is kept separate so that a
 * browser without :has() support still applies the class-based rule. */
.single-product .summary .co-native-price-row {
	flex-wrap: wrap;
}

.single-product .summary .woocommerce-variation-add-to-cart:has(> .co-native-relocated-price) {
	flex-wrap: wrap;
}

@media (max-width: 767px) {
	.single-product .summary .co-native-relocated-price,
	.single-product .summary .co-native-relocated-variation-price {
		margin-top: 20px;
		padding-top: 17px;
	}
}
