{% sw_extends '@Storefront/storefront/block/cms-block-gallery-buybox.html.twig' %}
{% block block_gallery_buybox_column_left %}
{% set element = block.slots.getSlot('left') %}
{% set config = element.fieldConfig.elements %}
<div class="col-lg-8 product-detail-media {% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-detail-media {% endif %}pr-lg-5" data-cms-element-id="{{ element.id }}">
{% block block_gallery_buybox_column_left_inner %}
{{ parent() }}
{% endblock %}
{% set isItCustomProducts = page.product.extensions.swagCustomizedProductsTemplate %}
{% set pageType = page.cmsPage.type %}
{% if page.product.customFields['custom_configurator_gluesystem_text1'] %}
<p class="gluesystem-text1">
{{ page.product.customFields.custom_configurator_gluesystem_text1|raw }}
</p>
{% endif %}
{% if page.product.customFields['custom_configurator_gluesystem_text1'] %}
<p class="gluesystem-text2">
{{ page.product.customFields.custom_configurator_gluesystem_text2|raw }}
</p>
{% endif %}
{# {% if %}#}
{# {% endif %}#}
</div>
{% endblock %}
{% block block_gallery_buybox_column_right %}
{% set element = block.slots.getSlot('right') %}
<div class="col-lg-4 product-detail-buy {% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-detail-buy {% endif %} pl-lg-5" data-cms-element-id="{{ element.id }}">
{% block block_gallery_buybox_column_right_inner %}
{{ parent() }}
{% endblock %}
</div>
<span class="{% if page.product.customFields['custom_is_gluesystem'] == "true" %} glue-bottom-border {% endif%}"></span>
{% set product = page.product %}
{% if product.active %}
{% if product.customFields['custom_is_gluesystem'] == "true" %}
<div class="chosen-variant">
<span class="chosen-variant-title">{{ "ATNTheme.detail.variant.title"|trans|sw_sanitize }}</span>
<span class="chosen-variant-text">
<br>
{% for variant in page.product.variation %}
{% if loop.last %}
{{ variant.option }}
{% else %}
{{ variant.option }},
{% endif %}
{% endfor %}
</span>
</div>
<div class="glue-detail-collector glue-detail-container">
<div class="product-detail-form-container">
{% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
</div>
{% block buy_widget_ordernumber_container_glue %}
{% if product.productNumber %}
<div class="product-detail-ordernumber-container">
{% block buy_widget_ordernumber_label %}
<span class="product-detail-ordernumber-label">
{{ "detail.productNumberLabel"|trans|sw_sanitize }}
</span>
{% endblock %}
{% block buy_widget_ordernumber %}
<meta itemprop="productID"
content="{{ product.id }}"/>
<span class="product-detail-ordernumber"
itemprop="sku">
{{ product.productNumber }}
</span>
{% endblock %}
</div>
{% endif %}
{% endblock %}
</div>
{% else %}
{# {% block buy_widget_ordernumber_container %}{% endblock %}#}
{% endif %}
{% endif %}
{% endblock %}