<?php

/**
 * The template for displaying payout rejected notification
 *
 * This template can be overridden by copying it to yourtheme/movie-engine/emails/payout-rejected.php.
 *
 * HOWEVER, on occasion MovieEngine will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * NOTE: Inline styles in email templates are intentional for email client compatibility.
 *
 * @note Please do not delete our CSS classes when you customize, as it may break functionality.
 * @package Movie_Engine
 * @subpackage Movie_Engine/templates
 * @version 1.0.0
 * @since 1.0.0
 */

if (! defined("ABSPATH")) {
    exit; // Exit if accessed directly
}
?>

<p><?php printf(
        /* translators: %s: user display name */
        esc_html__('Hi %s,', 'cine-movie-engine'),
        esc_html($movie_engine_user_name)
    ); ?></p>
<p><?php esc_html_e('The following payout request has been rejected by our team:', 'cine-movie-engine'); ?></p>
<div style="background: #fff1f2; border-left: 4px solid #e11d48; padding: 15px; margin: 20px 0;">
    <p style="margin: 0; font-size: 16px; color: #9f1239;">
        <strong><?php esc_html_e('Amount:', 'cine-movie-engine'); ?> $<?php echo esc_html($movie_engine_amount); ?></strong>
    </p>
    <?php if (!empty($movie_engine_reason)) : ?>
        <p style="margin: 10px 0 0 0; color: #881337;">
            <strong><?php esc_html_e('Reason:', 'cine-movie-engine'); ?></strong> <?php echo esc_html($movie_engine_reason); ?>
        </p>
    <?php endif; ?>
</div>
<p><?php esc_html_e('The amount has been returned to your account balance. Please update your payout details if necessary and try again.', 'cine-movie-engine'); ?></p>
<p>
    <a href="<?php echo esc_url($movie_engine_dashboard_link); ?>" style="background-color: #334155; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 4px; display: inline-block;">
        <?php esc_html_e('Check Dashboard', 'cine-movie-engine'); ?>
    </a>
</p>