<?php
defined( 'ABSPATH' ) || exit;
/**
 * Email intro block.
 *
 * Expected variables:
 * - Optional: $bookaro_intro_html (string, trusted/sanitized HTML)
 * - Optional: $bookaro_intro_fallback (string plain text fallback)
 */
$bookaro_intro_html = isset( $bookaro_intro_html ) && is_string( $bookaro_intro_html ) ? trim( $bookaro_intro_html ) : '';
$bookaro_intro_fallback = isset( $bookaro_intro_fallback ) && is_string( $bookaro_intro_fallback ) ? trim( $bookaro_intro_fallback ) : '';
if ( $bookaro_intro_html !== '' ) : ?>
    <div class="bookaro-email-intro"><?php echo wp_kses_post( $bookaro_intro_html ); ?></div>
<?php elseif ( $bookaro_intro_fallback !== '' ) : ?>
    <p><?php echo esc_html( $bookaro_intro_fallback ); ?></p>
<?php endif; ?>
