<?php if ( forminator_array_value_exists( $properties, 'cform-color-settings' ) ) { ?>

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit {
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-background-static' ) && !empty( $properties['button-submit-background-static'] ) ) { ?>
			background-color: <?php echo $properties['button-submit-background-static'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #097BAA;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-color-static' ) && !empty( $properties['button-submit-color-static'] ) ) { ?>
			color: <?php echo $properties['button-submit-color-static'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #FFFFFF;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:hover {
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-background-hover' ) && !empty( $properties['button-submit-background-hover'] ) ) { ?>
			background-color: <?php echo $properties['button-submit-background-hover'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #086A91;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-color-hover' ) && !empty( $properties['button-submit-color-hover'] ) ) { ?>
			color: <?php echo $properties['button-submit-color-hover'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #FFFFFF;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:focus,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:active {
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-background-active' ) && !empty( $properties['button-submit-background-active'] ) ) { ?>
			background-color: <?php echo $properties['button-submit-background-active'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #086A91;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-submit-color-active' ) && !empty( $properties['button-submit-color-active'] ) ) { ?>
			color: <?php echo $properties['button-submit-color-active'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #FFFFFF;
		<?php } ?>
	}

	<?php if ( forminator_array_value_exists( $properties, 'button-submit-focus-outline-color' ) && !empty( $properties['button-submit-focus-outline-color'] ) ) { ?>
		.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:focus {
			outline: 2px solid <?php echo $properties['button-submit-focus-outline-color'] ?>;
			outline-offset: 1px;
		}
	<?php } ?>

<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit {
		background-color: #097BAA;
		color: #FFFFFF;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:hover {
		background-color: #086A91;
		color: #FFFFFF;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:focus,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:active {
		background-color: #086A91;
		color: #FFFFFF;
	}

	<?php if ( forminator_array_value_exists( $properties, 'button-submit-focus-outline-color' ) && !empty( $properties['button-submit-focus-outline-color'] ) ) { ?>
		.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-submit:focus {
			outline: 2px solid #254DEB;
			outline-offset: 1px;
		}
	<?php } ?>

<?php } ?>