<?php
/**
 *  UABB Subscribe Form Module front-end CSS php file
 *
 *  @package UABB Subscribe Form Module
 */

$version_bb_check = UABB_Compatibility::$version_bb_check;
$converted        = UABB_Compatibility::$uabb_migration;

$settings->background_color       = FLBuilderColor::hex_or_rgb( $settings->background_color );
$settings->input_text_color       = FLBuilderColor::hex_or_rgb( $settings->input_text_color );
$settings->input_background_color = FLBuilderColor::hex_or_rgb( $settings->input_background_color );
$settings->border_color           = FLBuilderColor::hex_or_rgb( $settings->border_color );
$settings->border_active_color    = FLBuilderColor::hex_or_rgb( $settings->border_active_color );
$settings->heading_color          = FLBuilderColor::hex_or_rgb( $settings->heading_color );
$settings->subheading_color       = FLBuilderColor::hex_or_rgb( $settings->subheading_color );
$settings->text_color             = FLBuilderColor::hex_or_rgb( $settings->text_color );
$settings->checkbox_color         = FLBuilderColor::hex_or_rgb( $settings->checkbox_color );
$settings->terms_color            = FLBuilderColor::hex_or_rgb( $settings->terms_color );

$settings->spacing = ( '' !== $settings->spacing ) ? $settings->spacing : '10'; ?>

<?php
if ( ! $version_bb_check ) {
	$button_typo_array = array(
		'text'                                       => $settings->btn_text,
		'icon'                                       => $settings->btn_icon,
		'icon_position'                              => $settings->btn_icon_position,
		'style'                                      => $settings->btn_style,
		'border_size'                                => $settings->btn_border_size,
		'transparent_button_options'                 => $settings->btn_transparent_button_options,
		'threed_button_options'                      => $settings->btn_threed_button_options,
		'flat_button_options'                        => $settings->btn_flat_button_options,
		'bg_color'                                   => $settings->btn_bg_color,
		'bg_color_opc'                               => $settings->btn_bg_color_opc,
		'bg_hover_color'                             => $settings->btn_bg_hover_color,
		'bg_hover_color_opc'                         => $settings->btn_bg_hover_color_opc,
		'text_color'                                 => $settings->btn_text_color,
		'text_hover_color'                           => $settings->btn_text_hover_color,
		'hover_attribute'                            => $settings->hover_attribute,
		'width'                                      => $settings->btn_width,
		'custom_width'                               => $settings->btn_custom_width,
		'custom_height'                              => $settings->btn_custom_height,
		'padding_top_bottom'                         => $settings->btn_padding_top_bottom,
		'padding_left_right'                         => $settings->btn_padding_left_right,
		'border_radius'                              => $settings->btn_border_radius,
		'align'                                      => '',
		'mob_align'                                  => '',
		'font_family'                                => $settings->btn_font_family,
		'font_size'                                  => isset( $settings->btn_font_size ) ? $settings->btn_font_size : '',
		'line_height'                                => isset( $settings->btn_line_height ) ? $settings->btn_line_height : '',
		'font_size_unit_responsive'                  => $settings->btn_font_size_unit_responsive,
		'line_height_unit_responsive'                => $settings->btn_line_height_unit_responsive,
		'font_size_unit_medium'                      => $settings->btn_font_size_unit_medium,
		'line_height_unit_medium'                    => $settings->btn_line_height_unit_medium,
		'font_size_unit'                             => $settings->btn_font_size_unit,
		'line_height_unit'                           => $settings->btn_line_height_unit,
		'transform'                                  => $settings->btn_transform,
		'letter_spacing'                             => $settings->btn_letter_spacing,
		'button_padding_dimension_top'               => ( isset( $settings->button_padding_dimension_top ) ) ? $settings->button_padding_dimension_top : '',
		'button_padding_dimension_left'              => ( isset( $settings->button_padding_dimension_left ) ) ? $settings->button_padding_dimension_left : '',
		'button_padding_dimension_bottom'            => ( isset( $settings->button_padding_dimension_bottom ) ) ? $settings->button_padding_dimension_bottom : '',
		'button_padding_dimension_right'             => ( isset( $settings->button_padding_dimension_right ) ) ? $settings->button_padding_dimension_right : '',
		'button_padding_dimension_top_medium'        => ( isset( $settings->button_padding_dimension_top_medium ) ) ? $settings->button_padding_dimension_top_medium : '',
		'button_padding_dimension_left_medium'       => ( isset( $settings->button_padding_dimension_left_medium ) ) ? $settings->button_padding_dimension_left_medium : '',
		'button_padding_dimension_bottom_medium'     => ( isset( $settings->button_padding_dimension_bottom_medium ) ) ? $settings->button_padding_dimension_bottom_medium : '',
		'button_padding_dimension_right_medium'      => ( isset( $settings->button_padding_dimension_right_medium ) ) ? $settings->button_padding_dimension_right_medium : '',
		'button_padding_dimension_top_responsive'    => ( isset( $settings->button_padding_dimension_top_responsive ) ) ? $settings->button_padding_dimension_top_responsive : '',
		'button_padding_dimension_left_responsive'   => ( isset( $settings->button_padding_dimension_left_responsive ) ) ? $settings->button_padding_dimension_left_responsive : '',
		'button_padding_dimension_bottom_responsive' => ( isset( $settings->button_padding_dimension_bottom_responsive ) ) ? $settings->button_padding_dimension_bottom_responsive : '',
		'button_padding_dimension_right_responsive'  => ( isset( $settings->button_padding_dimension_right_responsive ) ) ? $settings->button_padding_dimension_right_responsive : '',
		'button_border_style'                        => ( isset( $settings->button_border_style ) ) ? $settings->button_border_style : '',
		'button_border_width'                        => ( isset( $settings->button_border_width ) ) ? $settings->button_border_width : '',
		'button_border_radius'                       => ( isset( $settings->button_border_radius ) ) ? $settings->button_border_radius : '',
		'button_border_color'                        => ( isset( $settings->button_border_color ) ) ? $settings->button_border_color : '',

		'border_hover_color'                         => ( isset( $settings->border_hover_color ) ) ? $settings->border_hover_color : '',
	);
} else {
	$button_typo_array = array(
		'text'                                       => $settings->btn_text,
		'icon'                                       => $settings->btn_icon,
		'icon_position'                              => $settings->btn_icon_position,
		'style'                                      => $settings->btn_style,
		'border_size'                                => $settings->btn_border_size,
		'transparent_button_options'                 => $settings->btn_transparent_button_options,
		'threed_button_options'                      => $settings->btn_threed_button_options,
		'flat_button_options'                        => $settings->btn_flat_button_options,
		'bg_color'                                   => $settings->btn_bg_color,
		'bg_hover_color'                             => $settings->btn_bg_hover_color,
		'text_color'                                 => $settings->btn_text_color,
		'text_hover_color'                           => $settings->btn_text_hover_color,
		'hover_attribute'                            => $settings->hover_attribute,
		'width'                                      => $settings->btn_width,
		'custom_width'                               => $settings->btn_custom_width,
		'custom_height'                              => $settings->btn_custom_height,
		'padding_top_bottom'                         => $settings->btn_padding_top_bottom,
		'padding_left_right'                         => $settings->btn_padding_left_right,
		'border_radius'                              => $settings->btn_border_radius,
		'align'                                      => '',
		'mob_align'                                  => '',
		'font_size'                                  => isset( $settings->btn_font_size ) ? $settings->btn_font_size : '',
		'line_height'                                => isset( $settings->btn_line_height ) ? $settings->btn_line_height : '',
		'button_typo'                                => ( isset( $settings->button_font_typo ) ) ? $settings->button_font_typo : '',
		'button_typo_medium'                         => ( isset( $settings->button_font_typo_medium ) ) ? $settings->button_font_typo_medium : '',
		'button_typo_responsive'                     => ( isset( $settings->button_font_typo_responsive ) ) ? $settings->button_font_typo_responsive : '',
		'button_padding_dimension_top'               => ( isset( $settings->button_padding_dimension_top ) ) ? $settings->button_padding_dimension_top : '',
		'button_padding_dimension_left'              => ( isset( $settings->button_padding_dimension_left ) ) ? $settings->button_padding_dimension_left : '',
		'button_padding_dimension_bottom'            => ( isset( $settings->button_padding_dimension_bottom ) ) ? $settings->button_padding_dimension_bottom : '',
		'button_padding_dimension_right'             => ( isset( $settings->button_padding_dimension_right ) ) ? $settings->button_padding_dimension_right : '',
		'button_padding_dimension_top_medium'        => ( isset( $settings->button_padding_dimension_top_medium ) ) ? $settings->button_padding_dimension_top_medium : '',
		'button_padding_dimension_left_medium'       => ( isset( $settings->button_padding_dimension_left_medium ) ) ? $settings->button_padding_dimension_left_medium : '',
		'button_padding_dimension_bottom_medium'     => ( isset( $settings->button_padding_dimension_bottom_medium ) ) ? $settings->button_padding_dimension_bottom_medium : '',
		'button_padding_dimension_right_medium'      => ( isset( $settings->button_padding_dimension_right_medium ) ) ? $settings->button_padding_dimension_right_medium : '',
		'button_padding_dimension_top_responsive'    => ( isset( $settings->button_padding_dimension_top_responsive ) ) ? $settings->button_padding_dimension_top_responsive : '',
		'button_padding_dimension_left_responsive'   => ( isset( $settings->button_padding_dimension_left_responsive ) ) ? $settings->button_padding_dimension_left_responsive : '',
		'button_padding_dimension_bottom_responsive' => ( isset( $settings->button_padding_dimension_bottom_responsive ) ) ? $settings->button_padding_dimension_bottom_responsive : '',
		'button_padding_dimension_right_responsive'  => ( isset( $settings->button_padding_dimension_right_responsive ) ) ? $settings->button_padding_dimension_right_responsive : '',
		'button_border'                              => ( isset( $settings->button_border ) ) ? $settings->button_border : '',
		'border_hover_color'                         => ( isset( $settings->border_hover_color ) ) ? $settings->border_hover_color : '',
	);
}

