{% sw_extends '@Storefront/storefront/component/product/card/box-wishlist.html.twig' %}

{% block component_product_box_wishlist %}
	<div class="product-wishlist product-wishlist-remove">
		{% block component_product_wishlist_remove_form %}
			{% set size = size ?? 'md' %}
			<form action="{{ path('frontend.wishlist.product.delete', {'id': id}) }}" method="post" class="product-wishlist-form" data-form-csrf-handler="true">
				{% block component_product_wishlist_remove_redirect %}
					<input type="hidden" name="redirectTo" value="frontend.wishlist.page"/>
				{% endblock %}
				{% block component_product_wishlist_remove_submit %}
					<button type="submit" class="btn product-wishlist-btn product-wishlist-btn-remove">
						{% sw_icon 'x' style { 'class': 'icon-wishlist icon-wishlist-remove', 'size': size, 'pack': 'solid' } %}
					</button>
				{% endblock %}
			</form>
		{% endblock %}
	</div>
{% endblock %}
