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

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

?>

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

<p><?php printf( esc_html__( 'Hi %s,', 'unlock-addons-for-elementor' ), esc_html( $recipient_name ) ); ?></p>

<p><?php printf( esc_html__( 'You have received a gift card worth %s from %s!', 'unlock-addons-for-elementor' ), wp_kses_post( $amount ), esc_html( $purchaser_name ) ); ?></p>

<?php if ( ! empty( $message ) ) : ?>
	<blockquote><?php echo wp_kses_post( wpautop( wptexturize( $message ) ) ); ?></blockquote>
<?php endif; ?>

<p><?php esc_html_e( 'To redeem your gift card, use the following coupon code at checkout:', 'unlock-addons-for-elementor' ); ?></p>

<div style="margin: 20px 0; padding: 10px; border: 1px solid #e0e0e0; background-color: #f9f9f9; text-align: center;">
	<h2 style="margin: 0; font-size: 24px; color: #007cba;"><?php echo esc_html( $coupon_code ); ?></h2>
</div>

<p><?php esc_html_e( 'Thank you!', 'unlock-addons-for-elementor' ); ?></p>

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