/**
 * FR Cart Page Discount Price Positioning and SKU Add
 * Presentation only. WooCommerce remains responsible for all calculations.
 */

/* Hide only the native unit-price presentation after the replacement is ready. */
.pc-fr-price-active .pc-fr-native-price-hidden {
	display: none !important;
}

.pc-fr-price-display {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin: 3px 0 0;
	padding: 0;
	width: 100%;
	flex: 0 0 100%;
	white-space: normal;
	line-height: 1.35;
}

.pc-fr-price-current {
	display: flex;
	align-items: baseline;
	flex-wrap: nowrap;
	gap: 4px;
	white-space: nowrap;
}

.pc-fr-price-ttc {
	color: #4b0d77;
	font-weight: 700;
}

.pc-fr-price-separator,
.pc-fr-price-ht {
	color: #666;
	font-weight: 400;
}

.pc-fr-price-original {
	display: block;
	color: #777;
	font-size: 0.9em;
	font-weight: 400;
	white-space: nowrap;
}

.pc-fr-price-original-label {
	font-weight: 600;
}

.pc-fr-price-original-value {
	color: inherit;
}

/* Keep every product-detail row compact and consistent. */
.pc-fr-price-active .wc-block-components-product-details {
	margin: 3px 0 0 !important;
	padding: 0 !important;
	line-height: 1.3 !important;
}

.pc-fr-price-active .wc-block-components-product-details + .wc-block-components-product-details {
	margin-top: 1px !important;
}

.pc-fr-price-active .wc-block-components-product-details > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.3 !important;
}

/* Hide the native SKU entry and any metadata group left empty by that removal. */
.pc-fr-price-active .pc-fr-native-sku-hidden,
.pc-fr-price-active .pc-fr-empty-product-details {
	display: none !important;
}

/* One dedicated SKU row always follows the final visible metadata group. */
.pc-fr-cart-sku-display {
	display: flex;
	align-items: baseline;
	gap: 3px;
	width: 100%;
	clear: both;
	margin: 2px 0 6px;
	padding: 0;
	font-family: inherit;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.3;
	color: #555;
}

.pc-fr-cart-sku-label {
	font-weight: 400;
}

.pc-fr-cart-sku-value {
	font-weight: 400;
}

/* Simple products have no metadata group: give their final SKU row more air. */
.pc-fr-price-display > .pc-fr-cart-sku-display {
	margin-top: 4px;
	margin-bottom: 8px;
	line-height: 2;
}

@media (max-width: 600px) {
	.pc-fr-price-display {
		font-size: 0.95em;
	}
}
