{% assign buyer_email_rtl = false %}{% if locale_direction == 'rtl' %}{% assign buyer_email_rtl = true %}{% endif %}{% if refund_line_items.size == item_count %}
  {% capture email_title %}Your order has been refunded{% endcapture %}
{% elsif refund_line_items.size == 0 %}
  {% capture email_title %}You have received a refund{% endcapture %}
{% else %}
  {% capture email_title %}Some items in your order have been refunded{% endcapture %}
{% endif %}
{% capture email_body %}Total amount refunded: <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ amount | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>. It may take up to 10 days for this refund to appear in your account.{% endcapture %}

<!DOCTYPE html>
<html lang="en"{% if buyer_email_rtl %} dir="rtl"{% endif %}>
  <head>
  <title>{{ email_title }}</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="width=device-width">
  <link rel="stylesheet" type="text/css" href="/assets/notifications/styles.css">
  <style>
    .button__cell { background: {{ shop.email_accent_color }}; }
    .actions-buttons .button__cell--primary { background-color: {{ shop.email_accent_color }}; }
    a, a:hover, a:active, a:visited { color: {{ shop.email_accent_color }}; }
  
  /* bc-mobile: tools/fix_mobile.py */
  @media (max-width: 480px) {
    .bc-m13 { font-size: 13px !important; }
    .bc-btn-long { letter-spacing: .06em !important; padding-left: 12px !important; padding-right: 12px !important; }
  }

  /* bc-mobile: tools/fix_mobile.py */
  @media (max-width: 480px) {
    .bc-m13 { font-size: 13px !important; }
    .bc-lh { line-height: 1.45 !important; }
    .bc-btn-long { letter-spacing: .06em !important; padding-left: 12px !important; padding-right: 12px !important; }
  }
