<?php

/**
 * Label Settings.
 *
 * @since   4.4.0
 * @package Extra Product Options for WooCommerce
 *
 * Available Variables (from element-form.php):
 * @var array  $epofw_field_data        The field/element data array.
 * @var string $epofw_field_type        The field type (text, select, etc.).
 * @var array  $epofw_label_data        The label settings array.
 * @var string $epofw_label_title       The label title text.
 * @var string $epofw_label_class       The label CSS class.
 * @var string $epofw_label_title_type  The label title HTML tag type.
 * @var string $epofw_label_title_color The label title color.
 * @var string $epofw_label_subtitle    The label subtitle text.
 * @var string $epofw_field_name_prefix The form field name prefix.
 * @var string $epofw_field_id          The field ID/key.
 * @var bool   $epofw_remove_fields_for_heading_paragraph Whether to show all fields.
 * @var string $epofw_label_title_position The Label position.
 */
if ( !defined( 'ABSPATH' ) ) {
    exit;
}
$epofw_example_text = esc_html__( 'Example:', 'extra-product-options-for-woocommerce' );
// Check if this is a premium field type and user is not premium.
$epofw_is_premium_field_type = epofw_is_premium_field_type( $epofw_field_type );
$epofw_is_premium_user = false;
$epofw_show_premium_preview = $epofw_is_premium_field_type && !$epofw_is_premium_user;
// Get premium field data for disabled state when showing premium field types to free users.
$epofw_prem_data_ls = ( $epofw_show_premium_preview ? epofw_get_premium_field_data() : array(
    'class'      => '',
    'badge'      => '',
    'disabled'   => '',
    'is_premium' => true,
) );
?>
<div class="epofw-tab-content" data-tab="label-settings">
<?php 
// For new fields, default to empty value which means "-- Use Global --".
// The actual default (span) will be applied via global settings.
$epofw_label_title_type = ( isset( $epofw_label_title_type ) ? $epofw_label_title_type : '' );
$epofw_label_subtitle_type = ( isset( $epofw_label_subtitle_type ) ? $epofw_label_subtitle_type : '' );
// For heading and paragraph fields, only show Label Class.
if ( $epofw_remove_fields_for_heading_paragraph ) {
    ?>
	<?php 
    // Premium helper variables.
    $epofw_is_premium_user = false;
    $epofw_disabled_class = ( !$epofw_is_premium_user ? ' epofw-premium-field-disabled' : '' );
    $epofw_pro_badge = ( !$epofw_is_premium_user ? '<span class="epofw-pro-badge-inline">' . esc_html__( 'PRO', 'extra-product-options-for-woocommerce' ) . '</span>' : '' );
    $epofw_disabled_attr = ( !$epofw_is_premium_user ? ' disabled' : '' );
    ?>
		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_prem_data_ls['class'] );
    ?>">
			<div class="epofw-field-label">
				<label for="label_title"><?php 
    esc_html_e( 'Label Title', 'extra-product-options-for-woocommerce' );
    ?> <span class="epofw-required">*</span><?php 
    echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
				<?php 
    esc_html_e( 'Enter the main label text that will be displayed with this field on the frontend. You can configure the label position using the "Title Position" setting below.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<input type="text" 
				<?php 
    if ( !$epofw_is_premium_field_type ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][title]"';
    } else {
    }
    ?>
				id="label_title" value="<?php 
    echo esc_attr( $epofw_label_title );
    ?>" class="epofw-form-control" required="required"<?php 
    echo esc_attr( $epofw_prem_data_ls['disabled'] );
    ?>>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_prem_data_ls['class'] );
    ?>">
			<div class="epofw-field-label">
				<label for="label_title_type"><?php 
    esc_html_e( 'Title Type', 'extra-product-options-for-woocommerce' );
    echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
				<?php 
    esc_html_e( 'Choose whether to display the title as a regular label or as a heading element.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<select
				<?php 
    if ( !$epofw_is_premium_field_type ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][title_type]"';
    } elseif ( epofw_fs()->can_use_premium_code__premium_only() ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][title_type]"';
    }
    ?>
					id="label_title_type" class="epofw-form-control epofw-label-code-example"<?php 
    echo esc_attr( $epofw_prem_data_ls['disabled'] );
    ?>>
					<?php 
    // Include "Use Global" option for field-level settings.
    $epofw_heading_type_options = epofw_field_heading_type_options_data( true );
    foreach ( $epofw_heading_type_options as $epofw_key => $epofw_value ) {
        ?>
						<option value="<?php 
        echo esc_attr( $epofw_key );
        ?>" <?php 
        selected( $epofw_label_title_type, $epofw_key );
        ?>><?php 
        echo esc_html( $epofw_value );
        ?></option>
						<?php 
    }
    ?>
				</select>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_disabled_class );
    ?>">
			<div class="epofw-field-label">
				<label for="label_title_position"><?php 
    esc_html_e( 'Title Position', 'extra-product-options-for-woocommerce' );
    echo wp_kses( $epofw_pro_badge, epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
					<?php 
    esc_html_e( 'Choose the position for the main label title text.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<?php 
    // Include "Use Global" option for field-level settings.
    $epofw_label_title_position_options = epofw_field_title_position_data( true );
    ?>
				<select
				<?php 
    if ( !$epofw_is_premium_field_type ) {
    } else {
    }
    ?>
				id="label_title_position" class="epofw-form-control"<?php 
    echo esc_attr( $epofw_disabled_attr );
    ?>>
				<?php 
    foreach ( $epofw_label_title_position_options as $epofw_key => $epofw_value ) {
        ?>
						<option value="<?php 
        echo esc_attr( $epofw_key );
        ?>" <?php 
        selected( $epofw_label_title_position, $epofw_key );
        ?>><?php 
        echo esc_html( $epofw_value );
        ?></option>
						<?php 
    }
    ?>
				</select>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_disabled_class );
    ?>">
			<div class="epofw-field-label">
				<label for="label_title_color"><?php 
    esc_html_e( 'Title Color', 'extra-product-options-for-woocommerce' );
    echo wp_kses( $epofw_pro_badge, epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
					<?php 
    esc_html_e( 'Choose the color for the main label title text.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<input type="text" class="epofw_colorpicker"
				<?php 
    if ( !$epofw_is_premium_field_type ) {
    } else {
    }
    ?>
				id="label_title_color" value="<?php 
    echo esc_attr( $epofw_label_title_color );
    ?>"<?php 
    echo esc_attr( $epofw_disabled_attr );
    ?>>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_prem_data_ls['class'] );
    ?>">
			<div class="epofw-field-label">
				<label for="label_subtitle"><?php 
    esc_html_e( 'Subtitle', 'extra-product-options-for-woocommerce' );
    echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
				<?php 
    esc_html_e( 'Enter additional descriptive text that will appear below the main label.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<input type="text" 
				<?php 
    if ( !$epofw_is_premium_field_type ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][subtitle]"';
    } else {
    }
    ?>
				id="label_subtitle" value="<?php 
    echo esc_attr( $epofw_label_subtitle );
    ?>" class="epofw-form-control"<?php 
    echo esc_attr( $epofw_prem_data_ls['disabled'] );
    ?>>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_prem_data_ls['class'] );
    ?>">
			<div class="epofw-field-label">
				<label for="label_subtitle_type"><?php 
    esc_html_e( 'Subtitle Type', 'extra-product-options-for-woocommerce' );
    echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
				<?php 
    esc_html_e( 'Choose whether to display the subtitle as a regular label or as a heading element.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<select
				<?php 
    if ( !$epofw_is_premium_field_type ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][subtitle_type]"';
    } elseif ( epofw_fs()->can_use_premium_code__premium_only() ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][subtitle_type]"';
    }
    ?>
				id="label_subtitle_type" class="epofw-form-control epofw-subtitle-code-example"<?php 
    echo esc_attr( $epofw_prem_data_ls['disabled'] );
    ?>>
				<?php 
    // Include "Use Global" option for field-level settings.
    $epofw_heading_type_options = epofw_field_heading_type_options_data( true );
    foreach ( $epofw_heading_type_options as $epofw_key => $epofw_value ) {
        ?>
						<option value="<?php 
        echo esc_attr( $epofw_key );
        ?>" <?php 
        selected( $epofw_label_subtitle_type, $epofw_key );
        ?>><?php 
        echo esc_html( $epofw_value );
        ?></option>
						<?php 
    }
    ?>
				</select>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_prem_data_ls['class'] );
    ?>">
			<div class="epofw-field-label">
				<label for="label_subtitle_class"><?php 
    esc_html_e( 'Subtitle Class', 'extra-product-options-for-woocommerce' );
    echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
					<?php 
    printf( 
        /* translators: %s: example text */
        esc_html__( 'Enter custom CSS classes for styling the subtitle text. %s', 'extra-product-options-for-woocommerce' ),
        '<br><strong>' . esc_html( $epofw_example_text ) . '</strong><code>&lt;' . esc_attr( $epofw_label_subtitle_type ) . ' class="' . esc_attr( $epofw_label_subtitle_class ) . '"&gt;</code>'
     );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<input type="text" 
				<?php 
    if ( !$epofw_is_premium_field_type ) {
        echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][subtitle_class]"';
    } else {
    }
    ?>
				id="label_subtitle_class" value="<?php 
    echo esc_attr( $epofw_label_subtitle_class );
    ?>" class="epofw-form-control epofw-dynamic-code-example"<?php 
    echo esc_attr( $epofw_prem_data_ls['disabled'] );
    ?>>
			</div>
		</div>

		<div class="epofw-form-group<?php 
    echo esc_attr( $epofw_disabled_class );
    ?>">
			<div class="epofw-field-label">
				<label for="label_subtitle_color"><?php 
    esc_html_e( 'Subtitle Color', 'extra-product-options-for-woocommerce' );
    echo wp_kses( $epofw_pro_badge, epofw_get_badge_allowed_html() );
    ?></label>
				<div class="epofw-field-description">
				<?php 
    esc_html_e( 'Choose the color for the subtitle text.', 'extra-product-options-for-woocommerce' );
    ?>
				</div>
			</div>
			<div class="epofw-field-input">
				<input type="text" class="epofw_colorpicker"
				<?php 
    if ( !$epofw_is_premium_field_type ) {
    } else {
    }
    ?>
				id="label_subtitle_color" value="<?php 
    echo esc_attr( $epofw_label_subtitle_color );
    ?>"<?php 
    echo esc_attr( $epofw_disabled_attr );
    ?>>
			</div>
		</div>
		<?php 
}
?>

	<div class="epofw-form-group<?php 
