{% form_theme form '@CHCookieConsent/form/cookie_consent_theme.html.twig' %}
<div class="container position-relative p-2 ch-cookie-consent ch-cookie-consent--{{ theme }}-theme ch-cookie-consent--{{ position }} {% if simplified %}ch-cookie-consent--simplified{% endif %}">
<div class="text-center pb-md-2 pb-3">
{% block intro %}
<p class="text-center pt-2 d-inline-block mb-0"> {{ 'ch_cookie_consent.introduction'|trans }}</p>
{% block read_more %}
<div class="d-inline-block"><a class="ch-cookie-consent__read-more" href="{% block read_more_link %}/page/charte-de-confidentialite{% endblock %}" target="_blank">{{ 'ch_cookie_consent.read_more'|trans }}</a></div>
{% endblock %}
{% if simplified %}
{% block toggle_details %}
<div class="ch-cookie-consent__toggle-details d-inline-block">
<span class="ch-cookie-consent__toggle-details-show">{{ 'ch_cookie_consent.show_details'|trans }}</span>
<span class="ch-cookie-consent__toggle-details-hide">{{ 'ch_cookie_consent.hide_details'|trans }}</span>
</div>
{% endblock %}
{% endif %}
{% endblock %}
</div>
{{ form_start(form, {'action': path('sylius_shop_homepage'), 'attr': {'class': 'ch-cookie-consent__form mt-0'}}) }}
<div class="ch-cookie-consent__category-group mb-3">
{% for child in form %}
{% if child.vars.block_prefixes[0] != 'button' %}
{{ form_row(child) }}
{% endif %}
{% endfor %}
</div>
<div class="ch-cookie-consent__btn-group row align-items-center justify-content-center">
{{ form_rest(form) }}
</div>
{{ form_end(form) }}
</div>