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

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single {
		<?php if ( forminator_array_value_exists( $properties, 'select-border-static' ) && !empty( $properties['select-border-static'] ) ) { ?>
			border-color: <?php echo $properties['select-border-static'] ?>;
		<?php } else { ?>
			border-color: #777771;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'select-value-static' ) && !empty( $properties['select-value-static'] ) ) { ?>
			color: <?php echo $properties['select-value-static'] ?>;
		<?php } else { ?>
			color: #000000;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:before {
		<?php if ( forminator_array_value_exists( $properties, 'select-border-hover' ) && !empty( $properties['select-border-hover'] ) ) { ?>
			background-color: <?php echo $properties['select-border-hover'] ?>;
		<?php } else { ?>
			background-color: #17A8E3;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .selection .select2-selection--single .select2-selection__arrow {
		<?php if ( forminator_array_value_exists( $properties, 'select-icon-static' ) && !empty( $properties['select-icon-static'] ) ) { ?>
			color: <?php echo $properties['select-icon-static'] ?>;
		<?php } else { ?>
			color: #777771;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:hover {
		<?php if ( forminator_array_value_exists( $properties, 'select-value-hover' ) && !empty( $properties['select-value-hover'] ) ) { ?>
			color: <?php echo $properties['select-value-hover'] ?>;
		<?php } else { ?>
			color: #000000;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:hover .select2-selection__arrow {
		<?php if ( forminator_array_value_exists( $properties, 'select-icon-hover' ) && !empty( $properties['select-icon-hover'] ) ) { ?>
			color: <?php echo $properties['select-icon-hover'] ?>;
		<?php } else { ?>
			color: #17A8E3;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default.select2-container--open .select2-selection--single {
		<?php if ( forminator_array_value_exists( $properties, 'select-border-active' ) && !empty( $properties['select-border-active'] ) ) { ?>
			border-color: <?php echo $properties['select-border-active'] ?>;
		<?php } else { ?>
			border-color: #17A8E3;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'select-value-active' ) && !empty( $properties['select-value-active'] ) ) { ?>
			color: <?php echo $properties['select-value-active'] ?>;
		<?php } else { ?>
			color: #000000;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
		<?php if ( forminator_array_value_exists( $properties, 'select-icon-active' ) && !empty( $properties['select-icon-active'] ) ) { ?>
			color: <?php echo $properties['select-icon-active'] ?>;
		<?php } else { ?>
			color: #17A8E3;
		<?php } ?>
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-has_error .forminator-select2 + .select2-container--default .select2-selection--single {
		<?php if ( forminator_array_value_exists( $properties, 'select-border-error' ) && !empty( $properties['select-border-error'] ) ) { ?>
			border-color: <?php echo $properties['select-border-error'] ?>;
		<?php } else { ?>
			border-color: #E04562;
		<?php } ?>
	}

<?php } else { ?>

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single {
		border-color: #777771;
		color: #000000;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:before {
		background-color: #17A8E3;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .selection .select2-selection--single .select2-selection__arrow {
		color: #777771;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:hover {
		color: #000000;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default .select2-selection--single:hover .select2-selection__arrow {
		color: #17A8E3;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default.select2-container--open .select2-selection--single {
		border-color: #17A8E3;
		color: #000000;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-select2 + .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow {
		color: #17A8E3;
	}

	.forminator-custom-form-<?php echo $properties['form_id'] ?>.forminator-design--material .forminator-has_error .forminator-select2 + .select2-container--default .select2-selection--single {
		border-color: #E04562;
	}

<?php } ?>