/* Add custom CSS styles below */ 
(function () {
  var SELECTOR = '.store-footer__inner, .footer-1, .footer-2';

  function strip(el) {
    if (el && el.style && el.style.display) {
      el.style.removeProperty('display'); // give the toggle back to the stylesheet
    }
  }

  function sweep(scope) {
    (scope || document).querySelectorAll(SELECTOR).forEach(strip);
  }

  function init() {
    var footer = document.querySelector('footer.store-footer');
    if (!footer || footer.__footerGuard) return;
    footer.__footerGuard = true;

    sweep(footer);

    // Catch late / repeated injection (setTimeout, app scripts, hydration, re-renders)
    new MutationObserver(function (mutations) {
      mutations.forEach(function (m) {
        if (m.attributeName !== 'style') return;
        if (m.target.matches && m.target.matches(SELECTOR)) strip(m.target);
      });
    }).observe(footer, { subtree: true, attributes: true, attributeFilter: ['style'] });
  }

  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', init);
  } else {
    init();
  }
  // Re-assert after everything (apps, lazy scripts) has settled.
  window.addEventListener('load', init);
})()