<?php
/**
 * Product description step 6 refund guarantee template.
 *
 * @package SAAI
 */

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

?>

<div class="saai-product-description-form-step saai-product-description-form-step-6 <?php echo ! empty( $refund_guarantee ) ? 'valid' : ''; ?>" data-step="6">
    <h3><?php esc_html_e( 'Refunds/Guarantee Information', 'storeagent-ai-for-woocommerce' ); ?></h3>
    <div class="saai-product-description-form-step-content">
        <div class="saai-optional-step-switch-form-field">
            <label for="saai-product-description-form-field-refund-guarantee"><?php esc_html_e( 'Do you want to include information about a refund/guarantee?', 'storeagent-ai-for-woocommerce' ); ?></label>
            <div class="saai-switch-container saai-optional-step-switch">
                <span class="saai-switch-label"><?php esc_html_e( 'No', 'storeagent-ai-for-woocommerce' ); ?></span>
                <label class="saai-switch">
                    <input type="checkbox" id="saai-product-description-form-field-refund-guarantee" value="yes" <?php checked( (bool) $refund_guarantee, true ); ?> />
                    <span class="saai-switch-slider"></span>
                </label>
                <span class="saai-switch-label"><?php esc_html_e( 'Yes', 'storeagent-ai-for-woocommerce' ); ?></span>
            </div>
        </div>

        <div class="saai-product-description-form-field">
            <label for="saai-product-description-form-field-refund-guarantee-text"><?php esc_html_e( 'Refund/guarantee information:', 'storeagent-ai-for-woocommerce' ); ?></label>
            <textarea id="saai-product-description-form-field-refund-guarantee-text" name="refund_guarantee"><?php echo esc_textarea( $refund_guarantee ); ?></textarea>
        </div>

        <div class="saai-product-description-step-actions-field">
            <button type="button" class="button previous-step-button">
                <?php esc_html_e( 'Back', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
            <button type="button" class="button-primary next-step-button">
                <?php esc_html_e( 'Next', 'storeagent-ai-for-woocommerce' ); ?>
            </button>
        </div>
    </div>
</div>
