{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
{% block buy_widget_was_price_wrapper %}
<span class="product-detail-list-price-wrapper">
{% if beforeListPriceSnippetExists %}
{{"listing.beforeListPrice"|trans|trim}}
{% endif %}
<span {% if not (afterListPriceSnippetExists or beforeListPriceSnippetExists) %} class="list-price-price" {% endif %}>{{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}</span>
{% if afterListPriceSnippetExists %}
{{"listing.afterListPrice"|trans|trim}}
{% endif %}
</span>
{% endblock %}
{% block buy_widget_price_block_table_head_inner %}
<tr class="product-block-prices-row">
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnQuantity"|trans|sw_sanitize }}
</th>
<th scope="col" class="product-block-prices-cell" style="padding-left: 2px;">
{{ "detail.dataColumnPrice"|trans|sw_sanitize }}
</th>
{% if product.calculatedPrice.referencePrice %}
<th scope="col" class="product-block-prices-cell">
{{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
</th>
{% else %}
<th class="product-block-prices-cell"></th>
{% endif %}
</tr>
{% endblock %}
{% block buy_widget_price_block_table_body_cell_price %}
<td class="product-block-prices-cell" style="padding-left: 38px;">
{% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with {
price: price
} only %}
</td>
{% endblock %}
{% block buy_widget_price_block_table_body_cell_reference_price %}
{% if price.referencePrice is not null %}
<td class="product-block-prices-cell product-block-prices-cell-thin">
{{ price.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
/
{{ price.referencePrice.referenceUnit }}
{{ price.referencePrice.unitName }}
</td>
{% else %}
<td class="product-block-prices-cell"></td>
{% endif %}
{% endblock %}