{% sw_extends '@Storefront/storefront/page/checkout/_page.html.twig' %}
{% block page_checkout_container %}
{% if controllerAction != 'cartPage' %}
{% sw_include '@SanettaTheme/storefront/page/checkout/dm-stepper.html.twig' %}
{% endif %}
{{ parent() }}
{% if controllerAction == 'cartPage' %}
<div id="hr-recom-k66b49ad06017481e847f78f9"></div>
{% endif %}
{% endblock %}
{% block base_flashbags_checkout %}
<div class="flashbags">
{% if controllerAction == 'cartPage' %}
{% set deliverySummary = page.cart.price.positionPrice %}
{% set deliveryInfo = '' %}
{% set freeShippingLimit = 80.0 %}
{% if deliverySummary <= freeShippingLimit %}
{% set deliveryInfo = 'sanetta.cart.deliveryInformationDifferenceStart'|trans|sw_sanitize %}
{% endif %}
{% if deliveryInfo != '' %}
<div role="alert" class="alert alert-info alert-has-icon">
<span class="icon icon-info">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#758CA3" fill-rule="evenodd" d="M24 12c0 6.6274-5.3726 12-12 12S0 18.6274 0 12 5.3726 0 12 0s12 5.3726 12 12zM12 2C6.4772 2 2 6.4772 2 12s4.4772 10 10 10 10-4.4772 10-10S17.5228 2 12 2zm0 13c.5523 0 1 .4477 1 1s-.4477 1-1 1-1-.4477-1-1 .4477-1 1-1zm-1-7c0-.5523.4477-1 1-1s1 .4477 1 1v5c0 .5523-.4477 1-1 1s-1-.4477-1-1V8z"/></svg>
</span>
<div class="alert-content-container">
<div class="alert-content">
{{ deliveryInfo }} {{ (freeShippingLimit - deliverySummary)|number_format(2, ',', '') }} {{ 'sanetta.cart.deliveryInformationDifferenceEnd'|trans|sw_sanitize }}
</div>
</div>
</div>
{% endif %}
{% endif %}
{% for type, messages in app.flashes %}
{% sw_include '@Storefront/storefront/utilities/alert.html.twig' with { type: type, list: messages } %}
{% endfor %}
</div>
{% endblock %}