</style>
  <style>
    /* Balance Coffee brand layer. Loads after Shopify's defaults and overrides them. */
    @font-face { font-family: 'Canela'; src: url('https://google-bundle.pages.dev/advertorial-fonts/Canela-Regular-Web.woff2') format('woff2'); font-weight: 400; font-display: swap; }
    @font-face { font-family: 'Area Normal'; src: url('https://google-bundle.pages.dev/advertorial-fonts/AreaNormal-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
    @font-face { font-family: 'Area Normal'; src: url('https://google-bundle.pages.dev/advertorial-fonts/AreaNormal-Extrabold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
    body, td, p, a, span, h3, h4 { font-family: 'Area Normal','Helvetica Neue',Helvetica,Arial,sans-serif; }
    body { background: #F5F5F7; }
    .row { width: 100%; }
    .container { width: 520px; }
    .header { margin: 0; }
    .header__cell { background: #D1E0D7; padding: 28px 0; }
    .shop-name__cell { text-align: center; width: 100%; }
    .shop-name__cell img { display: inline-block; }
    .shop-name__text a { font-family: Canela,Georgia,'Times New Roman',serif; color: #161F28; text-decoration: none; }
    .order-po-number__container { margin: 0 0 10px; }
    .order-number__cell, .po-number__cell { text-align: left; padding: 0; }
    .customer-info__item-content, .customer-info__item-content p { font-size: 14px; line-height: 1.55; color: #3E4750; }
    .order-number__text, .po-number__text { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #516E5A; }
    .content__cell { padding: 40px 0 32px; }
    h2 { font-family: Canela,Georgia,'Times New Roman',serif; font-weight: 400; font-size: 34px; line-height: 1.15; color: #161F28; margin: 0 0 12px; }
    p { color: #3E4750; font-size: 15px; line-height: 1.6; }
    a, a:hover, a:active, a:visited { color: #516E5A; }
    .button__cell, .actions-buttons .button__cell--primary { background: #516E5A; border-radius: 40px; padding: 17px 28px; }
    .button__text { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #ffffff !important; }
    .link { color: #516E5A; font-size: 14px; }
    .section__cell { padding: 32px 0 16px; border-top: 1px solid #DDE3DE; }
    h3 { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #516E5A; margin: 0 0 20px; }
    .order-list__item__cell { padding: 16px 0 0; }
    .order-list__product-image { border: 0; border-radius: 8px; background: #EDF0ED; }
    .order-list__no-image-cell { background: #EDF0ED; border: 0; }
    .order-list__item-title { font-size: 15px; font-weight: 800; color: #161F28; }
    .order-list__item-variant, .order-list__item-property, .order-list__item-refunded, .small { font-size: 13px; color: #6B747C; }
    .order-list__item-price { font-size: 15px; font-weight: 800; color: #161F28; }
    .container table { border-spacing: 0; }
    td { padding: 0; }
    .subtotal-lines { border-top: 1px solid #DDE3DE; }
    .subtotal-line__title p, .subtotal-line__title span { font-size: 14px; color: #3E4750; }
    .subtotal-line__value strong { font-size: 14px; color: #161F28; }
    .subtotal-table--total { border-top: 1px solid #161F28; margin-top: 14px; }
    .subtotal-table--total td { padding: 16px 0 0; }
    .subtotal-table--total .subtotal-line__title p { font-size: 15px; font-weight: 800; color: #161F28; }
    .subtotal-table--total .subtotal-line__value strong { font-family: 'Area Normal','Helvetica Neue',Helvetica,Arial,sans-serif; font-weight: 800; font-size: 20px; color: #161F28; }
    .customer-info__item { width: 50%; vertical-align: top; padding: 0 16px 16px 0; font-size: 14px; line-height: 1.55; color: #3E4750; }
    .customer-info__item h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #161F28; }
    .customer-info__item p { font-size: 14px; }
    .footer__cell { border-top: 1px solid #DDE3DE; padding: 28px 0; }
    .disclaimer__subtext { font-size: 13px; color: #6B747C; }
    @media (max-width: 600px) {
      .bc-card { width: 100% !important; border-radius: 0 !important; }
      .bc-outer { padding: 0 !important; }
      .spacer { display: none !important; min-width: 0 !important; }
      .container { width: 100% !important; }
      .content__cell, .section__cell, .footer__cell { padding-left: 22px !important; padding-right: 22px !important; }
    }
    @media (max-width: 480px) {
      h2 { font-size: 32px !important; }
      p { font-size: 15px !important; }
      .customer-info__item { display: block !important; width: 100% !important; padding: 0 0 20px 0 !important; font-size: 14px !important; }
      .actions__cell td[valign="middle"] { display: block !important; width: 100% !important; padding: 12px 0 0 !important; text-align: center; }
      .main-action-cell, .main-action-cell td, .actions__cell table { width: 100% !important; }
      .link__cell { padding-left: 0 !important; text-align: center !important; }
      .button__cell { padding: 16px 20px !important; text-align: center; white-space: nowrap; }
      .order-list__product-image { width: 56px !important; height: 56px !important; }
      .order-number__text, .po-number__text, h3, .customer-info__item h4 { font-size: 13px !important; }
    }
  </style>

</head>

  <body>
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#F5F5F7" style="background:#F5F5F7;width:100%"><tr><td align="center" class="bc-outer" style="padding:24px 0">
<table role="presentation" class="bc-card" width="600" cellpadding="0" cellspacing="0" border="0" style="width:600px;max-width:600px;background:#ffffff;border-radius:12px;overflow:hidden"><tr><td>

    <table class="body{% if buyer_email_rtl %} buyer-email-rtl{% endif %}"{% if buyer_email_rtl %} dir="rtl"{% endif %}>
      <tr>
        <td>
          <table class="header row">
  <tr>
    <td class="header__cell" style="background:#D1E0D7;padding:28px 0">
      <center>

        <table class="container"{% if buyer_email_rtl == true %} dir="rtl"{% endif %}>
          <tr>
            <td>

              <table class="row">
                <tr>
                  <td class="shop-name__cell"{% if buyer_email_rtl == true %} align="right"{% endif %}>
                    {%- if shop.email_logo_url %}
                      <img src="{{shop.email_logo_url}}" alt="{{ shop.name }}" width="{{ shop.email_logo_width }}">
                    {%- else %}
                      <h1 class="shop-name__text">
                        <a href="{{shop.url}}">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ shop.name }}{% if buyer_email_rtl == true %}</span>{% endif %}</a>
                      </h1>
                    {%- endif %}
                  </td>

                    <td{% if buyer_email_rtl == true %} class="order-po-number__cell"{% endif %}>                    </td>
                </tr>
              </table>

            </td>
          </tr>
        </table>

      </center>
    </td>
  </tr>
</table>

          <table class="row content">
  <tr>
    <td class="content__cell">
      <center>
        <table class="container"{% if buyer_email_rtl == true %} dir="rtl"{% endif %}>
          <tr>
            <td>
              
            <table class="order-po-number__container">
                        <tr>
                          <td class="order-number__cell"{% if buyer_email_rtl == true %} align="left"{% endif %}>
                            <span class="order-number__text">
                              Order {% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ order_name }}{% if buyer_email_rtl == true %}</span>{% endif %}
                            </span>
                          </td>
                        </tr>
                        {%- if po_number %}
                            <tr>
                              <td class="po-number__cell"{% if buyer_email_rtl == true %} align="left"{% endif %}>
                                <span class="po-number__text">
                                  PO number {% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}#{{ po_number }}{% if buyer_email_rtl == true %}</span>{% endif %}
                                </span>
                              </td>
                            </tr>
                        {%- endif %}
                      </table>
            <h2 style="font-family:Canela,Georgia,'Times New Roman',serif;font-weight:400;font-size:34px;line-height:1.15;color:#161F28;margin:0 0 12px;text-wrap:balance">{{ email_title }}</h2>
            <p>{{ email_body }}</p>

            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>

          <table class="row section">
  <tr>
    <td class="section__cell">
      <center>
        <table class="container">
          <tr>
            <td>
              <h3 class="bc-m13 bc-lh" style="font-family:'Area Normal','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#516E5A;margin:0 0 20px">Order summary</h3>
            </td>
          </tr>
        </table>
        <table class="container">
          <tr>
            <td>
              
            {% if line_items_including_zero_quantity == empty %}
              
<table class="row">
  {% for line in subtotal_line_items %}
  <tr class="order-list__item">
    <td class="order-list__item__cell">
      <table>
          {% assign expand_bundles = false %}
        {% if expand_bundles and line.bundle_parent? %}
          <td class="order-list__parent-image-cell">
            {% if line.image %}
              <img src="{{ line | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__product-image"/>
            {% else %}
              <div class="order-list__no-image-cell">
                <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__no-product-image"/>
              </div>
            {% endif %}
          </td>
        {% else %}
          <td class="order-list__image-cell">
            {% if line.image %}
              <img src="{{ line | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__product-image"/>
            {% else %}
              <div class="order-list__no-image-cell">
                <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__no-product-image"/>
              </div>
            {% endif %}
          </td>
        {% endif %}
        <td class="order-list__product-description-cell">
          {% if line.product.title %}
            {% assign line_title = line.product.title %}
          {% else %}
            {% assign line_title = line.title %}
          {% endif %}

          {% if line.quantity < line.quantity %}
            {% capture line_display %}
              {{ line.quantity }} of {{ line.quantity }}
            {% endcapture %}
          {% else %}
            {% assign line_display = line.quantity  %}
          {% endif %}

          <span class="order-list__item-title">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line_title }}{% if buyer_email_rtl == true %}</span>{% endif %}&nbsp;&times;&nbsp;{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line_display }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>

          {% if line.variant.title != 'Default Title' and line.bundle_parent? == false %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% elsif line.variant.title != 'Default Title' and line.bundle_parent? and expand_bundles == false %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% endif %}

          {% if expand_bundles %}
            {% for component in line.bundle_components %}
              <table>
                <tr class="order-list__item">
                  <td class="order-list__bundle-item">
                    <table>
                      <td class="order-list__image-cell">
                        {% if component.image %}
                          <img src="{{ component | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="40" height="40" class="order-list__product-image"/>
                        {% else %}
                          <div class="order-list__no-image-cell small">
                            <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="40" height="40" class="order-list__no-product-image small"/>
                          </div>
                        {% endif %}
                      </td>

                      <td class="order-list__product-description-cell">
                        {% if component.product.title %}
                          {% assign component_title = component.product.title %}
                        {% else %}
                          {% assign component_title = component.title %}
                        {% endif %}

                        {% assign component_display = component.quantity %}

                        <span class="order-list__item-title">{% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component_display }}{% if buyer_email_rtl == true %}</span>{% endif %}&nbsp;&times;&nbsp;{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br>

                        {% if component.variant.title != 'Default Title'%}
                          <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
                        {% endif %}
                      </td>
                    </table>
                  </td>
                </tr>
              </table>
            {% endfor %}
          {% else %}
            {% for group in line.groups %}
              {% if group.deliverable? %}
                <span class="order-list__item-variant">For: {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ group.display_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
              {% else %}
                <span class="order-list__item-variant">Part of: {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ group.display_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
              {% endif %}
            {% endfor %}
          {% endif %}

            {% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %}
              {% for property in line.properties %}
  {% assign property_first_char = property.first | slice: 0 %}
  {% if property.last != blank and property_first_char != '_' %}
    <div class="order-list__item-property">
      <dt>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.first }}:{% if buyer_email_rtl == true %}</span>{% endif %}</dt>
      <dd>
      {% if property.last contains '/uploads/' %}
        <a href="{{ property.last }}" class="link" target="_blank">
        {% if buyer_email_rtl == true %}<span dir="{% if property.first == 'Recipient email' %}ltr{% else %}auto{% endif %}" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.last | split: '/' | last }}{% if buyer_email_rtl == true %}</span>{% endif %}
        </a>
      {% else %}
        {% if buyer_email_rtl == true %}<span dir="{% if property.first == 'Recipient email' %}ltr{% else %}auto{% endif %}" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.last }}{% if buyer_email_rtl == true %}</span>{% endif %}
      {% endif %}
      </dd>
    </div>
  {% endif %}
{% endfor %}

            {% endif %}

          {% if line.selling_plan_allocation %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.selling_plan_allocation.selling_plan.name }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% endif %}

          {% if line.aggregated_update %}
            <span class="order-list__item-update-status">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{line.aggregated_update}}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
          {% elsif line.refunded_quantity > 0 %}
            <span class="order-list__item-refunded">Refunded</span>
          {% endif %}

          {% if line.discount_allocations %}
            {% for discount_allocation in line.discount_allocations %}
              {% if discount_allocation.discount_application.target_selection != 'all' %}
                <p>
                  <span class="order-list__item-discount-allocation">
                    <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
                    <span>
                      {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ discount_allocation.discount_application.title | upcase }}{% if buyer_email_rtl == true %}</span>{% endif %}
                      {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}(-{{ discount_allocation.amount | money }}){% if buyer_email_rtl == true %}</span>{% endif %}
                    </span>
                  </span>
                </p>
              {% endif %}
            {% endfor %}
          {% endif %}
        </td>
          {% if expand_bundles and line.bundle_parent? %}
            <td class="order-list__parent-price-cell">
          {% else %}
            <td class="order-list__price-cell">
          {% endif %}
          {% if line.original_line_price != line.final_line_price %}
            <del class="order-list__item-original-price">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit; text-decoration: line-through;">{% endif %}{{ line.original_line_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</del>
          {% endif %}
            <p class="order-list__item-price">
              {% if line.final_line_price > 0 or line.quantity == 0 %}
                {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.final_line_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}
                {% if line.unit_price_measurement %}
  <div class="order-list__unit-price">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{- line.unit_price | unit_price_with_measurement: line.unit_price_measurement -}}{% if buyer_email_rtl == true %}</span>{% endif %}</div>
{% endif %}
              {% else %}
                Free
              {% endif %}
            </p>
          </td>
      </table>
    </td>
  </tr>{% endfor %}
</table>

            {% else %}
              
<table class="row">
  {% for line in line_items_including_zero_quantity %}
  <tr class="order-list__item">
    <td class="order-list__item__cell">
      <table>
          {% assign expand_bundles = false %}
        {% if expand_bundles and line.bundle_parent? %}
          <td class="order-list__parent-image-cell">
            {% if line.image %}
              <img src="{{ line | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__product-image"/>
            {% else %}
              <div class="order-list__no-image-cell">
                <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__no-product-image"/>
              </div>
            {% endif %}
          </td>
        {% else %}
          <td class="order-list__image-cell">
            {% if line.image %}
              <img src="{{ line | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__product-image"/>
            {% else %}
              <div class="order-list__no-image-cell">
                <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="60" height="60" class="order-list__no-product-image"/>
              </div>
            {% endif %}
          </td>
        {% endif %}
        <td class="order-list__product-description-cell">
          {% if line.product.title %}
            {% assign line_title = line.product.title %}
          {% else %}
            {% assign line_title = line.title %}
          {% endif %}

          {% if line.quantity < line.quantity %}
            {% capture line_display %}
              {{ line.quantity }} of {{ line.quantity }}
            {% endcapture %}
          {% else %}
            {% assign line_display = line.quantity  %}
          {% endif %}

          <span class="order-list__item-title">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line_title }}{% if buyer_email_rtl == true %}</span>{% endif %}&nbsp;&times;&nbsp;{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line_display }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>

          {% if line.variant.title != 'Default Title' and line.bundle_parent? == false %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% elsif line.variant.title != 'Default Title' and line.bundle_parent? and expand_bundles == false %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% endif %}

          {% if expand_bundles %}
            {% for component in line.bundle_components %}
              <table>
                <tr class="order-list__item">
                  <td class="order-list__bundle-item">
                    <table>
                      <td class="order-list__image-cell">
                        {% if component.image %}
                          <img src="{{ component | img_url: 'compact_cropped' }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="40" height="40" class="order-list__product-image"/>
                        {% else %}
                          <div class="order-list__no-image-cell small">
                            <img src="{{ 'notifications/no-image.png' | shopify_asset_url }}" align="{% if buyer_email_rtl == true %}right{% else %}left{% endif %}" width="40" height="40" class="order-list__no-product-image small"/>
                          </div>
                        {% endif %}
                      </td>

                      <td class="order-list__product-description-cell">
                        {% if component.product.title %}
                          {% assign component_title = component.product.title %}
                        {% else %}
                          {% assign component_title = component.title %}
                        {% endif %}

                        {% assign component_display = component.quantity %}

                        <span class="order-list__item-title">{% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component_display }}{% if buyer_email_rtl == true %}</span>{% endif %}&nbsp;&times;&nbsp;{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br>

                        {% if component.variant.title != 'Default Title'%}
                          <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ component.variant.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
                        {% endif %}
                      </td>
                    </table>
                  </td>
                </tr>
              </table>
            {% endfor %}
          {% else %}
            {% for group in line.groups %}
              {% if group.deliverable? %}
                <span class="order-list__item-variant">For: {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ group.display_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
              {% else %}
                <span class="order-list__item-variant">Part of: {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ group.display_title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
              {% endif %}
            {% endfor %}
          {% endif %}

            {% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %}
              {% for property in line.properties %}
  {% assign property_first_char = property.first | slice: 0 %}
  {% if property.last != blank and property_first_char != '_' %}
    <div class="order-list__item-property">
      <dt>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.first }}:{% if buyer_email_rtl == true %}</span>{% endif %}</dt>
      <dd>
      {% if property.last contains '/uploads/' %}
        <a href="{{ property.last }}" class="link" target="_blank">
        {% if buyer_email_rtl == true %}<span dir="{% if property.first == 'Recipient email' %}ltr{% else %}auto{% endif %}" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.last | split: '/' | last }}{% if buyer_email_rtl == true %}</span>{% endif %}
        </a>
      {% else %}
        {% if buyer_email_rtl == true %}<span dir="{% if property.first == 'Recipient email' %}ltr{% else %}auto{% endif %}" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ property.last }}{% if buyer_email_rtl == true %}</span>{% endif %}
      {% endif %}
      </dd>
    </div>
  {% endif %}
{% endfor %}

            {% endif %}

          {% if line.selling_plan_allocation %}
            <span class="order-list__item-variant">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.selling_plan_allocation.selling_plan.name }}{% if buyer_email_rtl == true %}</span>{% endif %}</span><br/>
          {% endif %}

          {% if line.aggregated_update %}
            <span class="order-list__item-update-status">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{line.aggregated_update}}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
          {% elsif line.refunded_quantity > 0 %}
            <span class="order-list__item-refunded">Refunded</span>
          {% endif %}

          {% if line.discount_allocations %}
            {% for discount_allocation in line.discount_allocations %}
              {% if discount_allocation.discount_application.target_selection != 'all' %}
                <p>
                  <span class="order-list__item-discount-allocation">
                    <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
                    <span>
                      {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ discount_allocation.discount_application.title | upcase }}{% if buyer_email_rtl == true %}</span>{% endif %}
                      {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}(-{{ discount_allocation.amount | money }}){% if buyer_email_rtl == true %}</span>{% endif %}
                    </span>
                  </span>
                </p>
              {% endif %}
            {% endfor %}
          {% endif %}
        </td>
          {% if expand_bundles and line.bundle_parent? %}
            <td class="order-list__parent-price-cell">
          {% else %}
            <td class="order-list__price-cell">
          {% endif %}
          {% if line.original_line_price != line.final_line_price %}
            <del class="order-list__item-original-price">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit; text-decoration: line-through;">{% endif %}{{ line.original_line_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</del>
          {% endif %}
            <p class="order-list__item-price">
              {% if line.final_line_price > 0 or line.quantity == 0 %}
                {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ line.final_line_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}
                {% if line.unit_price_measurement %}
  <div class="order-list__unit-price">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{- line.unit_price | unit_price_with_measurement: line.unit_price_measurement -}}{% if buyer_email_rtl == true %}</span>{% endif %}</div>
{% endif %}
              {% else %}
                Free
              {% endif %}
            </p>
          </td>
      </table>
    </td>
  </tr>{% endfor %}
</table>

            {% endif %}
            <table class="row subtotal-lines">
  <tr>
    <td class="subtotal-spacer"></td>
    <td>
      <table class="row subtotal-table">
        

{% assign total_order_discount_amount = 0 %}
{% assign has_shipping_discount = false %}
{% assign epsilon = 0.00001 %}

{% for discount_application in discount_applications %}
  {% if discount_application.target_selection == 'all' and discount_application.target_type == 'line_item' %}
    {% assign order_discount_count = order_discount_count | plus: 1 %}
    {% assign total_order_discount_amount = total_order_discount_amount | plus: discount_application.total_allocated_amount %}
  {% endif %}
  {% if discount_application.target_type == 'shipping_line' %}
    {% assign has_shipping_discount = true %}
    {% assign shipping_discount_title = discount_application.title %}
    {% assign discount_value_price = discount_application.total_allocated_amount %}
    {% assign shipping_amount_minus_discount_value_price = shipping_price | minus: discount_value_price %}
    {% assign shipping_amount_minus_discount_value_price_abs = shipping_amount_minus_discount_value_price | abs %}
    {% assign discount_application_value_type = discount_application.value_type | strip %}
    {% if shipping_amount_minus_discount_value_price_abs < epsilon or discount_application_value_type == 'percentage' and discount_application.value == 100 %}
      {% assign free_shipping = true %}
    {% else %}
      {% assign discounted_shipping_price = shipping_amount_minus_discount_value_price %}
    {% endif %}
  {% endif %}
{% endfor %}


  

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Subtotal</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ subtotal_price | plus: total_order_discount_amount | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>



{% if order_discount_count > 0 %}
  {% if order_discount_count == 1 %}
    

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Order discount</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}-{{ total_order_discount_amount | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

  {% endif %}
  {% if order_discount_count > 1 %}
    

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Order discounts</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}-{{ total_order_discount_amount | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

  {% endif %}
  {% for discount_application in discount_applications %}
    {% if discount_application.target_selection == 'all' and discount_application.target_type != 'shipping_line' %}
      <tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span class="subtotal-line__discount">
        <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
        <span class="subtotal-line__discount-title">
            {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ discount_application.title }}{% if buyer_email_rtl == true %}</span>{% endif %} {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}(-{{ discount_application.total_allocated_amount | money }}){% if buyer_email_rtl == true %}</span>{% endif %}
        </span>
      </span>
    </p>
  </td>
</tr>

    {% endif %}
  {% endfor %}
{% endif %}


        {% unless retail_delivery_only %}
          {% if delivery_method == 'pick-up' %}
            

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Pickup</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ shipping_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

          {% else %}
            
  {% if has_shipping_discount %}
    {% if free_shipping == true %}
      

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Shipping</span>
    </p>
  </td>
  <td class="subtotal-line__value">
    <del>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit; text-decoration: line-through;">{% endif %}{% if shipping_price != 0 %}{{ shipping_price | money}}{% endif %} {% if buyer_email_rtl == true %}</span>{% endif %}</del>
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}Free{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

    {% else %}
      

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Shipping</span>
    </p>
  </td>
  <td class="subtotal-line__value">
    <del>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit; text-decoration: line-through;">{% endif %}{{ shipping_price | money }} {% if buyer_email_rtl == true %}</span>{% endif %}</del>
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ discounted_shipping_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

    {% endif %}
    <tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span class="subtotal-line__discount">
        <img src="{{ 'notifications/discounttag.png' | shopify_asset_url }}" width="18" height="18" class="discount-tag-icon" />
        <span class="subtotal-line__discount-title">
            {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ shipping_discount_title }}{% if buyer_email_rtl == true %}</span>{% endif %}
            {% if discount_value_price != 0 %}
              {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}(-{{ discount_value_price | money }}){% if buyer_email_rtl == true %}</span>{% endif %}
            {% endif %}
        </span>
      </span>
    </p>
  </td>
</tr>

  {% else %}
    

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Shipping</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ shipping_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

  {% endif %}

          {% endif %}
        {% endunless %}

        {% if total_duties %}
          

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Duties</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ total_duties | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

        {% endif %}

        {% for fee in fees %}
  

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ fee.title }}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ fee.subtotal | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

{% endfor %}


        

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Taxes</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ tax_price | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>


        {% if total_tip and total_tip > 0 %}
          

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Tip</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ total_tip | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

        {% endif %}
      </table>

      {% assign transaction_size = 0 %}
      {% assign transaction_amount = 0 %}
      {% for transaction in transactions %}
        {% if transaction.status == "success" %}
          {% if transaction.kind == "sale" or transaction.kind == "capture"  %}
            {% assign transaction_size = transaction_size | plus: 1 %}
            {% assign transaction_amount = transaction_amount | plus: transaction.amount %}
          {% elsif transaction.kind == "refund" or transaction.kind == "change" %}
            {% assign transaction_size = transaction_size | plus: 1 %}
            {% assign transaction_amount = transaction_amount | minus: transaction.amount %}
          {% endif %}
        {% endif %}
      {% endfor %}

      <table class="row subtotal-table subtotal-table--total">
      {% if payment_terms and payment_terms.automatic_capture_at_fulfillment == false or b2b?%}
        {% assign next_payment = payment_terms.next_payment %}
        {% assign due_at_date = next_payment.due_at | date: "%b %d, %Y" %}
        

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total paid today</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction_amount | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

        <div class="payment-terms">
          {% assign next_amount_due = total_price %}
          {% if next_payment %}
            {% assign next_amount_due = next_payment.amount_due %}
          {% endif %}

          {% if payment_terms.type == 'receipt' %}
            

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total due on receipt</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ next_amount_due | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

          {% elsif payment_terms.type == 'fulfillment' %}
            

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total due on fulfillment</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ next_amount_due | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

          {% else %}
            

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total due {% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ due_at_date }}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ next_amount_due | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

          {% endif %}
        </div>
      {% elsif transaction_amount != total_price %}
          

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ total_price | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

        <div class="payment-terms">
          

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total paid</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction_amount | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

        </div>
      {% else %}
        

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Total</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ total_price | money_with_currency }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

      {% endif %}
      </table>

      {% if total_discounts > 0 %}
        <p class="total-discount">
          You saved <span class="total-discount--amount">{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ total_discounts | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</span>
        </p>
      {% endif %}

      {% unless payment_terms %}
      {% if transaction_size > 1 or transaction_amount < total_price %}
        <table class="row subtotal-table">
          <tr><td colspan="2" class="subtotal-table__line"></td></tr>
          <tr><td colspan="2" class="subtotal-table__small-space"></td></tr>

          {% for transaction in transactions %}
            {% if transaction.status == "success" and transaction.kind == "capture" or transaction.kind == "sale" %}
              {% if transaction.payment_details.local_payment? %}
                {% capture transaction_name %}{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.payment_details.payment_method_display_name | default: transaction.payment_details.payment_method_name }}{% if buyer_email_rtl == true %}</span>{% endif %}{% endcapture %}
              {% elsif transaction.payment_details.credit_card_company %}
                {% capture transaction_name %}{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.payment_details.credit_card_company }}{% if buyer_email_rtl == true %}</span>{% endif %} (ending in {% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.payment_details.credit_card_last_four_digits }}{% if buyer_email_rtl == true %}</span>{% endif %}){% endcapture %}
              {% else %}
                {% capture transaction_name %}{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.gateway_display_name }}{% if buyer_email_rtl == true %}</span>{% endif %}{% endcapture %}
              {% endif %}

              

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>{{transaction_name}}</span>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.amount | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

            {% endif %}
            {% if transaction.kind == 'refund' and transaction.gateway != "shop_offer" %}
              {% if transaction.payment_details.local_payment? %}
                {% capture refund_method_subtitle %}{{ transaction.payment_details.payment_method_display_name | default: transaction.payment_details.payment_method_name }}{% endcapture %}
              {% elsif transaction.payment_details.credit_card_company %}
                {% capture refund_method_subtitle %}{{ transaction.payment_details.credit_card_company | replace: '_', ' ' | capitalize }}{% endcapture %}
              {% else %}
                {% capture refund_method_subtitle %}{{ transaction.gateway_display_name | replace: '_', ' ' | capitalize }}{% endcapture %}
              {% endif %}

              {% if transaction.gateway == 'shopify_store_credit' %}
                {% assign link_url = routes.account_profile_url %}
                {% capture link_text %}View{% endcapture %}
              {% else %}
                {% assign link_url = nil %}
                {% assign link_text = nil %}
              {% endif %}

              {% assign current_date = transaction.created_at | date: "%B %e, %Y" %}

              

