<?php
/**
 * Holiday Gift Card email template
 *
 * This template can be overridden by copying it to yourtheme/unlock-addons-for-elementor/emails/customer-gift-card-holiday.php.
 *
 * @package Unlock_Addons_For_Elementor
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

?>

<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>

<div style="text-align: center; padding: 20px; background-color: #eaf6ff; border: 1px solid #c1d9e9; font-family: Arial, sans-serif;">
    <h1 style="color: #2c3e50;"><?php esc_html_e( 'Happy Holidays!', 'unlock-addons-for-elementor' ); ?></h1>
    <p style="font-size: 16px;"><?php printf( esc_html__( 'Hi %s,', 'unlock-addons-for-elementor' ), esc_html( $recipient_name ) ); ?></p>
    <p style="font-size: 16px;"><?php printf( esc_html__( 'To celebrate the season, %s has sent you a gift card worth %s!', 'unlock-addons-for-elementor' ), esc_html( $purchaser_name ), wp_kses_post( $amount ) ); ?></p>

    <?php if ( ! empty( $message ) ) : ?>
        <div style="margin: 20px auto; padding: 15px; background-color: #fff; border-left: 4px solid #3498db; text-align: left;">
            <p style="margin: 0; font-style: italic;"><?php echo wp_kses_post( wpautop( wptexturize( $message ) ) ); ?></p>
        </div>
    <?php endif; ?>

    <p style="font-size: 16px;"><?php esc_html_e( 'Here is your gift card code:', 'unlock-addons-for-elementor' ); ?></p>

    <div style="margin: 20px 0; padding: 15px; border: 2px dashed #3498db; background-color: #fff; text-align: center;">
        <h2 style="margin: 0; font-size: 28px; color: #3498db; letter-spacing: 2px;"><?php echo esc_html( $coupon_code ); ?></h2>
    </div>
</div>

<?php do_action( 'woocommerce_email_footer', $email ); ?>
