<?php
defined( 'ABSPATH' ) || exit;
?>
<?php if ( '' !== $badge_label ) : ?>
<tr>
	<td style="padding:0 32px;">
		<div style="margin:24px 0 0;padding:10px 16px;background:#F0FDF4;border-radius:8px;font-size:12px;font-weight:700;color:<?php echo esc_attr( $secondary_accent ); ?>;text-align:left;letter-spacing:0.04em;text-transform:uppercase;">
			<?php echo esc_html( $badge_label ); ?>
		</div>
	</td>
</tr>
<?php endif; ?>
<?php if ( $image_url ) : ?>
<tr>
	<td align="center" style="padding:16px 32px 0;">
		<img src="<?php echo esc_url( $image_url ); ?>" alt="" width="536" style="display:block;width:100%;max-width:536px;border-radius:10px;border:0;">
	</td>
</tr>
<?php endif; ?>
<tr>
	<td style="padding:28px 32px 36px;border-left:4px solid <?php echo esc_attr( $secondary_accent ); ?>;text-align:left;">
		<?php if ( $heading ) : ?>
			<h1 style="margin:0 0 16px;font-size:24px;line-height:1.25;color:#0F172A;font-weight:700;text-align:left;">
				<?php echo esc_html( $heading ); ?>
			</h1>
		<?php endif; ?>
		<div style="font-size:15px;line-height:1.7;color:#475569;text-align:left;">
			<?php echo wp_kses_post( wpautop( $body ) ); ?>
		</div>
		<?php if ( $cta_label && $cta_url ) : ?>
		<table role="presentation" cellpadding="0" cellspacing="0" style="margin:24px 0 0;">
			<tr>
				<td align="left" 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 28px;font-size:14px;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; ?>
	</td>
</tr>
