{% assign normalProduct = false %}
{% if product and template != 'product.alternate' %}
  {% assign normalProduct = true %}
{% endif %}
{%if template != 'index' or 1 %}
  {% if settings.newsletter_form_action != blank or normalProduct or 1 %}
  <div id="popUps">
    {%if product and settings.product_zoom_type == 'full' %}
      <div id="gallery" class="innerWrapper closePopOut">
        <a class="closePopOut closeIcon" href="#">
          {%include 'svg-definitions' with 'close'%}
        </a>
        <div class="grid animateIn">
          {%for image in product.images%}
            <img id="indexImage_{{forloop.index}}" src="{{ image.src | img_url: '1024x1024' }}" alt="{{ image.alt | escape }}">
          {%endfor%}
        </div>
      </div>
    {%endif%}
    {%if product and settings.display_sizing_chart %}
      {% assign size_chart_page = settings.sizing_chart_page %}
      <div id="sizeChart" class="innerWrapper closePopOut">

        <a class="closePopOut closeIcon" href="#">
          {%include 'svg-definitions' with 'close'%}
        </a>
        <div class="grid animateIn">
          <div class="size_chart_wrapper">
              {{ pages[size_chart_page].content }}
          </div>
        </div>
      </div>
    {%endif%}

    {%if settings.cart_terms_enable %}
      {% assign cart_terms_page = settings.cart_terms_page %}
      <div id="termsPopup" class="innerWrapper closePopOut">

        
        <div class="grid animateIn">
          <a class="closePopOut closeIcon" href="#">
          {%include 'svg-definitions' with 'close'%}
        </a>
          <div class="term_page_wrapper">
              
            
          </div>
        </div>
      </div>
    {%endif%}
  
    {%if template == 'page.contact' and settings.contact_terms_enable %}
      {% assign contact_terms_page = settings.contact_terms_page %}
      <div id="ContactTermsPopup" class="innerWrapper closePopOut">

        <a class="closePopOut closeIcon" href="#">
          {%include 'svg-definitions' with 'close'%}
        </a>
        <div class="grid animateIn">
          <div class="contact_term_page_wrapper">
              {{ pages[contact_terms_page].content }}
          </div>
        </div>
      </div>
    {%endif%}
    {%if settings.upsell_enable == true %}
      
      <div id="CartUpsellPopup" class="innerWrapper closePopOut">

<!--          <a class="closePopOut closeIcon" href="#">
          {%include 'svg-definitions' with 'close'%}
        </a>  -->
        <div class="grid animateIn">
          <div class="cart_upsell_popup">
              
            {%include 'product-upsell' %}
          </div>
          {%if settings.downsell_enable == true %}
          	<div class="cart_downsell_popup">
              
              {%include 'product-downsell' %}
            </div>
          {% endif %}
        </div>
      </div>
    {%endif%}
	<div id="footer_gallery" class="innerWrapper closePopOut">
        <a class="closePopOut closeIcon" href="#">
            <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 224.512 224.512" style="enable-background:new 0 0 224.512 224.512;" xml:space="preserve">
                <g>
                    <polygon points="224.507,6.997 217.521,0 112.256,105.258 6.998,0 0.005,6.997 105.263,112.254 
                        0.005,217.512 6.998,224.512 112.256,119.24 217.521,224.512 224.507,217.512 119.249,112.254 	"/>
                </g>
            </svg>
        </a>
        <div>
            <img style="widht:100%;margin-top: 100px;">
        </div>
    </div>
  </div>

  {% endif %}
{% endif %}
