<?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-upload {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-background-static' ) && !empty( $properties['button-upload-background-static'] ) ) { ?>
			background-color: <?php echo $properties['button-upload-background-static'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #067963;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-color-static' ) && !empty( $properties['button-upload-color-static'] ) ) { ?>
			color: <?php echo $properties['button-upload-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-upload:hover {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-background-hover' ) && !empty( $properties['button-upload-background-hover'] ) ) { ?>
			background-color: <?php echo $properties['button-upload-background-hover'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #05614F;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-color-hover' ) && !empty( $properties['button-upload-color-hover'] ) ) { ?>
			color: <?php echo $properties['button-upload-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-upload:focus,
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-upload:active {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-background-active' ) && !empty( $properties['button-upload-background-active'] ) ) { ?>
			background-color: <?php echo $properties['button-upload-background-active'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			background-color: #05614F;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-color-active' ) && !empty( $properties['button-upload-color-active'] ) ) { ?>
			color: <?php echo $properties['button-upload-color-active'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #FFFFFF;
		<?php } ?>
	}

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

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

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-file-upload > span {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-notice' ) && !empty( $properties['button-upload-notice'] ) ) { ?>
			color: <?php echo $properties['button-upload-notice'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #777771;
		<?php } ?>
	}

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

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

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

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete [class*="forminator-icon-"] {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-delete-color-static' ) && !empty( $properties['button-upload-delete-color-static'] ) ) { ?>
			color: <?php echo $properties['button-upload-delete-color-static'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #E51919;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:hover [class*="forminator-icon-"] {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-delete-color-hover' ) && !empty( $properties['button-upload-delete-color-hover'] ) ) { ?>
			color: <?php echo $properties['button-upload-delete-color-hover'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #E51919;
		<?php } ?>
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:focus [class*="forminator-icon-"],
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:active [class*="forminator-icon-"] {
		<?php if ( forminator_array_value_exists( $properties, 'button-upload-delete-color-active' ) && !empty( $properties['button-upload-delete-color-active'] ) ) { ?>
			color: <?php echo $properties['button-upload-delete-color-active'] ?>;
		<?php } elseif ( forminator_can_apply_default_color( $properties ) ) { ?>
			color: #E51919;
		<?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-upload {
		background-color: #067963;
		color: #FFFFFF;
	}

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

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

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

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

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-file-upload > span {
		color: #777771;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete {
		background-color: rgba(0,0,0,0);
	}

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

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

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete [class*="forminator-icon-"] {
		color: #E51919;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:hover [class*="forminator-icon-"] {
		color: #E51919;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:focus [class*="forminator-icon-"],
	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-delete:active [class*="forminator-icon-"] {
		color: #E51919;
	}

<?php } ?>