echo esc_attr( $epofw_prem_data_ls['class'] );
?>">
		<div class="epofw-field-label">
			<label for="label_class"><?php 
esc_html_e( 'Label Class', 'extra-product-options-for-woocommerce' );
echo wp_kses( ( $epofw_show_premium_preview ? $epofw_prem_data_ls['badge'] : '' ), epofw_get_badge_allowed_html() );
?></label>
			<div class="epofw-field-description">
				<?php 
$epofw_display_type = ( $epofw_remove_fields_for_heading_paragraph ? $epofw_label_title_type : 'label' );
printf( 
    /* translators: %s: example text */
    esc_html__( 'Enter custom CSS classes for styling the label. Separate multiple classes with spaces. %s', 'extra-product-options-for-woocommerce' ),
    '<br><strong>' . esc_html( $epofw_example_text ) . '</strong><code>&lt;' . esc_attr( $epofw_display_type ) . ' class="' . esc_attr( $epofw_label_class ) . '"&gt;</code>'
 );
?>
			</div>
		</div>
		<div class="epofw-field-input">
			<input type="text" 
			<?php 
if ( !$epofw_is_premium_field_type ) {
    echo 'name="' . esc_attr( $epofw_field_name_prefix ) . '[label][class]"';
} else {
}
?>
			id="label_class" value="<?php 
