/* Scoped to: mobile-launch-template-faq */
(function() {
  'use strict';
  var componentRoots = document.querySelectorAll('[data-component-slug="mobile-launch-template-faq"]');
  componentRoots.forEach(function(componentRoot) {
    // Helper to query within component, with fallback to document for sibling elements
    var $ = function(sel) { 
      return componentRoot.querySelector(sel) || document.querySelector('[data-component-slug="mobile-launch-template-faq"] ~ ' + sel) || document.querySelector(sel);
    };
    var $$ = function(sel) { 
      var results = componentRoot.querySelectorAll(sel);
      return results.length ? results : document.querySelectorAll(sel);
    };
    // Original component JS runs in this scope
    document.querySelectorAll(".faq-item").forEach((item) => { item.addEventListener("click", () => { document.querySelectorAll(".faq-item").forEach((i) => { if (i !== item) { i.classList.remove("active"); i.querySelector("img").src = "https://res.cloudinary.com/duukclzsd/image/upload/v1767161294/seltrix/templates/mobile-launch-template/arrow-down.svg"; } }); item.classList.toggle("active"); const icon = item.querySelector("img"); icon.src = item.classList.contains("active") ? "https://res.cloudinary.com/duukclzsd/image/upload/v1767161297/seltrix/templates/mobile-launch-template/arrow-up.svg" : "https://res.cloudinary.com/duukclzsd/image/upload/v1767161294/seltrix/templates/mobile-launch-template/arrow-down.svg"; }); });
  });
})();