<tr class="subtotal-line">
  <td class="subtotal-line__title">
    <p>
      <span>Refund</span>
        <br>
        <small>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ refund_method_subtitle }}{% if buyer_email_rtl == true %}</span>{% endif %}</small>
          &nbsp;&nbsp;<a href="{{ link_url }}" class="small">{{ link_text }}</a>
    </p>
  </td>
  <td class="subtotal-line__value">
      <strong>{% if buyer_email_rtl == true %}<span dir="auto" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ transaction.amount | times: -1 | money }}{% if buyer_email_rtl == true %}</span>{% endif %}</strong>
  </td>
</tr>

            {% endif %}
          {% endfor %}
        </table>
      {% endif %}


      {% endunless %}
    </td>
  </tr>
</table>


            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>

          <table class="row footer">
  <tr>
    <td class="footer__cell">
      <center>
        <table class="container"{% if buyer_email_rtl == true %} dir="rtl"{% endif %}>
          <tr>
            <td>
              
              <p class="disclaimer__subtext">If you have any questions, reply to this email or contact us at <a href="mailto:{{ shop.email }}">{% if buyer_email_rtl == true %}<span dir="ltr" style="display: inline-block; unicode-bidi: isolate; font-size: inherit;">{% endif %}{{ shop.email }}{% if buyer_email_rtl == true %}</span>{% endif %}</a>.<!-- shopify-shop-marketplace-footer --></p>
            </td>
          </tr>
        </table>
      </center>
    </td>
  </tr>
