<?php
/**
 * Birthday Gift Card email template
 *
 * This template can be overridden by copying it to yourtheme/unlock-addons-for-elementor/emails/customer-gift-card-birthday.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: #fdfae6; border: 1px solid #f0e6c2;">
    <h1 style="color: #d9534f;"><?php esc_html_e( 'Happy Birthday!', '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__( '%s has sent you a gift card worth %s to celebrate your special day!', '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 #d9534f; 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( 'Use the code below to treat yourself!', 'unlock-addons-for-elementor' ); ?></p>

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

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