{% set string = app.request.cookies.get('last-seen') %}
<div class="tabs {% if background|default %} tabs--{{ background }}{% endif %}">
<div class="tabs__inner">
{% if headline is defined %}
<div class="tabs__headline">
{{ render_storyblok(headline) }}
</div>
{% endif %}
{% if entries|length > 0 %}
<div class="tabs__entries" role="radiogroup" aria-label="Tabs">
{% for entry in entries %}
{% block entry %}
{% if entry.component != 'last-seen-product-slider' or string is not null and string is not empty%}
{% set id = entry._uid|default(entry.id|default()) %}
<input class="tabs__input" type="radio" id="{{ id }}" name="css-tabs-{{ _uid|default }}" {% if (loop.index == 1) %}checked {% endif %}>
{% else %}
{% endif %}
{% endblock %}
{% endfor %}
<div class="tabs__scroll">
{% for entry in entries %}
{% if entry.component != 'last-seen-product-slider' or string is not null and string is not empty%}
{% set id = entry._uid|default(entry.id|default()) %}
<label for="{{ id }}" class="tabs__entry-label tabs__headline">
{{ entry.headline.text|default(entry.headline[0].text|default) }}
</label>
{% endif %}
{% endfor %}
</div>
{% for entry in entries %}
<div class="tabs__content tabs__content--position" >
{% block entryContent %}
{% if html_content is defined and html_content is not empty %}
{{ html_content }}
{% else %}
{{ render_storyblok(entry, {
'headline': [],
}) }}
{% endif %}
{% endblock %}
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>