{% import '@SyliusShop/Common/Macro/money.html.twig' as money %}

<div class="checkout-shipment card" {{ sylius_test_html_attribute('shipping-item') }}>
    <header class="shipment-header card-header">
        <div {{ sylius_test_html_attribute('shipping-method-checkbox') }}>
            {{ form_widget(form, sylius_test_form_attribute('shipping-method-select')) }}

            <a {{ sylius_test_html_attribute('shipping-method-label') }}>{{ form_label(form) }}</a>
        </div>

        <div class="shipment-extra">
            <div class="badge badge-secondary" {{ sylius_test_html_attribute('shipping-method-fee') }}>
                {{ money.convertAndFormat(fee) }}
            </div>
        </div>
    </header>

    <div class="shipment-content card-body">
        {% if method.description is not null %}
            <p class="shipment-description card-text">{{ method.description }}</p>
        {% endif %}
    </div>
</div>
