<?php
use Elementor\Icons_Manager;
Icons_Manager::enqueue_shim();
$default_settings = [
    'style' => '',
    'button_bg_color' => '',
    'button_bg_color_gradient' => '',
];
$settings = array_merge($default_settings, $settings);
extract($settings);
$html_id = ct_get_element_id($settings);
if(class_exists('MC4WP_Container')) : ?>
	<div id="<?php echo esc_attr($html_id); ?>" class="ct-mailchimp ct-mailchimp1 <?php echo esc_attr($style); ?>">
		<div class="ct-inline-css"  data-css="
	        <?php if( !empty($button_bg_color) && !empty($button_bg_color_gradient) ) : ?>
	            #<?php echo esc_attr($html_id) ?>.ct-mailchimp .mc4wp-form [type='submit'] {
	                background-image: -webkit-linear-gradient(90deg, <?php echo esc_attr($button_bg_color_gradient); ?> 0%, <?php echo esc_attr($button_bg_color); ?> 50%, <?php echo esc_attr($button_bg_color_gradient); ?>) !important;
	                background-image: -moz-linear-gradient(90deg, <?php echo esc_attr($button_bg_color_gradient); ?> 0%, <?php echo esc_attr($button_bg_color); ?> 50%, <?php echo esc_attr($button_bg_color_gradient); ?>) !important;
	                background-image: -ms-linear-gradient(90deg, <?php echo esc_attr($button_bg_color_gradient); ?> 0%, <?php echo esc_attr($button_bg_color); ?> 50%, <?php echo esc_attr($button_bg_color_gradient); ?>) !important;
	                background-image: -o-linear-gradient(90deg, <?php echo esc_attr($button_bg_color_gradient); ?> 0%, <?php echo esc_attr($button_bg_color); ?> 50%, <?php echo esc_attr($button_bg_color_gradient); ?>) !important;
	                background-image: linear-gradient(90deg, <?php echo esc_attr($button_bg_color_gradient); ?> 0%, <?php echo esc_attr($button_bg_color); ?> 50%, <?php echo esc_attr($button_bg_color_gradient); ?>) !important;
	                filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='<?php echo esc_attr($button_bg_color_gradient); ?>', endColorStr='<?php echo esc_attr($button_bg_color); ?>') !important;
	                background-color: transparent !important;

	            }
	        <?php endif; ?>">
	    </div>
		<?php echo do_shortcode('[mc4wp_form]'); ?>
	</div>
<?php endif; ?>
