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

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success {
		<?php if ( forminator_array_value_exists( $properties, 'response-success-border' ) && !empty( $properties['response-success-border'] ) ) { ?>
			box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-moz-box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-webkit-box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
		<?php } else { ?>
			box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-moz-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-webkit-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:hover,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:focus,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:active {
		<?php if ( forminator_array_value_exists( $properties, 'response-success-border' ) && !empty( $properties['response-success-border'] ) ) { ?>
			box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-moz-box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-webkit-box-shadow: inset 4px 0 0 0 <?php echo $properties['response-success-border'] ?>, 1px 1px 4px 0 rgba(0,0,0,0.3);
		<?php } else { ?>
			box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-moz-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
			-webkit-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .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--material .forminator-response-message.forminator-success {
		box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		-moz-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		-webkit-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:hover,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:focus,
	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-response-message.forminator-success:active {
		box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		-moz-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
		-webkit-box-shadow: inset 4px 0 0 0 #1ABCA1, 1px 1px 4px 0 rgba(0,0,0,0.3);
	}

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

<?php } ?>