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

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error {
		<?php if ( forminator_array_value_exists( $properties, 'basic-response-error-background' ) && !empty( $properties['basic-response-error-background'] ) ) { ?>
			background-color: <?php echo $properties['basic-response-error-background'] ?>;
		<?php } else { ?>
			background-color: #F9E4E8;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'basic-response-error-border' ) && !empty( $properties['basic-response-error-border'] ) ) { ?>
			box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
			-moz-box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
			-webkit-box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
		<?php } else { ?>
			box-shadow: inset 2px 0 0 0 #E51919;
			-moz-box-shadow: inset 2px 0 0 0 #E51919;
			-webkit-box-shadow: inset 2px 0 0 0 #E51919;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:hover,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:focus,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:active {
		<?php if ( forminator_array_value_exists( $properties, 'basic-response-error-border' ) && !empty( $properties['basic-response-error-border'] ) ) { ?>
			box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
			-moz-box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
			-webkit-box-shadow: inset 2px 0 0 0 <?php echo $properties['basic-response-error-border'] ?>;
		<?php } else { ?>
			box-shadow: inset 2px 0 0 0 #E51919;
			-moz-box-shadow: inset 2px 0 0 0 #E51919;
			-webkit-box-shadow: inset 2px 0 0 0 #E51919;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error p {
		<?php if ( forminator_array_value_exists( $properties, 'basic-response-error-color' ) && !empty( $properties['basic-response-error-color'] ) ) { ?>
			color: <?php echo $properties['basic-response-error-color'] ?>;
		<?php } ?>
	}

<?php } else { ?>

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error {
		background-color: #F9E4E8;
		box-shadow: inset 2px 0 0 0 #E51919;
		-moz-box-shadow: inset 2px 0 0 0 #E51919;
		-webkit-box-shadow: inset 2px 0 0 0 #E51919;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:hover,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:focus,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-response-message.forminator-error:active {
		box-shadow: inset 2px 0 0 0 #E51919;
		-moz-box-shadow: inset 2px 0 0 0 #E51919;
		-webkit-box-shadow: inset 2px 0 0 0 #E51919;
	}

<?php } ?>