{% sw_extends '@Storefront/storefront/layout/cookie/cookie-permission.html.twig' %}
{% block layout_cookie_permission_inner %}
{% set ComanConsentManager = config('ComanConsentManager') %}
{% if ComanConsentManager is not defined %}
{{ parent() }}
{% else %}
{% if not (ComanConsentManager.config.active and ComanConsentManager.config.formId > 0) %}
{% if not (ComanConsentManager.config.blockingMode == 'automatic' or ComanConsentManager.config.blockingMode == 'manual') %}
{{ parent() }}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}