<?php
/**
 * Category description form preview template.
 *
 * @package SAAI
 */

if ( ! defined( 'ABSPATH' ) ) {
    die( 'You are not allowed to call this page directly.' );
}
?>

<div class="saai-category-description-preview" style="display: none;">
    <div class="saai-category-description-preview-loading">
        <div class="saai-spinner"></div>
        <p><?php esc_html_e( 'Generating category description...', 'storeagent-ai-for-woocommerce' ); ?></p>
    </div>
    <div class="saai-category-description-preview-result" style="display: none;">
        <div class="saai-category-description-preview-content"></div>
        <div class="saai-category-description-preview-actions">
            <button type="button" class="button-primary saai-button saai-button-main saai-action-button" id="use-category-description-button">
                <?php esc_html_e( 'Use Description', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
            <button type="button" class="button saai-button saai-button-secondary" id="edit-category-description-button">
                <?php esc_html_e( 'Edit', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
        </div>
    </div>
</div>
