<?php
defined( 'ABSPATH' ) || exit;
?>
<?php if ( '' !== $badge_label ) : ?>
<tr>
	<td align="center" style="padding:20px 28px 0;text-align:center;">
		<div style="display:inline-block;padding:8px 14px;background:<?php echo esc_attr( $accent ); ?>22;border-radius:999px;font-size:11px;font-weight:700;color:<?php echo esc_attr( $accent ); ?>;text-transform:uppercase;letter-spacing:0.05em;">
			<?php echo esc_html( $badge_label ); ?>
		</div>
	</td>
</tr>
<?php endif; ?>
<tr>
	<td align="center" style="background:<?php echo esc_attr( $secondary_accent ); ?>;padding:32px 28px;text-align:center;">
		<?php if ( $heading ) : ?>
			<h1 style="margin:0;font-size:26px;line-height:1.25;color:#ffffff;font-weight:800;text-align:center;">
				<?php echo esc_html( $heading ); ?>
			</h1>
		<?php endif; ?>
	</td>
</tr>
<?php if ( $image_url ) : ?>
<tr>
	<td align="center">
		<img src="<?php echo esc_url( $image_url ); ?>" alt="" width="600" style="display:block;width:100%;max-width:600px;border:0;">
	</td>
</tr>
<?php endif; ?>
<tr>
	<td style="padding:32px 32px 36px;text-align:center;">
		<div style="font-size:15px;line-height:1.65;color:#334155;text-align:center;">
			<?php echo wp_kses_post( wpautop( $body ) ); ?>
		</div>
		<?php if ( $cta_label && $cta_url ) : ?>
		<table role="presentation" cellpadding="0" cellspacing="0" align="center" style="margin:26px auto 0;">
			<tr>
				<td align="center" style="border-radius:<?php echo (int) $cta_radius; ?>px;border:2px solid <?php echo esc_attr( $accent ); ?>;">
					<a href="<?php echo esc_url( $cta_url ); ?>" style="display:inline-block;padding:12px 28px;font-size:15px;font-weight:700;color:<?php echo esc_attr( $accent ); ?>;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>
