{% set sizes = ['xs','s','m','l','xl'] %}
<div>
<div class="title-state-div"><h4>Taille</h4><span class="toggle-btn-4" id="button-div" onclick="toggleDiv('div-size-bar', 'toggle-btn-4')">-</span></div>
<div class="div-size-bar">
<div class="" id="sylius_product_size">
{% for size in sizes %}
<div class="div-size">
{# <label for=""></label>#}
<input type="checkbox" name="size-product[]" value="{{ size }}" class="product_size">
<div>
<h4>{{ size }}</h4>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<style>
/*.div-size, .div-brand, .div-location, .div-vendor_type{*/
/* position: relative;*/
/* margin: 0 0.5rem;*/
/*}*/
/*.div-size > div {*/
/* position: absolute;*/
/* top: 0;*/
/* z-index: 1;*/
/* width: 4rem;*/
/* display: flex;*/
/* align-items: center;*/
/* justify-content: center;*/
/* height: 100%;*/
/*}*/
/*.div-size > input[type=checkbox], .div-brand > input[type=checkbox], .div-location > input[type=checkbox], .div-vendor_type > input[type=checkbox], .div-vendor_category > input[type=checkbox] {*/
/* z-index: 2;*/
/* cursor: pointer;*/
/*}*/
/*.div-size input[type=checkbox]:checked ~ div, .feature2 input[type=checkbox]:hover ~ div, .div-brand input[type=checkbox]:checked ~ div, .div-location input[type=checkbox]:checked ~ div, .div-vendor_type input[type=checkbox]:checked ~ div {*/
/* border: 2px solid black;*/
/* background-color: black;*/
/* color: white;*/
/*}*/
/*.div-size input[type=checkbox] ~ div, .div-brand input[type=checkbox] ~ div, .div-location input[type=checkbox] ~ div, .div-vendor_type input[type=checkbox] ~ div{*/
/* border: 2px solid black;*/
/* border-radius: 0.5rem;*/
/* text-align: center;*/
/* cursor: pointer;*/
/*}*/
/*.product_size, .product_brand, .product_location, .product_vendor_type{*/
/* -webkit-appearance: none;*/
/* border-radius: 0.5rem;*/
/* display: inline-block;*/
/* position: relative;*/
/* padding: 0.5rem 1rem;*/
/* border: 2px solid transparent;*/
/* width: 4rem;*/
/* height: 2rem;*/
/*}*/
/*#sylius_product_size, #sylius_product_brand, #sylius_product_location, #sylius_product_vendor_type{*/
/* display: flex;*/
/* flex-direction: row;*/
/* gap: 1rem 0;*/
/* flex-wrap: wrap;*/
/*}*/
</style>