-

A convenient liquid sleep-support formula combining melatonin with chamomile and valerian extracts to support restful sleep without pills or gummies
/* Scoped refinements to match the approved LWF / Mal's purchase-button style. */
#lwf-bio-nite-form .lwf-select {
appearance: auto;
-webkit-appearance: menulist;
cursor: pointer;
}
#lwf-bio-nite-form .lwf-add-to-cart {
background: #164421;
color: #fff;
font-family: "Work Sans", sans-serif;
font-weight: 500;
text-transform: uppercase;
border-radius: 3px;
cursor: pointer;
}
#lwf-bio-nite-form .lwf-add-to-cart:hover,
#lwf-bio-nite-form .lwf-add-to-cart:focus-visible {
background: #245b30;
color: #fff;
}
#lwf-bio-nite-form .lwf-add-to-cart:disabled {
opacity: 0.55;
cursor: not-allowed;
}
(function () {
const formBox = document.getElementById("lwf-bio-nite-form");
if (!formBox) return;
const packageSelect = formBox.querySelector("#bn-package");
const productPriceField = formBox.querySelector("#bn-productpr");
const priceDisplay = formBox.querySelector("#bn-price");
const addToCartButton = formBox.querySelector("#bn-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="bn-delivery"]');
const productName = "BioNite Holistic Sleep Support";
const packages = {
one: {
sku: "USBI000006",
description: "(1 set) 2 bottles, 2 fl. oz. each",
price: "37.90"
},
two: {
sku: "USBI000006",
description: "(2 sets) 4 bottles, 2 fl. oz. each",
price: "75.80"
},
three: {
sku: "USBI000006",
description: "(3 sets) 6 bottles, 2 fl. oz. each",
price: "113.70"
},
four: {
sku: "USBI000006",
description: "(4 sets) 8 bottles, 2 fl. oz. each",
price: "151.60"
}
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="bn-delivery"]:checked');
return selected ? selected.value : "";
}
function deliveryDescription(delivery) {
if (delivery === "monthly") return "autoship monthly";
if (delivery === "two-months") return "autoship every 2 months";
return "one-time purchase";
}
function updateSelection() {
const selectedPackage = packages[packageSelect.value];
if (!selectedPackage) {
productPriceField.value = "";
priceDisplay.textContent = "(Price will show when you make your selection)";
priceDisplay.classList.add("lwf-price-prompt");
addToCartButton.disabled = true;
addToCartButton.textContent = "ADD TO CART →";
return;
}
const description = productName + ", " + selectedPackage.description +
", SKU " + selectedPackage.sku + ", " +
deliveryDescription(selectedDelivery());
productPriceField.value = description + ", :" + selectedPackage.price;
priceDisplay.textContent = "$" + selectedPackage.price;
priceDisplay.classList.remove("lwf-price-prompt");
addToCartButton.disabled = false;
addToCartButton.textContent = "ADD TO CART →";
}
deliveryInputs.forEach(function (input) {
input.addEventListener("change", updateSelection);
});
packageSelect.addEventListener("change", updateSelection);
updateSelection();
})();
-

A caffeine-free daily drink mix with vitamins and botanicals for brain health, stress and fatigue support
#lwf-renu-iq-brain-form select.lwf-select {
appearance: auto !important;
-webkit-appearance: menulist !important;
background-image: none !important;
cursor: pointer;
}
#lwf-renu-iq-brain-form .lwf-add-to-cart {
background: #164421;
color: #ffffff;
font-family: "Work Sans", sans-serif;
font-weight: 500;
text-transform: uppercase;
border-radius: 2px;
cursor: pointer;
}
#lwf-renu-iq-brain-form .lwf-add-to-cart:hover:not(:disabled) {
background: #205b30;
color: #ffffff;
}
(function () {
const formBox = document.getElementById("lwf-renu-iq-brain-form");
if (!formBox) return;
const packageSelect = formBox.querySelector("#riq-package");
const productPriceField = formBox.querySelector("#riq-productpr");
const priceDisplay = formBox.querySelector("#riq-price");
const addToCartButton = formBox.querySelector("#riq-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="riq-delivery"]');
const productName = "Renu iQ";
const packages = {
one: {
sku: "USAD500007",
description: "(1) canister, 30 servings",
price: "68.95"
},
two: {
sku: "USAD5072",
description: "(2) canisters, 30 servings each",
price: "131.95"
},
three: {
sku: "USAD500007",
description: "(3) canisters, 30 servings each",
price: "200.90"
},
four: {
sku: "USAD500007",
description: "(4) canisters, 30 servings each",
price: "263.90"
}
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="riq-delivery"]:checked');
return selected ? selected.value : "one-time";
}
function deliveryDescription(delivery) {
if (delivery === "monthly") return "autoship monthly";
if (delivery === "two-months") return "autoship every 2 months";
return "one-time purchase";
}
function updateSelection() {
const selectedPackage = packages[packageSelect.value];
if (!selectedPackage) {
productPriceField.value = "";
priceDisplay.textContent = "(Price will show when you make your selection)";
priceDisplay.classList.add("lwf-price-prompt");
addToCartButton.disabled = true;
return;
}
const description = productName + ", " + selectedPackage.description +
", SKU " + selectedPackage.sku + ", " +
deliveryDescription(selectedDelivery());
productPriceField.value = description + ", :" + selectedPackage.price;
priceDisplay.textContent = "$" + Number(selectedPackage.price).toLocaleString("en-US", {
minimumFractionDigits: 2,
maximumFractionDigits: 2
});
priceDisplay.classList.remove("lwf-price-prompt");
addToCartButton.disabled = false;
addToCartButton.textContent = "ADD TO CART →";
}
deliveryInputs.forEach(function (input) {
input.addEventListener("change", updateSelection);
});
packageSelect.addEventListener("change", updateSelection);
packageSelect.value = "one";
updateSelection();
})();