FLBuilder::render_module_css( 'uabb-button', $id, $button_typo_array );
?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-field {
	padding-right: <?php echo esc_attr( $settings->spacing / 2 ); ?>px;
	padding-left: <?php echo esc_attr( $settings->spacing / 2 ); ?>px;
	<?php
	$width_division = ( 'yes' === $settings->show_fname && 'yes' === $settings->show_lname ) ? 4 : ( ( 'yes' === $settings->show_fname || 'yes' === $settings->show_lname ) ? 3 : 2 );
	echo 'width: ' . esc_attr( ( 100 / $width_division ) ) . '%;';
	?>
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-stacked .uabb-form-error-message {
	right : <?php echo ( $settings->horizontal_padding > 15 ) ? esc_attr( $settings->horizontal_padding ) : '15'; ?>px
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-error-message {
	right : <?php echo ( ( $settings->horizontal_padding > 15 ) ? esc_attr( $settings->horizontal_padding ) : '15' ) + esc_attr( $settings->spacing / 2 ); ?>px
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-button {
	padding-right: <?php echo esc_attr( $settings->spacing / 2 ); ?>px;
	padding-left: <?php echo esc_attr( $settings->spacing / 2 ); ?>px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
	margin: 0 -<?php echo esc_attr( $settings->spacing / 2 ); ?>px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-stacked .uabb-form-field {
	margin-bottom: <?php echo esc_attr( $settings->spacing ); ?>px;
}

<?php
if ( '' !== $settings->btn_margin_top ) {
	?>
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-stacked .uabb-form-button {
	margin-top: <?php echo esc_attr( $settings->btn_margin_top ); ?>px;
	margin-bottom: <?php echo esc_attr( $settings->btn_margin_bottom ); ?>px;
}
	<?php
}
?>

<?php if ( 'full' === $settings->btn_width ) : ?>
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-button {
	<?php
	$width_division = ( 'yes' === $settings->show_fname && 'yes' === $settings->show_lname ) ? 4 : ( ( 'yes' === $settings->show_fname || 'yes' === $settings->show_lname ) ? 3 : 2 );
	echo 'width: ' . esc_attr( ( 100 / $width_division ) ) . '%;';
	?>
}
<?php endif; ?>

.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->heading_tag_selection ); ?>.uabb-sf-heading {
	<?php if ( '' !== $settings->heading_color ) : ?>
		color: <?php echo esc_attr( $settings->heading_color ); ?>;
	<?php endif; ?>

	margin-bottom: <?php echo ( '' !== $settings->heading_margin_bottom ) ? esc_attr( $settings->heading_margin_bottom ) : '0'; ?>px;
}

<?php if ( ! $version_bb_check ) { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->heading_tag_selection ); ?>.uabb-sf-heading {
		<?php if ( 'Default' !== $settings->heading_font_family['family'] ) : ?>
			<?php UABB_Helper::uabb_font_css( $settings->heading_font_family ); ?>
		<?php endif; ?>

		<?php if ( 'yes' === $converted || isset( $settings->heading_font_size_unit ) && '' !== $settings->heading_font_size_unit ) { ?>
			font-size: <?php echo esc_attr( $settings->heading_font_size_unit ); ?>px;
		<?php } elseif ( isset( $settings->heading_font_size_unit ) && '' === $settings->heading_font_size_unit && isset( $settings->heading_font_size['desktop'] ) && '' !== $settings->heading_font_size['desktop'] ) { ?>
			font-size: <?php echo esc_attr( $settings->heading_font_size['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( isset( $settings->heading_font_size['desktop'] ) && '' === $settings->heading_font_size['desktop'] && isset( $settings->heading_line_height['desktop'] ) && '' !== $settings->heading_line_height['desktop'] && '' === $settings->heading_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->heading_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'yes' === $converted || isset( $settings->heading_line_height_unit ) && '' !== $settings->heading_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->heading_line_height_unit ); ?>em;
		<?php } elseif ( isset( $settings->heading_line_height_unit ) && '' === $settings->heading_line_height_unit && isset( $settings->heading_line_height['desktop'] ) && '' !== $settings->heading_line_height['desktop'] ) { ?>
			line-height: <?php echo esc_attr( $settings->heading_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'none' !== $settings->heading_transform ) : ?>
			text-transform: <?php echo esc_attr( $settings->heading_transform ); ?>;
		<?php endif; ?>

		<?php if ( '' !== $settings->heading_letter_spacing ) : ?>
			letter-spacing: <?php echo esc_attr( $settings->heading_letter_spacing ); ?>px;
		<?php endif; ?>
	}
	<?php
} else {
	if ( class_exists( 'FLBuilderCSS' ) ) {
		FLBuilderCSS::typography_field_rule(
			array(
				'settings'     => $settings,
				'setting_name' => 'heading_font_typo',
				'selector'     => ".fl-node-$id .uabb-sf-heading",
			)
		);
	}
}
?>

.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->subheading_tag_selection ); ?>.uabb-sf-subheading {
	<?php if ( '' !== $settings->subheading_color ) : ?>
		color: <?php echo esc_attr( $settings->subheading_color ); ?>;
	<?php endif; ?>

	margin-bottom: <?php echo ( '' !== $settings->subheading_margin_bottom ) ? esc_attr( $settings->subheading_margin_bottom ) : '20'; ?>px;
}

<?php if ( ! $version_bb_check ) { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->subheading_tag_selection ); ?>.uabb-sf-subheading {

		<?php if ( 'Default' !== $settings->subheading_font_family['family'] ) : ?>
				<?php UABB_Helper::uabb_font_css( $settings->subheading_font_family ); ?>
		<?php endif; ?>

		<?php if ( 'yes' === $converted || isset( $settings->subheading_font_size_unit ) && '' !== $settings->subheading_font_size_unit ) { ?>
			font-size: <?php echo esc_attr( $settings->subheading_font_size_unit ); ?>px;
		<?php } elseif ( isset( $settings->subheading_font_size_unit ) && '' === $settings->subheading_font_size_unit && isset( $settings->subheading_font_size['desktop'] ) && '' !== $settings->subheading_font_size['desktop'] ) { ?>
			font-size: <?php echo esc_attr( $settings->subheading_font_size['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( isset( $settings->subheading_font_size['desktop'] ) && '' === $settings->subheading_font_size['desktop'] && isset( $settings->subheading_line_height['desktop'] ) && '' !== $settings->subheading_line_height['desktop'] && '' === $settings->subheading_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->subheading_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'yes' === $converted || isset( $settings->subheading_line_height_unit ) && '' !== $settings->subheading_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->subheading_line_height_unit ); ?>em;
		<?php } elseif ( isset( $settings->subheading_line_height_unit ) && '' === $settings->subheading_line_height_unit && isset( $settings->subheading_line_height['desktop'] ) && '' !== $settings->subheading_line_height['desktop'] ) { ?>
			line-height: <?php echo esc_attr( $settings->subheading_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'none' !== $settings->subheading_transform ) : ?>
			text-transform: <?php echo esc_attr( $settings->subheading_transform ); ?>;
		<?php endif; ?>

		<?php if ( '' !== $settings->subheading_letter_spacing ) : ?>
			letter-spacing: <?php echo esc_attr( $settings->subheading_letter_spacing ); ?>px;
		<?php endif; ?>
	}
	<?php
} else {
	if ( class_exists( 'FLBuilderCSS' ) ) {
		FLBuilderCSS::typography_field_rule(
			array(
				'settings'     => $settings,
				'setting_name' => 'subheading_font_typo',
				'selector'     => ".fl-node-$id .uabb-sf-subheading",
			)
		);
	}
}
?>

<?php if ( ! $version_bb_check ) { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"],
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"],
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"] ~ label,
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"] ~ label {
		<?php if ( 'Default' !== $settings->input_font_family['family'] ) : ?>
				<?php UABB_Helper::uabb_font_css( $settings->input_font_family ); ?>
		<?php endif; ?>

		<?php if ( 'yes' === $converted || isset( $settings->input_font_size_unit ) && '' !== $settings->input_font_size_unit ) { ?>
			font-size: <?php echo esc_attr( $settings->input_font_size_unit ); ?>px;
		<?php } elseif ( isset( $settings->input_font_size_unit ) && '' === $settings->input_font_size_unit && isset( $settings->input_font_size['desktop'] ) && '' !== $settings->input_font_size['desktop'] ) { ?>
			font-size: <?php echo esc_attr( $settings->input_font_size['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( isset( $settings->input_font_size['desktop'] ) && '' === $settings->input_font_size['desktop'] && isset( $settings->input_line_height['desktop'] ) && '' !== $settings->input_line_height['desktop'] && '' === $settings->input_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->input_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'yes' === $converted || isset( $settings->input_line_height_unit ) && '' !== $settings->input_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->input_line_height_unit ); ?>em;
		<?php } elseif ( isset( $settings->input_line_height_unit ) && '' === $settings->input_line_height_unit && isset( $settings->input_line_height['desktop'] ) && '' !== $settings->input_line_height['desktop'] ) { ?>
			line-height: <?php echo esc_attr( $settings->input_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'none' !== $settings->input_transform ) : ?>
			text-transform: <?php echo esc_attr( $settings->input_transform ); ?>;
		<?php endif; ?>

		<?php if ( '' !== $settings->input_letter_spacing ) : ?>
			letter-spacing: <?php echo esc_attr( $settings->input_letter_spacing ); ?>px;
		<?php endif; ?>
	}
	<?php
} else {
	if ( class_exists( 'FLBuilderCSS' ) ) {
		FLBuilderCSS::typography_field_rule(
			array(
				'settings'     => $settings,
				'setting_name' => 'input_font_typo',
				'selector'     => ".fl-node-$id .uabb-form-field input[type='text'], .fl-node-$id .uabb-form-field input[type='email'], .fl-node-$id .uabb-form-field input[type='text'] ~ label, .fl-node-$id .uabb-form-field input[type='email'] ~ label",
			)
		);
	}
}
?>

<?php if ( ! $version_bb_check ) { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input:focus + label,
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field.open > label {
		<?php if ( isset( $settings->input_font_size['desktop'] ) && '' !== $settings->input_font_size['desktop'] ) : ?>
		-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_size['desktop'] + 10 ); ?>px);
		-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_size['desktop'] + 10 ); ?>px);
		transform: translateY(-<?php echo esc_attr( $settings->input_font_size['desktop'] + 10 ); ?>px);
		<?php endif; ?>
	}
<?php } else { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input:focus + label,
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field.open > label {

		<?php
		if ( isset( $settings->input_font_typo['font_size']['length'] ) && '' !== $settings->input_font_typo['font_size']['length'] ) :

			if ( is_numeric( $settings->input_font_typo['font_size']['length'] ) ) {
				?>

				-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo['font_size']['length'] + 10 ); ?>px);
				-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo['font_size']['length'] + 10 ); ?>px);
				transform: translateY(-<?php echo esc_attr( $settings->input_font_typo['font_size']['length'] + 10 ); ?>px);
				<?php
			}
		endif;
		?>
	}
<?php } ?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-bottom-text {

	<?php if ( '' !== $settings->text_color ) { ?>
		color: <?php echo esc_attr( $settings->text_color ); ?>;
	<?php } ?>

	margin-top: <?php echo ( '' !== $settings->text_margin_top ) ? esc_attr( $settings->text_margin_top ) : '20'; ?>px;
}

