{% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
{% block page_product_detail_buy_quantity_container %}
<div class="col-12 col-md-4 mb-2">
{% set selectQuantityThreshold = 100 %}
{% block page_product_detail_buy_quantity %}
<div class="fourtwosix-add-unit">
{% if (product.calculatedMaxPurchase - product.minPurchase) / product.purchaseSteps > selectQuantityThreshold %}
{% block page_product_detail_buy_quantity_input_group %}
<div class="input-group">
{% block page_product_detail_buy_quantity_input %}
<div class="d-flex">
{{parent()}}
{% if page.product.unit != null %}
<input class="form-control w-25" type="text" placeholder="{{page.product.unit.shortCode}}" readonly>
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_buy_quantity_input_unit %}
{{parent()}}
{% endblock %}
</div>
{% endblock %}
{% else %}
{% block page_product_detail_buy_quantity_select %}
<div class="d-flex">
{{parent()}}
{% if page.product.unit != null %}
<input class="form-control w-25" type="text" placeholder="{{page.product.unit.shortCode}}" readonly>
{% endif %}
</div>
{% endblock %}
{% endif %}
</div>
{% endblock %}
</div>
{% endblock %}
{% block page_product_detail_buy_button_container %}
<div class="col-12 col-md-8">
{% block page_product_detail_buy_button %}
{{parent()}}
{% endblock %}
</div>
{% endblock %}