{% comment %}
  Renders a note about taxes and shipping at checkout. This is used in the cart

  Usage:
  {% render 'cart-tax-note' %}
{% endcomment %}

<xo-cart-will-change xo-unique-id='xo-cart-tax-note-{{ section.id }}' class='xo-cart-tax-note'>
  {% if cart != empty %}
    {%- if cart.taxes_included and shop.shipping_policy.body != blank -%}
      {{ 'sections.cart.taxes_included_and_shipping_policy_html' | t: link: shop.shipping_policy.url }}
    {%- elsif cart.taxes_included -%}
      {{ 'sections.cart.taxes_included_but_shipping_at_checkout' | t }}
    {%- elsif shop.shipping_policy.body != blank -%}
      {{ 'sections.cart.taxes_and_shipping_policy_at_checkout_html' | t: link: shop.shipping_policy.url }}
    {%- else -%}
      {{ 'sections.cart.taxes_and_shipping_at_checkout' | t }}
    {%- endif -%}
  {% endif %}
</xo-cart-will-change>
