<?php
defined( 'ABSPATH' ) || exit;
?>
<tr>
	<td style="padding:28px 24px;">
		<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="background:#FFFBEB;border:2px dashed <?php echo esc_attr( $secondary_accent ); ?>;border-radius:12px;">
			<tr>
				<td style="padding:28px 24px;text-align:center;">
					<?php if ( '' !== $badge_label ) : ?>
						<div style="margin:0 auto 16px;display:inline-block;padding:8px 14px;background:<?php echo esc_attr( $secondary_accent ); ?>22;border-radius:999px;font-size:11px;font-weight:700;color:<?php echo esc_attr( $secondary_accent ); ?>;text-transform:uppercase;letter-spacing:0.05em;">
							<?php echo esc_html( $badge_label ); ?>
						</div>
					<?php endif; ?>
					<?php if ( $heading ) : ?>
						<h1 style="margin:0 0 14px;font-size:22px;color:<?php echo esc_attr( $secondary_accent ); ?>;font-weight:800;text-align:center;">
							<?php echo esc_html( $heading ); ?>
						</h1>
					<?php endif; ?>
					<div style="font-size:15px;line-height:1.65;color:#78350F;text-align:center;">
						<?php echo wp_kses_post( wpautop( $body ) ); ?>
					</div>
					<?php if ( $discount ) : ?>
						<div style="margin:20px auto;padding:16px;background:#FEF3C7;border-radius:8px;font-size:15px;color:#92400E;max-width:420px;">
							<?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:22px 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:13px 30px;font-size:15px;font-weight:700;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; ?>
				</td>
			</tr>
		</table>
	</td>
</tr>
