<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php if(!isset($_COOKIE['anbaarak_modal-guide-search'])): ?>
<div class="micro-modal micromodal-slide guide-modal" id="modal-guide-search" data-attach=".search-form-wrapper" aria-hidden="true">
    <div class="modal__overlay" tabindex="-1" data-micromodal-close>
        <div class="modal__container box" role="dialog" aria-modal="true" aria-labelledby="modal-1-title">
            <header class="modal__header">
                <h2 class="modal__title"><?php esc_html_e('Search Guide', 'anbarak') ?></h2>
                <button class="modal__close" type="button" aria-label="Close modal" data-micromodal-close></button>
            </header>
            <main class="modal__content">
            <p><?php esc_html_e('To search in the current page, just type. To search all products, press <kbd>Enter</kbd> after typing.', 'anbarak') ?></p>
            </main>
        </div>
    </div>
</div>
<?php endif; ?>
