/**
 * Popup Color Override - Ensures plugin color settings are applied to popup
 * This file must be loaded after all other CSS files
 */

/* Force popup option prices to use the CSS variable */
#wcc-popup .wcc-option-price-value,
#wcc-popup-content .wcc-option-price-value,
.wcc-popup-mode .wcc-option-price-value,
body #wcc-popup .wcc-option-price-value,
body #wcc-popup-content .wcc-option-price-value,
body .wcc-popup-mode .wcc-option-price-value {
    color: var(--wcc-price-text-color, #d4a574) !important;
}

/* Also apply to any nested structures */
#wcc-popup .wcc-options-prices .wcc-option-price-item .wcc-option-price-value,
#wcc-popup-content .wcc-options-prices .wcc-option-price-item .wcc-option-price-value,
.wcc-popup-mode .wcc-options-prices .wcc-option-price-item .wcc-option-price-value {
    color: var(--wcc-price-text-color, #d4a574) !important;
}

/* Ensure main price in popup also uses the color */
#wcc-popup .price .woocommerce-Price-amount,
#wcc-popup-content .price .woocommerce-Price-amount,
.wcc-popup-mode .price .woocommerce-Price-amount,
#wcc-popup .product-price .woocommerce-Price-amount,
#wcc-popup-content .product-price .woocommerce-Price-amount,
.wcc-popup-mode .product-price .woocommerce-Price-amount {
    color: var(--wcc-price-text-color, #d4a574) !important;
}

/* Force total price to use the color */
#wcc-popup .wcc-total-price-value,
#wcc-popup-content .wcc-total-price-value,
.wcc-popup-mode .wcc-total-price-value,
body #wcc-popup .wcc-total-price-value,
body #wcc-popup-content .wcc-total-price-value,
body .wcc-popup-mode .wcc-total-price-value {
    color: var(--wcc-price-text-color, #d4a574) !important;
}

/* Apply to all price classes in popup */
#wcc-popup .wcc-price-positive,
#wcc-popup-content .wcc-price-positive,
.wcc-popup-mode .wcc-price-positive,
#wcc-popup .wcc-option-price,
#wcc-popup-content .wcc-option-price,
.wcc-popup-mode .wcc-option-price,
#wcc-popup .wcc-option-price-suffix,
#wcc-popup-content .wcc-option-price-suffix,
.wcc-popup-mode .wcc-option-price-suffix,
#wcc-popup .wcc-option-total-price,
#wcc-popup-content .wcc-option-total-price,
.wcc-popup-mode .wcc-option-total-price {
    color: var(--wcc-price-text-color, #d4a574) !important;
}

/* Override any specific selectors that might have inline styles */
.wcc-popup-mode .wcc-options-list-wrapper .wcc-option-price-value,
.wcc-popup-mode .wcc-option-price.wcc-price-positive,
.wcc-popup-mode span.wcc-price-positive,
.wcc-popup-mode div.wcc-option-price {
    color: var(--wcc-price-text-color, #d4a574) !important;
}