<?php if ( ! $version_bb_check ) { ?>
	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-bottom-text {

		<?php if ( 'Default' !== $settings->text_font_family['family'] ) : ?>
				<?php UABB_Helper::uabb_font_css( $settings->text_font_family ); ?>
		<?php endif; ?>

		<?php if ( '' !== $settings->text_color ) { ?>
			color: <?php echo esc_attr( $settings->text_color ); ?>;
		<?php } ?>

		margin-top: <?php echo ( '' !== $settings->text_margin_top ) ? esc_attr( $settings->text_margin_top ) : '20'; ?>px;

		<?php if ( 'yes' === $converted || isset( $settings->text_font_size_unit ) && '' !== $settings->text_font_size_unit ) { ?>
			font-size: <?php echo esc_attr( $settings->text_font_size_unit ); ?>px;
			<?php if ( '' === $settings->text_line_height_unit && '' !== $settings->text_font_size_unit ) { ?>
				line-height: <?php echo esc_attr( $settings->text_font_size_unit ) + 2; ?>px;
			<?php } ?>
		<?php } elseif ( isset( $settings->text_font_size_unit ) && '' === $settings->text_font_size_unit && isset( $settings->text_font_size['desktop'] ) && '' !== $settings->text_font_size['desktop'] ) { ?>
			font-size: <?php echo esc_attr( $settings->text_font_size['desktop'] ); ?>px;
			line-height: <?php echo esc_attr( $settings->text_font_size['desktop'] + 2 ); ?>px;
		<?php } ?>

		<?php if ( isset( $settings->text_font_size['desktop'] ) && '' === $settings->text_font_size['desktop'] && isset( $settings->text_line_height['desktop'] ) && '' !== $settings->text_line_height['desktop'] && '' === $settings->text_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->text_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'yes' === $converted || isset( $settings->text_line_height_unit ) && '' !== $settings->text_line_height_unit ) { ?>
			line-height: <?php echo esc_attr( $settings->text_line_height_unit ); ?>em;
		<?php } elseif ( isset( $settings->text_line_height_unit ) && '' === $settings->text_line_height_unit && isset( $settings->text_line_height['desktop'] ) && '' !== $settings->text_line_height['desktop'] ) { ?>
			line-height: <?php echo esc_attr( $settings->text_line_height['desktop'] ); ?>px;
		<?php } ?>

		<?php if ( 'none' !== $settings->text_transform ) : ?>
			text-transform: <?php echo esc_attr( $settings->text_transform ); ?>;
		<?php endif; ?>

		<?php if ( '' !== $settings->text_letter_spacing ) : ?>
			letter-spacing: <?php echo esc_attr( $settings->text_letter_spacing ); ?>px;
		<?php endif; ?>
	}
	<?php
} else {
	if ( class_exists( 'FLBuilderCSS' ) ) {
		FLBuilderCSS::typography_field_rule(
			array(
				'settings'     => $settings,
				'setting_name' => 'text_font_typo',
				'selector'     => ".fl-node-$id .uabb-sf-bottom-text",
			)
		);
	}
}
?>

