<?php
/**
 * GT BOGO Mobile Optimizer — Sticky Savings Badge
 * Template: floating cart shortcut shown on mobile when BOGO savings are active.
 * Variables passed from GT_BOGO_Mobile_Optimizer::render_sticky_savings_badge()
 *   $cart_url  (esc_url'd cart URL)
 *   $savings   (wp_kses_post'd formatted price)
 *   $touch_min (int, minimum touch target px)
 */
if ( ! defined( 'ABSPATH' ) ) exit;
?>
<a href="<?php echo esc_url( $cart_url ); ?>"
   class="gt-bogo-sticky-savings-badge"
   style="position:fixed;bottom:14px;right:14px;background:var(--gtbogo-sp-accent,#E10000);color:var(--gtbogo-sp-text-on-accent,#fff);padding:12px 18px;border-radius:50px;text-decoration:none;font-family:inherit;font-size:var(--gtbogo-sp-fs-base,13px);font-weight:var(--gtbogo-sp-fw-ui,700);letter-spacing:var(--gtbogo-sp-tracking,0.5px);box-shadow:0 4px 14px rgba(0,0,0,0.15);z-index:9998;display:flex;align-items:center;gap:8px;min-height:<?php echo absint( $touch_min ); ?>px;">
    <span style="font-size:11px;opacity:0.85;">SAVING</span>
    <span><?php echo wp_kses_post( $savings ); ?></span>
    <span style="font-size:14px;">&#8594;</span>
</a>