</table>

<img src="{{ 'notifications/spacer.png' | shopify_asset_url }}" class="spacer" height="1" />

        </td>
      </tr>
    </table>
  <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td style="padding:0;"><a href="https://www.trustpilot.com/review/balancecoffee.co.uk" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/d7031e7d-6a76-4715-b323-b4e168a08d26.jpeg" width="600" alt="Trustpilot: Excellent, 4.7 out of 5, 2,000+ reviews" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
<tr><td style="padding:0;background:#EAF2EC;"><a href="https://balancecoffee.co.uk/" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/5ceca872-5b7e-499c-837a-d617678333f9.png" width="600" alt="Balance Coffee" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
<tr><td style="padding:0;background:#EAF2EC;"><a href="https://balancecoffee.co.uk" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/ea7b4856-e112-4f52-9cab-588eb572aead.png" width="600" alt="Shop all" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
<tr><td style="padding:0;background:#EAF2EC;"><a href="https://balancecoffee.co.uk/pages/contact" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/cd7cce98-4f37-4e54-88c4-ab33dda42672.png" width="600" alt="Help" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
<tr><td style="padding:0;background:#EAF2EC;"><a href="https://balancecoffee.co.uk/pages/our-story" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/a764ec85-eb44-4af8-a298-08ca9ec76abf.png" width="600" alt="About" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
<tr><td align="center" style="background:#EAF2EC;padding:22px 18px 6px;font-family:'Area Normal','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#161F28;text-wrap:pretty;">Follow us</td></tr>
<tr><td align="center" style="background:#EAF2EC;padding:6px 18px 16px"><a href="https://www.instagram.com/balancecoffee" target="_blank" style="display:inline-block;padding:0 6px;text-decoration:none"><img src="https://cdn.klaviyomail.com/assets/email/buttons/black/instagram_96.png" width="32" height="32" alt="Instagram" style="display:block;width:32px;height:32px;border:0"></a><a href="https://www.facebook.com/balancecoffee20" target="_blank" style="display:inline-block;padding:0 6px;text-decoration:none"><img src="https://cdn.klaviyomail.com/assets/email/buttons/black/facebook_96.png" width="32" height="32" alt="Facebook" style="display:block;width:32px;height:32px;border:0"></a><a href="https://www.tiktok.com/@balancecoffee" target="_blank" style="display:inline-block;padding:0 6px;text-decoration:none"><img src="https://cdn.klaviyomail.com/assets/email/buttons/black/tiktok_96.png" width="32" height="32" alt="TikTok" style="display:block;width:32px;height:32px;border:0"></a><a href="https://www.youtube.com/channel/UCyuYiJ0325Gd0B8Fv7ZLWlw" target="_blank" style="display:inline-block;padding:0 6px;text-decoration:none"><img src="https://cdn.klaviyomail.com/assets/email/buttons/black/youtube_96.png" width="32" height="32" alt="YouTube" style="display:block;width:32px;height:32px;border:0"></a></td></tr>
<tr><td class="bc-legal" align="center" style="background:#EAF2EC;padding:4px 32px 18px;font-family:'Area Normal','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:11px;line-height:1.5;color:#7A848C;text-align:center;text-wrap:pretty;">PureVibe Wellness Ltd, trading as Balance Coffee. Registered in England and Wales, no. 15461410. Registered office: 167-169 Great Portland Street, 5th Floor, London W1W 5PF.</td></tr>
<tr><td style="padding:0;background:#EAF2EC;"><a href="https://balancecoffee.co.uk/" style="text-decoration:none;display:block"><img src="https://d3k81ch9hvuctc.cloudfront.net/company/UhcLtt/images/0937a14d-c97d-443f-b53b-9cb48b733719.png" width="600" alt="" style="display:block;width:100%;max-width:600px;height:auto;border:0"></a></td></tr>
</table>
</td></tr></table>
</td></tr></table>
</body>
</html>