echo esc_attr( $epofw_label_class );
?>" class="epofw-form-control epofw-dynamic-code-example"<?php 
echo esc_attr( $epofw_prem_data_ls['disabled'] );
?>>
		</div>
	</div>

	<?php 
// Premium helper variables (ensure they exist outside the previous if block).
if ( !isset( $epofw_is_premium_user ) ) {
    $epofw_is_premium_user = false;
}
// Always initialize these variables based on premium status.
$epofw_disabled_class = ( !$epofw_is_premium_user ? ' epofw-premium-field-disabled' : '' );
$epofw_pro_badge = ( !$epofw_is_premium_user ? '<span class="epofw-pro-badge-inline">' . esc_html__( 'PRO', 'extra-product-options-for-woocommerce' ) . '</span>' : '' );
$epofw_disabled_attr = ( !$epofw_is_premium_user ? ' disabled' : '' );
// Load label styling settings.
$epofw_label_styling_settings = epofw_check_array_key_exists( 'label_styling', $epofw_label_data );
if ( empty( $epofw_label_styling_settings ) || !is_array( $epofw_label_styling_settings ) ) {
    $epofw_label_styling_settings = array();
}
$epofw_label_styling_enabled = epofw_check_array_key_exists( 'enabled', $epofw_label_styling_settings );
$epofw_label_styling_enabled = ( 'on' === $epofw_label_styling_enabled ? 'on' : '' );
?>

	<!-- Enable/Disable Toggle for Label Styling -->
	<div class="epofw-form-group<?php 
echo esc_attr( $epofw_disabled_class );
?>">
		<div class="epofw-field-label">
			<label for="label_styling_enabled"><?php 
