{# LIBRARIES #}
{{ attach_library('ui_patterns/offer_content.offer_content_lib') }}

{% if coupon_code %}
  <div class="cpn-wrapper">
    <h3>{{ coupon_header }}</h3>
    <p class="cpn-code">
      {{ coupon_code }}
    </p>
    {% set attrs = create_attribute()
      .setAttribute('aria-label', coupon_url_ally_text)
    %}
    {% include "@atoms/tm-links/standard/standard.twig" with {
      "text": coupon_url_text,
      "url": coupon_url,
      "attributes": attrs,
      "class": 'btn btn-default btn-sm btn-no-pad external-links-filter',
    } only %}
  </div>
{% else %}
  <p class="coupon-code">
    {{ coupon_none_text }}
  </p>
{% endif %}
