<?php
/**
 * Stablezact Payment Modal Template - Refactored for CoinleyVanilla SDK
 *
 * This template now uses the CoinleyVanilla SDK for simplified payment processing.
 * The SDK is loaded in the gateway class payment_scripts method.
 *
 * @package Stablezact
 */

defined('ABSPATH') || exit;
?>

<!-- Simplified modal for CoinleyVanilla SDK integration -->
<div id="stablezact-payment-modal" class="coinley-modal" style="display: none;">
    <div class="stablezact-modal-overlay"></div>
    <div class="stablezact-modal-container">
        <div class="stablezact-modal-header">
            <img src="<?php echo esc_url(STABLEZACT_PLUGIN_URL . 'assets/images/stablezact-logo.png'); ?>" alt="Stablezact" class="coinley-logo">
            <button type="button" class="stablezact-modal-close" aria-label="<?php esc_attr_e('Close', 'stablezact-crypto-payments'); ?>">×</button>
        </div>
        
        <!-- Simplified content - CoinleyVanilla SDK handles the payment UI -->
        <div class="stablezact-modal-content">
            <h2><?php esc_html_e('Processing Payment', 'stablezact-crypto-payments'); ?></h2>
            <p><?php esc_html_e('Please wait while we initialize the payment system...', 'stablezact-crypto-payments'); ?></p>
        </div>

        <!-- Loading Overlay -->
        <div class="stablezact-loading-overlay" style="display: none;">
            <div class="stablezact-spinner"></div>
            <p class="stablezact-loading-text"><?php esc_html_e('Initializing payment...', 'stablezact-crypto-payments'); ?></p>
        </div>
    </div>
</div>

<!-- Note: The CoinleyVanilla SDK will handle all payment UI and modals. The SDK-loaded
     check previously inlined here now lives in assets/js/payment-modal.js (wp_enqueue policy). --><?php

// Remove all the old complex modal steps since CoinleyVanilla SDK handles this
// The old template had steps for: select, wallet, confirm, success
// These are now handled by the CoinleyVanilla SDK's built-in modal
?>