{% sw_extends '@Storefront/storefront/page/checkout/checkout-item.html.twig' %}

{% block page_checkout_item_info_variant_characteristics %}
    <div class="cart-item-details-characteristics">
        {% for input in lineItem.payload.atlProductConfigurator %}
            <div>
                <span class="cart-item-details-characteristics-option">{{ input.value }}</span>
            </div>
        {% endfor %}
    </div>
{% endblock %}

{% block page_checkout_item_info_label %}
    {% if lineItem.type == PRODUCT_LINE_ITEM_TYPE %}
        <a href="{{ seoUrl('frontend.detail.page', {'productId': lineItem.referencedId}) }}"
           class="cart-item-label"
           title="{{ label|replace({'&amp;':'&'}) }}"
                {% if controllerAction is same as('confirmPage') %}
                    data-toggle="modal"
                    data-modal-class="quickview-modal"
                    data-url="{{ path('widgets.quickview.minimal',{ 'productId': lineItem.referencedId }) }}"
                {% endif %}
        >
            {{ label|replace({'&amp;':'&'})|u.truncate(60, '...', false) }}
        </a>
    {% else %}
        <div class="cart-item-label">
            {{ label|replace({'&amp;':'&'})|u.truncate(60, '...', false) }}
        </div>
    {% endif %}
{% endblock %}

{% block page_checkout_item_children_template %}
    {% if isNested %}
        {# @deprecated tag:v6.5.0 - block will be moved to `@Storefront/storefront/page/checkout/checkout-item-children.html.twig` #}
        {% block page_checkout_item_children %}
            {% sw_include childrenTemplate %}
        {% endblock %}
    {% endif %}
    {% set addCustomizedProducts = addCustomizedProducts | default(0) %}
    {% if lineItem.payload is defined and lineItem.payload.customFields is defined and
        lineItem.payload.customFields.spwn_discountable_box is defined and addCustomizedProducts !== 0 %}
        <div class="spwn-add-customized-products">
            <a href="/6-Tage-Pakete/" class="spwn-add-customized-products-detail"><span>{{ "checkout.easyfitItemNotice"|trans|sw_sanitize }}</span></a>
            {% if addCustomizedProducts == 1 %}
                <a href="/6-Tage-Pakete/" class="spwn-add-customized-products-detail"><span>{{ "checkout.easyfitItemNotice"|trans|sw_sanitize }}</span></a>
            {% endif %}
        </div>
    {% endif %}
{% endblock %}
