/** Shopify CDN: Minification failed

Line 16:0 Unexpected "{"
Line 16:1 Expected identifier but found "%"
Line 17:27 Unexpected bad string token
Line 17:51 Unterminated string token
Line 20:20 Expected ":"
Line 20:44 Unexpected "("
Line 21:25 Expected ":"
Line 21:55 Unexpected "("
Line 22:25 Expected ":"
Line 22:102 Unexpected "("
... and 49 more hidden warnings

**/
{% comment %}
  Renders a list of product's price (regular, sale)

  Accepts:
  - product: {Object} Product Liquid object (optional)
  - placeholder: {Boolean} Renders a placeholder price (optional)
  - use_variant: {Boolean} Renders selected or first variant price instead of overall product pricing (optional)
  - show_badges: {Boolean} Renders 'Sale' and 'Sold Out' tags if the product matches the condition (optional)
  - price_class: {String} Adds a price class to the price element (optional)
  - show_compare_at_price: {Boolean} Renders the compare at price if the product matches the condition (optional)

  Usage:
  {% render 'price', product: product %}
{% endcomment %}

{%- liquid
  if use_variant
    assign target = product.selected_or_first_available_variant
  elsif placeholder
    assign target = null
  else
    assign target = product
  endif
-%}

{%- unless placeholder -%}
  <div class="price__container">

    <div class="price__regular">
      <span class="visually-hidden visually-hidden--inline">
        {{ 'products.product.price.regular_price' | t }}
      </span>
      <span class="price-item price-item--regular">
        {{ target.price | money }}
      </span>

      {%- if show_compare_at_price and target.compare_at_price > target.price -%}
        <span class="visually-hidden visually-hidden--inline">
          {{ 'products.product.price.regular_price' | t }}
        </span>
        <s class="price-item price-item--regular">
          {{ target.compare_at_price | money }}
        </s>
      {%- endif -%}
    </div>

    {%- if show_badges -%}
      {%- if target.compare_at_price > target.price -%}
        <span class="badge price__badge-sale color-{{ settings.sale_badge_color_scheme }}">
          {{ 'products.product.on_sale' | t }}
        </span>
      {%- endif -%}

      {%- if target.available == false -%}
        <span class="badge price__badge-sold-out color-{{ settings.sold_out_badge_color_scheme }}">
          {{ 'products.product.sold_out' | t }}
        </span>
      {%- endif -%}
    {%- endif -%}

  </div>
{%- endunless -%}