/**
 * WooCommerce product-price block tweaks.
 */

.wc-block-components-product-price:has( > ins ),
.wc-block-components-product-price:has( > .gco-product-price__from ) {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
}

.wc-block-components-product-price > .gco-product-price__from {
	order: -2;
	margin-inline-end: 0.25em;
}

.wc-block-components-product-price > ins {
	order: -1;
	margin-inline-end: 0.5em;
}

.wc-block-components-product-price:has( > ins ) > del,
.wc-block-components-product-price:has( .is-discounted ) .wc-block-components-product-price__regular {
	opacity: 0.6;
}

.wc-block-components-product-price .wc-block-components-product-price__value.is-discounted {
	margin-inline-start: 0;
}

.wc-block-components-product-price--align-left:has( > ins ),
.wc-block-components-product-price--align-center:has( > ins ),
.wc-block-components-product-price--align-right:has( > ins ) {
	display: flex;
	width: 100%;
}

.wc-block-components-product-price--align-left:has( > ins ) {
	justify-content: flex-start;
}

.wc-block-components-product-price--align-center:has( > ins ) {
	justify-content: center;
}

.wc-block-components-product-price--align-right:has( > ins ) {
	justify-content: flex-end;
}