<?php if ( 'show' === $settings->terms_checkbox ) { ?>

	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-label {
		<?php if ( isset( $settings->checkbox_color ) && '' !== $settings->checkbox_color ) : ?>
			color: <?php echo esc_attr( ( false === strpos( $settings->checkbox_color, 'rgb' ) ) ? $settings->checkbox_color : $settings->checkbox_color ); ?>;
			transition: color 300ms ease;
		<?php endif; ?>
	}

	<?php if ( ! $version_bb_check ) { ?>
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-label {
			<?php if ( 'Default' !== $settings->checkbox_font_family['family'] ) : ?>
				<?php UABB_Helper::uabb_font_css( $settings->checkbox_font_family ); ?>
			<?php endif; ?>

			<?php if ( isset( $settings->checkbox_font_size ) && '' !== $settings->checkbox_font_size ) : ?>
				font-size: <?php echo esc_attr( $settings->checkbox_font_size ); ?>px;
			<?php endif; ?>

			<?php if ( isset( $settings->checkbox_line_height ) && '' !== $settings->checkbox_line_height ) : ?>
				line-height: <?php echo esc_attr( $settings->checkbox_line_height ); ?>em;
			<?php endif; ?>

			<?php if ( 'none' !== $settings->checkbox_text_transform ) : ?>
				text-transform: <?php echo esc_attr( $settings->checkbox_text_transform ); ?>;
			<?php endif; ?>

			<?php if ( '' !== $settings->checkbox_text_letter_spacing ) { ?>
				letter-spacing: <?php echo esc_attr( $settings->checkbox_text_letter_spacing ); ?>px;
			<?php } ?>
		}
		<?php
	} else {
		if ( class_exists( 'FLBuilderCSS' ) ) {
			FLBuilderCSS::typography_field_rule(
				array(
					'settings'     => $settings,
					'setting_name' => 'checkbox_font_typo',
					'selector'     => ".fl-node-$id .uabb-subscribe-form .uabb-terms-label",
				)
			);
		}
	}
}
?>

<?php if ( 'show' === $settings->terms_checkbox ) { ?>

	.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-text {
		<?php if ( isset( $settings->terms_color ) && '' !== $settings->terms_color ) : ?>
			color: <?php echo esc_attr( ( false === strpos( $settings->terms_color, 'rgb' ) ) ? $settings->terms_color : $settings->terms_color ); ?>;
			transition: color 300ms ease;
		<?php endif; ?>
	}

	<?php if ( ! $version_bb_check ) { ?>
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-text {
			<?php if ( 'Default' !== $settings->terms_font_family['family'] ) : ?>
				<?php UABB_Helper::uabb_font_css( $settings->terms_font_family ); ?>
			<?php endif; ?>

			<?php if ( isset( $settings->terms_font_size ) && '' !== $settings->terms_font_size ) : ?>
				font-size: <?php echo esc_attr( $settings->terms_font_size ); ?>px;
			<?php endif; ?>

			<?php if ( isset( $settings->terms_line_height ) && '' !== $settings->terms_line_height ) : ?>
				line-height: <?php echo esc_attr( $settings->terms_line_height ); ?>em;
			<?php endif; ?>

			<?php if ( 'none' !== $settings->terms_text_transform ) : ?>
				text-transform: <?php echo esc_attr( $settings->terms_text_transform ); ?>;
			<?php endif; ?>

			<?php if ( '' !== $settings->terms_text_letter_spacing ) : ?>
				letter-spacing: <?php echo esc_attr( $settings->terms_text_letter_spacing ); ?>px;
			<?php endif; ?>
		}
		<?php
	} else {
		if ( class_exists( 'FLBuilderCSS' ) ) {
			FLBuilderCSS::typography_field_rule(
				array(
					'settings'     => $settings,
					'setting_name' => 'terms_font_typo',
					'selector'     => ".fl-node-$id .uabb-subscribe-form .uabb-terms-text",
				)
			);
		}
	}
}
?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-input-group input[type="checkbox"] + span:before {
	background: #fafafa;
}

