{% if affiliation_offers.offers is not empty or affiliation_offers.best_amazon_offer is not empty or affiliation_offers.best_ebay_offer is not empty  %}

<section id="prices" class="relative">


    {% if section_title %}
    <h2 class="font-condensed font-normal text-4xl mb-1">Dove comprare</h2>
    <div class="text-base mb-4 text-[#888]">Le migliori offerte per {{data.brand|raw}} {{data.model|raw}}.</div>
    <hr>
    <div class="text-base my-4 text-[#888]">Gli acquisti da link affiliati generano commissioni per HDB. I prezzi possono variare post pubblicazione.</div>
    <div class="absolute -left-28 top-0 w-24 flex flex-col items-end">
        <div class="related_box_icon_left relative bg-primary w-20 h-20 flex flex-col items-center justify-center mb-2 mr-2.5">
            <div class="ttag mb-1"></div>
            <div class="text-white text-center text-xs font-medium">
                Prezzi
            </div>
        </div>
    </div>
    {% endif %}
    
    <div class="grid grid-cols-1 gap-4 my-6">

        {% if affiliation_offers.best_amazon_offer is not empty %}
        {% set item = affiliation_offers.best_amazon_offer %}
        {% include "templates/components/cards/card-affiliation.twig" with {class: 'is_premium'} %}
        {% endif %}

        
        {% if affiliation_offers.best_ebay_offer is not empty %}
        {% set item = affiliation_offers.best_ebay_offer %}
        {% include "templates/components/cards/card-affiliation.twig" with {class: 'is_premium'} %}
        {% endif %}


        {% for item in affiliation_offers.offers %}
        {% if item.type == 'domination' %}
            {% include "templates/components/cards/card-domination-prices.twig" %}
            {% else %}
                {% include "templates/components/cards/card-affiliation.twig" %}
            {% endif %}
        {% endfor %}
    </div>
</section>

{% endif %}