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

{% block page_checkout_aside_item %}
	{% set isDiscount = (not lineItem.good and lineItem.price.totalPrice <= 0) %}
	{% set isNested = lineItem.children.count > 0 %}
	{% set childrenTemplate = '@Storefront/storefront/page/checkout/checkout-aside-item-children.html.twig' %}

	{% set PRODUCT_LINE_ITEM_TYPE = constant('Shopware\\Core\\Checkout\\Cart\\LineItem\\LineItem::PRODUCT_LINE_ITEM_TYPE') %}

	{# @deprecated tag:v6.5.0 - `cartItemClasses` & `isChild` will be removed with no replacement #}
	{% set cartItemClasses = '' %}

	{% block page_checkout_aside_item_container %}
		<div class="row checkout-aside-item cart-item cart-item-{{ lineItem.type }}{% if isDiscount %} is-discount{% endif %}{{ cartItemClasses }}">

			{% block page_checkout_aside_item_image %}
				<div class="col-4 col-md-1   checkout-aside-item-image">
					{% block page_checkout_aside_item_image_inner %}
						{{ parent() }}
					{% endblock %}
				</div>
			{% endblock %}

			{% block page_checkout_aside_item_data %}
				<div class="col-8 col-md-10 p-0 checkout-aside-item-data">
					<div class=" col-md-5 px-4 checkout--item-data">
						{% block page_checkout_aside_item_title %}
							{{ parent() }}
						{% endblock %}

						{% block page_checkout_aside_item_variant_characteristics %}
							{{ parent() }}
						{% endblock %}

						{% block page_checkout_aside_item_info_features %}
							{{ parent() }}
						{% endblock %}
					</div>
					{% block page_checkout_aside_item_price %}
						<div class="col-md-2 p-0  checkout-aside-item-link-price">
							{{ lineItem.price.totalPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
						</div>
					{% endblock %}

					{% block page_checkout_aside_item_quantity %}
						<div class="col-md-3 px-4 checkout-aside-item-link-quantity">

							{% if lineItem.quantity and lineItem.type != "promotion" %}
								{{ "checkout.cartHeaderQuantity"|trans }}:
								{{ lineItem.quantity }}
							{% endif %}

						</div>
					{% endblock %}
					<div class="col-md-2 p-0 checkout-aside-item-link-price">
						{{ lineItem.price.totalPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
					</div>
				</div>
			{% endblock %}

			{% block page_checkout_aside_item_children_template %}
				{{parent()}}
			{% endblock %}

		</div>
	{% endblock %}

	{# @deprecated tag:v6.5.0 - block will be removed #}
	{% block page_checkout_aside_item_child %}{% endblock %}
{% endblock %}
