{% if element.text.text is defined %}
    {% set text = element.text.text %}
{% else %}
    {% set text = element.text %}
{% endif %}
<section class="block-section block-text text-{{ text.align|default('default') }}">
    <div class="text-wrapper">
        {% if element.title is defined and (element.title is not empty or element.title.subtitle is not empty) %}
            <div class="row">
                {% include "@DediSyliusCmsPlugin/Shop/UiElement/Bases/title.html.twig" with {'element':element.title} %}
            </div>
        {% endif %}

        {{ text.content|raw }}

        {% if element.link is defined and element.link.link is not empty %}
            {% set link = element.link  %}
            {% if link.style is not defined %}
                {% set link = link|merge({ 'style': 'dark' }) %}
            {% endif %}
            <div class="row">
                {% include "@DediSyliusCmsPlugin/Shop/UiElement/Bases/link.html.twig" with {'element':link} %}
            </div>
        {% endif %}
    </div>
</section>