esc_html_e( 'Enable Label Styling', 'extra-product-options-for-woocommerce' );
echo wp_kses( $epofw_pro_badge, epofw_get_badge_allowed_html() );
?></label>
			<div class="epofw-field-description">
				<?php 
esc_html_e( 'Enable this to apply custom typography and text styling to the label. If disabled, the label will use default theme styles.', 'extra-product-options-for-woocommerce' );
?>
			</div>
		</div>
		<div class="epofw-field-input">
			<input type="checkbox"
			<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
			id="label_styling_enabled" value="on" <?php 
checked( $epofw_label_styling_enabled, 'on' );
?> class="epofw-has-sub" data-nextfe="label_styling_content"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
			<label for="label_styling_enabled" class="toggle-switch"></label>
		</div>
	</div>

	<?php 
// Typography settings.
$epofw_label_font_size = epofw_check_array_key_exists( 'font_size', $epofw_label_styling_settings );
$epofw_label_font_weight = epofw_check_array_key_exists( 'font_weight', $epofw_label_styling_settings );
$epofw_label_font_family = epofw_check_array_key_exists( 'font_family', $epofw_label_styling_settings );
$epofw_label_text_align = epofw_check_array_key_exists( 'text_align', $epofw_label_styling_settings );
$epofw_label_text_transform = epofw_check_array_key_exists( 'text_transform', $epofw_label_styling_settings );
$epofw_label_letter_spacing = epofw_check_array_key_exists( 'letter_spacing', $epofw_label_styling_settings );
$epofw_label_line_height = epofw_check_array_key_exists( 'line_height', $epofw_label_styling_settings );
$epofw_label_text_shadow = epofw_check_array_key_exists( 'text_shadow', $epofw_label_styling_settings );
$epofw_label_custom_css = epofw_check_array_key_exists( 'custom_css', $epofw_label_styling_settings );
?>

	<!-- Label Styling Settings Content -->
	<div id="label_styling_content" class="<?php 
echo ( !$epofw_is_premium_user ? 'epofw-premium-field-disabled' : '' );
?>" style="display: <?php 
echo ( 'on' === $epofw_label_styling_enabled || !$epofw_is_premium_user ? 'block' : 'none' );
?>;">
	<div class="epofw-form-group epofw-form-typography-group">
		<div class="epofw-field-label">
			<label><?php 
esc_html_e( 'Typography', 'extra-product-options-for-woocommerce' );
?></label>
			<div class="epofw-field-description">
				<?php 
esc_html_e( 'Configure typography settings for the label text.', 'extra-product-options-for-woocommerce' );
?>
			</div>
		</div>
		<div class="epofw-field-input">
			<div class="epofw-typography-inputs">
				<div class="epofw-typography-input">
					<label for="label_font_size"><?php 
esc_html_e( 'Font Size (px)', 'extra-product-options-for-woocommerce' );
?></label>
					<input type="number"
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_font_size" value="<?php 
echo esc_attr( $epofw_label_font_size );
?>" placeholder="14" min="0" step="1"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
				</div>
				<div class="epofw-typography-input">
					<label for="label_font_weight"><?php 
esc_html_e( 'Font Weight', 'extra-product-options-for-woocommerce' );
?></label>
					<select
						<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
						id="label_font_weight" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
						<option value=""><?php 
