<?php
defined( 'ABSPATH' ) || exit;
?>
<tr>
	<td align="center" style="padding:32px 28px;text-align:center;">
		<?php if ( $heading ) : ?>
			<h1 style="margin:0 0 16px;font-size:24px;line-height:1.3;color:#0F172A;font-weight:700;text-align:center;">
				<?php echo esc_html( $heading ); ?>
			</h1>
		<?php endif; ?>
		<div style="font-size:15px;line-height:1.65;color:#475569;text-align:center;">
			<?php echo wp_kses_post( wpautop( $body ) ); ?>
		</div>
		<?php if ( $discount ) : ?>
			<div style="margin:22px auto;padding:18px;background:#FEF3C7;border-radius:10px;text-align:center;font-size:16px;font-weight:700;color:#92400E;max-width:440px;">
				<?php echo wp_kses_post( $discount ); ?>
			</div>
		<?php endif; ?>
		<?php if ( $cta_label && $cta_url ) : ?>
		<table role="presentation" cellpadding="0" cellspacing="0" align="center" style="margin:24px auto 0;">
			<tr>
				<td align="center" style="border-radius:<?php echo (int) $cta_radius; ?>px;background:<?php echo esc_attr( $accent ); ?>;">
					<a href="<?php echo esc_url( $cta_url ); ?>" style="display:inline-block;padding:14px 32px;font-size:15px;font-weight:600;color:#ffffff;text-decoration:none;border-radius:<?php echo (int) $cta_radius; ?>px;">
						<?php echo esc_html( $cta_label ); ?>
					</a>
				</td>
			</tr>
		</table>
		<?php endif; ?>
		<?php if ( ! empty( $intro_line ) ) : ?>
			<div style="margin:18px auto 0;max-width:440px;font-size:11px;line-height:1.5;color:<?php echo esc_attr( $footer_color ); ?>;text-align:center;">
				<?php echo esc_html( $intro_line ); ?>
			</div>
		<?php endif; ?>
	</td>
</tr>
