<div class="card-brutal overflow-hidden">
    <div class="section-header">
        <h2 class="text-[10px] font-black uppercase tracking-widest text-white">Recapitulatif</h2>
    </div>
    <div class="p-6">
        <p class="font-black uppercase text-sm tracking-widest mb-4">{{ order.event.title }}</p>

        {% for item in order.items %}
        <div class="flex justify-between py-2 {{ not loop.last ? 'border-b border-gray-200' : '' }}">
            <div>
                <p class="font-bold text-sm">{{ item.billetName }}</p>
                <p class="text-xs text-gray-400 font-bold">x{{ item.quantity }} — {{ item.unitPriceHTDecimal|number_format(2, ',', ' ') }} &euro;/u</p>
            </div>
            <p class="font-black text-sm text-indigo-600">{{ item.lineTotalHTDecimal|number_format(2, ',', ' ') }} &euro;</p>
        </div>
        {% endfor %}

        <div class="flex justify-between pt-4 mt-4 border-t-2 border-gray-900">
            <span class="font-black uppercase text-sm">Total HT</span>
            <span class="font-black text-lg text-indigo-600">{{ order.totalHTDecimal|number_format(2, ',', ' ') }} &euro;</span>
        </div>

        {% if order.orderNumber %}
            <p class="text-[10px] font-bold text-gray-400 mt-2">Commande {{ order.orderNumber }}</p>
        {% endif %}
    </div>
</div>
