/**
 * Clubbercise Discount Rules — frontend price styling.
 * Makes the discounted price clearly visible (green), matching Flycart.
 * Targets both WooCommerce blocks markup and the classic theme markup.
 */

/* ---- WooCommerce Blocks (cart, checkout, single, product collection) ---- */

/* Discounted value in green — the important one */
.wc-block-components-product-price__value.is-discounted,
.wc-block-cart-item__prices ins .woocommerce-Price-amount,
.wc-block-cart-item__prices ins,
.wc-block-components-product-price ins,
.wc-block-components-product-price ins .woocommerce-Price-amount,
.wc-block-components-product-price .is-discounted {
	color: #00a32a !important;
	font-weight: 700;
}

/* Beat the Clubbercise theme's inline CSS that forces #000000 on prices:
   #basket-content .wc-block-cart .wc-block-components-product-price__value */
#basket-content .wc-block-cart .wc-block-components-product-price__value,
#basket-content .wc-block-components-product-price__value,
#basket-content .wc-block-components-product-price__value.is-discounted,
#basket-content .wc-block-cart-item__prices ins .woocommerce-Price-amount {
	color: #00a32a !important;
	font-weight: 700;
}

/* Previous price: muted, struck through */
.wc-block-components-product-price__regular,
.wc-block-cart-item__prices del,
.wc-block-components-product-price del,
.wc-block-components-product-price del .woocommerce-Price-amount {
	color: #8c8c8c !important;
	opacity: 1;
}

/* Same specificity boost for the struck-through previous price */
#basket-content .wc-block-cart .wc-block-components-product-price__regular,
#basket-content .wc-block-components-product-price__regular,
#basket-content .wc-block-cart-item__prices del .woocommerce-Price-amount {
	color: #8c8c8c !important;
	opacity: 1;
}

/* ---- Classic theme markup (woocommerce_get_price_html) ---- */

.price ins,
.price ins .woocommerce-Price-amount,
.entry-summary .price ins .woocommerce-Price-amount,
.single-product .price ins {
	color: #00a32a !important;
	font-weight: 700;
	text-decoration: none;
}

.price del,
.entry-summary .price del .woocommerce-Price-amount {
	color: #8c8c8c !important;
	opacity: 1;
}

/* ---- Sale badge style hint (optional, only if theme lacks one) ---- */

.wc-block-components-product-sale-badge,
.onsale {
	background: #00a32a !important;
	color: #fff !important;
}

/* ---- Impreza mini cart (dark dropdown, light text) ---- */

/* The theme's price color (dark grey) is invisible on the black mini-cart
   dropdown. Force light text for every price inside it. */
.w-cart-content .woocommerce-Price-amount,
.w-cart-content .woocommerce-Price-currencySymbol,
.widget_shopping_cart .woocommerce-Price-amount,
.widget_shopping_cart .woocommerce-Price-currencySymbol {
	color: #ffffff !important;
}

/* Keep the discounted/current price readable too when it is struck/sale
   markup inside the mini cart. */
.w-cart-content .price ins .woocommerce-Price-amount,
.w-cart-content .price del .woocommerce-Price-amount,
.widget_shopping_cart .price ins .woocommerce-Price-amount,
.widget_shopping_cart .price del .woocommerce-Price-amount {
	color: #ffffff !important;
}