<?php
$font_size     = intval( $settings->checkbox_size );
$checked_width = $font_size - intval( $settings->checkbox_border_width );
?>
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-input-group input[type="checkbox"] {
	display: none;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-input-group .uabb-terms-label input[type="checkbox"] + span:before {
	content: '';
	<?php if ( isset( $settings->checkbox_bgcolor ) && '' !== $settings->checkbox_bgcolor ) : ?>
	transition: background-color 300ms ease;
	background-color: <?php echo esc_attr( FLBuilderColor::hex_or_rgb( $settings->checkbox_bgcolor ) ); ?>;
	<?php endif; ?>
	border-width: <?php echo esc_attr( $settings->checkbox_border_width ); ?>px;
	border-color: <?php echo esc_attr( FLBuilderColor::hex_or_rgb( $settings->checkbox_border_color ) ); ?>;
	vertical-align: middle;
	width: <?php echo esc_attr( $settings->checkbox_size ); ?>px;
	height: <?php echo esc_attr( $settings->checkbox_size ); ?>px;
	padding: 2px;
	margin-right: 10px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	align-content: center;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-input-group .uabb-terms-label input[type="checkbox"]:checked + span:before {
	content: "\2714";
	font-weight: bold;
	font-size: <?php echo esc_attr( $checked_width ); ?>px;
	line-height: <?php echo esc_attr( $checked_width ); ?>px;
	color: <?php echo esc_attr( FLBuilderColor::hex_or_rgb( $settings->checkbox_selected_color ) ); ?>;
	padding-top: 2px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-input-group input[type="checkbox"] + span:before {
	border-radius: <?php echo esc_attr( $settings->checkbox_border_radius ); ?>px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form {

	<?php
	if ( 'yes' === $converted || '' !== $settings->padding_dimension_top && isset( $settings->padding_dimension_top ) && isset( $settings->padding_dimension_bottom ) && '' !== $settings->padding_dimension_bottom && isset( $settings->padding_dimension_left ) && '' !== $settings->padding_dimension_left && isset( $settings->padding_dimension_right ) && '' !== $settings->padding_dimension_right ) {
		if ( isset( $settings->padding_dimension_top ) ) {
			echo ( '' !== $settings->padding_dimension_top ) ? 'padding-top:' . esc_attr( $settings->padding_dimension_top ) . 'px;' : 'padding-top: 0;';
		}
		if ( isset( $settings->padding_dimension_bottom ) ) {
			echo ( '' !== $settings->padding_dimension_bottom ) ? 'padding-bottom:' . esc_attr( $settings->padding_dimension_bottom ) . 'px;' : 'padding-bottom: 0;';
		}
		if ( isset( $settings->padding_dimension_left ) ) {
			echo ( '' !== $settings->padding_dimension_left ) ? 'padding-left:' . esc_attr( $settings->padding_dimension_left ) . 'px;' : 'padding-left: 0;';
		}
		if ( isset( $settings->padding_dimension_right ) ) {
			echo ( '' !== $settings->padding_dimension_right ) ? 'padding-right:' . esc_attr( $settings->padding_dimension_right ) . 'px;' : 'padding-right: 0;';
		}
	} elseif ( isset( $settings->padding ) && '' !== $settings->padding && isset( $settings->padding_dimension_top ) && '' === $settings->padding_dimension_top && isset( $settings->padding_dimension_bottom ) && '' === $settings->padding_dimension_bottom && isset( $settings->padding_dimension_left ) && '' === $settings->padding_dimension_left && isset( $settings->padding_dimension_right ) && '' === $settings->padding_dimension_right ) {
		?>
			<?php echo esc_attr( $settings->padding ); ?>;
	<?php } ?>

	<?php echo ( '' !== $settings->background_color ) ? 'background: ' . esc_attr( $settings->background_color ) . ';' : ''; ?>
	text-align: <?php echo esc_attr( $settings->overall_alignment ); ?>;
}

<?php if ( 'style1' === $settings->form_style ) { ?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style1 .uabb-form-field input,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style1 .uabb-form-field input:focus,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style1 .uabb-form-field textarea {
	<?php
	echo ( '' !== $settings->input_text_color ) ? 'color: ' . esc_attr( $settings->input_text_color ) . ';' : '';
	echo ( '' !== $settings->input_background_color ) ? 'background: ' . esc_attr( $settings->input_background_color ) . ';' : '';
	echo ( '' !== $settings->border_color ) ? 'border-color: ' . esc_attr( $settings->border_color ) . ';' : '';
	echo ( '' !== $settings->border_width ) ? 'border-width: ' . esc_attr( $settings->border_width ) . 'px;' : 'border-width: 1px;';
	?>
	border-radius: 0;
	padding: <?php echo ( '' !== $settings->vertical_padding ) ? esc_attr( $settings->vertical_padding ) : '12'; ?>px <?php echo ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15'; ?>px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style1 .uabb-form-field input::-webkit-input-placeholder {
	<?php
	echo ( '' !== $settings->input_text_color ) ? 'color: ' . esc_attr( $settings->input_text_color ) . ';' : '';
	?>
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style1 .uabb-form-field input[type="checkbox"] + span:before {
	<?php
	echo ( '' !== $settings->input_background_color ) ? 'background: ' . esc_attr( $settings->input_background_color ) . ';' : '';
	echo ( '' !== $settings->border_color ) ? 'border-color: ' . esc_attr( $settings->border_color ) . ';' : '';
	echo ( '' !== $settings->border_width ) ? 'border-width: ' . esc_attr( $settings->border_width ) . 'px;' : 'border-width: 1px;';
	?>
}

<?php } ?>

<?php if ( 'style2' === $settings->form_style ) { ?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field label {
	<?php
	echo ( '' !== $settings->input_text_color ) ? 'color: ' . esc_attr( $settings->input_text_color ) . ';' : '';
	?>
	bottom: <?php echo ( '' !== $settings->vertical_padding ) ? esc_attr( $settings->vertical_padding ) : '12'; ?>px;

	<?php if ( 'inline' === $settings->layout ) { ?>
	left: <?php echo ( ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15' ) + esc_attr( $settings->spacing / 2 ); ?>px;
	<?php } else { ?>
	left: <?php echo ( ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15' ); ?>px;
	<?php } ?>
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input:focus,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field textarea {
	<?php
	echo ( '' !== $settings->input_text_color ) ? 'color: ' . esc_attr( $settings->input_text_color ) . ';' : '';
	echo ( '' !== $settings->border_color ) ? 'border-color: ' . esc_attr( $settings->border_color ) . ';' : '';
	echo ( '' !== $settings->border_width ) ? 'border-width: ' . esc_attr( $settings->border_width ) . 'px;' : 'border-width: 1px;';
	?>
	padding: <?php echo ( '' !== $settings->vertical_padding ) ? esc_attr( $settings->vertical_padding ) : '12'; ?>px <?php echo ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15'; ?>px;
}

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input[type="checkbox"] + span:before {
	<?php
		echo ( '' !== $settings->input_text_color ) ? 'color: ' . esc_attr( $settings->input_text_color ) . ';' : '';
		echo ( '' !== $settings->border_color ) ? 'border-color: ' . esc_attr( $settings->border_color ) . ';' : '';
		echo ( '' !== $settings->border_width ) ? 'border-width: ' . esc_attr( $settings->border_width ) . 'px;' : 'border-width: 1px;';
	?>
}

<?php } ?>

.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-form-field input:focus,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-form-field input:active,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-form-field input[type="checkbox"] + span:active:before,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-form-field input[type="checkbox"] + span:focus:before {
	<?php
	echo ( '' !== $settings->border_active_color ) ? 'border-color: ' . esc_attr( $settings->border_active_color ) . ';' : '';
	?>
}

<?php if ( 'left' === $settings->overall_alignment ) : ?>
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap .uabb-terms-wrap {
	-webkit-box-pack: start;
	-ms-flex-pack: start;
	justify-content: flex-start;
}
<?php elseif ( 'right' === $settings->overall_alignment ) : ?>
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap,
.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap .uabb-terms-wrap {
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
}
<?php endif; ?>

<?php
if ( $global_settings->responsive_enabled ) { // Global Setting If started.
	?>
	@media ( max-width: <?php echo esc_attr( $global_settings->medium_breakpoint ); ?>px ) {

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form {
			<?php
			if ( isset( $settings->padding_dimension_top_medium ) ) {
				echo ( '' !== $settings->padding_dimension_top_medium ) ? 'padding-top:' . esc_attr( $settings->padding_dimension_top_medium ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_bottom_medium ) ) {
				echo ( '' !== $settings->padding_dimension_bottom_medium ) ? 'padding-bottom:' . esc_attr( $settings->padding_dimension_bottom_medium ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_left_medium ) ) {
				echo ( '' !== $settings->padding_dimension_left_medium ) ? 'padding-left:' . esc_attr( $settings->padding_dimension_left_medium ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_right_medium ) ) {
				echo ( '' !== $settings->padding_dimension_right_medium ) ? 'padding-right:' . esc_attr( $settings->padding_dimension_right_medium ) . 'px;' : '';
			}
			?>
		}

		<?php if ( ! $version_bb_check ) { ?>
			.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->heading_tag_selection ); ?>.uabb-sf-heading {

				<?php if ( 'yes' === $converted || isset( $settings->heading_font_size_unit_medium ) && '' !== $settings->heading_font_size_unit_medium ) { ?>
					font-size: <?php echo esc_attr( $settings->heading_font_size_unit_medium ); ?>px;
				<?php } elseif ( isset( $settings->heading_font_size_unit_medium ) && '' === $settings->heading_font_size_unit_medium && isset( $settings->heading_font_size['medium'] ) && '' !== $settings->heading_font_size['medium'] ) { ?>
					font-size: <?php echo esc_attr( $settings->heading_font_size['medium'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->heading_font_size['medium'] ) && '' === $settings->heading_font_size['medium'] && isset( $settings->heading_line_height['medium'] ) && '' !== $settings->heading_line_height['medium'] && '' === $settings->heading_line_height_unit_medium && '' === $settings->heading_line_height_unit ) { ?>
							line-height: <?php echo esc_attr( $settings->heading_line_height['medium'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->heading_line_height_unit_medium ) && '' !== $settings->heading_line_height_unit_medium ) { ?>
					line-height: <?php echo esc_attr( $settings->heading_line_height_unit_medium ); ?>em;
				<?php } elseif ( isset( $settings->heading_line_height_unit_medium ) && '' === $settings->heading_line_height_unit_medium && isset( $settings->heading_line_height['medium'] ) && '' !== $settings->heading_line_height['medium'] ) { ?>
					line-height: <?php echo esc_attr( $settings->heading_line_height['medium'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->subheading_tag_selection ); ?>.uabb-sf-subheading {

				<?php if ( 'yes' === $converted || isset( $settings->subheading_font_size_unit_medium ) && '' !== $settings->subheading_font_size_unit_medium ) { ?>
					font-size: <?php echo esc_attr( $settings->subheading_font_size_unit_medium ); ?>px;
				<?php } elseif ( isset( $settings->subheading_font_size_unit_medium ) && '' === $settings->subheading_font_size_unit_medium && isset( $settings->subheading_font_size['medium'] ) && '' !== $settings->subheading_font_size['medium'] ) { ?>
					font-size: <?php echo esc_attr( $settings->subheading_font_size['medium'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->subheading_font_size['medium'] ) && '' === $settings->subheading_font_size['medium'] && isset( $settings->subheading_line_height['medium'] ) && '' !== $settings->subheading_line_height['medium'] && '' === $settings->subheading_line_height_unit_medium && '' === $settings->subheading_line_height_unit ) { ?>
							line-height: <?php echo esc_attr( $settings->subheading_line_height['medium'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->subheading_line_height_unit_medium ) && '' !== $settings->subheading_line_height_unit_medium ) { ?>
					line-height: <?php echo esc_attr( $settings->subheading_line_height_unit_medium ); ?>em;
				<?php } elseif ( isset( $settings->subheading_line_height_unit_medium ) && '' === $settings->subheading_line_height_unit_medium && isset( $settings->subheading_line_height['medium'] ) && '' !== $settings->subheading_line_height['medium'] ) { ?>
					line-height: <?php echo esc_attr( $settings->subheading_line_height['medium'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-bottom-text {

				<?php if ( 'yes' === $converted || isset( $settings->text_font_size_unit_medium ) && '' !== $settings->text_font_size_unit_medium ) { ?>
					font-size: <?php echo esc_attr( $settings->text_font_size_unit_medium ); ?>px;
				<?php } elseif ( isset( $settings->text_font_size_unit_medium ) && '' === $settings->text_font_size_unit_medium && isset( $settings->text_font_size['medium'] ) && '' !== $settings->text_font_size['medium'] ) { ?>
					font-size: <?php echo esc_attr( $settings->text_font_size['medium'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->text_font_size['medium'] ) && '' === $settings->text_font_size['medium'] && isset( $settings->text_line_height['medium'] ) && '' !== $settings->text_line_height['medium'] && '' === $settings->text_line_height_unit_medium && '' === $settings->text_line_height_unit ) { ?>
							line-height: <?php echo esc_attr( $settings->text_line_height['medium'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->text_line_height_unit_medium ) && '' !== $settings->text_line_height_unit_medium ) { ?>
					line-height: <?php echo esc_attr( $settings->text_line_height_unit_medium ); ?>em;
				<?php } elseif ( isset( $settings->text_line_height_unit_medium ) && '' === $settings->text_line_height_unit_medium && isset( $settings->text_line_height['medium'] ) && '' !== $settings->text_line_height['medium'] ) { ?>
					line-height: <?php echo esc_attr( $settings->text_line_height['medium'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-text {
				<?php if ( isset( $settings->terms_font_size_medium ) && '' !== $settings->terms_font_size_medium ) : ?>
					font-size: <?php echo esc_attr( $settings->terms_font_size_medium ); ?>px;
				<?php endif; ?>

				<?php if ( isset( $settings->terms_line_height_medium ) && '' !== $settings->terms_line_height_medium ) : ?>
					line-height: <?php echo esc_attr( $settings->terms_line_height_medium ); ?>em;
				<?php endif; ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-label {
				<?php if ( isset( $settings->checkbox_font_size_medium ) && '' !== $settings->checkbox_font_size_medium ) : ?>
					font-size: <?php echo esc_attr( $settings->checkbox_font_size_medium ); ?>px;
				<?php endif; ?>

				<?php if ( isset( $settings->checkbox_line_height_medium ) && '' !== $settings->checkbox_line_height_medium ) : ?>
					line-height: <?php echo esc_attr( $settings->checkbox_line_height_medium ); ?>em;
				<?php endif; ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"],
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"] ~ label,
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"],
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"] ~ label {

				<?php if ( 'yes' === $converted || isset( $settings->input_font_size_unit_medium ) && '' !== $settings->input_font_size_unit_medium ) { ?>
					font-size: <?php echo esc_attr( $settings->input_font_size_unit_medium ); ?>px;
				<?php } elseif ( isset( $settings->input_font_size_unit_medium ) && '' === $settings->input_font_size_unit_medium && isset( $settings->input_font_size['medium'] ) && '' !== $settings->input_font_size['medium'] ) { ?>
					font-size: <?php echo esc_attr( $settings->input_font_size['medium'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->input_font_size['medium'] ) && '' === $settings->input_font_size['medium'] && isset( $settings->input_line_height['medium'] ) && '' !== $settings->input_line_height['medium'] && '' === $settings->input_line_height_unit_medium && '' === $settings->input_line_height_unit ) { ?>
							line-height: <?php echo esc_attr( $settings->input_line_height['medium'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->input_line_height_unit_medium ) && '' !== $settings->input_line_height_unit_medium ) { ?>
					line-height: <?php echo esc_attr( $settings->input_line_height_unit_medium ); ?>em;
				<?php } elseif ( isset( $settings->input_line_height_unit_medium ) && '' === $settings->input_line_height_unit_medium && isset( $settings->input_line_height['medium'] ) && '' !== $settings->input_line_height['medium'] ) { ?>
					line-height: <?php echo esc_attr( $settings->input_line_height['medium'] ); ?>px;
				<?php } ?>
			}
		<?php } ?>

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input:focus + label,
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field.open > label {

			<?php if ( ! $version_bb_check ) { ?>
				<?php if ( isset( $settings->input_font_size_unit_medium ) && '' !== $settings->input_font_size_unit_medium ) : ?>
					-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_medium + 10 ); ?>px );
					-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_medium + 10 ); ?>px );
					transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_medium + 10 ); ?>px );
					<?php
				endif;
			} else {
				if ( isset( $settings->input_font_typo_medium['font_size']['length'] ) && '' !== $settings->input_font_typo_medium['font_size']['length'] ) :
					if ( is_numeric( $settings->input_font_typo_medium['font_size']['length'] ) ) {
						?>
						-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_medium['font_size']['length'] + 10 ); ?>px);
						-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_medium['font_size']['length'] + 10 ); ?>px);
						transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_medium['font_size']['length'] + 10 ); ?>px);
						<?php
					}
				endif;
			}
			?>
		}

		<?php if ( 'inline' === $settings->layout && 'small_medium' === $settings->responsive ) : ?>
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-field {
			float: none;
			padding-left: 0;
			padding-right: 0;
			width: 100%;
			margin-bottom: <?php echo ( '' !== $settings->res_spacing ) ? esc_attr( $settings->res_spacing ) : '10'; ?>px;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
			margin: 0;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-error-message {
			right : <?php echo ( $settings->horizontal_padding > 15 ) ? esc_attr( $settings->horizontal_padding ) : '15'; ?>px
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field label {
			left: <?php echo ( ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15' ); ?>px;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-button {
			float: none;
			width: auto;
			padding: 0;
			<?php if ( 'full' === $settings->btn_width ) : ?>
				display: block;
			<?php endif; ?>
		}

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
			display: block;
		}

			<?php if ( 'default' !== $settings->resp_overall_alignment ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form {
				text-align: <?php echo esc_attr( $settings->resp_overall_alignment ); ?>;
			}

				<?php if ( 'left' === $settings->resp_overall_alignment ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
				-webkit-box-pack: start;
				-ms-flex-pack: start;
				justify-content: flex-start;
			}
			<?php elseif ( 'right' === $settings->resp_overall_alignment ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
				-webkit-box-pack: end;
				-ms-flex-pack: end;
				justify-content: flex-end;
			}
			<?php endif; ?>
		<?php endif; ?>

		<?php endif; ?>
	}

	@media ( max-width: <?php echo esc_attr( $global_settings->responsive_breakpoint ); ?>px ) {

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form {
			<?php
			if ( isset( $settings->padding_dimension_top_responsive ) ) {
				echo ( '' !== $settings->padding_dimension_top_responsive ) ? 'padding-top:' . esc_attr( $settings->padding_dimension_top_responsive ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_bottom_responsive ) ) {
				echo ( '' !== $settings->padding_dimension_bottom_responsive ) ? 'padding-bottom:' . esc_attr( $settings->padding_dimension_bottom_responsive ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_left_responsive ) ) {
				echo ( '' !== $settings->padding_dimension_left_responsive ) ? 'padding-left:' . esc_attr( $settings->padding_dimension_left_responsive ) . 'px;' : '';
			}
			if ( isset( $settings->padding_dimension_right_responsive ) ) {
				echo ( '' !== $settings->padding_dimension_right_responsive ) ? 'padding-right:' . esc_attr( $settings->padding_dimension_right_responsive ) . 'px;' : '';
			}
			?>
		}

		<?php if ( ! $version_bb_check ) { ?>
			.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->heading_tag_selection ); ?>.uabb-sf-heading {

				<?php if ( 'yes' === $converted || isset( $settings->heading_font_size_unit_responsive ) && '' !== $settings->heading_font_size_unit_responsive ) { ?>
					font-size: <?php echo esc_attr( $settings->heading_font_size_unit_responsive ); ?>px;
				<?php } elseif ( isset( $settings->heading_font_size_unit_responsive ) && '' === $settings->heading_font_size_unit_medium && isset( $settings->heading_line_height['small'] ) && '' !== $settings->heading_line_height['small'] ) { ?>
					font-size: <?php echo esc_attr( $settings->heading_font_size['small'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->heading_font_size['small'] ) && '' === $settings->heading_font_size['small'] && isset( $settings->heading_line_height['small'] ) && '' !== $settings->heading_line_height['small'] && '' === $settings->heading_line_height_unit_responsive && '' === $settings->heading_line_height_unit_medium && '' === $settings->heading_line_height_unit_responsive ) { ?>
							line-height: <?php echo esc_attr( $settings->heading_line_height['small'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->heading_line_height_unit_responsive ) && '' !== $settings->heading_line_height_unit_responsive ) { ?>
					line-height: <?php echo esc_attr( $settings->heading_line_height_unit_responsive ); ?>em;
				<?php } elseif ( isset( $settings->heading_line_height_unit_responsive ) && '' === $settings->heading_line_height_unit_responsive && isset( $settings->heading_line_height['small'] ) && '' !== $settings->heading_line_height['small'] ) { ?>
					line-height: <?php echo esc_attr( $settings->heading_line_height['small'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> <?php echo esc_attr( $settings->subheading_tag_selection ); ?>.uabb-sf-subheading {

				<?php if ( 'yes' === $converted || isset( $settings->subheading_font_size_unit_responsive ) && '' !== $settings->subheading_font_size_unit_responsive ) { ?>
					font-size: <?php echo esc_attr( $settings->subheading_font_size_unit_responsive ); ?>px;
				<?php } elseif ( isset( $settings->subheading_font_size_unit_responsive ) && '' === $settings->subheading_font_size_unit_responsive && isset( $settings->subheading_font_size['small'] ) && '' !== $settings->subheading_font_size['small'] ) { ?>
					font-size: <?php echo esc_attr( $settings->subheading_font_size['small'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->subheading_font_size['small'] ) && '' === $settings->subheading_font_size['small'] && isset( $settings->subheading_line_height['small'] ) && '' !== $settings->subheading_line_height['small'] && '' === $settings->subheading_line_height_unit_responsive && '' === $settings->subheading_line_height_unit_medium && '' === $settings->subheading_line_height_unit ) { ?>
					line-height: <?php echo esc_attr( $settings->subheading_line_height['small'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->subheading_line_height_unit_responsive ) && '' !== $settings->subheading_line_height_unit_responsive ) { ?>
					line-height: <?php echo esc_attr( $settings->subheading_line_height_unit_responsive ); ?>em;
				<?php } elseif ( isset( $settings->subheading_line_height_unit_responsive ) && '' === $settings->subheading_line_height_unit_responsive && isset( $settings->subheading_line_height['small'] ) && '' !== $settings->subheading_line_height['small'] ) { ?>
					line-height: <?php echo esc_attr( $settings->subheading_line_height['small'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-bottom-text {

				<?php if ( 'yes' === $converted || isset( $settings->text_font_size_unit_responsive ) && '' !== $settings->text_font_size_unit_responsive ) { ?>
					font-size: <?php echo esc_attr( $settings->text_font_size_unit_responsive ); ?>px;
				<?php } elseif ( isset( $settings->text_font_size_unit_responsive ) && '' === $settings->text_font_size_unit_responsive && isset( $settings->text_font_size['small'] ) && '' !== $settings->text_font_size['small'] ) { ?>
					font-size: <?php echo esc_attr( $settings->text_font_size['small'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->text_font_size['small'] ) && '' === $settings->text_font_size['small'] && isset( $settings->text_line_height['small'] ) && '' !== $settings->text_line_height['small'] && '' === $settings->text_line_height_unit_responsive && '' === $settings->text_line_height_unit_medium && '' === $settings->text_line_height_unit ) { ?>
						line-height: <?php echo esc_attr( $settings->text_line_height['small'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->text_line_height_unit_responsive ) && '' !== $settings->text_line_height_unit_responsive ) { ?>
					line-height: <?php echo esc_attr( $settings->text_line_height_unit_responsive ); ?>em;
				<?php } elseif ( isset( $settings->text_line_height_unit_responsive ) && '' === $settings->text_line_height_unit_responsive && isset( $settings->text_line_height['small'] ) && '' !== $settings->text_line_height['small'] ) { ?>
					line-height: <?php echo esc_attr( $settings->text_line_height['small'] ); ?>px;
				<?php } ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-text {
				<?php if ( isset( $settings->terms_font_size_responsive ) && '' !== $settings->terms_font_size_responsive ) : ?>
					font-size: <?php echo esc_attr( $settings->terms_font_size_responsive ); ?>px;
				<?php endif; ?>

				<?php if ( isset( $settings->terms_line_height_responsive ) && '' !== $settings->terms_line_height_responsive ) : ?>
					line-height: <?php echo esc_attr( $settings->terms_line_height_responsive ); ?>em;
				<?php endif; ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form .uabb-terms-label {
				<?php if ( isset( $settings->checkbox_font_size_responsive ) && '' !== $settings->checkbox_font_size_responsive ) : ?>
					font-size: <?php echo esc_attr( $settings->checkbox_font_size_responsive ); ?>px;
				<?php endif; ?>

				<?php if ( isset( $settings->checkbox_line_height_responsive ) && '' !== $settings->checkbox_line_height_responsive ) : ?>
					line-height: <?php echo esc_attr( $settings->checkbox_line_height_responsive ); ?>em;
				<?php endif; ?>
			}

			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"],
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="text"] ~ label,
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"],
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-form-field input[type="email"] ~ label {

				<?php if ( 'yes' === $converted || isset( $settings->input_font_size_unit_responsive ) && '' !== $settings->input_font_size_unit_responsive ) { ?>
					font-size: <?php echo esc_attr( $settings->input_font_size_unit_responsive ); ?>px;
				<?php } elseif ( isset( $settings->input_font_size_unit_responsive ) && '' === $settings->input_font_size_unit_responsive && isset( $settings->input_font_size['small'] ) && '' !== $settings->input_font_size['small'] ) { ?>
					font-size: <?php echo esc_attr( $settings->input_font_size['small'] ); ?>px;
				<?php } ?>

				<?php if ( isset( $settings->input_font_size['small'] ) && '' === $settings->input_font_size['small'] && isset( $settings->input_line_height['small'] ) && '' !== $settings->input_line_height['small'] && '' === $settings->input_line_height_unit_responsive && '' === $settings->input_line_height_unit_medium && '' === $settings->input_line_height_unit ) { ?>
						line-height: <?php echo esc_attr( $settings->input_line_height['small'] ); ?>px;
				<?php } ?>

				<?php if ( 'yes' === $converted || isset( $settings->input_line_height_unit_responsive ) && '' !== $settings->input_line_height_unit_responsive ) { ?>
					line-height: <?php echo esc_attr( $settings->input_line_height_unit_responsive ); ?>em;
				<?php } elseif ( isset( $settings->input_line_height_unit_responsive ) && '' === $settings->input_line_height_unit_responsive && isset( $settings->input_line_height['small'] ) && '' !== $settings->input_line_height['small'] ) { ?>
					line-height: <?php echo esc_attr( $settings->input_line_height['small'] ); ?>px;
				<?php } ?>
			}
		<?php } ?>

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field input:focus + label,
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field.open > label {

			<?php if ( ! $version_bb_check ) { ?>
				<?php if ( ! isset( $settings->input_font_size_unit_responsive ) ) { ?>
					<?php if ( isset( $settings->input_font_size['small'] ) && '' !== $settings->input_font_size['small'] ) : ?>
						-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_size['small'] + 10 ); ?>px);
						-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_size['small'] + 10 ); ?>px);
						transform: translateY(-<?php echo esc_attr( $settings->input_font_size['small'] + 10 ); ?>px);
					<?php endif; ?>
				<?php } else { ?>
					<?php if ( isset( $settings->input_font_size_unit_responsive ) && '' !== $settings->input_font_size_unit_responsive ) : ?>
						-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_responsive + 10 ); ?>px );
						-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_responsive + 10 ); ?>px );
						transform: translateY(-<?php echo esc_attr( $settings->input_font_size_unit_responsive + 10 ); ?>px );
					<?php endif; ?>
				<?php } ?>
				<?php
			} else {
				if ( isset( $settings->input_font_typo_responsive['font_size']['length'] ) && '' !== $settings->input_font_typo_responsive['font_size']['length'] ) :
					if ( is_numeric( $settings->input_font_typo_responsive['font_size']['length'] ) ) {
						?>
						-webkit-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_responsive['font_size']['length'] + 10 ); ?>px);
						-ms-transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_responsive['font_size']['length'] + 10 ); ?>px);
						transform: translateY(-<?php echo esc_attr( $settings->input_font_typo_responsive['font_size']['length'] + 10 ); ?>px);
						<?php
					}
				endif;
			}
			?>
		}

		<?php if ( 'inline' === $settings->layout && 'small' === $settings->responsive ) : ?>

		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-field {
			float: none;
			padding-left: 0;
			padding-right: 0;
			width: 100%;
			margin-bottom: <?php echo ( '' !== $settings->res_spacing ) ? esc_attr( $settings->res_spacing ) : '10'; ?>px;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
			margin: 0;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-error-message {
			right : <?php echo ( $settings->horizontal_padding > 15 ) ? esc_attr( $settings->horizontal_padding ) : '15'; ?>px
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-sf-style-style2 .uabb-form-field label {
			left: <?php echo ( ( '' !== $settings->horizontal_padding ) ? esc_attr( $settings->horizontal_padding ) : '15' ); ?>px;
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-button {
			float: none;
			width: auto;
			padding: 0;
			<?php if ( 'full' === $settings->btn_width ) : ?>
				display: block;
			<?php endif; ?>
		}
		.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
			display: block;
		}
		<?php endif; ?>

		<?php if ( 'default' !== $settings->resp_overall_alignment && ( 'stacked' === $settings->layout || 'small_medium' !== $settings->layout ) ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form {
				text-align: <?php echo esc_attr( $settings->resp_overall_alignment ); ?>;
			}
			<?php if ( 'left' === $settings->resp_overall_alignment ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
				-webkit-box-pack: start;
				-ms-flex-pack: start;
				justify-content: flex-start;
			}
			<?php elseif ( 'right' === $settings->resp_overall_alignment ) : ?>
			.fl-node-<?php echo esc_attr( $id ); ?> .uabb-subscribe-form-inline .uabb-form-wrap {
				-webkit-box-pack: end;
				-ms-flex-pack: end;
				justify-content: flex-end;
			}
			<?php endif; ?>
		<?php endif; ?>
	}
	<?php
}
?>
