{**
 * Copyright 2024-2025 Simply.IN Sp. z o.o.
 *
 * NOTICE OF LICENSE
 *
 * Licensed under the EUPL-1.2 or later.
 * You may not use this work except in compliance with the Licence.
 *
 * Copy of the Licence is available at:
 * https://joinup.ec.europa.eu/software/page/eupl
 * It is bundled with this package in the file LICENSE.txt
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the Licence is distributed on an as is basis,
 * without warranties or conditions of any kind, either express or implied.
 * Check the Licence for the specific language governing permissions
 * and limitations under the License.
 *
 * @author    Simply.IN Sp. z o.o.
 * @copyright 2024-2025 Simply.IN Sp. z o.o.
 * @license   https://joinup.ec.europa.eu/software/page/eupl
 *}

{**
 * Offer of Simply.IN 1-click to a shopper the SHOP considers authenticated but who holds no
 * Simply.IN authorization. Rendered SERVER-side from a display hook, so the theme owns the
 * placement and no client-side injection is involved. In the reference theme the card is simply
 * never destroyed by an AJAX cart update — the hook sits at page level, outside the partials that
 * update re-renders.
 *
 * Purely additive by construction — it renders beside the theme's own markup and never overlays,
 * covers or disables any of it, so the native checkout stays fully usable whether the shopper
 * ignores this or our flow fails.
 *
 * type="button" is load-bearing: the card can land inside one of the theme's own forms, and a
 * default-type button there would submit that form on click.
 *}
<div class="simplyin-one-click">
    <div class="simplyin-one-click-copy">
        <img class="simplyin-logo-brand simplyin-one-click-logo" src="{$module_path|escape:'html':'UTF-8'}views/img/logo_medium.svg" alt="simply.in"/>
        <span class="simplyin-one-click-title">{l s='Finish your order in one click' mod='simplyin'}</span>
        <span class="simplyin-one-click-subtitle">{l s='Your saved delivery address and payment details are ready, with no forms to fill in.' mod='simplyin'}</span>
    </div>
    {* The CTA names what it switches on, not a destination. This card also renders in the CART,
       where "check out in one click" would read as an alternative checkout path — the shopper never
       leaves the shop's own checkout, so the copy must not imply otherwise. *}
    <button type="button" class="simplyin-btn simplyin-btn-primary simplyin-one-click-button">{l s='Use 1-click for this order' mod='simplyin'}</button>
</div>
