<!-- /templates/marketing_modal.php 1-->
<div class="modal fade modal-marketing" id="marketingModal2" tabindex="-1" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content" style="position: relative; <?php 
			if (!empty(POPUP2_BG)) {
				echo "background: url('" . POPUP2_BG . "') top center; background-size: cover;";
			  } elseif (defined('POPUP2_BG_COLOR') && POPUP2_BG_COLOR !== '') {
				echo "background: " . POPUP2_BG_COLOR . ";";
			  } else {
				echo "background: var(--popup-default-bg);"; // e.g., set in your global CSS
			  }
		?>">
      <!-- Close button positioned absolutely -->
      <button type="button" class="btn-close popup-close" data-bs-dismiss="modal" aria-label="Close"></button>
      <div class="modal-body" style="padding-top: 0;">
        <?php 
		if (defined('POPUP2_CONTENT') && !empty(POPUP2_CONTENT)) {
		echo POPUP2_CONTENT;
		}
		?>
      </div>
    </div>
  </div>
</div>