.elementor-976 .elementor-element.elementor-element-89dd836{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS */let urlBase = window.location.href;
let productName = "NeuroDyne";

let urlBottle2 = "https://vitabion.mycartpanda.com/checkout/204814937:1";
let urlBottle3 = "https://vitabion.mycartpanda.com/checkout/204814938:1";
let urlBottle6 = "https://vitabion.mycartpanda.com/checkout/204814939:1";


(function() {

	const l = document.createElement("link").relList;
	if (l && l.supports && l.supports("modulepreload"))
		return;
	for (const r of document.querySelectorAll('link[rel="modulepreload"]'))
		u(r);
	new MutationObserver(r => {
		for (const a of r)
			if (a.type === "childList")
				for (const d of a.addedNodes)
					d.tagName === "LINK" && d.rel === "modulepreload" && u(d)
	}
	).observe(document, {
		childList: !0,
		subtree: !0
	});
	function m(r) {
		const a = {};
		return r.integrity && (a.integrity = r.integrity),
		r.referrerPolicy && (a.referrerPolicy = r.referrerPolicy),
		r.crossOrigin === "use-credentials" ? a.credentials = "include" : r.crossOrigin === "anonymous" ? a.credentials = "omit" : a.credentials = "same-origin",
		a
	}
	function u(r) {
		if (r.ep)
			return;
		r.ep = !0;
		const a = m(r);
		fetch(r.href, a)
	}
}
)();
( () => {
		document.addEventListener("DOMContentLoaded", () => {
			h(),
			l(),
			m(),
			u(),
			v(),
			L(),
			K(),
			a()
		}
	);
	function h() {
		const e = document.querySelectorAll(".faq-question");
		e.forEach(n => {
			n.addEventListener("click", function() {
				const t = this.nextElementSibling
				  , o = this.getAttribute("aria-expanded") === "true";
				e.forEach(i => {
					i !== this && (i.setAttribute("aria-expanded", "false"),
					i.nextElementSibling.classList.remove("active"))
				}
				),
				this.setAttribute("aria-expanded", (!o).toString()),
				t.classList.toggle("active")
			})
		}
		)
	}
	function l() {
		const e = document.getElementById("notification")
		  , n = [{
			name: "Michael B.",
			location: "California"
		}, {
			name: "Linda K.",
			location: "New York"
		}, {
			name: "Robert J.",
			location: "Florida"
		}, {
			name: "Patricia M.",
			location: "Texas"
		}, {
			name: "David S.",
			location: "Arizona"
		}, {
			name: "Jennifer L.",
			location: "Ohio"
		}, {
			name: "William R.",
			location: "Michigan"
		}, {
			name: "Susan T.",
			location: "Georgia"
		}, {
			name: "James C.",
			location: "Illinois"
		}, {
			name: "Nancy H.",
			location: "Pennsylvania"
		}];
		let t = 0;
		function o() {
			if (!e)
				return;
			const i = n[t % n.length]
			  , s = e.querySelector(".notification-text");
			s && (s.innerHTML = `
					<strong>${i.name} from ${i.location}</strong>
					<span>just bought ` + productName + `!</span>
				`),
			e.style.display = "flex",
			setTimeout( () => {
				e.style.animation = "slideOut 0.5s ease forwards",
				setTimeout( () => {
					e.style.display = "none",
					e.style.animation = "slideIn 0.5s ease"
				}
				, 500)
			}
			, 5e3),
			t++
		}
		setTimeout(o, 3e3),
		setInterval( () => {
			const i = Math.random() * 1e4 + 15e3;
			setTimeout(o, i)
		}
		, 25e3)
	}
	function m() {
		document.querySelectorAll('a[href^="#"]').forEach(e => {
			e.addEventListener("click", function(n) {
				n.preventDefault();
				const t = this.getAttribute("href");
				if (!t)
					return;
				const o = document.querySelector(t);
				if (o) {
					const c = o.getBoundingClientRect().top + window.pageYOffset - 80;
					window.scrollTo({
						top: c,
						behavior: "smooth"
					})
				}
			})
		}
		)
	}
	function u() {
		document.querySelectorAll(".btn[data-package]").forEach(n => {
			n.addEventListener("click", function(t) {
				t.preventDefault();
				const o = this.getAttribute("data-package");
				o && r(o, t)
			})
		}
		)
	}
	function r(e, n) {
		const t = n.target.closest(".btn");
		if (!t)
			return;
		const o = t.innerHTML;
		t.innerHTML = "<span>Processing...</span>",
		t.disabled = !0;
		const i = {
			2: urlBottle2,
			3: urlBottle3,
			6: urlBottle6
		}
		  , s = new URLSearchParams(window.location.search);
		console.log("Original URL parameters:", window.location.search),
		console.log("Parameters to be passed:", s.toString()),
		console.log("Package type:", e),
		setTimeout( () => {
			const c = i[e];
			if (c)
				if (s.toString()) {
					const E = c.includes("?") ? "&" : "?"
					  , w = c + E + s.toString();
					console.log("Final checkout URL:", w),
					window.location.href = w
				} else
					console.log("Final checkout URL (no params):", c),
					window.location.href = c;
					// window.open(c, '_blank');
			else
				t.innerHTML = o,
				t.disabled = !1,
				console.error("Invalid package type:", e)
		}
		, 800)
	}
	function a() {
		const e = new URLSearchParams(window.location.search);
		window.urlParams = e,
		e.toString() ? (console.log("URL Parameters detected and preserved:", e.toString()),
		e.forEach( (n, t) => {
			console.log(`  - ${t}: ${n}`)
		}
		),
		document.querySelectorAll('a[href^="#"]').forEach(n => {
			const t = n
			  , o = new URL(window.location.href);
			t.href = o.pathname + o.search + t.getAttribute("href")
		}
		)) : console.log();
	}
	function v() {
		if ("IntersectionObserver"in window) {
			const e = new IntersectionObserver( (n, t) => {
				n.forEach(o => {
					if (o.isIntersecting) {
						const i = o.target;
						i.dataset.src && (i.src = i.dataset.src,
						i.removeAttribute("data-src"),
						t.unobserve(i))
					}
				}
				)
			}
			);
			document.querySelectorAll("img[data-src]").forEach(n => {
				e.observe(n)
			}
			)
		}
	}
	function L() {
		const e = document.querySelector(".stock-number");
		if (!e)
			return;
		let n = 250;
		const t = 150;
		setInterval( () => {
			n > t && (n -= Math.floor(Math.random() * 3) + 1,
			e.textContent = n.toString(),
			e.style.animation = "pulse 0.5s ease",
			setTimeout( () => {
				e.style.animation = ""
			}
			, 500))
		}
		, Math.random() * 3e4 + 3e4)
	}
	function K() {
		const e = document.querySelector(".stock-number2");
		if (!e)
			return;
		let n = 250;
		const t = 150;
		setInterval( () => {
			n > t && (n -= Math.floor(Math.random() * 3) + 1,
			e.textContent = n.toString(),
			e.style.animation = "pulse 0.5s ease",
			setTimeout( () => {
				e.style.animation = ""
			}
			, 500))
		}
		, Math.random() * 3e4 + 3e4)
	}
	const g = document.createElement("style");
	g.textContent = `
		@keyframes slideOut {
			to {
				transform: translateX(-120%);
				opacity: 0;
			}
		}

		@keyframes pulse {
			0%, 100% { transform: scale(1); }
			50% { transform: scale(1.1); }
		}

		@keyframes fadeIn {
			from { opacity: 0; }
			to { opacity: 1; }
		}

		/* Esconde o ícone flutuante do CartPanda */
		#cartpanda-widget,
		.cartpanda-widget,
		[id*="cartpanda-floating"],
		[class*="cartpanda-floating"],
		.cartpanda-sticky-button,
		#cp-sticky-button,
		[class*="cp-sticky"],
		[id*="cp-sticky"] {
			display: none !important;
			visibility: hidden !important;
			opacity: 0 !important;
			pointer-events: none !important;
		}

		/* Esconde iframes do CartPanda */
		iframe[src*="cartpanda"],
		iframe[src*="mycartpanda"] {
			display: none !important;
		}
	`,
	document.head.appendChild(g);
	let f;
	window.addEventListener("scroll", () => {
		f && clearTimeout(f),
		f = setTimeout( () => {
			S()
		}
		, 50)
	}
	);
	function S() {
		const e = window.scrollY / (document.documentElement.scrollHeight - window.innerHeight) * 100;
		e < 33 ? p(1) : e < 66 ? p(2) : p(3)
	}
	function p(e) {
		document.querySelectorAll(".step").forEach( (n, t) => {
			t < e ? n.classList.add("active") : n.classList.remove("active")
		}
		)
	}
	document.addEventListener("keydown", e => {
		e.key === "Escape" && document.querySelectorAll(".faq-question").forEach(n => {
			n.setAttribute("aria-expanded", "false"),
			n.nextElementSibling.classList.remove("active")
		}
		)
	}
	);
	function b() {
		[urlBase + "assets/images/6-bottles.png", urlBase + "assets/images/money-back-guarantee.svg"].forEach(n => {
			const t = document.createElement("link");
			t.rel = "preload",
			t.as = "image",
			t.href = n,
			document.head.appendChild(t)
		}
		)
	}
	b();
	function y() {
		const e = window.innerHeight * .01;
		document.documentElement.style.setProperty("--vh", `${e}px`)
	}
	y(),
	window.addEventListener("resize", y)
}
)();/* End custom CSS */