<?php
/**
 * Email Header
 *
 * @see https://woocommerce.com/document/template-structure/
 */

defined('ABSPATH') || exit;

$site_name = wp_specialchars_decode(get_bloginfo('name'), ENT_QUOTES);
$logo_html = function_exists('get_custom_logo') ? get_custom_logo() : '';
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
  <title><?php echo esc_html($email_heading); ?></title>
</head>
<body style="margin:0;padding:0;background-color:#f6f6f6;">
  <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color:#f6f6f6;">
    <tr>
      <td align="center" style="padding:24px 12px;">
        <table role="presentation" cellspacing="0" cellpadding="0" border="0" width="600" style="width:600px;max-width:100%;background-color:#ffffff;border-radius:12px;overflow:hidden;">
          <tr>
            <td style="padding:28px 32px 16px;background-color:#0e1011;color:#ffffff;">
              <div style="font-family:'DM Sans',Arial,sans-serif;font-size:18px;font-weight:600;line-height:1;">
                <?php if (!empty($logo_html)) : ?>
                  <div style="display:inline-block;vertical-align:middle;">
                    <?php echo wp_kses_post($logo_html); ?>
                  </div>
                <?php else : ?>
                  <?php echo esc_html($site_name); ?>
                <?php endif; ?>
              </div>
              <div style="margin-top:10px;font-family:'DM Sans',Arial,sans-serif;font-size:22px;font-weight:500;line-height:1.3;">
                <?php echo esc_html($email_heading); ?>
              </div>
            </td>
          </tr>
          <tr>
            <td style="padding:32px;font-family:'DM Sans',Arial,sans-serif;color:#0e1011;">
