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

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-label[class*="forminator-floating-"] {
		<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-size' ) ) { ?>
			font-size: <?php echo $properties['cform-input-font-size'] ?>px;
		<?php } else { ?>
			font-size: 16px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-family' ) ) { ?>
			<?php if ( $properties['cform-input-font-family'] != 'custom' && !empty( $properties['cform-input-font-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-input-font-family'] ?>;
			<?php } else if ( $properties['cform-input-font-family'] == 'custom' && !empty( $properties['cform-input-custom-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-input-custom-family'] ?>;
			<?php } else { ?>
				font-family: inherit;
			<?php } ?>
		<?php } else { ?>
			font-family: inherit;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-input-font-weight' ) ) { ?>
			<?php forminator_echo_font_weight( $properties, 'cform-input-font-weight' ); ?>
		<?php } else { ?>
			font-weight: 400;
		<?php } ?>
	}

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-label:not([class*="forminator-floating-"]) {
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-size' ) ) { ?>
			font-size: <?php echo $properties['cform-label-font-size'] ?>px;
		<?php } else { ?>
			font-size: 12px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-family' ) ) { ?>
			<?php if ( $properties['cform-label-font-family'] != 'custom' && !empty( $properties['cform-label-font-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-label-font-family'] ?>;
			<?php } else if ( $properties['cform-label-font-family'] == 'custom' && !empty( $properties['cform-label-custom-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-label-custom-family'] ?>;
			<?php } else { ?>
				font-family: inherit;
			<?php } ?>
		<?php } else { ?>
			font-family: inherit;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
			<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
		<?php } else { ?>
			font-weight: 700;
		<?php } ?>
	}

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-is_filled .forminator-label[class*="forminator-floating-"],
	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-is_active .forminator-label[class*="forminator-floating-"] {
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-size' ) ) { ?>
			font-size: <?php echo $properties['cform-label-font-size'] ?>px;
		<?php } else { ?>
			font-size: 12px;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-family' ) ) { ?>
			<?php if ( $properties['cform-label-font-family'] != 'custom' && !empty( $properties['cform-label-font-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-label-font-family'] ?>;
			<?php } else if ( $properties['cform-label-font-family'] == 'custom' && !empty( $properties['cform-label-custom-family'] ) ) { ?>
				font-family: <?php echo $properties['cform-label-custom-family'] ?>;
			<?php } else { ?>
				font-family: inherit;
			<?php } ?>
		<?php } else { ?>
			font-family: inherit;
		<?php } ?>
		<?php if ( forminator_array_value_exists( $properties, 'cform-label-font-weight' ) ) { ?>
			<?php forminator_echo_font_weight( $properties, 'cform-label-font-weight' ); ?>
		<?php } else { ?>
			font-weight: 700;
		<?php } ?>
	}

<?php } else { ?>

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-label[class*="forminator-floating-"] {
		font-size: 16px;
		font-family: inherit;
		font-weight: 400;
	}

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-label:not([class*="forminator-floating-"]) {
		font-size: 12px;
		font-family: inherit;
		font-weight: 700;
	}

	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-is_filled .forminator-label[class*="forminator-floating-"],
	#forminator-module-<?php echo $properties['form_id'] ?>.forminator-design--<?php echo $theme; ?> .forminator-is_active .forminator-label[class*="forminator-floating-"] {
		font-size: 12px;
		font-family: inherit;
		font-weight: 700;
	}

<?php } ?>