<?php
/**
 * Email wrapper template.
 *
 * This template can be overridden by copying it to yourtheme/stripe-sub-manager/emails/email-wrapper.php.
 *
 * @var string $body      The email body content.
 * @var string $site_name The name of the site.
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$site_name = isset( $site_name ) ? $site_name : get_bloginfo( 'name' );
$body      = isset( $body ) ? $body : '';
?>
<!DOCTYPE html>
<html lang="<?php echo esc_attr( get_bloginfo( 'language' ) ); ?>" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>" />
    <title><?php echo esc_html( $site_name ); ?></title>
    <style>
        .strp-sub-email-wrapper {
            font-family: sans-serif;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 24px;
        }
        .strp-sub-email-footer {
            margin-top: 32px;
            font-size: 12px;
            color: #999;
        }
    </style>
</head>
<body>
    <div class="strp-sub-email-wrapper">
        <?php echo wp_kses_post( $body ); ?>
        <p class="strp-sub-email-footer"><?php echo esc_html( $site_name ); ?></p>
    </div>
</body>
</html>
