<?php
/**
 * Hyva-compatible Success Message Template
 * Uses Tailwind CSS styling
 */

use Magento\Framework\Escaper;

/** @var $block \TbiBank\FusionPay\Block\Frontend\SuccessMessage */
/** @var Escaper $escaper */

if (!$block->showFusionPayMessage()) {
    return;
}
?>

<div class="fusion-pay-custom-message bg-blue-50 border border-blue-200 rounded-lg p-6 my-4">
    <div class="flex items-start">
        <div class="flex-shrink-0">
            <svg class="h-6 w-6 text-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
            </svg>
        </div>
        <div class="ml-3 flex-1">
            <h3 class="text-lg font-semibold text-blue-900 mb-2">
                <?= $escaper->escapeHtml(__("Attention: Complete Your tbi bank Application")) ?>
            </h3>
            <div class="text-sm text-blue-800 space-y-2">
                <p>
                    <?= $escaper->escapeHtml(__("If you haven't finished your tbi bank application, you have 24 hours to do so. Check your email for a link. If you have a Bank Application ID, expect a call from us soon.")) ?>
                </p>
                <p class="font-medium">
                    <?= $escaper->escapeHtml(__("Thank you.")) ?>
                </p>
            </div>
        </div>
    </div>
</div>
