<div class="fixed-bottom bg-white border-top shadow-lg" style="height: 60px;">
    <div class="d-flex">
        <div class="py-1 pl-2 pl-md-5 text-center">
            <strong>-{$cartRule->reduction_percent}%</strong><br>
            <small>avec le code</small>
        </div>
        <div class="px-5 py-3">
            <strong class="badge badge-primary" style="font-size: 14pt;">{$cartRule->code}</strong>
        </div>
        <div class="py-3 d-none d-xl-block">
            <span class="sma">{$cartRule->description}</span>
        </div>
        <div class="ml-auto">
            <div class="d-flex">
                <div class="py-1 pl-2 pr-sm-3 pr-md-5 text-center d-none d-sm-block">
                    {if $combination}
                        <small>{$combinationVariation}<br/><strong>{$combinationPrice}&nbsp;€</strong></small>
                    {/if}
                </div>
                <div class="py-2 pr-2 pr-md-5">
                    {if $combination}
                        {assign var=unique_id value=10|mt_rand:10000000000000}
                        <form action="{$urls.pages.cart}" method="post" id="form-{$unique_id}">
                            <input type="hidden" name="token" value="{$static_token}">
                            <input type="hidden" name="id_product" value="{$combination->id_product}">
                            <input type="hidden" name="id_product_attribute" value="{$combination->id}">
                            <input type="hidden" name="id_customization" value="0">
                            <input type="hidden" name="qty" value="1">

                            <div class="add">
                                <button class="btn btn-primary add-to-cart" data-button-action="add-to-cart" type="submit" form="form-{$unique_id}">
                                    <i class="material-icons shopping-cart">shopping_cart</i>
                                    Ajouter au panier
                                </button>
                            </div>
                        </form>
                    {/if}
                </div>
            </div>
        </div>
    </div>
</div>
