<?php 
// if(class_exists('WooCommerce')):
$edumodo_primary_color = get_theme_mod('primary_color');
$edumodo_secondary_color = get_theme_mod('secondary_color');

$edumodo_primarycolor__color_selector_for_woo = [
    '.woocommerce .woocommerce-message:before,.woocommerce-cart .woocommerce-message:before,.woocommerce-checkout .woocommerce-message:before,.woocommerce-account .woocommerce-message:before,.woocommerce .woocommerce-info:before,.woocommerce-cart .woocommerce-info:before,.woocommerce-checkout .woocommerce-info:before,.woocommerce-account .woocommerce-info:before,.woocommerce main#main .price,.woocommerce-cart main#main .price,.woocommerce-checkout main#main .price,.woocommerce-account main#main .price,.woocommerce main#main .woocommerce-tabs .stars a,.woocommerce-cart main#main .woocommerce-tabs .stars a,.woocommerce-checkout main#main .woocommerce-tabs .stars a,.woocommerce-account main#main .woocommerce-tabs .stars a,.woocommerce main#main .woocommerce-tabs .stars:hover a,.woocommerce-cart main#main .woocommerce-tabs .stars:hover a,.woocommerce-checkout main#main .woocommerce-tabs .stars:hover a,.woocommerce-account main#main .woocommerce-tabs .stars:hover a,.woocommerce main#main .woocommerce-tabs .stars.selected a,.woocommerce-cart main#main .woocommerce-tabs .stars.selected a,.woocommerce-checkout main#main .woocommerce-tabs .stars.selected a,.woocommerce-account main#main .woocommerce-tabs .stars.selected a'
];
$edumodo_primarycolor__background_color_selector_for_woo = [
    '.e-woo-latest-product .product .e-product-price .e-product-price-wrapper,.woocommerce .woocommerce-form-login input[type="submit"],.woocommerce-cart .woocommerce-form-login input[type="submit"],.woocommerce-checkout .woocommerce-form-login input[type="submit"],.woocommerce-account .woocommerce-form-login input[type="submit"],.woocommerce .woocommerce-MyAccount-content input[type="submit"],.woocommerce-cart .woocommerce-MyAccount-content input[type="submit"],.woocommerce-checkout .woocommerce-MyAccount-content input[type="submit"],.woocommerce-account .woocommerce-MyAccount-content input[type="submit"],.woocommerce .checkout .place-order input.button.alt,.woocommerce-cart .checkout .place-order input.button.alt,.woocommerce-checkout .checkout .place-order input.button.alt,.woocommerce-account .checkout .place-order input.button.alt,.woocommerce .woocommerce-cart-form input[type="submit"],.woocommerce-cart .woocommerce-cart-form input[type="submit"],.woocommerce-checkout .woocommerce-cart-form input[type="submit"],.woocommerce-account .woocommerce-cart-form input[type="submit"],.woocommerce .woocommerce-pagination .page-numbers li:hover,.woocommerce-cart .woocommerce-pagination .page-numbers li:hover,.woocommerce-checkout .woocommerce-pagination .page-numbers li:hover,.woocommerce-account .woocommerce-pagination .page-numbers li:hover,.woocommerce main#main button[type="submit"],.woocommerce-cart main#main button[type="submit"],.woocommerce-checkout main#main button[type="submit"],.woocommerce-account main#main button[type="submit"],.woocommerce main#main a.button,.woocommerce-cart main#main a.button,.woocommerce-checkout main#main a.button,.woocommerce-account main#main a.button,.woocommerce main#main input[name="submit"],.woocommerce-cart main#main input[name="submit"],.woocommerce-checkout main#main input[name="submit"],.woocommerce-account main#main input[name="submit"],.woocommerce main#main span.onsale,.woocommerce-cart main#main span.onsale,.woocommerce-checkout main#main span.onsale,.woocommerce-account main#main span.onsale,.woocommerce main#main .woocommerce-tabs input[name="submit"],.woocommerce-cart main#main .woocommerce-tabs input[name="submit"],.woocommerce-checkout main#main .woocommerce-tabs input[name="submit"],.woocommerce-account main#main .woocommerce-tabs input[name="submit"],.woocommerce .woocommerce-pagination .page-numbers li span.current,.woocommerce-cart .woocommerce-pagination .page-numbers li span.current,.woocommerce-checkout .woocommerce-pagination .page-numbers li span.current,.woocommerce-account .woocommerce-pagination .page-numbers li span.current'
];
$edumodo_primarycolor__border_top_color_selector_for_woo = [
    '.woocommerce .woocommerce-MyAccount-navigation ul li.is-active,.woocommerce-cart .woocommerce-MyAccount-navigation ul li.is-active,.woocommerce-checkout .woocommerce-MyAccount-navigation ul li.is-active,.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active,.woocommerce .woocommerce-message,.woocommerce-cart .woocommerce-message,.woocommerce-checkout .woocommerce-message,.woocommerce-account .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce-cart .woocommerce-info,.woocommerce-checkout .woocommerce-info,.woocommerce-account .woocommerce-info'
];
$edumodo_primarycolor__border_color_selector_for_woo = [
    '.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus'
];
$edumodo_secondarycolor__color_selector_for_woo = [
    '.e-woo-latest-product .product .e-product-price .e-product-price-wrapper:hover,.woocommerce .woocommerce-form-login input[type="submit"]:hover,.woocommerce-cart .woocommerce-form-login input[type="submit"]:hover,.woocommerce-checkout .woocommerce-form-login input[type="submit"]:hover,.woocommerce-account .woocommerce-form-login input[type="submit"]:hover,.woocommerce .woocommerce-MyAccount-content input[type="submit"]:hover,.woocommerce-cart .woocommerce-MyAccount-content input[type="submit"]:hover,.woocommerce-checkout .woocommerce-MyAccount-content input[type="submit"]:hover,.woocommerce-account .woocommerce-MyAccount-content input[type="submit"]:hover,.woocommerce .checkout .place-order input.button.alt:hover,.woocommerce-cart .checkout .place-order input.button.alt:hover,.woocommerce-checkout .checkout .place-order input.button.alt:hover,.woocommerce-account .checkout .place-order input.button.alt:hover,.woocommerce .woocommerce-cart-form input[type="submit"]:hover,.woocommerce-cart .woocommerce-cart-form input[type="submit"]:hover,.woocommerce-checkout .woocommerce-cart-form input[type="submit"]:hover,.woocommerce-account .woocommerce-cart-form input[type="submit"]:hover,.woocommerce main#main button[type="submit"]:hover,.woocommerce-cart main#main button[type="submit"]:hover,.woocommerce-checkout main#main button[type="submit"]:hover,.woocommerce-account main#main button[type="submit"]:hover,.woocommerce main#main a.button:hover,.woocommerce-cart main#main a.button:hover,.woocommerce-checkout main#main a.button:hover,.woocommerce-account main#main a.button:hover,.woocommerce main#main input[name="submit"]:hover,.woocommerce-cart main#main input[name="submit"]:hover,.woocommerce-checkout main#main input[name="submit"]:hover,.woocommerce-account main#main input[name="submit"]:hover'
];

?>
<style id="edumodo-woo-style">
    <?php 
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__color_selector_for_woo), 'color', $edumodo_primary_color);
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__background_color_selector_for_woo), 'background-color', $edumodo_primary_color);
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__border_top_color_selector_for_woo), 'border-top-color', $edumodo_primary_color);
        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_primarycolor__border_color_selector_for_woo), 'border-color', $edumodo_primary_color);

        edumodo_style_property_parser(edumodo_parse_selector_as_string($edumodo_secondarycolor__color_selector_for_woo), 'color', $edumodo_secondary_color);
    ?>
</style>
<?php
// endif;
?>