<?php
/**
 * Post-Snooze Notification Banner
 *
 * One-shot amber banner shown immediately after a subscriber snoozes
 * an order, confirming the action and surfacing the Resume Early
 * affordance. The transient that drives this banner is consumed by
 * the renderer before this template runs.
 *
 * This template can be overridden by copying it to yourtheme/autoship-cloud/templates/scheduled-orders/snooze-notification-banner-template.php
 *
 * @package Autoship
 * @subpackage Templates
 *
 * @var string $resume_date Localised resume date, or empty string when unavailable.
 */

defined( 'ABSPATH' ) || exit;
?>
<div class="autoship-snooze-notice-banner">
	<div class="autoship-snooze-notice-content">
		<?php
		if ( ! empty( $resume_date ) ) {
			echo wp_kses(
				sprintf(
					/* translators: 1: resume date, 2: opening em, 3: closing em */
					__( 'Your order has been snoozed. It will automatically resume on <strong>%1$s</strong>. To resume earlier, click %2$sResume Early%3$s below.', 'autoship' ),
					esc_html( $resume_date ),
					'<em>',
					'</em>'
				),
				array(
					'strong' => array(),
					'em'     => array(),
				)
			);
		} else {
			echo esc_html( __( 'Your order has been snoozed. To resume earlier, click Resume Early below.', 'autoship' ) );
		}
		?>
	</div>
</div>
