<?php if ( forminator_array_value_exists( $properties, 'form-font-family' ) ) { ?>

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-upload {
		<?php if ( forminator_array_value_exists( $properties, 'upload-single-button-font-size' ) ) { ?>
			font-size: <?php echo $properties['upload-single-button-font-size'] ?>px;
		<?php } else { ?>
			font-size: 14px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'upload-single-button-font-family' ) ) { ?>
			<?php if ( $properties['upload-single-button-font-family'] != 'custom' && !empty( $properties['upload-single-button-font-family'] ) ) { ?>
				font-family: "<?php echo $properties['upload-single-button-font-family'] ?>";
			<?php } else if ( $properties['upload-single-button-font-family'] == 'custom' && !empty( $properties['upload-single-button-custom-family'] ) ) { ?>
				font-family: "<?php echo $properties['upload-single-button-custom-family'] ?>";
			<?php } else { ?>
				font-family: inherit;
			<?php } ?>
		<?php } else { ?>
			font-family: inherit;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'upload-single-button-font-weight' ) ) { ?>
			font-weight: <?php echo $properties['upload-single-button-font-weight'] ?>;
		<?php } else { ?>
			font-weight: 500;
		<?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, 'upload-single-text-font-size' ) ) { ?>
			font-size: <?php echo $properties['upload-single-text-font-size'] ?>px;
		<?php } else { ?>
			font-size: 12px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'upload-single-text-font-family' ) ) { ?>
			<?php if ( $properties['upload-single-text-font-family'] != 'custom' && !empty( $properties['upload-single-text-font-family'] ) ) { ?>
				font-family: "<?php echo $properties['upload-single-text-font-family'] ?>";
			<?php } else if ( $properties['upload-single-text-font-family'] == 'custom' && !empty( $properties['upload-single-text-custom-family'] ) ) { ?>
				font-family: "<?php echo $properties['upload-single-text-custom-family'] ?>";
			<?php } else { ?>
				font-family: inherit;
			<?php } ?>
		<?php } else { ?>
			font-family: inherit;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'upload-single-text-font-weight' ) ) { ?>
			font-weight: <?php echo $properties['upload-single-text-font-weight'] ?>;
		<?php } else { ?>
			font-weight: 500;
		<?php } ?>
	}

<?php } else { ?>

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-button-upload {
		font-size: 14px;
		font-family: inherit;
		font-weight: 500;
	}

	.forminator-ui#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-file-upload > span {
		font-size: 12px;
		font-family: inherit;
		font-weight: 500;
	}

<?php } ?>