esc_html_e( '-- Use Global --', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="100" <?php 
selected( $epofw_label_font_weight, '100' );
?>>100</option>
						<option value="200" <?php 
selected( $epofw_label_font_weight, '200' );
?>>200</option>
						<option value="300" <?php 
selected( $epofw_label_font_weight, '300' );
?>>300</option>
						<option value="400" <?php 
selected( $epofw_label_font_weight, '400' );
?>>400 (Normal)</option>
						<option value="500" <?php 
selected( $epofw_label_font_weight, '500' );
?>>500</option>
						<option value="600" <?php 
selected( $epofw_label_font_weight, '600' );
?>>600</option>
						<option value="700" <?php 
selected( $epofw_label_font_weight, '700' );
?>>700 (Bold)</option>
						<option value="800" <?php 
selected( $epofw_label_font_weight, '800' );
?>>800</option>
						<option value="900" <?php 
selected( $epofw_label_font_weight, '900' );
?>>900</option>
					</select>
				</div>
				<div class="epofw-typography-input">
					<label for="label_font_family"><?php 
esc_html_e( 'Font Family', 'extra-product-options-for-woocommerce' );
?></label>
					<input type="text" 
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_font_family" value="<?php 
echo esc_attr( $epofw_label_font_family );
?>" placeholder="Arial, sans-serif" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
				</div>
				<div class="epofw-typography-input">
					<label for="label_text_align"><?php 
esc_html_e( 'Text Align', 'extra-product-options-for-woocommerce' );
?></label>
					<select 
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_text_align" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
						<option value=""><?php 
esc_html_e( '-- Use Global --', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="left" <?php 
selected( $epofw_label_text_align, 'left' );
?>><?php 
esc_html_e( 'Left', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="center" <?php 
selected( $epofw_label_text_align, 'center' );
?>><?php 
esc_html_e( 'Center', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="right" <?php 
selected( $epofw_label_text_align, 'right' );
?>><?php 
esc_html_e( 'Right', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="justify" <?php 
selected( $epofw_label_text_align, 'justify' );
?>><?php 
esc_html_e( 'Justify', 'extra-product-options-for-woocommerce' );
?></option>
					</select>
				</div>
			</div>
			<div class="epofw-typography-inputs">
				<div class="epofw-typography-input">
					<label for="label_text_transform"><?php 
esc_html_e( 'Text Transform', 'extra-product-options-for-woocommerce' );
?></label>
					<select 
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_text_transform" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
						<option value=""><?php 
esc_html_e( '-- Use Global --', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="uppercase" <?php 
selected( $epofw_label_text_transform, 'uppercase' );
?>><?php 
esc_html_e( 'Uppercase', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="lowercase" <?php 
selected( $epofw_label_text_transform, 'lowercase' );
?>><?php 
esc_html_e( 'Lowercase', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="capitalize" <?php 
selected( $epofw_label_text_transform, 'capitalize' );
?>><?php 
esc_html_e( 'Capitalize', 'extra-product-options-for-woocommerce' );
?></option>
						<option value="none" <?php 
selected( $epofw_label_text_transform, 'none' );
?>><?php 
esc_html_e( 'None', 'extra-product-options-for-woocommerce' );
?></option>
					</select>
				</div>
				<div class="epofw-typography-input">
					<label for="label_letter_spacing"><?php 
esc_html_e( 'Letter Spacing (px)', 'extra-product-options-for-woocommerce' );
?></label>
					<input type="number"
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_letter_spacing" value="<?php 
echo esc_attr( $epofw_label_letter_spacing );
?>" placeholder="0" step="0.1" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
				</div>
				<div class="epofw-typography-input">
					<label for="label_line_height"><?php 
esc_html_e( 'Line Height', 'extra-product-options-for-woocommerce' );
?></label>
					<input type="number"
					<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
					id="label_line_height" value="<?php 
echo esc_attr( $epofw_label_line_height );
?>" placeholder="1.5" step="0.1" min="0" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
				</div>
			</div>
		</div>
	</div>

	<!-- Text Shadow -->
	<div class="epofw-form-group">
		<div class="epofw-field-label">
			<label for="label_text_shadow"><?php 
esc_html_e( 'Text Shadow', 'extra-product-options-for-woocommerce' );
?></label>
			<div class="epofw-field-description">
				<?php 
esc_html_e( 'Enter text shadow CSS value (e.g., "1px 1px 2px rgba(0,0,0,0.5)").', 'extra-product-options-for-woocommerce' );
?>
			</div>
		</div>
		<div class="epofw-field-input">
			<input type="text"
			<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
			id="label_text_shadow" value="<?php 
echo esc_attr( $epofw_label_text_shadow );
?>" placeholder="1px 1px 2px rgba(0,0,0,0.5)" class="epofw-form-control"<?php 
echo esc_attr( $epofw_disabled_attr );
?>>
		</div>
	</div>

	<div class="epofw-form-group">
		<div class="epofw-field-label">
			<label for="label_custom_css"><?php 
esc_html_e( 'Custom CSS', 'extra-product-options-for-woocommerce' );
?></label>
			<div class="epofw-field-description">
				<?php 
esc_html_e( 'Add custom CSS styles for this label. These styles will be scoped to this label only. Use this for advanced styling that cannot be achieved through the standard settings.', 'extra-product-options-for-woocommerce' );
?>
			</div>
		</div>
		<div class="epofw-field-input">
			<textarea
			<?php 
if ( !$epofw_is_premium_field_type ) {
} else {
}
?>
			id="label_custom_css" rows="6" class="epofw-form-control" placeholder="label { /* Your CSS here */ }"<?php 
echo esc_attr( $epofw_disabled_attr );
?>><?php 
echo esc_textarea( $epofw_label_custom_css );
?></textarea>
		</div>
	</div>
	</div><!-- End label_styling_content -->
</div>
