/**
 * Price Display with Discount Percentage for WooCommerce
 *
 * Amazon/Flipkart-inspired price display styles.
 *
 * @package PriceDisplayWithDiscountPercentage
 */

/* Price wrapper */
.pdwdp-price-wrapper {
	line-height: 1.6;
	margin: 0.5em 0;
}

/* Line 1: Discount badge + Sale price */
.pdwdp-price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.35em;
}

/* Discount percentage badge */
.pdwdp-discount {
	font-size: 1.5em;
	font-weight: 400;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

/* Sale price - large and bold */
.pdwdp-sale-price {
	font-size: 1.75em;
	font-weight: 400;
	line-height: 1.2;
	color: #0f1111;
}

.pdwdp-sale-price .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
}

/* Remove default WooCommerce ins/del within our wrapper */
.pdwdp-price-wrapper ins {
	text-decoration: none;
	font-weight: inherit;
	background: none;
}

.pdwdp-price-wrapper del {
	opacity: 1;
	color: #565959;
	font-weight: 400;
}

/* Line 2: M.R.P. label + strikethrough price */
.pdwdp-mrp-line {
	font-size: 0.875em;
	color: #565959;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.2em;
}

.pdwdp-mrp-label {
	font-weight: 400;
}

.pdwdp-mrp-line del .woocommerce-Price-amount {
	font-size: inherit;
}

/* You Save line */
.pdwdp-you-save {
	font-size: 0.875em;
	font-weight: 400;
	margin-top: 0.15em;
}

/* Tax text */
.pdwdp-tax-text {
	font-size: 0.75em;
	color: #565959;
	margin-top: 0.2em;
}

/* From label for variable/grouped products */
.pdwdp-from-label {
	font-size: 0.65em;
	color: #565959;
	font-weight: 400;
	vertical-align: baseline;
}

/* Period suffix for subscriptions */
.pdwdp-period {
	font-size: 0.65em;
	color: #565959;
	font-weight: 400;
}

/* Sign-up fee and trial info for subscriptions */
.pdwdp-signup-fee,
.pdwdp-trial-info {
	font-size: 0.8em;
	color: #565959;
	margin-top: 0.15em;
}

/* === Archive / Shop page adjustments === */
.woocommerce ul.products li.product .pdwdp-price-wrapper {
	margin: 0.5em 0;
}

.woocommerce ul.products li.product .pdwdp-discount {
	font-size: 1.1em;
}

.woocommerce ul.products li.product .pdwdp-sale-price {
	font-size: 1.25em;
}

/* === Grouped product table === */
.woocommerce table.group_table .pdwdp-price-wrapper {
	margin: 0;
}

.woocommerce table.group_table .pdwdp-discount {
	font-size: 1em;
}

.woocommerce table.group_table .pdwdp-sale-price {
	font-size: 1.1em;
}

/* === Bundle and Composite child items === */
.bundled_product .pdwdp-price-wrapper,
.composite_component .pdwdp-price-wrapper,
.mnm_child_product .pdwdp-price-wrapper {
	margin: 0.25em 0;
}

.bundled_product .pdwdp-discount,
.composite_component .pdwdp-discount,
.mnm_child_product .pdwdp-discount {
	font-size: 1em;
}

.bundled_product .pdwdp-sale-price,
.composite_component .pdwdp-sale-price,
.mnm_child_product .pdwdp-sale-price {
	font-size: 1.1em;
}

/* === Responsive: tighten on small screens === */
@media screen and (max-width: 600px) {
	.pdwdp-discount {
		font-size: 1.2em;
	}

	.pdwdp-sale-price {
		font-size: 1.35em;
	}
}
