{% sw_extends '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
{% block page_product_detail_configurator_option %}
{% set showParent = true %}
{% set addCustomClass = '' %}
{% if option.id in page.unavailable %}
{% if page.hideselection %}
{# output nothing, field is hidden#}
{% set showParent = false %}
{% else %}
{% set isCombinableCls = false %}
{% endif %}
{% endif %}
{% if showParent %}
{% if page.product.availableStock < 1 %}
{% for optionId in page.product.optionIds %}
{% if optionId == option.id %}
{% set addCustomClass = 'current-out-of-stock' %}
{% endif %}
{% endfor %}
{% endif %}
<div class="product-detail-configurator-option {{ addCustomClass }}">
{% block page_product_detail_configurator_option_radio %}
{{ parent() }}
{% endblock %}
</div>
{% endif %}
{% endblock %}