{% sw_extends '@Storefront/storefront/element/cms-element-contact-options.html.twig' %}
{% block contact_options %}
<div class="flex flex-col">
<div class="flex flex-col w-full text-start md:text-center">
<div class="text-2xl md:text-4xl text-grey-900 font-display font-bold tracking-tight">{{ element.config.title.value }}</div>
<div class="text-base text-grey-600 font-body my-6">{{ element.config.description.value }}</div>
</div>
<div class="contact-options flex flex-col justify-center mt-6 md:flex-row space-x-0 md:space-x-6 space-y-4 md:space-y-0">
{% if element.config.options.value %}
{% for option in element.config.options.value %}
{% set icon %}
{% if option.type == 'mail' %}
{% sw_icon 'mail' style{'pack': 'theme-icons', 'class': 'text-red-300 w-5 xl:w-10 3xl:w-16'} %}
{% elseif option.type == 'facebook' %}
{% sw_icon 'facebook' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
{% elseif option.type == 'instagram' %}
{% sw_icon 'instagram' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
{% elseif option.type == 'phone' %}
{% sw_icon 'phone' style{'pack': 'theme-icons', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
{% elseif option.type == 'store' %}
{% sw_icon 'locator' style{'pack': 'default', 'class': 'w-5 xl:w-10 3xl:w-16'} %}
{% endif %}
{% endset %}
<div class="flex flex-col gap-y-6 justify-between w-full bg-grey-50 rounded-sm p-6">
<div class="hidden contact-option-icon mb-4 flex justify-start flex-shrink-0 text-black"
data-icon="{{ option.type }}">
{{ icon }}
</div>
<div class="space-y-6">
<h1 class="font-bold font-display text-2xl tracking-tight"> {{ option.title }} </h1>
<p class="font-body text-sm "> {{ option.subtitle|raw }} </p>
</div>
{% if option.url and option.actionText %}
<a href="{{ option.url }}"
role="button"
{% if option.newTab %}
target="_blank"
{% endif %}
class="flex justify-start contact-option-title uppercase font-bold font-accent text-sm text-center w-full lg:w-fit md:w-auto py-2 px-4 grid-gap-x-2 h-[40px] flex justify-center items-center border border-grey-900 tracking-wider hover:text-grey-400 hover:border-grey-400">
{{ option.actionText }}
{% if option.btnIcon %}
<span class="w-4 h-auto">{% sw_icon 'chevron-right' style{'pack': 'theme-icons', 'class': ' w-4 mr-4 flex items-center '} %}</span>
{% endif %}
</a>
{% endif %}
</div>
{% endfor %}
{% endif %}
</div>
</div>
{% endblock %}