{% set isAjaxOffcanvas = false %}
{% block utilities_offcanvas_meta %}
{# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
{% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
{% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
{% endif %}
{% endblock %}
{% block utilities_offcanvas %}
{# @deprecated tag:v6.5.0 - Bootstrap v5 adds `.offcanvas-header` wrapper #}
{% if feature('v6.5.0.0') %}
{% block utilities_offcanvas_header %}
<div class="offcanvas-header p-0">
{% block utilities_offcanvas_close %}
{# @deprecated tag:v6.5.0 - Bootstrap v5 will not require classes `.btn-block .sticky-top`. Only `.offcanvas-body` will be scrollable #}
<button class="offcanvas-close js-offcanvas-close w-full px-8 py-4 flex justify-end">
{% block utilities_offcanvas_close_icon %}
{% sw_icon 'x' style { 'size': '18' } %}
{% endblock %}
</button>
{% endblock %}
</div>
{% endblock %}
{% else %}
{{ block('utilities_offcanvas_close') }}
{% endif %}
{% block offcanvas_search %}
<div class="header-search w-full m-0 text-grey-200 max-w-full">
<form action="{{ path('frontend.search.page') }}"
method="get"
data-search-form="true"
data-url="{{ path('frontend.search.suggest') }}?search="
class="header-search-form relative border-0">
{% block layout_header_search_input_group %}
<div class="input-group w-full">
{% block layout_header_search_input %}
<input type="search"
name="search"
class="form-control header-search-input w-full !px-3 !pr-6 !py-2 !border !border-grey-700 !text-sm !bg-grey-600 focus:!bg-white !placeholder-gray-200 !transition !rounded-sm !duration-500 focus:!placeholder-black md:!w-[240px] !shadow-header"
autocomplete="off"
autocapitalize="off"
placeholder="{{ "header.searchPlaceholder"|trans|striptags }}"
aria-label="{{ "header.searchPlaceholder"|trans|striptags }}"
value="{{ page.searchTerm }}"
>
{% endblock %}
<button class="btn-toggle header-actions-btn p-0 shrink-0 absolute flex align-center justify-center right-4 top-2"
type="submit"
aria-label="{{ "header.searchButton"|trans|striptags }}">
{% sw_icon 'search' style{'pack': 'theme-icons'} %}
</button>
</div>
{% endblock %}
</form>
</div>
{% endblock %}
{% block utilities_offcanvas_content_container %}
{# @deprecated tag:v6.5.0 - Bootstrap v5 will use class `.offcanvas-body` to wrap the offcanvas content #}
<div class="{% if feature('v6.5.0.0') %}offcanvas-body{% else %}offcanvas-content-container{% endif %}">
{% block utilities_offcanvas_content %}{% endblock %}
</div>
{% endblock %}
{# Custom footer by nodots #}
{% block utilities_offcanvas_footer_container %}
<div class="offcanvas-content-footer sticky bottom-0 left-0">
{% block utilities_offcanvas_footer %}{% endblock %}
</div>
{% endblock %}
{% endblock %}