<!-- /templates/marketing_modal.php 1-->

<div class="modal fade modal-marketing" id="marketingModal" tabindex="-1" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content" style="position: relative; <?php 
			if (!empty(POPUP1_BG)) {
				echo "background: url('" . POPUP1_BG . "') top center; background-size: cover;";
			  } elseif (defined('POPUP1_BG_COLOR') && POPUP1_BG_COLOR !== '') {
				echo "background: " . POPUP1_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('POPUP1_CONTENT') && !empty(POPUP1_CONTENT)) {
		echo POPUP1_CONTENT;
		}
		?>
      </div>
    </div>
  </div>
</div>

