<?php
/**
 * Default customer reset password email template.
 *
 * @package MailDoctor
 */

defined( 'ABSPATH' ) || exit;

$mail_doctor_defaults = array(
	'subject' => 'Reset your {{shop_name}} password',
	'heading' => 'Reset your password',
	'html'    => '<div class="wpmd-email">' .
		'<div class="wpmd-email__logo">{{shop_brand}}</div>' .
		'<h1>{{heading}}</h1>' .
		'<p>Hello {{customer_name}}, we received a request to reset the password for your {{shop_name}} account.</p>' .
		'<p>Use the button below to choose a new password. If you did not request this change you can ignore this message.</p>' .
		'<p><a class="wpmd-email__button" href="{{reset_url}}">Set a new password</a></p>' .
		'<p>This link will expire soon for your security.</p>' .
		'</div>',
	'css'     => '.wpmd-email{font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;padding:24px;background:#ffffff;color:#0f172a;text-align:left;}' .
		'.wpmd-email h1{margin-top:0;font-size:26px;color:#1d4ed8;}' .
		'.wpmd-email__logo{margin:0 0 16px;text-align:center;}' .
		'.wpmd-email__logo img{max-width:200px;height:auto;}' .
		'.wpmd-brand-text{font-weight:700;font-size:20px;color:inherit;}' .
		'.wpmd-email__button{display:inline-block;padding:12px 20px;background:#2563eb;color:#ffffff;text-decoration:none;border-radius:4px;}' .
		'.wpmd-email__button:hover{background:#1e3a8a;}',
);

global $mail_doctor_collecting_defaults;

if ( ! empty( $mail_doctor_collecting_defaults ) ) {
	return $mail_doctor_defaults;
}

echo wp_kses_post(
	mail_doctor_render_email(
		'customer_reset_password',
		0,
		array(
			'defaults' => $mail_doctor_defaults,
		)
	)
);
