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

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success {
		<?php if ( forminator_array_value_exists( $properties, 'response-success-background' ) && !empty( $properties['response-success-background'] ) ) { ?>
			background-color: <?php echo $properties['response-success-background'] ?>;
		<?php } else { ?>
			background-color: #BCEEE6;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success p {
		<?php if ( forminator_array_value_exists( $properties, 'response-success-color' ) && !empty( $properties['response-success-color'] ) ) { ?>
			color: <?php echo $properties['response-success-color'] ?>;
		<?php } else { ?>
			color: #333333;
		<?php } ?>
	}

<?php } else { ?>

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success {
		background-color: #BCEEE6;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--flat .forminator-response-message.forminator-success p {
		color: #333333;
	}

<?php } ?>