<?php
/**
 * Cart Timer Template for Pixelio Cart Abandon Recovery More plugin.
 *
 * This template displays a countdown timer directly in the WooCommerce cart.
 * It is intended to create urgency for the user to complete the purchase.
 *
 * The timer is styled according to plugin settings and can be positioned
 * according to the "hurry-up" checkbox configuration in the plugin options.
 *
 * PHP version 8.0+
 *
 * @package PixelioCartAbandonRecoveryMore
 */

use PixelioCartAbandonRecoveryMore\Includes\Utils\Pixelio_Cart_Abandon_Recovery_More_Util;

if ( ! defined( 'ABSPATH' ) ) exit;

?>

<div
	class="pixelio-cart-abandon-recovery-more-cart-timer pixelio-cart-abandon-recovery-more-show-timer-in-cart-hurry-up-checkbox-position-<?php echo esc_attr( get_option( 'pixelio-cart-abandon-recovery-more-show-timer-in-cart-hurry-up-checkbox-position', 'bottom' ) ); ?>">
	<p class="pixelio-cart-abandon-recovery-more-cart-timer-description"><?php esc_html_e( 'Your order is reserved for', 'rivio-ai-cart-recovery-marketing-email-automation' ); ?></p>
	<div class="pixelio-cart-abandon-recovery-more-pop-up-middle">
		<div class="pixelio-cart-abandon-recovery-more-pop-up-timer">
			<p class="pixelio-cart-abandon-recovery-more-pop-up-timer-content">1</p>
		</div>
		<div class="pixelio-cart-abandon-recovery-more-pop-up-timer">
			<p class="pixelio-cart-abandon-recovery-more-pop-up-timer-content">5</p>
		</div>
		<div class="pixelio-cart-abandon-recovery-more-pop-up-timer-dot">
			<p class="pixelio-cart-abandon-recovery-more-pop-up-timer-content">:</p>
		</div>
		<div class="pixelio-cart-abandon-recovery-more-pop-up-timer">
			<p class="pixelio-cart-abandon-recovery-more-pop-up-timer-content">0</p>
		</div>
		<div class="pixelio-cart-abandon-recovery-more-pop-up-timer">
			<p class="pixelio-cart-abandon-recovery-more-pop-up-timer-content">0</p>
		</div>
	</div>
	<p class="pixelio-cart-abandon-recovery-more-cart-timer-description pixelio-cart-abandon-recovery-more-cart-timer-description-second"><?php esc_html_e( 'Complete your purchase before the time expires', 'rivio-ai-cart-recovery-marketing-email-automation' ); ?></p>
</div>
