<?php use function App\Core\{e, t, url}; ?>
<?php if (empty($_COOKIE['zalorox_cookie_consent'])): ?>
<section class="cookie-consent" data-cookie-consent data-cookie-endpoint="<?= e(url('/api/cookie-consent/save')) ?>" data-cookie-saved="<?= e(t('cookie_saved')) ?>" data-cookie-saved-local="<?= e(t('cookie_saved_local')) ?>" aria-live="polite">
    <div>
        <strong><?= e(t('cookie_title')) ?></strong>
        <p><?= e(t('cookie_description')) ?></p>
    </div>
    <div class="cookie-prefs">
        <label><input type="checkbox" checked disabled> <?= e(t('cookie_necessary')) ?></label>
        <label><input type="checkbox" data-cookie-category="analytics"> <?= e(t('cookie_analytics')) ?></label>
        <label><input type="checkbox" data-cookie-category="personalization"> <?= e(t('cookie_personalization')) ?></label>
        <label><input type="checkbox" data-cookie-category="marketing"> <?= e(t('cookie_marketing')) ?></label>
    </div>
    <div class="cookie-actions">
        <button type="button" class="pill" data-cookie-save="necessary"><?= e(t('cookie_necessary_only')) ?></button>
        <button type="button" class="pill" data-cookie-save="reject"><?= e(t('cookie_reject')) ?></button>
        <button type="button" class="pill primary" data-cookie-save="all"><?= e(t('cookie_accept_all')) ?></button>
    </div>
</section>
<?php endif; ?>
