1<!doctype html> 2<html class="js" lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 6 <meta name="viewport" content="width=device-width,initial-scale=1"> 7 <meta name="theme-color" content=""> 8 <link rel="canonical" href="https://iwannasleep.com/cart"><link rel="icon" type="image/png" href="//iwannasleep.com/cdn/shop/files/LOGO2.gif?crop=center&height=32&v=1765805851&width=32"><link rel="preconnect" href="https://fonts.shopifycdn.com" crossorigin><title> 9 Your Shopping Cart 10 – I wanna sleep</title> 11 12 13 14 15 16<meta property="og:site_name" content="I wanna sleep"> 17<meta property="og:url" content="https://iwannasleep.com/cart"> 18<meta property="og:title" content="Your Shopping Cart"> 19<meta property="og:type" content="website"> 20<meta property="og:description" content="We're a global sleep lifestyle brand. From allergies to insomnia, we create science-backed pillows and bedding for every sleep need. Sleep better tonight. 21 22Our mission: Help you sleep better!"><meta name="twitter:card" content="summary_large_image"> 23<meta name="twitter:title" content="Your Shopping Cart"> 24<meta name="twitter:description" content="We're a global sleep lifestyle brand. From allergies to insomnia, we create science-backed pillows and bedding for every sleep need. Sleep better tonight. 25 26Our mission: Help you sleep better!"> 27 28 29
29<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
29 30 31
31<script src="//iwannasleep.com/cdn/shop/t/16/assets/constants.js?v=132983761750457495441791305531" defer="defer"></script>
31 32
32<script src="//iwannasleep.com/cdn/shop/t/16/assets/pubsub.js?v=25310214064522200911791305584" defer="defer"></script>
32 33
33<script src="//iwannasleep.com/cdn/shop/t/16/assets/global.js?v=184345515105158409801791305535" defer="defer"></script>
33 34
34<script src="//iwannasleep.com/cdn/shop/t/16/assets/details-disclosure.js?v=13653116266235556501791305533" defer="defer"></script>
34 35
35<script src="//iwannasleep.com/cdn/shop/t/16/assets/details-modal.js?v=25581673532751508451791305533" defer="defer"></script>
35 36
36<script src="//iwannasleep.com/cdn/shop/t/16/assets/search-form.js?v=133129549252120666541791305588" defer="defer"></script>
36<script src="//iwannasleep.com/cdn/shop/t/16/assets/animations.js?v=88693664871331136111791305513" defer="defer"></script>
36<script>window.performance && window.performance.mark && window.performance.mark('shopify.content_for_header.start');</script>
36<meta name="facebook-domain-verification" content="35661qq9c6q197mo1kn35v7lij0grj"> 37<meta id="shopify-digital-wallet" name="shopify-digital-wallet" content="/75207901427/digital_wallets/dialog"> 38<link rel="ucp" href="/.well-known/ucp" version="2026-08-25">
38<script async="async" src="/checkouts/internal/preloads.js?locale=en-US&default_configuration_id=2663547123"></script>
38 39<link rel="preconnect" href="https://shop.app" crossorigin="anonymous">
40<script async="async" src="https://shop.app/checkouts/internal/preloads.js?locale=en-US&default_configuration_id=2663547123&shop_id=75207901427" crossorigin="anonymous"></script>
vendor: 1 bytes, line 40
40
41<script id="apple-pay-shop-capabilities" type="application/json">{"shopId":75207901427,"countryCode":"US","currencyCode":"USD","merchantCapabilities":["supports3DS"],"merchantId":"gid:\/\/shopify\/Shop\/75207901427","merchantName":"I wanna sleep","requiredBillingContactFields":["postalAddress","email","phone"],"requiredShippingContactFields":["postalAddress","email","phone"],"shippingType":"shipping","supportedNetworks":["visa","masterCard","discover","amex","elo","jcb"],"total":{"type":"pending","label":"I wanna sleep","amount":"1.00"},"shopifyPaymentsEnabled":true,"supportsSubscriptions":true}</script>
vendor: 1 bytes, line 41
41
42<script id="shopify-features" type="application/json">{"accessToken":"70ce71d9a954eb05ae8c69e544027b65","betas":["rich-media-storefront-analytics"],"domain":"iwannasleep.com","predictiveSearch":true,"shopId":75207901427,"locale":"en"}</script>
vendor: 1 bytes, line 42
42
43<script>var Shopify = Shopify || {}; 44Shopify.shop = "i-wanna-sleep-usa.myshopify.com"; 45Shopify.locale = "en"; 46Shopify.currency = {"active":"USD","rate":"1.0"}; 47Shopify.country = "US"; 48Shopify.theme = {"name":"Oct - 5\/26 - New Positioning","id":188909388019,"schema_name":"Dawn","schema_version":"15.3.0","theme_store_id":null,"role":"main"}; 49Shopify.theme.handle = "null"; 50Shopify.theme.style = {"id":null,"handle":null}; 51Shopify.cdnHost = "iwannasleep.com/cdn"; 52Shopify.routes = Shopify.routes || {}; 53Shopify.routes.root = "/"; 54Shopify.shopJsCdnBaseUrl = "https://cdn.shopify.com/shopifycloud/shop-js"; 55Shopify.SignInWithShop = Shopify.SignInWithShop || {}; 56Shopify.SignInWithShop.User = Shopify.SignInWithShop.User || {}; 57Shopify.SignInWithShop.User.recognized = false;</script>
vendor: 1 bytes, line 57
57
58<script type="module">!function(o){(o.Shopify=o.Shopify||{}).modules=!0}(window);</script>
vendor: 1 bytes, line 58
58
59<script>!function(o){function n(){var o=[];function n(){o.push(Array.prototype.slice.apply(arguments))}return n.q=o,n}var t=o.Shopify=o.Shopify||{};t.loadFeatures=n(),t.autoloadFeatures=n()}(window);</script>
vendor: 1 bytes, line 59
59
60<script> 61 window.ShopifyPay = window.ShopifyPay || {}; 62 window.ShopifyPay.apiHost = "shop.app\/pay"; 63 window.ShopifyPay.redirectState = null; 64</script>
vendor: 1 bytes, line 64
64
65<script> 66 window.Shopify = window.Shopify || {}; 67 window.Shopify.SignInWithShop = window.Shopify.SignInWithShop || {}; 68 window.Shopify.SignInWithShop.assetMetrics = { sampleRate: 0.25 }; 69 window.Shopify.SignInWithShop.eligible = true; 70</script>
vendor: 1 bytes, line 70
70
71<script id="shop-js-analytics" type="application/json">{"pageType":"cart"}</script>
vendor: 1 bytes, line 71
71
72<script defer="defer" async type="module" src="https://cdn.shopify.com/shopifycloud/shop-js/modules/v2/loader.init-shop-cart-sync.en.esm.js"></script>
vendor: 1 bytes, line 72
72
73<script type="module"> 74 await import("https://cdn.shopify.com/shopifycloud/shop-js/modules/v2/loader.init-shop-cart-sync.en.esm.js"); 75 76 window.Shopify.SignInWithShop?.initShopCartSync?.({"fedCMEnabled":true,"windoidEnabled":true}); 77 78</script>
vendor: 1 bytes, line 78
78
79<script> 80 window.Shopify = window.Shopify || {}; 81 if (!window.Shopify.featureAssets) window.Shopify.featureAssets = {}; 82 window.Shopify.featureAssets['shop-js'] = {"avatar":["modules/v2/loader.avatar.en.esm.js"],"checkout-modal":["modules/v2/loader.checkout-modal.en.esm.js"],"init-customer-accounts-sign-up":["modules/v2/loader.init-customer-accounts-sign-up.en.esm.js"],"init-customer-accounts":["modules/v2/loader.init-customer-accounts.en.esm.js"],"init-fed-cm":["modules/v2/loader.init-fed-cm.en.esm.js"],"init-shop-cart-sync":["modules/v2/loader.init-shop-cart-sync.en.esm.js"],"init-shop-email-lookup-coordinator":["modules/v2/loader.init-shop-email-lookup-coordinator.en.esm.js"],"init-shop-for-new-customer-accounts":["modules/v2/loader.init-shop-for-new-customer-accounts.en.esm.js"],"init-shop-user-recognition":["modules/v2/loader.init-shop-user-recognition.en.esm.js"],"init-windoid":["modules/v2/loader.init-windoid.en.esm.js"],"lead-capture":["modules/v2/loader.lead-capture.en.esm.js"],"listener":["modules/v2/loader.listener.en.esm.js"],"pay-button":["modules/v2/loader.pay-button.en.esm.js"],"payment-terms":["modules/v2/loader.payment-terms.en.esm.js"],"shop-button":["modules/v2/loader.shop-button.en.esm.js"],"shop-cart-sync":["modules/v2/loader.shop-cart-sync.en.esm.js"],"shop-cash-offers":["modules/v2/loader.shop-cash-offers.en.esm.js"],"shop-follow-button":["modules/v2/loader.shop-follow-button.en.esm.js"],"shop-login-button":["modules/v2/loader.shop-login-button.en.esm.js"],"shop-login":["modules/v2/loader.shop-login.en.esm.js"],"shop-toast-manager":["modules/v2/loader.shop-toast-manager.en.esm.js"],"shop-user-recognition":["modules/v2/loader.shop-user-recognition.en.esm.js"]}; 83</script>
vendor: 1 bytes, line 83
83
84<script>(function() { 85 var isLoaded = false; 86 function asyncLoad() { 87 if (isLoaded) return; 88 isLoaded = true; 89 var urls = ["https:\/\/loox.io\/widget\/Dlpmlw5MP1\/loox.1760038072883.js?shop=i-wanna-sleep-usa.myshopify.com","https:\/\/shy.elfsight.com\/p\/platform.js?shop=i-wanna-sleep-usa.myshopify.com","\/\/cdn.shopify.com\/proxy\/26115395abaf501c51cb680e0e1e65548ab914722a60609c7b8fedb94a59e6c0\/cdn.bogos.io\/script_tag\/secomapp.scripttag.js?shop=i-wanna-sleep-usa.myshopify.com\u0026sp-cache-control=cHVibGljLCBtYXgtYWdlPTkwMA","https:\/\/d2fk970j0emtue.cloudfront.net\/shop\/js\/free-gift-cart-upsell-pro.min.js?shop=i-wanna-sleep-usa.myshopify.com"]; 90 for (var i = 0; i < urls.length; i++) { 91 var s = document.createElement('script'); 92 s.type = 'text/javascript'; 93 s.async = true; 94 s.src = urls[i]; 95 var x = document.getElementsByTagName('script')[0]; 96 x.parentNode.insertBefore(s, x); 97 } 98 }; 99 if(window.attachEvent) { 100 window.attachEvent('onload', asyncLoad); 101 } else { 102 window.addEventListener('load', asyncLoad, false); 103 } 104})();</script>
vendor: 1 bytes, line 104
104
105<script id="__st">var __st={"a":75207901427,"offset":-14400,"reqid":"94dba32d-9b4a-4bee-99f4-0f3e18081143-1791452676","pageurl":"iwannasleep.com\/cart","u":"e09f992830f9","p":"cart"};</script>
vendor: 1 bytes, line 105
105
106<script>window.ShopifyPaypalV4VisibilityTracking = true;</script>
vendor: 1 bytes, line 106
106
107<script id="captcha-bootstrap">!function(){'use strict';const t='contact',e='account',n='new_comment',o=[[t,t],['blogs',n],['comments',n],[t,'customer']],c=[[e,'customer_login'],[e,'guest_login'],[e,'recover_customer_password'],[e,'create_customer']],r=t=>t.map((([t,e])=>`form[action*='/${t}']:not([data-nocaptcha='true']) input[name='form_type'][value='${e}']`)).join(','),a=t=>()=>t?[...document.querySelectorAll(t)].map((t=>t.form)):[];function s(){const t=[...o],e=r(t);return a(e)}const i='password',u='form_key',d=['recaptcha-v3-token','g-recaptcha-response','h-captcha-response',i],f=()=>{try{return window.sessionStorage}catch{return}},m='__shopify_v',_=t=>t.elements[u];function p(t,e,n=!1){try{const o=window.sessionStorage,c=JSON.parse(o.getItem(e)),{data:r}=function(t){const{data:e,action:n}=t;return t[m]||n?{data:e,action:n}:{data:t,action:n}}(c);for(const[e,n]of Object.entries(r))t.elements[e]&&(t.elements[e].value=n);n&&o.removeItem(e)}catch(o){console.error('form repopulation failed',{error:o})}}const l='form_type',E='cptcha';function T(t){t.dataset[E]=!0}const w=window,h=w.document,L='Shopify',v='ce_forms',y='captcha';let A=!1;((t,e)=>{const n=(g='f06e6c50-85a8-45c8-87d0-21a2b65856fe',I='https://cdn.shopify.com/shopifycloud/storefront-forms-hcaptcha/ce_storefront_forms_captcha_hcaptcha.v1.5.3.iife.js',D={infoText:'Protected by hCaptcha',privacyText:'Privacy',termsText:'Terms'},(t,e,n)=>{const o=w[L][v],c=o.bindForm;if(c)return c(t,g,e,D).then(n);var r;o.q.push([[t,g,e,D],n]),r=I,A||(h.body.append(Object.assign(h.createElement('script'),{id:'captcha-provider',async:!0,src:r})),A=!0)});var g,I,D;w[L]=w[L]||{},w[L][v]=w[L][v]||{},w[L][v].q=[],w[L][y]=w[L][y]||{},w[L][y].protect=function(t,e){n(t,void 0,e),T(t)},Object.freeze(w[L][y]),function(t,e,n,w,h,L){const[v,y,A,g]=function(t,e,n){const i=e?o:[],u=t?c:[],d=[...i,...u],f=r(d),m=r(i),_=r(d.filter((([t,e])=>n.includes(e))));return[a(f),a(m),a(_),s()]}(w,h,L),I=t=>{const e=t.target;return e instanceof HTMLFormElement?e:e&&e.form},D=t=>v().includes(t);t.addEventListener('submit',(t=>{const e=I(t);if(!e)return;const n=D(e)&&!e.dataset.hcaptchaBound&&!e.dataset.recaptchaBound,o=_(e),c=g().includes(e)&&(!o||!o.value);(n||c)&&t.preventDefault(),c&&!n&&(function(t){try{if(!f())return;!function(t){const e=f();if(!e)return;const n=_(t);if(!n)return;const o=n.value;o&&e.removeItem(o)}(t);const e=Array.from(Array(32),(()=>Math.random().toString(36)[2])).join('');!function(t,e){_(t)||t.append(Object.assign(document.createElement('input'),{type:'hidden',name:u})),t.elements[u].value=e}(t,e),function(t,e){const n=f();if(!n)return;const o=[...t.querySelectorAll(`input[type='${i}']`)].map((({name:t})=>t)),c=[...d,...o],r={};for(const[a,s]of new FormData(t).entries())c.includes(a)||(r[a]=s);n.setItem(e,JSON.stringify({[m]:1,action:t.action,data:r}))}(t,e)}catch(e){console.error('failed to persist form',e)}}(e),e.submit())}));const S=(t,e)=>{t&&!t.dataset[E]&&(n(t,e.some((e=>e===t))),T(t))};for(const o of['focusin','change'])t.addEventListener(o,(t=>{const e=I(t);D(e)&&S(e,y())}));const B=e.get('form_key'),M=e.get(l),P=B&&M;t.addEventListener('DOMContentLoaded',(()=>{const t=y();if(P)for(const e of t)e.elements[l].value===M&&p(e,B);[...new Set([...A(),...v().filter((t=>'true'===t.dataset.shopifyCaptcha))])].forEach((e=>S(e,t)))}))}(h,new URLSearchParams(w.location.search),n,t,e,['guest_login'])})(!0,!0)}();</script>
vendor: 1 bytes, line 107
107
108<script integrity="sha256-JjoPp5ZfB1sSAs5SQaol1x1GgvveM+BgmRzyDexInEQ=" data-source-attribution="shopify.loadfeatures" defer="defer" src="//iwannasleep.com/cdn/shopifycloud/storefront/assets/storefront/load_feature-1bd60354.js" crossorigin="anonymous"></script>
vendor: 1 bytes, line 108
108
109<script>(function () {var userAgent = navigator.userAgent;var platform = navigator.platform;var maxTouchPoints = navigator.maxTouchPoints || 0;var isIOS = /iPad|iPhone|iPod/.test(platform) || (platform === 'MacIntel' && maxTouchPoints > 1);var isMacSafari = platform.indexOf('Mac') === 0 && /Safari/.test(userAgent) && !/Chrome|Chromium|CriOS|FxiOS|Edg|OPR|Android/.test(userAgent);var isAppleSafari = isIOS || isMacSafari;if (isAppleSafari) {fetch('/sf_private_access_tokens' + location.search).catch(function () {});}function browserMajorVersion(pattern) {var match = userAgent.match(pattern);return match ? parseInt(match[1], 10) : null;}function shouldLoadAutosizesPolyfill() {if (!window.PerformanceObserver?.supportedEntryTypes?.includes('paint')) {return false;}var chromeVersion = browserMajorVersion(/Chrome\/(\d+)/);if (chromeVersion !== null) {return chromeVersion < 126;}var firefoxVersion = browserMajorVersion(/Firefox\/(\d+)/);if (firefoxVersion !== null) {return firefoxVersion < 150;}var safariVersion = isAppleSafari ? browserMajorVersion(/Version\/(\d+).*Safari\//) : null;if (safariVersion !== null) {return safariVersion < 27;}return true;}if (shouldLoadAutosizesPolyfill()) {var autosizesScript = document.createElement('script');autosizesScript.async = true;autosizesScript.crossOrigin = 'anonymous';autosizesScript.src = "//iwannasleep.com/cdn/shopifycloud/storefront/assets/storefront/autosizes-84416378.js";(document.head || document.documentElement).appendChild(autosizesScript);}window.ShopifyAnalytics = window.ShopifyAnalytics || {};window.ShopifyAnalytics.performance = window.ShopifyAnalytics.performance || {};(function () {var LONG_FRAME_THRESHOLD = 50;var longAnimationFrames = [];var activeRafId = null;function collectLongFrames() {var previousTime = null;function rafMonitor(now) {if (activeRafId === null) {return;}var delta = now - previousTime;if (delta > LONG_FRAME_THRESHOLD) {longAnimationFrames.push({startTime: previousTime,endTime: now,});}previousTime = now;activeRafId = requestAnimationFrame(rafMonitor);}previousTime = performance.now();activeRafId = requestAnimationFrame(rafMonitor);}if (!window.PerformanceObserver?.supportedEntryTypes?.includes('long-animation-frame')) {collectLongFrames();var timeoutId = setTimeout(function () {cancelAnimationFrame(activeRafId);}, 10000);window.ShopifyAnalytics.performance.getLongAnimationFrames = function (stopCollection) {if (stopCollection === undefined) {stopCollection = false;}if (stopCollection) {clearTimeout(timeoutId);cancelAnimationFrame(activeRafId);}return longAnimationFrames;};}})();})();</script>
109<script crossorigin="anonymous" defer="defer" src="//iwannasleep.com/cdn/shopifycloud/storefront/assets/shopify_pay/storefront-f0e26bdf.js?v=20250812"></script>
vendor: 1 bytes, line 109
109
110<script id="shopify-origin-trials" async="async" integrity="sha256-qJbe/jEZBHtr5W/BlA2cKAz3vkXu6vJQyLjgvgCC86g=" src="//cdn.shopify.com/shopifycloud/storefront/assets/storefront/origin_trials-318ab40a.js" crossorigin="anonymous" onload="window.__shopifyOriginTrialsDone = true" onerror="window.__shopifyOriginTrialsDone = true"></script>
vendor: 1 bytes, line 110
110
111<script> 112 window.Shopify = window.Shopify || {}; 113 window.Shopify.MCP = window.Shopify.MCP || {}; 114 window.Shopify.MCP.enabled = true; 115 window.Shopify.MCP.shop = "i-wanna-sleep-usa.myshopify.com"; 116 window.Shopify.MCP.mcpEndpoint = "https:\/\/iwannasleep.com\/api\/mcp"; 117 window.Shopify.MCP.tools = [{"name":"search_shop_policies_and_faqs","description":"Used to get facts about the stores policies, products, or services.\nSome examples of questions you can ask are:\n - What is your return policy?\n - What is your shipping policy?\n - What is your phone number?\n - What are your hours of operation?\"\nSet policy_types to also get the store's written policies (full text and URL).\n","inputSchema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"query":{"type":"string","description":"A natural language query."},"context":{"type":"string","description":"Additional information about the request such as user demographics, mood, location, or other relevant details that could help in tailoring the response appropriately."},"policy_types":{"type":"array","items":{"type":"string","enum":["refund","shipping","privacy","terms_of_service","terms_of_sale","subscription","legal_notice","contact"]},"description":"Policy kinds to fetch, chosen from the user's question â e.g. [\"refund\"] for returns\/exchanges\/damaged items, [\"contact\"] for phone\/hours\/address. Include every kind the question touches. Omit it to get only FAQ answers."}},"required":["query"]}}]; 118</script>
vendor: 1 bytes, line 118
118
119<script>(()=>{var d="shopify:webmcp_adapter_loaded",n=Symbol.for("shopify.webmcp_adapter_loading");function s(c,a,{win:r=window,doc:o=document}={}){function p(){try{return r.localStorage.getItem(d)==="true"}catch{return!1}}function l(){try{r.localStorage.setItem(d,"true")}catch{}}function u(){return typeof(o.modelContext||r.navigator?.modelContext)?.registerTool=="function"}function f(){if(r[n]||!u())return;let t=o.head||o.getElementsByTagName("head")[0];if(!t)return;let e=o.createElement("script");e.type="module",e.crossOrigin="anonymous",a&&(e.integrity=a),e.src=c,e.addEventListener("load",l,{once:!0}),e.addEventListener("error",()=>{r[n]=!1},{once:!0}),t.appendChild(e),r[n]=!0}function _(t){let e=o.getElementById("shopify-origin-trials");if(!e||r.__shopifyOriginTrialsDone){t();return}e.addEventListener("load",t,{once:!0}),e.addEventListener("error",t,{once:!0})}function i(){_(()=>r.setTimeout(f,0))}function m(){o.addEventListener("DOMContentLoaded",i,{once:!0})}p()?i():m()}s("\/\/iwannasleep.com\/cdn\/shopifycloud\/storefront\/assets\/storefront\/webmcp-c6b62ece.js","sha256-ke4DDuBjdvea3vxLWxHc9E9nq8zihuG4IfYEGbb77ys=");})(); 120</script>
vendor: 1 bytes, line 120
120
121<script data-source-attribution="shopify.dynamic_checkout.dynamic.init">var Shopify=Shopify||{};Shopify.PaymentButton=Shopify.PaymentButton||{isStorefrontPortableWallets:!0,init:function(){window.Shopify.PaymentButton.init=function(){};var t=document.createElement("script");t.src="https://iwannasleep.com/cdn/shopifycloud/portable-wallets/latest/portable-wallets.en.js",t.type="module",document.head.appendChild(t)}}; 122</script>
vendor: 1 bytes, line 122
122
123<script data-source-attribution="shopify.dynamic_checkout.buyer_consent"> 124 function portableWalletsHideBuyerConsent(e){var t=document.getElementById("shopify-buyer-consent"),n=document.getElementById("shopify-subscription-policy-button");t&&n&&(t.classList.add("hidden"),t.setAttribute("aria-hidden","true"),n.removeEventListener("click",e))}function portableWalletsShowBuyerConsent(e){var t=document.getElementById("shopify-buyer-consent"),n=document.getElementById("shopify-subscription-policy-button");t&&n&&(t.classList.remove("hidden"),t.removeAttribute("aria-hidden"),n.addEventListener("click",e))}window.Shopify?.PaymentButton&&(window.Shopify.PaymentButton.hideBuyerConsent=portableWalletsHideBuyerConsent,window.Shopify.PaymentButton.showBuyerConsent=portableWalletsShowBuyerConsent); 125</script>
vendor: 1 bytes, line 125
125
126<script> 127 function portableWalletsCleanup(e){e&&e.src&&console.error("Failed to load portable wallets script "+e.src);var t=document.querySelectorAll("shopify-accelerated-checkout .shopify-payment-button__skeleton, shopify-accelerated-checkout-cart .wallet-cart-button__skeleton"),e=document.getElementById("shopify-buyer-consent");for(let e=0;e<t.length;e++)t[e].remove();e&&e.remove()}function portableWalletsNotLoadedAsModule(e){e instanceof ErrorEvent&&"string"==typeof e.message&&e.message.includes("import.meta")&&"string"==typeof e.filename&&e.filename.includes("portable-wallets")&&(window.removeEventListener("error",portableWalletsNotLoadedAsModule),window.Shopify.PaymentButton.failedToLoad=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",window.Shopify.PaymentButton.init):window.Shopify.PaymentButton.init())}window.addEventListener("error",portableWalletsNotLoadedAsModule); 128</script>
128 129
130<script type="module" src="https://iwannasleep.com/cdn/shopifycloud/portable-wallets/latest/portable-wallets.en.js" onError="portableWalletsCleanup(this)" crossorigin="anonymous"></script>
vendor: 1 bytes, line 130
130
131<script nomodule> 132 document.addEventListener("DOMContentLoaded", portableWalletsCleanup); 133</script>
133 134 135<link id="shopify-accelerated-checkout-styles" rel="stylesheet" media="screen" href="https://iwannasleep.com/cdn/shopifycloud/portable-wallets/latest/accelerated-checkout-backwards-compat.css" crossorigin="anonymous"> 136<style id="shopify-accelerated-checkout-cart"> 137 #shopify-buyer-consent { 138 margin-top: 1em; 139 display: inline-block; 140 width: 100%; 141} 142 143#shopify-buyer-consent.hidden { 144 display: none; 145} 146 147#shopify-subscription-policy-button { 148 background: none; 149 border: none; 150 padding: 0; 151 text-decoration: underline; 152 font-size: inherit; 153 cursor: pointer; 154} 155 156#shopify-subscription-policy-button::before { 157 box-shadow: none; 158} 159 160 </style>
161<script id="sections-script" data-sections="header" defer="defer" src="//iwannasleep.com/cdn/shop/t/16/compiled_assets/scripts.js?v=90487813905515327061791305645"></script>
vendor: 1 bytes, line 161
161
162<script id="shopify-cfh-end">window.performance && window.performance.mark && window.performance.mark('shopify.content_for_header.end');</script>
162 163 164 165 <style data-shopify> 166 @font-face { 167 font-family: Lato; 168 font-weight: 400; 169 font-style: normal; 170 font-display: swap; 171 src: url("//iwannasleep.com/cdn/fonts/lato/lato_n4.c3b93d431f0091c8be23185e15c9d1fee1e971c5.woff2") format("woff2"), 172 url("//iwannasleep.com/cdn/fonts/lato/lato_n4.d5c00c781efb195594fd2fd4ad04f7882949e327.woff") format("woff"); 173} 174 175 @font-face { 176 font-family: Lato; 177 font-weight: 700; 178 font-style: normal; 179 font-display: swap; 180 src: url("//iwannasleep.com/cdn/fonts/lato/lato_n7.900f219bc7337bc57a7a2151983f0a4a4d9d5dcf.woff2") format("woff2"), 181 url("//iwannasleep.com/cdn/fonts/lato/lato_n7.a55c60751adcc35be7c4f8a0313f9698598612ee.woff") format("woff"); 182} 183 184 @font-face { 185 font-family: Lato; 186 font-weight: 400; 187 font-style: italic; 188 font-display: swap; 189 src: url("//iwannasleep.com/cdn/fonts/lato/lato_i4.09c847adc47c2fefc3368f2e241a3712168bc4b6.woff2") format("woff2"), 190 url("//iwannasleep.com/cdn/fonts/lato/lato_i4.3c7d9eb6c1b0a2bf62d892c3ee4582b016d0f30c.woff") format("woff"); 191} 192 193 @font-face { 194 font-family: Lato; 195 font-weight: 700; 196 font-style: italic; 197 font-display: swap; 198 src: url("//iwannasleep.com/cdn/fonts/lato/lato_i7.16ba75868b37083a879b8dd9f2be44e067dfbf92.woff2") format("woff2"), 199 url("//iwannasleep.com/cdn/fonts/lato/lato_i7.4c07c2b3b7e64ab516aa2f2081d2bb0366b9dce8.woff") format("woff"); 200} 201 202 @font-face { 203 font-family: Lato; 204 font-weight: 400; 205 font-style: normal; 206 font-display: swap; 207 src: url("//iwannasleep.com/cdn/fonts/lato/lato_n4.c3b93d431f0091c8be23185e15c9d1fee1e971c5.woff2") format("woff2"), 208 url("//iwannasleep.com/cdn/fonts/lato/lato_n4.d5c00c781efb195594fd2fd4ad04f7882949e327.woff") format("woff"); 209} 210 211 212 213 :root, 214 .color-scheme-1 { 215 --color-background: 255,255,255; 216 217 --gradient-background: #ffffff; 218 219 220 221 222 --color-foreground: 116,18,84; 223 --color-background-contrast: 191,191,191; 224 --color-shadow: 116,18,84; 225 --color-button: 230,0,126; 226 --color-button-text: 255,255,255; 227 --color-secondary-button: 255,255,255; 228 --color-secondary-button-text: 230,0,126; 229 --color-link: 230,0,126; 230 --color-badge-foreground: 116,18,84; 231 --color-badge-background: 255,255,255; 232 --color-badge-border: 116,18,84; 233 --payment-terms-background-color: rgb(255 255 255); 234 } 235 236 237 .color-scheme-2 { 238 --color-background: 249,245,248; 239 240 --gradient-background: #f9f5f8; 241 242 243 244 245 --color-foreground: 116,18,84; 246 --color-background-contrast: 201,165,192; 247 --color-shadow: 116,18,84; 248 --color-button: 116,18,84; 249 --color-button-text: 255,255,255; 250 --color-secondary-button: 249,245,248; 251 --color-secondary-button-text: 116,18,84; 252 --color-link: 116,18,84; 253 --color-badge-foreground: 116,18,84; 254 --color-badge-background: 249,245,248; 255 --color-badge-border: 116,18,84; 256 --payment-terms-background-color: rgb(249 245 248); 257 } 258 259 260 .color-scheme-3 { 261 --color-background: 116,18,84; 262 263 --gradient-background: #741254; 264 265 266 267 268 --color-foreground: 255,255,255; 269 --color-background-contrast: 138,21,100; 270 --color-shadow: 116,18,84; 271 --color-button: 255,255,255; 272 --color-button-text: 116,18,84; 273 --color-secondary-button: 116,18,84; 274 --color-secondary-button-text: 255,255,255; 275 --color-link: 255,255,255; 276 --color-badge-foreground: 255,255,255; 277 --color-badge-background: 116,18,84; 278 --color-badge-border: 255,255,255; 279 --payment-terms-background-color: rgb(116 18 84); 280 } 281 282 283 .color-scheme-4 { 284 --color-background: 230,0,126; 285 286 --gradient-background: #e6007e; 287 288 289 290 291 --color-foreground: 255,255,255; 292 --color-background-contrast: 103,0,56; 293 --color-shadow: 116,18,84; 294 --color-button: 255,255,255; 295 --color-button-text: 230,0,126; 296 --color-secondary-button: 230,0,126; 297 --color-secondary-button-text: 255,255,255; 298 --color-link: 255,255,255; 299 --color-badge-foreground: 255,255,255; 300 --color-badge-background: 230,0,126; 301 --color-badge-border: 255,255,255; 302 --payment-terms-background-color: rgb(230 0 126); 303 } 304 305 306 .color-scheme-5 { 307 --color-background: 255,255,255; 308 309 --gradient-background: #ffffff; 310 311 312 313 314 --color-foreground: 255,255,255; 315 --color-background-contrast: 191,191,191; 316 --color-shadow: 116,18,84; 317 --color-button: 255,255,255; 318 --color-button-text: 255,255,255; 319 --color-secondary-button: 255,255,255; 320 --color-secondary-button-text: 255,255,255; 321 --color-link: 255,255,255; 322 --color-badge-foreground: 255,255,255; 323 --color-badge-background: 255,255,255; 324 --color-badge-border: 255,255,255; 325 --payment-terms-background-color: rgb(255 255 255); 326 } 327 328 329 .color-scheme-f097aea2-1def-4145-ab00-4502430e4189 { 330 --color-background: 255,255,255; 331 332 --gradient-background: #ffffff; 333 334 335 336 337 --color-foreground: 255,255,255; 338 --color-background-contrast: 191,191,191; 339 --color-shadow: 10,165,204; 340 --color-button: 255,255,255; 341 --color-button-text: 255,255,255; 342 --color-secondary-button: 255,255,255; 343 --color-secondary-button-text: 255,255,255; 344 --color-link: 255,255,255; 345 --color-badge-foreground: 255,255,255; 346 --color-badge-background: 255,255,255; 347 --color-badge-border: 255,255,255; 348 --payment-terms-background-color: rgb(255 255 255); 349 } 350 351 352 body, .color-scheme-1, .color-scheme-2, .color-scheme-3, .color-scheme-4, .color-scheme-5, .color-scheme-f097aea2-1def-4145-ab00-4502430e4189 { 353 color: rgba(var(--color-foreground), 0.75); 354 background-color: rgb(var(--color-background)); 355 } 356 357 :root { 358 --font-body-family: Lato, sans-serif; 359 --font-body-style: normal; 360 --font-body-weight: 400; 361 --font-body-weight-bold: 700; 362 363 --font-heading-family: Lato, sans-serif; 364 --font-heading-style: normal; 365 --font-heading-weight: 400; 366 367 --font-body-scale: 1.0; 368 --font-heading-scale: 1.05; 369 370 --media-padding: px; 371 --media-border-opacity: 0.05; 372 --media-border-width: 1px; 373 --media-radius: 0px;
374 --media-shadow-opacity: 0.0; 375 --media-shadow-horizontal-offset: 0px; 376 --media-shadow-vertical-offset: 4px; 377 --media-shadow-blur-radius: 5px; 378 --media-shadow-visible: 0; 379 380 --page-width: 140rem; 381 --page-width-margin: 0rem; 382 383 --product-card-image-padding: 0.0rem; 384 --product-card-corner-radius: 0.6rem; 385 --product-card-text-alignment: left; 386 --product-card-border-width: 0.0rem; 387 --product-card-border-opacity: 0.1; 388 --product-card-shadow-opacity: 0.0; 389 --product-card-shadow-visible: 0; 390 --product-card-shadow-horizontal-offset: 0.0rem; 391 --product-card-shadow-vertical-offset: 0.4rem; 392 --product-card-shadow-blur-radius: 0.5rem; 393 394 --collection-card-image-padding: 0.0rem; 395 --collection-card-corner-radius: 0.0rem; 396 --collection-card-text-alignment: left; 397 --collection-card-border-width: 0.0rem; 398 --collection-card-border-opacity: 0.1; 399 --collection-card-shadow-opacity: 0.0; 400 --collection-card-shadow-visible: 0; 401 --collection-card-shadow-horizontal-offset: 0.0rem; 402 --collection-card-shadow-vertical-offset: 0.4rem; 403 --collection-card-shadow-blur-radius: 0.5rem; 404 405 --blog-card-image-padding: 0.0rem; 406 --blog-card-corner-radius: 0.0rem; 407 --blog-card-text-alignment: left; 408 --blog-card-border-width: 0.0rem; 409 --blog-card-border-opacity: 0.1; 410 --blog-card-shadow-opacity: 0.0; 411 --blog-card-shadow-visible: 0; 412 --blog-card-shadow-horizontal-offset: 0.0rem; 413 --blog-card-shadow-vertical-offset: 0.4rem; 414 --blog-card-shadow-blur-radius: 0.5rem; 415 416 --badge-corner-radius: 0.4rem; 417 418 --popup-border-width: 1px; 419 --popup-border-opacity: 0.1; 420 --popup-corner-radius: 0px; 421 --popup-shadow-opacity: 0.05; 422 --popup-shadow-horizontal-offset: 0px; 423 --popup-shadow-vertical-offset: 4px; 424 --popup-shadow-blur-radius: 5px; 425 426 --drawer-border-width: 1px; 427 --drawer-border-opacity: 0.1; 428 --drawer-shadow-opacity: 0.0; 429 --drawer-shadow-horizontal-offset: 0px; 430 --drawer-shadow-vertical-offset: 4px; 431 --drawer-shadow-blur-radius: 5px; 432 433 --spacing-sections-desktop: 20px; 434 --spacing-sections-mobile: 20px; 435 436 --grid-desktop-vertical-spacing: 8px; 437 --grid-desktop-horizontal-spacing: 4px; 438 --grid-mobile-vertical-spacing: 4px; 439 --grid-mobile-horizontal-spacing: 2px; 440 441 --text-boxes-border-opacity: 0.1; 442 --text-boxes-border-width: 0px; 443 --text-boxes-radius: 0px; 444 --text-boxes-shadow-opacity: 0.0; 445 --text-boxes-shadow-visible: 0; 446 --text-boxes-shadow-horizontal-offset: 0px; 447 --text-boxes-shadow-vertical-offset: 4px; 448 --text-boxes-shadow-blur-radius: 5px; 449 450 --buttons-radius: 4px; 451 --buttons-radius-outset: 5px; 452 --buttons-border-width: 1px; 453 --buttons-border-opacity: 1.0; 454 --buttons-shadow-opacity: 0.0; 455 --buttons-shadow-visible: 0; 456 --buttons-shadow-horizontal-offset: 0px; 457 --buttons-shadow-vertical-offset: 4px; 458 --buttons-shadow-blur-radius: 5px; 459 --buttons-border-offset: 0.3px; 460 461 --inputs-radius: 0px; 462 --inputs-border-width: 1px; 463 --inputs-border-opacity: 0.55; 464 --inputs-shadow-opacity: 0.0; 465 --inputs-shadow-horizontal-offset: 0px; 466 --inputs-margin-offset: 0px; 467 --inputs-shadow-vertical-offset: 4px; 468 --inputs-shadow-blur-radius: 5px; 469 --inputs-radius-outset: 0px; 470 471 --variant-pills-radius: 40px; 472 --variant-pills-border-width: 1px; 473 --variant-pills-border-opacity: 0.55; 474 --variant-pills-shadow-opacity: 0.0; 475 --variant-pills-shadow-horizontal-offset: 0px; 476 --variant-pills-shadow-vertical-offset: 4px; 477 --variant-pills-shadow-blur-radius: 5px; 478 } 479 480 *, 481 *::before, 482 *::after { 483 box-sizing: inherit; 484 } 485 486 html { 487 box-sizing: border-box; 488 font-size: calc(var(--font-body-scale) * 62.5%); 489 height: 100%; 490 } 491 492 body { 493 display: grid; 494 grid-template-rows: auto auto 1fr auto; 495 grid-template-columns: 100%; 496 min-height: 100%; 497 margin: 0; 498 font-size: 1.5rem; 499 letter-spacing: 0.06rem; 500 line-height: calc(1 + 0.8 / var(--font-body-scale)); 501 font-family: var(--font-body-family); 502 font-style: var(--font-body-style); 503 font-weight: var(--font-body-weight); 504 } 505 506 @media screen and (min-width: 750px) { 507 body { 508 font-size: 1.6rem; 509 } 510 } 511 </style> 512 513 <link href="//iwannasleep.com/cdn/shop/t/16/assets/base.css?v=93653459106144468561791305513" rel="stylesheet" type="text/css" media="all" /> 514 <link rel="stylesheet" href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart-items.css?v=123238115697927560811791305517" media="print" onload="this.media='all'"><link href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart-drawer.css?v=86518341034034779651791305517" rel="stylesheet" type="text/css" media="all" /> 515 <link href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart.css?v=164708765130180853531791305518" rel="stylesheet" type="text/css" media="all" /> 516 <link href="//iwannasleep.com/cdn/shop/t/16/assets/component-totals.css?v=15906652033866631521791305530" rel="stylesheet" type="text/css" media="all" /> 517 <link href="//iwannasleep.com/cdn/shop/t/16/assets/component-price.css?v=12840323355286466041791305526" rel="stylesheet" type="text/css" media="all" /> 518 <link href="//iwannasleep.com/cdn/shop/t/16/assets/component-discounts.css?v=152760482443307489271791305520" rel="stylesheet" type="text/css" media="all" /> 519 520 <link rel="preload" as="font" href="//iwannasleep.com/cdn/fonts/lato/lato_n4.c3b93d431f0091c8be23185e15c9d1fee1e971c5.woff2" type="font/woff2" crossorigin> 521 522 523 <link rel="preload" as="font" href="//iwannasleep.com/cdn/fonts/lato/lato_n4.c3b93d431f0091c8be23185e15c9d1fee1e971c5.woff2" type="font/woff2" crossorigin> 524 525<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-localization-form.css?v=170315343355214948141791305522" rel="stylesheet" type="text/css" media="all" /> 526
526<script src="//iwannasleep.com/cdn/shop/t/16/assets/localization-form.js?v=144176611646395275351791305573" defer="defer"></script>
526<link 527 rel="stylesheet" 528 href="//iwannasleep.com/cdn/shop/t/16/assets/component-predictive-search.css?v=118923337488134913561791305526" 529 media="print" 530 onload="this.media='all'" 531 >
531<script> 532 if (Shopify.designMode) { 533 document.documentElement.classList.add('shopify-design-mode'); 534 } 535 </script>
535 536 537 538<!-- BEGIN app block: shopify://apps/tolstoy-ads-image-video/blocks/widget-block/06fa8282-42ff-403e-b67c-1936776aed11 --> 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
560<script 561 type="module" 562 async 563 src="https://widget.gotolstoy.com/we/widget.js" 564 data-shop=i-wanna-sleep-usa.myshopify.com 565 data-app-key=d37dba91-26ff-42b8-aa3e-7891ef64a5d6 566 data-should-use-cache=true 567 data-cache-version=1a0e2c51100 568 data-product-gallery-projects="[]" 569 data-collection-gallery-projects="[]" 570 data-product-id="" 571 data-template-name="cart" 572 data-ot-ignore 573 data-cookieconsent="ignore" 574> 575</script>
vendor: 1 bytes, line 575
575
576<script 577 type="module" 578 async 579 src="https://play.gotolstoy.com/widget-v2/widget.js" 580 id="tolstoy-widget-script" 581 data-shop=i-wanna-sleep-usa.myshopify.com 582 data-app-key=d37dba91-26ff-42b8-aa3e-7891ef64a5d6 583 data-should-use-cache=true 584 data-cache-version=1a0e2c51100 585 data-product-gallery-projects="[]" 586 data-collection-gallery-projects="[]" 587 data-product-id="" 588 data-collection-id="" 589 data-shop-assistant-enabled="false" 590 data-search-bar-widget-enabled="false" 591 data-template-name="cart" 592 data-customer-id="" 593 data-ot-ignore 594 data-cookieconsent="ignore" 595></script>
vendor: 1 bytes, line 595
595
596<script 597 type="module" 598 async 599 src="https://play.gotolstoy.com/widget-v2/widget.brand-mcp.js" 600 data-app-key=d37dba91-26ff-42b8-aa3e-7891ef64a5d6 601 data-ot-ignore 602 data-cookieconsent="ignore" 603></script>
vendor: 1 bytes, line 603
603
604<script> 605 window.tolstoyCurrencySymbol = "$"; 606 window.tolstoyMoneyFormat = "${{amount}}"; 607</script>
vendor: 1 bytes, line 607
607
608<script> 609 (function(){ 610 function hideOrphanedTiles(){ 611 var els = document.querySelectorAll('.tolstoy-collection-page-tile,tolstoy-collection-tile'); 612 for(var i=0;i<els.length;i++){ 613 if(els[i].children.length>0) continue; 614 els[i].style.setProperty('display','none','important'); 615 var w=els[i].closest('[class*="tolstoy-grid"]')||els[i].closest('.tolstoy-collection-page-tile-wrapper'); 616 if(w) w.style.setProperty('display','none','important'); 617 } 618 } 619 if(document.readyState==='loading'){ 620 document.addEventListener('DOMContentLoaded',hideOrphanedTiles); 621 }else{ 622 hideOrphanedTiles(); 623 } 624 })(); 625</script>
vendor: 1 bytes, line 625
625
626<script> 627 window.tolstoyDebug = { 628 enable: () => { 629 fetch('/cart/update.js', { 630 method: 'POST', 631 headers: { 'Content-Type': 'application/json' }, 632 body: JSON.stringify({ attributes: { TolstoyDebugEnabled: 'true' } }) 633 }) 634 .then(response => response.json()) 635 .then(() => window.location.reload()); 636 }, 637 disable: () => { 638 fetch('/cart/update.js', { 639 method: 'POST', 640 headers: { 'Content-Type': 'application/json' }, 641 body: JSON.stringify({ attributes: { TolstoyDebugEnabled: null } }) 642 }) 643 .then(response => response.json()) 644 .then(() => window.location.reload()) 645 }, 646 status: async () => { 647 const response = await fetch('/cart.js'); 648 const json = await response.json(); 649 console.log(json.attributes); 650 } 651 } 652</script>
652 653 654<!-- END app block --><!-- BEGIN app block: shopify://apps/klaviyo-email-marketing-sms/blocks/klaviyo-onsite-embed/2632fe16-c075-4321-a88b-50b567f42507 --> 655 656 657 658 659 660 661 662 663 664 665 666 667
667<script async src="https://static.klaviyo.com/onsite/js/SNZxEE/klaviyo.js?company_id=SNZxEE"></script>
667 668
668<script>!function(){if(!window.klaviyo){window._klOnsite=window._klOnsite||[];try{window.klaviyo=new Proxy({},{get:function(n,i){return"push"===i?function(){var n;(n=window._klOnsite).push.apply(n,arguments)}:function(){for(var n=arguments.length,o=new Array(n),w=0;w<n;w++)o[w]=arguments[w];var t="function"==typeof o[o.length-1]?o.pop():void 0,e=new Promise((function(n){window._klOnsite.push([i].concat(o,[function(i){t&&t(i),n(i)}]))}));return e}}})}catch(n){window.klaviyo=window.klaviyo||[],window.klaviyo.push=function(){var n;(n=window._klOnsite).push.apply(n,arguments)}}}}();</script>
668 669 670 671 672 673 674 675
675<script> 676 window.klaviyoReviewsProductDesignMode = false 677 </script>
677 678 679 680 681 682 683 684 685 686 687<!-- END app block --><!-- BEGIN app block: shopify://apps/pagefly-ai-page-builder/blocks/app-embed/83e179f7-59a0-4589-8c66-c0dddf959200 --> 688 689<!-- BEGIN app snippet: pagefly-cro-ab-testing-main --> 690 691 692 693 694 695 696
697<script> 698 ;(function () { 699 const url = new URL(window.location) 700 const viewParam = url.searchParams.get('view') 701 if (viewParam && viewParam.includes('variant-pf-')) { 702 url.searchParams.set('pf_v', viewParam) 703 url.searchParams.delete('view') 704 window.history.replaceState({}, '', url) 705 } 706 })() 707</script>
707 708 709 710
711<script type='module'> 712 713 window.PAGEFLY_CRO = window.PAGEFLY_CRO || {} 714 715 window.PAGEFLY_CRO['data_debug'] = { 716 original_template_suffix: "", 717 allow_ab_test: false, 718 ab_test_start_time: 0, 719 ab_test_end_time: 0, 720 today_date_time: 1791452676000, 721 } 722 window.PAGEFLY_CRO['GA4'] = { enabled: false} 723</script>
723 724 725<!-- END app snippet --> 726 727 728 729 730 731 732 733 734
734<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-helper.js' defer='defer'></script>
734 735 736
736<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-general-helper.js' defer='defer'></script>
736 737 738
738<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-snap-slider.js' defer='defer'></script>
738 739 740
740<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-slideshow-v3.js' defer='defer'></script>
740 741 742
742<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-slideshow-v4.js' defer='defer'></script>
742 743 744
744<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-glider.js' defer='defer'></script>
744 745 746
746<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-slideshow-v1-v2.js' defer='defer'></script>
746 747 748
748<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-product-media.js' defer='defer'></script>
748 749 750
750<script src='https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-product.js' defer='defer'></script>
750 751 752
753<script id='pagefly-helper-data' type='application/json'> 754 { 755 "page_optimization": { 756 "assets_prefetching": false 757 }, 758 "elements_asset_mapper": { 759 "Accordion": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-accordion.js", 760 "Accordion3": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-accordion3.js", 761 "CountDown": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-countdown.js", 762 "GMap1": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-gmap.js", 763 "GMap2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-gmap.js", 764 "GMapBasicV2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-gmap.js", 765 "GMapAdvancedV2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-gmap.js", 766 "HTML.Video": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-htmlvideo.js", 767 "HTML.Video2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-htmlvideo2.js", 768 "HTML.Video3": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-htmlvideo2.js", 769 "BackgroundVideo": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-htmlvideo2.js", 770 "Instagram": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-instagram.js", 771 "Instagram2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-instagram.js", 772 "Insta3": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-instagram3.js", 773 "Tabs": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-tab.js", 774 "Tabs3": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-tab3.js", 775 "ProductBox": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-cart.js", 776 "FBPageBox2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-facebook.js", 777 "FBLikeButton2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-facebook.js", 778 "TwitterFeed2": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-twitter.js", 779 "Paragraph4": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-paragraph4.js", 780 781 "AliReviews": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 782 "BackInStock": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 783 "GloboBackInStock": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 784 "GrowaveWishlist": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 785 "InfiniteOptionsShopPad": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 786 "InkybayProductPersonalizer": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder
786-367/assets/pagefly-3rd-elements.js", 787 "LimeSpot": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 788 "Loox": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 789 "Opinew": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 790 "Powr": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 791 "ProductReviews": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 792 "PushOwl": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 793 "ReCharge": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 794 "Rivyo": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 795 "TrackingMore": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 796 "Vitals": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js", 797 "Wiser": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-3rd-elements.js" 798 }, 799 "custom_elements_mapper": { 800 "pf-click-action-element": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-click-action-element.js", 801 "pf-dialog-element": "https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-dialog-element.js" 802 } 803 } 804</script>
804 805
806<script id='pagefly-heatmap-config' type='application/json'> 807 {} 808</script>
vendor: 1 bytes, line 808
808
809<script> 810 (function () { 811 var el = document.getElementById('pagefly-heatmap-config') 812 if (!el) { window.__pagefly_heatmap_config__ = {}; return } 813 try { 814 window.__pagefly_heatmap_config__ = JSON.parse(el.textContent || '{}') || {} 815 } catch (e) { 816 window.__pagefly_heatmap_config__ = {} 817 } 818 })() 819</script>
vendor: 1 bytes, line 819
819
820<script> 821 // Heatmap overlay loader. Three gates, all of them cheap, none of them trusting the URL: 822 // the visitor must have arrived on a pf_heatmap link, the SERVER must have published an 823 // overlay path in the metafield, and this page must already be one the merchant enabled 824 // tracking for. The last gate is what stops a crafted link pulling the asset onto an 825 // arbitrary storefront page. Everything else is decided inside the asset, and by the server. 826 (function () { 827 var cfg = window.__pagefly_heatmap_config__ || {} 828 var id = (window.__pagefly_page_setting__ || {}).pageId 829 if (!/[#&]pf_heatmap=/.test(window.location.hash || '')) return 830 if (!cfg.overlay_data_path || !Array.isArray(cfg.enabled_page_ids)) return 831 if (!id || cfg.enabled_page_ids.indexOf(id) === -1) return 832 var s = document.createElement('script') 833 s.src = 'https://cdn.shopify.com/extensions/01a115fb-add3-73f7-a337-6aea6d12aa8f/pagefly-ai-page-builder-367/assets/pagefly-heatmap-overlay.js' 834 s.defer = true 835 document.head.appendChild(s) 836 })() 837</script>
837 838 839<!-- BEGIN app snippet: pf-ai-schema --> 840<!-- END app snippet --> 841 842 843<!-- END app block --><!-- BEGIN app block: shopify://apps/microsoft-clarity/blocks/clarity_js/31c3d126-8116-4b4a-8ba1-baeda7c4aeea -->
844<script type="text/javascript"> 845 (function (c, l, a, r, i, t, y) { 846 c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; 847 t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i + "?ref=shopify"; 848 y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); 849 850 c.Shopify.loadFeatures([{ name: "consent-tracking-api", version: "0.1" }], error => { 851 if (error) { 852 console.error("Error loading Shopify features:", error); 853 return; 854 } 855 856 c[a]('consentv2', { 857 ad_Storage: c.Shopify.customerPrivacy.marketingAllowed() ? "granted" : "denied", 858 analytics_Storage: c.Shopify.customerPrivacy.analyticsProcessingAllowed() ? "granted" : "denied", 859 source: 101, 860 }); 861 }); 862 863 l.addEventListener("visitorConsentCollected", function (e) { 864 c[a]('consentv2', { 865 ad_Storage: e.detail.marketingAllowed ? "granted" : "denied", 866 analytics_Storage: e.detail.analyticsAllowed ? "granted" : "denied", 867 source: 101, 868 }); 869 }); 870 })(window, document, "clarity", "script", "yjwpltt04v"); 871</script>
871 872 873 874 875<!-- END app block --><!-- BEGIN app block: shopify://apps/growi-creator-management/blocks/growi-embed/419e0351-1ff7-4f90-8ee9-8dc5c04a0f9c -->
875<script src="https://cdn.shopify.com/extensions/01a0f38c-77be-7c07-8db7-ade2b3c1a9ef/growi-232/assets/cookie-utils.js" defer="defer"></script>
vendor: 1 bytes, line 875
875
876<script> 877 console.log('growi-embed.liquid'); 878 console.log('ðµ [GROWI-EMBED] growi-embed.liquid inline script STARTED, v.1.9.0'); 879 console.log('ðµ [GROWI-EMBED] Script execution timestamp:', new Date().toISOString()); 880 console.log('ðµ [GROWI-EMBED] Document readyState:', document.readyState); 881 console.log('ðµ [GROWI-EMBED] window.growiCookieUtils exists?', typeof window.growiCookieUtils !== 'undefined'); 882 if (typeof window.growiCookieUtils !== 'undefined') { 883 console.log('â [GROWI-EMBED] Cookie utils ALREADY available!', window.growiCookieUtils); 884 } else { 885 console.log('â³ [GROWI-EMBED] Cookie utils NOT YET available, will wait...'); 886 } 887 888 (function () { 889 // Default customization settings 890 const defaultCustomization = { 891 popup_enabled: true, 892 heading_text: null, 893 body_text: null, 894 button_text: null, 895 helper_text: null, 896 background_color: '#ffffff', 897 text_color: '#000000', 898 button_color: '#2c2c2c', 899 button_text_color: '#ffffff', 900 banner_enabled: false, 901 banner_top_offset: 0, 902 emoji: 'ð', 903 }; 904 905 // Fetch customization settings from API 906 async function fetchCustomization(affiliateTag) { 907 try { 908 const response = await fetch( 909 `https://api.growi.io/api/v1/campaigns/ambassador_program_customization?affiliate_tag=${encodeURIComponent( 910 affiliateTag 911 )}&url=${encodeURIComponent(window.location.href)}`, 912 { 913 method: 'GET', 914 headers: { 915 'Content-Type': 'application/json', 916 }, 917 } 918 ); 919 920 if (!response.ok) { 921 console.warn('Customization API returned error, returning null'); 922 return null; 923 } 924 925 const data = await response.json(); 926 927 if (data.success && data.customization) { 928 console.log('â Loaded customization settings:', data.customization); 929 return data.customization; 930 } else { 931 console.log('â¹ï¸ No customization found, returning null'); 932 return null; 933 } 934 } catch (error) { 935 console.error('Failed to fetch customization, returning null:', error); 936 return null; 937 } 938 } 939 940 function showDiscountModal(discountCode, affiliateName, discountValue, discountType, affiliateId) { 941 console.log('showDiscountModal', discountCode, affiliateName, discountValue, discountType, affiliateId); 942 943 if ( 944 !discountValue || 945 discountValue === '0' || 946 discountValue === 0 || 947 discountValue === null || 948 discountValue === undefined || 949 discountValue === 'null' 950 ) 951 return; 952 // Prevent duplicate modals 953 if (document.getElementById('__growi-modal-overlay')) return; 954 955 const overlay = document.createElement('div'); 956 overlay.id = '__growi-modal-overlay'; 957 overlay.style.cssText = ` 958 display:block; 959 position:fixed; 960 top:0; left:0; 961 width:100%; height:100%; 962 background-color:rgba(0,0,0,0.5); 963 z-index:9998; 964 `; 965 966 const modal = document.createElement('div'); 967 modal.className = '__growi_modal_content'; 968 modal.style.cssText = ` 969 display:block; 970 background-color:white; 971 z-index:9999; 972 border-top:10px solid #2C2C2C; 973 border-radius:10px; 974 text-align:center; 975 margin:auto; 976 min-height:400px; 977 height:auto; 978 position:fixed; 979 top:50%; left:50%; 980 transform:translate(-50%, -50%); 981 width:90%; max-width:500px; 982 `; 983 984 // Add mobile-specific styles 985 const mobileStyles = document.createElement('style'); 986 mobileStyles.textContent = ` 987 @media (max-width: 768px) { 988 .__growi_modal_content { 989 top: calc(50% + 20px) !important; 990 } 991 } 992 @media (max-width: 480px) { 993 .__growi_modal_content { 994 top: calc(50% + 30px) !important; 995 } 996 } 997 `; 998 document.head.appendChild(mobileStyles); 999 1000 modal.innerHTML = ` 1001 <div class="__growi-modal-inner" style="display:block;position:relative;width:100%;height:100%;padding:40px 40px 40px 40px;box-sizing:border-box;"> 1002 <button id="__growi-close-modal" style="position:absolute;top:15px;right:15px;background-color:transparent;border:none;cursor:pointer;z-index:10000;padding:5px;"> 1003 <svg style="fill:#000000" height="20px" width="20px" viewBox="0 0 490 490" xmlns="http://www.w3.org/2000/svg"> 1004 <polygon points="456.851,0 245,212.564 33.149,0 0.708,32.337 1005 212.669,245.004 0.708,457.678 33.149,490 1006 245,277.443 456.851,490 489.292,457.678 1007 277.331,245.004 489.292,32.337"/> 1008 </svg> 1009 </button> 1010 1011 <div style="text-align:center;width:100%;"> 1012 <p style="text-align:center;margin:0 0 20px 0;"> 1013 <img src="https://d2pnkb2a79l965.cloudfront.net/party-popper-emoji.png" style="width:80px;height:80px;display:inline-block;"> 1014 </p> 1015 <h2 style=" 1016 text-align:center; 1017 font-size:2.5em; 1018 line-height:1em; 1019 margin:0.5em 0; 1020 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1021 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1022 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1023 font-weight:bold; 1024 color:#000000; 1025 "> 1026 ${affiliateName ? decodeURIComponent(affiliateName) : "We've"} sent you ${ 1027 discountType === 'percentage' ? `${discountValue}%` : `$${discountValue}` 1028 } off! 1029 </h2> 1030 <h3 style=" 1031 text-align:center; 1032 font-size:1.3em; 1033 margin:0.8em 0; 1034 color:#9aaab9; 1035 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1036 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1037 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1038 "> 1039 Click below to redeem your discount code 1040 </h3> 1041 <button id="__growi-redeem-btn" style=" 1042 display:block; 1043 margin:20px auto 0 auto; 1044 padding:12px 20px; 1045 width:230px; 1046 background-color:#2c2c2c; 1047 color:#ffffff; 1048 border:1px solid #535459; 1049 border-radius:5px; 1050 font-size:1.2em; 1051 cursor:pointer; 1052 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1053 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1054 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1055 "> 1056 Redeem Coupon 1057 </button> 1058 <div style="font-size:0.8em;color:#9aaab9;margin-top:10px;text-align:center;"> 1059 <em>Your discount will automatically be applied at checkout</em> 1060 </div> 1061 </div> 1062 </div> 1063 `; 1064 1065 overlay.appendChild(modal); 1066 document.body.appendChild(overlay); 1067 1068 // Close handler 1069 document.getElementById('__growi-close-modal').onclick = () => {
1070 window.growiCookieUtils.setCookie('discount_seen', `${affiliateId.toLowerCase()}`, -1); 1071 overlay.remove(); 1072 }; 1073 1074 // Redeem handler 1075 document.getElementById('__growi-redeem-btn').onclick = () => { 1076 const redeemBtn = document.getElementById('__growi-redeem-btn'); 1077 1078 // Set loading state 1079 redeemBtn.disabled = true; 1080 redeemBtn.style.cursor = 'not-allowed'; 1081 redeemBtn.innerHTML = ` 1082 <svg style="animation: spin 1s linear infinite; width: 20px; height: 20px; display: inline-block; margin-right: 8px;" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 1083 <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" stroke-dasharray="31.416" stroke-dashoffset="31.416" fill="none" stroke-linecap="round"/> 1084 </svg> 1085 Loading... 1086 `; 1087 1088 // Add spinning animation 1089 const style = document.createElement('style'); 1090 style.textContent = ` 1091 @keyframes spin { 1092 0% { transform: rotate(0deg); } 1093 100% { transform: rotate(360deg); } 1094 } 1095 `; 1096 document.head.appendChild(style); 1097 1098 // Simulate loading delay then show discount code 1099 setTimeout(() => { 1100 // Replace button with discount code 1101 redeemBtn.style.display = 'none'; 1102 1103 // Create discount code container 1104 const discountCodeDiv = document.createElement('div'); 1105 discountCodeDiv.id = '__growi-discount-code'; 1106 discountCodeDiv.style.cssText = ` 1107 background-color:#ecf0ff; 1108 display:block; 1109 width:90%; 1110 margin:20px auto 0 auto; 1111 text-align:center; 1112 color:#3860fb; 1113 font-size:25px; 1114 padding:8px; 1115 cursor:pointer; 1116 border-radius:5px; 1117 font-weight:bold; 1118 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1119 Helvetica Neue, Arial, Noto Sans, sans-serif; 1120 `; 1121 discountCodeDiv.innerHTML = ` 1122 ${discountCode.toUpperCase()} 1123 <img src="https://d2pnkb2a79l965.cloudfront.net/copy-blue-icon.png" style="width:22px;margin-bottom:-5px;display:inline;"> 1124 `; 1125 1126 // Add copy functionality 1127 discountCodeDiv.onclick = () => { 1128 navigator.clipboard 1129 .writeText(discountCode.toUpperCase()) 1130 .then(() => { 1131 // Show copied feedback under the code 1132 let copiedText = document.getElementById('__growi-copied-text'); 1133 if (!copiedText) { 1134 copiedText = document.createElement('div'); 1135 copiedText.id = '__growi-copied-text'; 1136 copiedText.style.cssText = ` 1137 font-size:0.9em; 1138 color:#28a745; 1139 margin-top:8px; 1140 text-align:center; 1141 `; 1142 discountCodeDiv.parentNode.insertBefore(copiedText, discountCodeDiv.nextSibling); 1143 } 1144 copiedText.innerHTML = 'â Discount applied!'; 1145 }) 1146 .catch(() => { 1147 // Fallback for older browsers 1148 const textArea = document.createElement('textarea'); 1149 textArea.value = discountCode.toUpperCase(); 1150 document.body.appendChild(textArea); 1151 textArea.select(); 1152 document.execCommand('copy'); 1153 document.body.removeChild(textArea); 1154 1155 let copiedText = document.getElementById('__growi-copied-text'); 1156 if (!copiedText) { 1157 copiedText = document.createElement('div'); 1158 copiedText.id = '__growi-copied-text'; 1159 copiedText.style.cssText = ` 1160 font-size:0.9em; 1161 color:#28a745; 1162 margin-top:8px; 1163 text-align:center; 1164 `; 1165 discountCodeDiv.parentNode.insertBefore(copiedText, discountCodeDiv.nextSibling); 1166 } 1167 copiedText.innerHTML = 'â Discount applied!'; 1168 }); 1169 }; 1170 1171 // Insert the discount code div after the button 1172 redeemBtn.parentNode.insertBefore(discountCodeDiv, redeemBtn.nextSibling); 1173 }, 1500); 1174
1175 window.growiCookieUtils.setCookie('discount_seen', `${affiliateId.toLowerCase()}`); 1176 }; 1177 } 1178 1179 async function showDiscountModalV2(discountCode, affiliateName, discountValue, discountType, affiliateId) { 1180 console.log('showDiscountModalV2', discountCode, affiliateName, discountValue, discountType, affiliateId); 1181 1182 if ( 1183 !discountValue || 1184 discountValue === '0' || 1185 discountValue === 0 || 1186 discountValue === null || 1187 discountValue === undefined || 1188 discountValue === 'null' 1189 ) 1190 return; 1191 1192 // Fetch customization from API 1193 const customization = await fetchCustomization(affiliateId); 1194 1195 // If no customization exists, fall back to the original showDiscountModal 1196 if (!customization) { 1197 console.log('â¹ï¸ No customization available, falling back to default modal'); 1198 showDiscountModal(discountCode, affiliateName, discountValue, discountType, affiliateId); 1199 return; 1200 } 1201 1202 // Prevent duplicate modals 1203 if (document.getElementById('__growi-modal-overlay')) return; 1204 1205 // Merge customization with defaults 1206 const config = { ...defaultCustomization, ...customization }; 1207 1208 // Check if popup is enabled 1209 if (!config.popup_enabled) { 1210 console.log('â¹ï¸ Popup is disabled by customization settings'); 1211 1212 if (config.banner_enabled) { 1213 window.growiCookieUtils.setCookie('discount_seen', affiliateId.toLowerCase()); 1214 showBanner(affiliateId, discountCode, customization); 1215 } 1216 1217 return; 1218 } 1219 1220 const headingText = 1221 config.heading_text || 1222 `${affiliateName ? decodeURIComponent(affiliateName) : "We've"} sent you ${ 1223 discountType === 'percentage' ? `${discountValue}%` : `$${discountValue}` 1224 } off!`; 1225 const bodyText = config.body_text || 'Click below to redeem your discount code'; 1226 const buttonText = config.button_text || 'Redeem Coupon'; 1227 const helperText = config.helper_text || 'Your discount will automatically be applied at checkout'; 1228 const buttonMarkup = config.hide_button 1229 ? '' 1230 : `<button id="__growi-redeem-btn" style=" 1231 display:block; 1232 margin:20px auto 0 auto; 1233 padding:12px 20px; 1234 width:230px; 1235 background-color:${config.button_color}; 1236 color:${config.button_text_color}; 1237 border:1px solid ${config.button_color}; 1238 border-radius:5px; 1239 font-size:1.2em; 1240 cursor:pointer; 1241 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1242 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1243 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1244 "> 1245 ${buttonText} 1246 </button>`; 1247 const helperMarkup = ` 1248 <div style="font-size:0.8em;color:${config.text_color};opacity:0.7;margin-top:10px;text-align:center;"> 1249 <em>${helperText}</em> 1250 </div> 1251 `; 1252 1253 const overlay = document.createElement('div'); 1254 overlay.id = '__growi-modal-overlay'; 1255 overlay.style.cssText = ` 1256 display:block; 1257 position:fixed; 1258 top:0; left:0; 1259 width:100%; height:100%; 1260 background-color:rgba(0,0,0,0.5); 1261 z-index:9998; 1262 `; 1263 1264 const modal = document.createElement('div'); 1265 modal.className = '__growi_modal_content'; 1266 modal.style.cssText = ` 1267 display:block; 1268 background-color:${config.background_color}; 1269 z-index:9999; 1270 border-top:10px solid #2C2C2C; 1271 border-radius:10px; 1272 text-align:center; 1273 margin:auto; 1274 min-height:400px; 1275 height:auto; 1276 position:fixed; 1277 top:50%; left:50%; 1278 transform:translate(-50%, -50%); 1279 width:90%; max-width:500px; 1280 `; 1281 1282 // Add mobile-specific styles 1283 const mobileStyles = document.createElement('style'); 1284 mobileStyles.textContent = ` 1285 @media (max-width: 768px) { 1286 .__growi_modal_content { 1287 top: calc(50% + 20px) !important; 1288 } 1289 } 1290 @media (max-width: 480px) { 1291 .__growi_modal_content { 1292 top: calc(50% + 30px) !important; 1293 } 1294 } 1295 `; 1296 document.head.appendChild(mobileStyles); 1297 1298 modal.innerHTML = ` 1299 <div class="__growi-modal-inner" style="display:block;position:relative;width:100%;height:100%;padding:40px 40px 40px 40px;box-sizing:border-box;"> 1300 <button id="__growi-close-modal" style="position:absolute;top:15px;right:15px;background-color:transparent;border:none;cursor:pointer;z-index:10000;padding:5px;"> 1301 <svg style="fill:${config.text_color}" height="20px" width="20px" viewBox="0 0 490 490" xmlns="http://www.w3.org/2000/svg"> 1302 <polygon points="456.851,0 245,212.564 33.149,0 0.708,32.337 1303 212.669,245.004 0.708,457.678 33.149,490 1304 245,277.443 456.851,490 489.292,457.678 1305 277.331,245.004 489.292,32.337"/> 1306 </svg> 1307 </button> 1308 1309 <div style="text-align:center;width:100%;"> 1310 <p style="text-align:center;margin:0 0 20px 0;">
1311 <span style="font-size:80px;line-height:1;display:inline-block;">${config.emoji || 'ð'}</span> 1312 </p> 1313 <h2 style=" 1314 text-align:center; 1315 font-size:2.5em; 1316 line-height:1em; 1317 margin:0.5em 0; 1318 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1319 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1320 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1321 font-weight:bold; 1322 color:${config.text_color}; 1323 "> 1324 ${headingText} 1325 </h2> 1326 <h3 style=" 1327 text-align:center; 1328 font-size:1.3em; 1329 margin:0.8em 0; 1330 color:${config.text_color}; 1331 opacity:0.7; 1332 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1333 Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, 1334 Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; 1335 "> 1336 ${bodyText} 1337 </h3> 1338 ${buttonMarkup} 1339 ${helperMarkup} 1340 </div> 1341 </div> 1342 `; 1343 1344 overlay.appendChild(modal); 1345 document.body.appendChild(overlay); 1346 1347 // Close handler 1348 const closeButton = document.getElementById('__growi-close-modal'); 1349 if (closeButton) { 1350 closeButton.onclick = () => { 1351 window.growiCookieUtils.setCookie('discount_seen', affiliateId.toLowerCase(), -1); 1352 overlay.remove(); 1353 }; 1354 } 1355 1356 // Redeem handler 1357 const redeemBtn = document.getElementById('__growi-redeem-btn'); 1358 if (redeemBtn) { 1359 redeemBtn.onclick = () => { 1360 // Set loading state (preserve custom button colors) 1361 redeemBtn.disabled = true; 1362 redeemBtn.style.cursor = 'not-allowed'; 1363 redeemBtn.style.backgroundColor = config.button_color; 1364 redeemBtn.style.color = config.button_text_color; 1365 redeemBtn.innerHTML = ` 1366 <svg style="animation: spin 1s linear infinite; width: 20px; height: 20px; display: inline-block; margin-right: 8px;" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 1367 <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" stroke-dasharray="31.416" stroke-dashoffset="31.416" fill="none" stroke-linecap="round"/> 1368 </svg> 1369 Loading... 1370 `; 1371 1372 // Add spinning animation 1373 const style = document.createElement('style'); 1374 style.textContent = ` 1375 @keyframes spin { 1376 0% { transform: rotate(0deg); } 1377 100% { transform: rotate(360deg); } 1378 } 1379 `; 1380 document.head.appendChild(style); 1381 1382 // Simulate loading delay then show discount code 1383 setTimeout(() => { 1384 // Replace button with discount code 1385 redeemBtn.style.display = 'none'; 1386 1387 // Create discount code container 1388 const discountCodeDiv = document.createElement('div'); 1389 discountCodeDiv.id = '__growi-discount-code'; 1390 discountCodeDiv.style.cssText = ` 1391 background-color:#ecf0ff; 1392 display:block; 1393 width:90%; 1394 margin:20px auto 0 auto; 1395 text-align:center; 1396 color:#3860fb; 1397 font-size:25px; 1398 padding:8px; 1399 cursor:pointer; 1400 border-radius:5px; 1401 font-weight:bold; 1402 font-family:-apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1403 Helvetica Neue, Arial, Noto Sans, sans-serif; 1404 `; 1405 discountCodeDiv.innerHTML = ` 1406 ${discountCode.toUpperCase()} 1407 <img src="https://d2pnkb2a79l965.cloudfront.net/copy-blue-icon.png" style="width:22px;margin-bottom:-5px;display:inline;"> 1408 `; 1409 1410 // Add copy functionality 1411 discountCodeDiv.onclick = () => { 1412 navigator.clipboard 1413 .writeText(discountCode.toUpperCase()) 1414 .then(() => { 1415 // Show copied feedback under the code 1416 let copiedText = document.getElementById('__growi-copied-text'); 1417 if (!copiedText) { 1418 copiedText = document.createElement('div'); 1419 copiedText.id = '__growi-copied-text'; 1420 copiedText.style.cssText = `
1421 font-size:0.9em; 1422 color:#28a745; 1423 margin-top:8px; 1424 text-align:center; 1425 `; 1426 discountCodeDiv.parentNode.insertBefore(copiedText, discountCodeDiv.nextSibling); 1427 } 1428 copiedText.innerHTML = 'â Discount applied!'; 1429 }) 1430 .catch(() => { 1431 // Fallback for older browsers 1432 const textArea = document.createElement('textarea'); 1433 textArea.value = discountCode.toUpperCase(); 1434 document.body.appendChild(textArea); 1435 textArea.select(); 1436 document.execCommand('copy'); 1437 document.body.removeChild(textArea); 1438 1439 let copiedText = document.getElementById('__growi-copied-text'); 1440 if (!copiedText) { 1441 copiedText = document.createElement('div'); 1442 copiedText.id = '__growi-copied-text'; 1443 copiedText.style.cssText = ` 1444 font-size:0.9em; 1445 color:#28a745; 1446 margin-top:8px; 1447 text-align:center; 1448 `; 1449 discountCodeDiv.parentNode.insertBefore(copiedText, discountCodeDiv.nextSibling); 1450 } 1451 copiedText.innerHTML = 'â Discount applied!'; 1452 }); 1453 }; 1454 1455 // Insert the discount code div after the button 1456 redeemBtn.parentNode.insertBefore(discountCodeDiv, redeemBtn.nextSibling); 1457 }, 1500); 1458 1459 window.growiCookieUtils.setCookie('discount_seen', affiliateId.toLowerCase()); 1460 }; 1461 } 1462 } 1463 1464 async function showBanner(affiliateId, discountCode, customizationData = null) { 1465 // Prevent duplicate banners 1466 if (document.getElementById('__growi-banner')) return; 1467 1468 // Fetch customization from API if not provided 1469 const customization = customizationData || (await fetchCustomization(affiliateId)); 1470 1471 // If no customization exists or banner not enabled, return 1472 if (!customization || !customization.banner_enabled) { 1473 console.log('â¹ï¸ Banner is disabled or no customization available'); 1474 return; 1475 } 1476 1477 // Merge customization with defaults 1478 const config = { ...defaultCustomization, ...customization }; 1479 1480 const affiliateName = window.growiCookieUtils.getCookie('affiliate_name'); 1481 const discountValue = window.growiCookieUtils.getCookie('discount_value'); 1482 const discountType = window.growiCookieUtils.getCookie('discount_type'); 1483 1484 const bannerHeading = 1485 config.heading_text || 1486 `${affiliateName ? decodeURIComponent(affiliateName) : 'We'} sent you ${ 1487 discountType === 'percentage' ? `${discountValue}%` : `$${discountValue}` 1488 } off!`; 1489 const bannerSubtext = config.body_text || `Click below to redeem your discount code`; 1490 const bannerButtonText = config.button_text || 'Redeem Coupon'; 1491 const bannerButtonMarkup = config.hide_button 1492 ? '' 1493 : `<button id="__growi-banner-btn" style=" 1494 padding: 14px 24px; 1495 background-color: ${config.button_color}; 1496 color: ${config.button_text_color}; 1497 border: none; 1498 border-radius: 6px; 1499 font-size: 16px; 1500 font-weight: 600; 1501 cursor: pointer; 1502 white-space: nowrap; 1503 flex-shrink: 0; 1504 font-family: -apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1505 Helvetica Neue, Arial, Noto Sans, sans-serif; 1506 transition: opacity 0.2s; 1507 "> 1508 ${bannerButtonText} 1509 </button>`; 1510 1511 // Create banner element 1512 const banner = document.createElement('div'); 1513 banner.id = '__growi-banner'; 1514 banner.style.cssText = ` 1515 display: flex; 1516 align-items: center; 1517 justify-content: space-between; 1518 padding: 16px 20px; 1519 background-color: ${config.background_color}; 1520 color: ${config.text_color}; 1521 position: fixed; 1522 top: 0; 1523 left: 0; 1524 right: 0; 1525 width: 100%; 1526 z-index: 9997; 1527 box-shadow: 0 2px 8px rgba(0,0,0,0.1); 1528 border-bottom: 1px solid rgba(0,0,0,0.08); 1529 font-family: -apple-system, Inter, BlinkMacSystemFont, Segoe UI, Roboto, 1530 Helvetica Neue, Arial, Noto Sans, sans-serif; 1531 gap: 20px; 1532 box-sizing: border-box; 1533 `; 1534 1535 banner.innerHTML = ` 1536 <div style="display: flex; align-items: center; gap: 15px; flex: 1;"> 1537 <div style="font-size: 40px; line-height: 1; flex-shrink: 0;"> 1538 ${config.emoji || 'ð'} 1539 </div> 1540 <div style="flex: 1; min-width: 0;"> 1541 <div style="font-size: 18px; font-weight: 700; color: ${config.text_color}; margin-bottom: 4px; line-height: 1.3;"> 1542 ${bannerHeading} 1543 </div> 1544 <div style="font-size: 14px; color: ${config.text_color}; opacity: 0.7; line-height: 1.4;"> 1545 ${bannerSubtext} 1546 </div> 1547 </div> 1548 </div> 1549 ${bannerButtonMarkup} 1550 <button id="__growi-banner-close" style=" 1551 background: transparent; 1552 border: none; 1553 color: ${config.text_color}; 1554 cursor: pointer; 1555 padding: 8px; 1556 display: flex; 1557 align-items: center; 1558 flex-shrink: 0; 1559 opacity: 0.6; 1560 transition: opacity 0.2s; 1561 "> 1562 <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 1563 <path d="M18 6L6 18M6 6L18 18" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"/> 1564 </svg> 1565 </button> 1566 `; 1567 1568 // Add responsive styles and hover effects 1569 const bannerStyles = document.createElement('style'); 1570 bannerStyles.textContent = ` 1571 #__growi-banner-btn:hover { 1572 opacity: 0.9; 1573 }
1574 #__growi-banner-close:hover { 1575 opacity: 1; 1576 } 1577 @media (max-width: 768px) { 1578 #__growi-banner { 1579 flex-direction: column; 1580 align-items: stretch !important; 1581 padding: 16px; 1582 width: 100%; 1583 } 1584 #__growi-banner > div:first-child { 1585 margin-bottom: 12px; 1586 } 1587 #__growi-banner-btn { 1588 width: 100%; 1589 } 1590 #__growi-banner-close { 1591 position: absolute; 1592 top: 16px; 1593 right: 16px; 1594 } 1595 } 1596 `; 1597 document.head.appendChild(bannerStyles); 1598 1599 // Append to body 1600 document.body.appendChild(banner); 1601 1602 // Add body padding to prevent content from being hidden behind banner 1603 const originalPaddingTop = document.body.style.paddingTop; 1604 // Wait for banner to render to get actual height 1605 setTimeout(() => { 1606 const bannerBottom = banner.getBoundingClientRect().bottom; 1607 document.body.style.paddingTop = `${bannerBottom}px`; 1608 1609 // Push down any existing sticky announcement bars so they appear below our banner 1610 const stickyAnnouncementBars = document.querySelectorAll( 1611 '[class*="announcement-bar"], [class*="announcement_bar"], [id*="announcement-bar"]' 1612 ); 1613 stickyAnnouncementBars.forEach((el) => { 1614 const style = getComputedStyle(el); 1615 if (style.position === 'sticky') { 1616 el.style.top = `${bannerBottom}px`; 1617 } 1618 }); 1619 }, 0); 1620 1621 // Store original padding for cleanup 1622 banner.dataset.originalPadding = originalPaddingTop; 1623 1624 // Button click handler - always copy code to clipboard, and optionally open modal 1625 const bannerBtn = document.getElementById('__growi-banner-btn'); 1626 if (bannerBtn) { 1627 bannerBtn.onclick = () => { 1628 const discountCode = window.growiCookieUtils.getCookie('discount_code'); 1629 const affiliateName = window.growiCookieUtils.getCookie('affiliate_name'); 1630 const discountType = window.growiCookieUtils.getCookie('discount_type'); 1631 const discountValue = window.growiCookieUtils.getCookie('discount_value'); 1632 1633 if (discountCode && discountValue) { 1634 // Always copy discount code to clipboard 1635 const originalText = bannerBtn.innerHTML; 1636 1637 navigator.clipboard 1638 .writeText(discountCode.toUpperCase()) 1639 .then(() => { 1640 bannerBtn.innerHTML = 'â Discount applied!'; 1641 bannerBtn.style.backgroundColor = '#28a745'; 1642 setTimeout(() => { 1643 bannerBtn.innerHTML = originalText; 1644 bannerBtn.style.backgroundColor = config.button_color; 1645 }, 2000); 1646 }) 1647 .catch(() => { 1648 // Fallback for older browsers 1649 const textArea = document.createElement('textarea'); 1650 textArea.value = discountCode.toUpperCase(); 1651 textArea.style.position = 'fixed'; 1652 textArea.style.opacity = '0'; 1653 document.body.appendChild(textArea); 1654 textArea.select(); 1655 document.execCommand('copy'); 1656 document.body.removeChild(textArea); 1657 1658 bannerBtn.innerHTML = 'â Discount applied!'; 1659 bannerBtn.style.backgroundColor = '#28a745'; 1660 setTimeout(() => { 1661 bannerBtn.innerHTML = originalText; 1662 bannerBtn.style.backgroundColor = config.button_color; 1663 }, 2000); 1664 }); 1665 1666 // Additionally show modal if enabled 1667 if (config.popup_enabled) { 1668 showDiscountModalV2(discountCode, affiliateName, discountValue, discountType, affiliateId); 1669 } 1670 } 1671 }; 1672 } 1673 1674 // Close button handler 1675 document.getElementById('__growi-banner-close').onclick = () => { 1676 // Restore original padding 1677 const originalPadding = banner.dataset.originalPadding || ''; 1678 document.body.style.paddingTop = originalPadding; 1679 1680 banner.remove(); 1681 // Store in cookie that banner was dismissed
1682 window.growiCookieUtils.setCookie('banner_dismissed', affiliateId.toLowerCase(), 1); // 1 day 1683 }; 1684 } 1685 1686 // ---- PAGE VIEW (exact referrer only) ---- 1687 function hasFiredPageView(visitorUid) { 1688 const key = `growi_pv_sent::${visitorUid || 'anon'}::${location.pathname}`; 1689 try { 1690 if (sessionStorage.getItem(key)) return true; 1691 } catch {} 1692 if (window.growiCookieUtils) { 1693 const ck = window.growiCookieUtils.getCookie(encodeURIComponent(key)); 1694 if (ck === '1') return true; 1695 } 1696 return false; 1697 } 1698 1699 function markFiredPageView(visitorUid) { 1700 const key = `growi_pv_sent::${visitorUid || 'anon'}::${location.pathname}`; 1701 try { 1702 sessionStorage.setItem(key, '1'); 1703 } catch {} 1704 // ~30 minutes lock across tabs 1705 window.growiCookieUtils && window.growiCookieUtils.setCookie(encodeURIComponent(key), '1', 0.02); 1706 } 1707 1708 async function sendOneTimePageView(externalId) { 1709 console.log('sendOneTimePageView', externalId); 1710 if (!window.growiCookieUtils) return; 1711 console.log('sendOneTimePageView1', externalId); 1712 if (!externalId) return; 1713 1714 const affiliateId = window.growiCookieUtils.getCookie('growi_affiliate_id'); 1715 const visitorUid = window.growiCookieUtils.getCookie('growi_visitor_uid'); 1716 if (!affiliateId || affiliateId === 'null') return; // keep your current rule 1717 console.log('sendOneTimePageView2', affiliateId); 1718 1719 if (hasFiredPageView(visitorUid)) return; 1720 console.log('sendOneTimePageView3', visitorUid); 1721 markFiredPageView(visitorUid); 1722 1723 // EXACT referrer only 1724 const referrerRaw = document.referrer || null; 1725 let referrerHost = null; 1726 try { 1727 referrerHost = referrerRaw ? new URL(referrerRaw).host : null; 1728 } catch {} 1729 1730 // Referrer captured at script-execute time, before any same-host nav 1731 // could blank document.referrer. Survives pushState / SPA-style nav 1732 // inside in-app browsers. 1733 const referrerInitialRaw = 1734 (typeof window !== 'undefined' && typeof window.__growi_initial_referrer !== 'undefined' 1735 ? window.__growi_initial_referrer 1736 : null) || null; 1737 let referrerInitialHost = null; 1738 try { 1739 referrerInitialHost = referrerInitialRaw ? new URL(referrerInitialRaw).host : null; 1740 } catch {} 1741 1742 // Get UTM parameters for Meta/Facebook ad tracking 1743 const utmParams = window.growiCookieUtils.getUtmParams ? window.growiCookieUtils.getUtmParams() : {}; 1744 1745 // Check if traffic is from Facebook/Meta based on utm_source 1746 const isFacebookSource = utmParams.utm_source && 1747 ['fb', 'facebook', 'meta'].includes(utmParams.utm_source.toLowerCase()); 1748 1749 // Click IDs + first-touch snapshot for paid-search fraud detection 1750 const clickIds = window.growiCookieUtils.getClickIds ? window.growiCookieUtils.getClickIds() : {}; 1751 const firstTouch = window.growiCookieUtils.getFirstTouch ? window.growiCookieUtils.getFirstTouch() : null; 1752 1753 // In-app-browser / platform inference from UA. Always safe to call â 1754 // returns { platform: 'browser', in_app_browser: false, ... } when 1755 // nothing matches. 1756 const clientPlatform = window.growiCookieUtils.detectClientPlatform 1757 ? window.growiCookieUtils.detectClientPlatform() 1758 : { platform: 'browser', in_app_browser: false, user_agent: '', is_mobile: false }; 1759 1760 // Prefer the value stamped onto first_touch (computed when the affiliate 1761 // cookie was set / backfilled â most accurate). Fall back to recomputing 1762 // live so payloads without a first_touch still carry signal. 1763 let inferredSource = (firstTouch && firstTouch.inferred_source) || null; 1764 if (!inferredSource) { 1765 if (clientPlatform && clientPlatform.platform && clientPlatform.platform !== 'browser') { 1766 inferredSource = clientPlatform.platform; 1767 } else if (referrerHost) { 1768 inferredSource = referrerHost; 1769 } else if (clickIds.gclid) { 1770 inferredSource = 'google_ads'; 1771 } else if (clickIds.msclkid) { 1772 inferredSource = 'bing_ads'; 1773 } else if (clickIds.fbclid) { 1774 inferredSource = 'facebook'; 1775 } else if (clickIds.ttclid) { 1776 inferredSource = 'tiktok'; 1777 } else { 1778 inferredSource = 'direct'; 1779 } 1780 } 1781 1782 const event = { 1783 name: 'page_viewed', 1784 id: (crypto.randomUUID && crypto.randomUUID()) || `${Date.now()}-${Math.random().toString(16).slice(2)}`, 1785 timestamp: new Date().toISOString(), 1786 data: { 1787 title: document.title || null, 1788 path: location.pathname, 1789 url: location.href, 1790 referrer_raw: referrerRaw, 1791 referrer_host: referrerHost, 1792 referrer_initial_raw: referrerInitialRaw, 1793 referrer_initial_host: referrerInitialHost,
1794 utm_source: utmParams.utm_source || null, 1795 utm_medium: utmParams.utm_medium || null, 1796 utm_campaign: utmParams.utm_campaign || null, 1797 utm_content: utmParams.utm_content || null, 1798 utm_term: utmParams.utm_term || null, 1799 utm_id: utmParams.utm_id || null, 1800 // Meta Ad ID (only set if utm_source is fb/facebook/meta) 1801 meta_ad_id: isFacebookSource ? (utmParams.tw_id || utmParams.utm_id || utmParams.utm_content || null) : null, 1802 click_ids: clickIds, 1803 first_touch: firstTouch, 1804 inferred_source: inferredSource, 1805 client_platform: clientPlatform, 1806 }, 1807 clientId: visitorUid, 1808 }; 1809 1810 const body = { 1811 tracking_event: { 1812 event_name: event.name, 1813 occurred_at: event.timestamp, 1814 visitor_uid: visitorUid, 1815 event_data: { 1816 pageEventId: event.id, 1817 timeStamp: event.timestamp, 1818 data: { ...event.data, clientId: event.clientId }, 1819 }, 1820 }, 1821 campaign_affiliate_id: affiliateId, 1822 external_id: `gid://shopify/Shop/${externalId}`, 1823 conversion_platform: 'shopify', 1824 }; 1825 1826 // Optional server dedupe 1827 const idempKey = `${visitorUid || 'anon'}::${location.pathname}::${Math.floor(Date.now() / 60000)}`; 1828 1829 try { 1830 await fetch('https://api.growi.io/api/v1/tracking_events', { 1831 method: 'POST', 1832 headers: { 1833 'Content-Type': 'application/json', 1834 'Idempotency-Key': idempKey, 1835 }, 1836 body: JSON.stringify(body), 1837 }); 1838 } catch (err) { 1839 console.warn('page_viewed send failed', err); 1840 } 1841 } 1842 1843 function waitForUrlParams(retries = 10, delay = 200) { 1844 // Check if URL has any parameters yet 1845 const hasParams = window.location.search.length > 0; 1846 const affiliateParam = 1847 new URLSearchParams(window.location.search).get('a') || 1848 new URLSearchParams(window.location.search).get('snowball') || 1849 new URLSearchParams(window.location.search).get('growi'); 1850 1851 // If we found affiliate params or exhausted retries, proceed 1852 if (affiliateParam || retries <= 0 || hasParams) { 1853 console.log(`â URL stabilized after ${10 - retries} attempts. Affiliate param:`, affiliateParam); 1854 initializeAffiliate(); 1855 return; 1856 } 1857 1858 // Wait and retry - Instagram WebView needs time to stabilize 1859 console.log(`â³ Waiting for URL params to stabilize... (${retries} retries left)`); 1860 setTimeout(() => waitForUrlParams(retries - 1, delay), delay); 1861 } 1862 1863 function waitForUtils(retries = 5) { 1864 console.log(`ð [WAIT-FOR-UTILS] Attempt ${6 - retries}/5 - Checking for window.growiCookieUtils...`); 1865 console.log( 1866 `ð [WAIT-FOR-UTILS] window.growiCookieUtils exists?`, 1867 typeof window.growiCookieUtils !== 'undefined' 1868 ); 1869 console.log(`ð [WAIT-FOR-UTILS] Document readyState:`, document.readyState); 1870 console.log(`ð [WAIT-FOR-UTILS] Timestamp:`, new Date().toISOString()); 1871 1872 if (window.growiCookieUtils) { 1873 console.log('â [WAIT-FOR-UTILS] Cookie utils found! Available methods:', Object.keys(window.growiCookieUtils)); 1874 // Don't immediately read params - wait for URL to stabilize first 1875 waitForUrlParams(); 1876 } else if (retries > 0) { 1877 console.log(`â³ [WAIT-FOR-UTILS] Not found yet, retrying in 100ms... (${retries} retries left)`); 1878 setTimeout(() => waitForUtils(retries - 1), 100); 1879 } else { 1880 console.error('â [WAIT-FOR-UTILS] Growi cookie utilities not loaded after 5 retries (500ms total)'); 1881 console.error('â [WAIT-FOR-UTILS] All window properties:', Object.keys(window)); 1882 console.error('â [WAIT-FOR-UTILS] Check if cookie-utils.js is loading correctly'); 1883 } 1884 } 1885 1886 function initializeAffiliate() { 1887 console.log('ð¯ [INIT-AFFILIATE] initializeAffiliate() called'); 1888 console.log( 1889 'ð¯ [INIT-AFFILIATE] window.growiCookieUtils exists?', 1890 typeof window.growiCookieUtils !== 'undefined' 1891 ); 1892 1893 if (!window.growiCookieUtils) { 1894 console.error('â [INIT-AFFILIATE] Cookie utils not available - CANNOT PROCEED'); 1895 console.error('â [INIT-AFFILIATE] This usually means cookie-utils.js failed to load or execute'); 1896 return; 1897 } 1898 1899 console.log('â [INIT-AFFILIATE] Cookie utils available, proceeding...'); 1900 1901 // Now read affiliate params after URL has stabilized 1902 const urlAffiliateId = 1903 new URLSearchParams(window.location.search).get('a') || 1904 new URLSearchParams(window.location.search).get('snowball') || 1905 new URLSearchParams(window.location.search).get('growi'); 1906 1907 // Get affiliate info from cookies 1908 const cookieInfo = window.growiCookieUtils.manageAffiliate
1908Cookies(); 1909 1910 // Determine which affiliate ID to use (URL param takes precedence) 1911 const affiliateId = urlAffiliateId || cookieInfo.affiliateId; 1912 const visitorUid = cookieInfo.visitorUid; 1913 // Brand-built Meta ads carry only a gcs_id (no affiliate param/cookie). 1914 // gcs_id alone is enough to stamp the cart so the backend can attribute 1915 // the sale. 1916 const gcsId = 1917 window.growiCookieUtils.getQueryParam('gcs_id') || 1918 window.growiCookieUtils.getCookie('growi_gcs_id'); 1919 const autoResponderId = 1920 window.growiCookieUtils.getQueryParam('igar_id') || 1921 cookieInfo.autoResponderId || 1922 window.growiCookieUtils.getCookie('growi_auto_responder_id'); 1923 // Creator-set sub-ID for platform-level tracking (e.g. ?sub_id=instagram) 1924 const subId = 1925 window.growiCookieUtils.getQueryParam('sub_id') || 1926 cookieInfo.subId || 1927 window.growiCookieUtils.getCookie('growi_sub_id'); 1928 1929 console.log('ð Final affiliate detection:', { 1930 urlAffiliateId, 1931 cookieAffiliateId: cookieInfo.affiliateId, 1932 finalAffiliateId: affiliateId, 1933 gcsId, 1934 autoResponderId, 1935 subId, 1936 }); 1937 1938 // Run if we have an affiliate from either source OR a gcs_id (brand-built 1939 // Meta ad). visitorUid is always created by manageAffiliateCookies. 1940 if ((affiliateId || gcsId || autoResponderId) && visitorUid) { 1941 // Get UTM parameters to pass to order 1942 const utmParams = window.growiCookieUtils.getUtmParams ? window.growiCookieUtils.getUtmParams() : {}; 1943 1944 // Check if traffic is from Facebook/Meta based on utm_source 1945 const isFacebookSource = utmParams.utm_source && 1946 ['fb', 'facebook', 'meta'].includes(utmParams.utm_source.toLowerCase()); 1947 1948 // Build cart attributes 1949 const cartAttributes = { 1950 __growi_visitor_uid: visitorUid, 1951 }; 1952 1953 if (affiliateId) cartAttributes.__growi_affiliate_id = affiliateId; 1954 if (gcsId) cartAttributes.__growi_gcs_id = gcsId; 1955 if (autoResponderId) cartAttributes.__growi_auto_responder_id = autoResponderId; 1956 if (subId) cartAttributes.__growi_sub_id = subId; 1957 1958 if (utmParams.utm_source) cartAttributes.__growi_utm_source = utmParams.utm_source; 1959 if (utmParams.utm_medium) cartAttributes.__growi_utm_medium = utmParams.utm_medium; 1960 if (utmParams.utm_campaign) cartAttributes.__growi_utm_campaign = utmParams.utm_campaign; 1961 if (utmParams.utm_content) cartAttributes.__growi_utm_content = utmParams.utm_content; 1962 if (utmParams.utm_term) cartAttributes.__growi_utm_term = utmParams.utm_term; 1963 if (utmParams.utm_id) cartAttributes.__growi_utm_id = utmParams.utm_id; 1964 if (utmParams.campaign_id) cartAttributes.__growi_campaign_id = utmParams.campaign_id; 1965 if (utmParams.user_id) cartAttributes.__growi_user_id = utmParams.user_id; 1966 if (utmParams.campaign_affiliate_id) cartAttributes.__growi_campaign_affiliate_id = utmParams.campaign_affiliate_id; 1967 if (utmParams.asset_id) cartAttributes.__growi_asset_id = utmParams.asset_id; 1968 if (utmParams.tw_id) cartAttributes.__growi_tw_id = utmParams.tw_id; 1969
1970 if (isFacebookSource && (utmParams.tw_id || utmParams.utm_id || utmParams.utm_content)) { 1971 cartAttributes.__growi_meta_ad_id = utmParams.tw_id || utmParams.utm_id || utmParams.utm_content; 1972 } 1973 1974 fetch('/cart/update.js', { 1975 method: 'POST', 1976 headers: { 1977 'Content-Type': 'application/json', 1978 }, 1979 body: JSON.stringify({ 1980 attributes: cartAttributes, 1981 }), 1982 }) 1983 .then((res) => { 1984 // Extract x-shopid from response headers 1985 const externalId = res.headers.get('x-shopid'); 1986 console.log('ðª Shop ID extracted from headers:', externalId); 1987 1988 return res.json().then((data) => ({ data, externalId })); 1989 }) 1990 .then(({ data, externalId }) => { 1991 console.log('â Cart attributes updated with affiliate & visitor ID', data); 1992 // --- Discount code logic start --- 1993 // Only fetch if we have an affiliateId and no discount_code cookie 1994 // Only fetch if we have an affiliateId and no discount_code cookie 1995 const discountCode = window.growiCookieUtils.getCookie('discount_code'); 1996 const affiliateName = window.growiCookieUtils.getCookie('affiliate_name'); 1997 const discountType = window.growiCookieUtils.getCookie('discount_type'); 1998 const discountValue = window.growiCookieUtils.getCookie('discount_value'); 1999 const campaignType = window.growiCookieUtils.getCookie('campaign_type'); 2000 const discountSeen = window.growiCookieUtils.getCookie('discount_seen'); 2001 const isDiscountSeen = discountSeen && discountSeen === `${affiliateId}`.toLowerCase(); 2002 2003 console.log('Test', affiliateId, discountCode, affiliateId !== 'null', externalId); 2004 2005 if (affiliateId && !!discountCode && affiliateId !== 'null' && isDiscountSeen) { 2006 const bannerDismissed = window.growiCookieUtils.getCookie('banner_dismissed'); 2007 const isBannerDismissed = bannerDismissed && bannerDismissed === `${affiliateId}`.toLowerCase(); 2008 2009 if (!isBannerDismissed) { 2010 // Check if banner is enabled before showing 2011 fetchCustomization(affiliateId).then((customization) => { 2012 if (customization && customization.banner_enabled) { 2013 showBanner(affiliateId, discountCode, customization); 2014 } 2015 }); 2016 } 2017 2018 sendOneTimePageView(externalId); 2019 } else if ( 2020 affiliateId && 2021 (!discountCode || (!!discountCode && !isDiscountSeen)) && 2022 affiliateId !== 'null' 2023 ) { 2024 const currentUrl = window.location.href; 2025 // gcs_id (Growi Content Submission ID) lets the backend attribute 2026 // brand-built Meta ads. Prefer the live URL param, fall back to the 2027 // cookie captured on the landing page. 2028 const gcsId = 2029 window.growiCookieUtils.getQueryParam('gcs_id') || 2030 window.growiCookieUtils.getCookie('growi_gcs_id'); 2031 const gcsQuery = gcsId ? `&gcs_id=${encodeURIComponent(gcsId)}` : ''; 2032 fetch( 2033 `https://api.growi.io/api/v1/campaign_affiliates/${encodeURIComponent( 2034 affiliateId 2035 )}/discount_code?url=${encodeURIComponent(currentUrl)}${gcsQuery}`, 2036 { 2037 method: 'GET', 2038 headers: { 2039 'Content-Type': 'application/json', 2040 }, 2041 } 2042 ) 2043 .then((response) => { 2044 if (!response.ok) throw new Error('Network response was not ok'); 2045 return response.json(); 2046 }) 2047 .then((data) => { 2048 if (data.success) { 2049 cookieDuration = data.cookie_duration; 2050 if (!!cookieDuration) { 2051 updateAffiliateCookieDuration(cookieDuration); 2052 console.log('â Affiliate cookie duration updated:', cookieDuration); 2053 } 2054 } 2055 if (data.success && data.discount_code) { 2056 // Set discount_code cookie for 30 days
2057 window.growiCookieUtils.setCookie('discount_code', data.discount_code, 30); 2058 // Set new response format cookies 2059 if (data.affiliate_name) { 2060 window.growiCookieUtils.setCookie('affiliate_name', data.affiliate_name, 30); 2061 } 2062 if (data.discount_type) { 2063 window.growiCookieUtils.setCookie('discount_type', data.discount_type, 30); 2064 } 2065 if (data.discount_value) { 2066 window.growiCookieUtils.setCookie('discount_value', data.discount_value, 30); 2067 } 2068 if (data.campaign_type) { 2069 window.growiCookieUtils.setCookie('campaign_type', data.campaign_type, 30); 2070 } 2071 console.log('â Discount code cookies set:', data.discount_code); 2072 2073 // Show discount modal only for ambassador programs and if not seen yet 2074 const discountSeen = window.growiCookieUtils.getCookie('discount_seen'); 2075 const isDiscountSeen = discountSeen && discountSeen === `${affiliateId}`.toLowerCase(); 2076 2077 if (!isDiscountSeen) { 2078 if (data.is_v2) { 2079 showDiscountModalV2( 2080 data.discount_code, 2081 data.affiliate_name, 2082 data.discount_value, 2083 data.discount_type, 2084 affiliateId 2085 ); 2086 } else { 2087 showDiscountModal( 2088 data.discount_code, 2089 data.affiliate_name, 2090 data.discount_value, 2091 data.discount_type, 2092 affiliateId 2093 ); 2094 } 2095 } else { 2096 // If modal was already seen, show banner instead (if not dismissed) 2097 const bannerDismissed = window.growiCookieUtils.getCookie('banner_dismissed'); 2098 const isBannerDismissed = bannerDismissed && bannerDismissed === `${affiliateId}`.toLowerCase(); 2099 2100 if (!isBannerDismissed) { 2101 // Check if banner is enabled before showing 2102 fetchCustomization(affiliateId).then((customization) => { 2103 if (customization && customization.banner_enabled) { 2104 showBanner(affiliateId, data.discount_code, customization); 2105 } 2106 }); 2107 } 2108 } 2109 } 2110 }) 2111 .catch((error) => { 2112 console.error('There has been a problem with your fetch operation:', error); 2113 }); 2114 } 2115 // --- Discount code logic end --- 2116 2117 sendOneTimePageView(externalId); 2118 }) 2119 .catch((err) => { 2120 console.error('â Failed to update cart attributes', err); 2121 }); 2122 } else { 2123 console.log('â¹ï¸ No affiliate data to process'); 2124 } 2125 } 2126 2127 // Start the process - wait for utils first, then URL stability 2128 console.log('ð [GROWI-EMBED] Starting waitForUtils() immediately...'); 2129 console.log('ð [GROWI-EMBED] Current timestamp:', new Date().toISOString()); 2130 waitForUtils(); 2131 2132 // Also try on window.load as a fallback for very slow WebViews 2133 window.addEventListener('load', () => { 2134 setTimeout(() => { 2135 console.log('ð [WINDOW-LOAD] Window load backup trigger fired (500ms after window.load)'); 2136 console.log('ð [WINDOW-LOAD] window.growiCookieUtils exists?', typeof window.growiCookieUtils !== 'undefined'); 2137 initializeAffiliate(); 2138 }, 500); 2139 }); 2140 })(); 2141</script>
2141 2142 2143 2144<!-- END app block -->
2144<script src="https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/orbe-mk.min.js" type="text/javascript" defer="defer"></script>
2144 2145<link href="https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/md-app-modal.min.css" rel="stylesheet" type="text/css" media="all">
2146<script src="https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/orbe.min.js" type="text/javascript" defer="defer"></script>
2146 2147<link href="https://monorail-edge.shopifysvc.com" rel="dns-prefetch">
2148<script>(function(){if ("sendBeacon" in navigator && "performance" in window) {try {var session_token_from_headers = performance.getEntriesByType('navigation')[0].serverTiming.find(x => x.name == '_s').description;} catch {var session_token_from_headers = undefined;}var session_cookie_matches = document.cookie.match(/_shopify_s=([^;]*)/);var session_token_from_cookie = session_cookie_matches && session_cookie_matches.length === 2 ? session_cookie_matches[1] : "";var session_token = session_token_from_headers || session_token_from_cookie || "";function handle_abandonment_event(e) {var entries = performance.getEntries().filter(function(entry) {return /monorail-edge.shopifysvc.com/.test(entry.name);});if (!window.abandonment_tracked && entries.length === 0) {window.abandonment_tracked = true;var currentMs = Date.now();var navigation_start = performance.timing.navigationStart;var payload = {shop_id: 75207901427,url: window.location.href,navigation_start,duration: currentMs - navigation_start,session_token,page_type: "cart"};window.navigator.sendBeacon("https://monorail-edge.shopifysvc.com/v1/produce", JSON.stringify({schema_id: "online_store_buyer_site_abandonment/1.1",payload: payload,metadata: {event_created_at_ms: currentMs,event_sent_at_ms: currentMs}}));}}window.addEventListener('pagehide', handle_abandonment_event);}}());</script>
vendor: 1 bytes, line 2148
2148
2149<script> 2150 window.__TREKKIE_SHIM_QUEUE = window.__TREKKIE_SHIM_QUEUE || []; 2151</script>
vendor: 1 bytes, line 2151
2151
2152<script>(function(){var wpmLoader=function(){"use strict";var e=/Googlebot|Storebot-Google|bingbot|Baiduspider|YandexBot|DuckDuckBot|Slurp|facebookexternalhit|Twitterbot|LinkedInBot|Applebot|AdsBot-Google|Mediapartners-Google|APIs-Google|PetalBot|SemrushBot|AhrefsBot|MJ12bot|DotBot|Acunetix|PerplexityBot|Perplexity-User/i,t=/bytedance/i;function i(){try{var e=document.cookie;if(!e||"string"!=typeof e)return;for(var t=0,i=e.split(";");t<i.length;t++){var n=i[t],r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r).trim();if(o){var a=void 0;try{a=decodeURIComponent(o)}catch(e){a=o}if("_shopify_s"===a){var d=n.slice(r+1).trim();try{return decodeURIComponent(d)}catch(e){return d}}}}}return}catch(e){return}}function n(e){try{"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}catch(e){}}function r(e,t){return"string"==typeof e&&e.length>0&&e.length<=t?e:void 0}function o(e){var t;switch(null==(t=null==e?void 0:e.navigation)?void 0:t.type){case 0:return"navigate";case 1:return"reload";case 2:return"back_forward";default:return}}function a(){var e,t,i;try{var n=null==(i=null==(t=null==(e=self.ShopifyAnalytics)?void 0:e.lib)?void 0:t.trekkie)?void 0:i.state;return"awaiting-consent"===n||"initialized"===n?n:void 0}catch(e){return}}return function(d,s,u,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};try{var p=c.trekkieShim;!0!==p&&"true"!==p||null!=window.__TREKKIE_SHIM_QUEUE||(window.__TREKKIE_SHIM_QUEUE=[])}catch(e){}var f,v,h,y,g=(v=(f={modern:/Edge?\/(1{2}[4-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Firefox\/(1{2}[4-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Chrom(ium|e)\/(9{2}|\d{3,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(15\.\d+|(1[6-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(9{2}|\d{3,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(15[._]\d+|(1[6-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android:?[ /-](14[89]|1[5-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Android.+Firefox\/(15\d|1[6-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(14[89]|1[5-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|SamsungBrowser\/([2-9]\d|\d{3,})\.\d+/,legacy:/Edge?\/(1[6-9]|[2-9]\d|\d{3,})\.\d+(\.\d+|)|Firefox\/(5[4-9]|[6-9]\d|\d{3,})\.\d+(\.\d+|)|Chrom(ium|e)\/(5[1-9]|[6-9]\d|\d{3,})\.\d+(\.\d+|)([\d.]+$|.*Safari\/(?![\d.]+ Edge\/[\d.]+$))|(Maci|X1{2}).+ Version\/(10\.\d+|(1[1-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|Chrome.+OPR\/(3[89]|[4-9]\d|\d{3,})\.\d+\.\d+|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(10[._]\d+|(1[1-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)|Android:?[ /-](14[89]|1[5-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)|Mobile Safari.+OPR\/([89]\d|\d{3,})\.\d+\.\d+|Android.+Firefox\/(15\d|1[6-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+Chrom(ium|e)\/(14[89]|1[5-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Android.+(UC? ?Browser|UCWEB|U3)[ /]?(15\.([5-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)\.\d+|SamsungBrowser\/(5\.\d+|([6-9]|\d{2,})\.\d+)|Android.+MQ{2}Browser\/(14(\.(9|\d{2,})|)|(1[5-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)|K[Aa][Ii]OS\/(3\.\d+|([4-9]|\d{2,})\.\d+)(\.\d+|)/}).modern,h=f.legacy,(y=navigator.userAgent).match(e)?"bot":y.match(v)?"modern":y.match(h)?"legacy":y.match(t)?"bot":"unknown"),m=function(e){var t,i,n=r(e,128);try{var a=window.performance,d=null==(t=null==a?void 0:a.getEntriesByType)?void 0:t.call(a,"navigation")[0];if(!d)return{requestId:n,navigationType:o(a)};var s="type"in d?r(d.type,64):void 0,u="serverTiming"in d&&Array.isArray(d.serverTiming)?d.serverTiming:[];return{requestId:null!=n?n:r(null==(i=u.find(function(e){return"requestID"===e.name}))?void 0:i.description,128),navigationType:s}}catch(e){return{requestId:n}}}(c.requestId),w=function(e){var t=e.version,r=e.browserTarget,o=e.surface,a=e.shopId,d=e.monorailEndpoint,s=window.location.href;return{emit:function(e){var u=e.status,l=e.errorMsg,c=e.failureReason,p=e.useKeepaliveFallback,f=void 0!==p&&p,v=e.navigationType,h=e.pagehidePersisted,y=e.requestId,g=e.trekkieState;if(d){var m,w;try{var b=(new Date).getTime();m=JSON.stringify({metadata:{event_sent_at_ms:b},events:[{schema_id:"web_pixels_manager_load/3.3",payload:{version:t,bundle_target:r,page_url:s,status:u,surface:o,error_msg:l,failure_reason:c,navigation_type:v,pagehide_persisted:h,request_id:y,trekkie_state:g,shop_id:a,visit_token:i()},metadata:{event_created_at_ms:b}}]})}catch(e){return}try{if("function"==typeof window.navigator.sendBeacon&&-1===(w=window.navigator.userAgent).indexOf("iPhone; CPU iPhone OS 12_")&&-1===w.indexOf("iPad; CPU OS 12_")&&-1===w.indexOf("iPod touch; CPU iPhone OS 12_")&&window.navigator.sendBeacon.bind(window.navigator)(d,m))return}catch(e){}if(f)try{"function"==typeof window.fetch&&window.fetch(d,{method:"POST",headers:{"Content-Type":"text/plain"},body:m,keepalive:!0}
2152).catch(function(){})}catch(e){}else try{var _=new XMLHttpRequest;_.open("POST",d,!0),_.setRequestHeader("Content-Type","text/plain"),_.send(m)}catch(e){n("[Web Pixels Manager] Got an unhandled error while logging to Monorail.")}}else n("[Web Pixels Manager] No Monorail endpoint provided, skipping logging.")}}}({version:u,browserTarget:g,surface:d.surface,shopId:d.shopId,monorailEndpoint:d.monorailEndpoint});if(Boolean(null==(_=null==(b=window.Shopify)?void 0:b.analytics)?void 0:_.replayQueue))w.emit({status:"setup-skipped",errorMsg:"replay queue already initialized."});else{var b,_;w.emit({status:"setup-started"}),window.Shopify=window.Shopify||{};var S=window.Shopify;S.analytics=S.analytics||{};var P=S.analytics;P.replayQueue=[],P.publish=function(e,t,i){return P.replayQueue.push([e,t,i]),!0};try{self.performance.mark("wpm:start")}catch(e){}var k,C="modern"===g?"modern":"legacy",E=(null!=l?l:{modern:"",legacy:""})[C],I=[(k={baseUrl:s,hashVersion:u,buildTarget:C}).baseUrl,"/wpm","/b",k.hashVersion,"modern"===k.buildTarget?"m":"l",".js"].join(""),O=!1,T=!1;try{c.browserTarget=g,function(){O=!0;try{window.addEventListener("pagehide",M)}catch(e){O=!1}}(),R(function(){try{R(x)}catch(e){D(e)}}),w.emit({status:"loading",requestId:m.requestId,navigationType:m.navigationType,trekkieState:a()})}catch(e){D(e)}}function U(){var e;if(q(),!function(){var e,t;return Boolean(null==(t=null==(e=window.Shopify)?void 0:e.analytics)?void 0:t.initialized)}()){var t,i,n;try{if("function"!=typeof(null==(e=window.webPixelsManager)?void 0:e.init))return void A();if(!(null!==(n=i=t=window.webPixelsManager.init(d))&&"function"!=typeof n&&Object(n)===n&&"publish"in i&&"function"==typeof i.publish&&"publishCustomEvent"in i&&"function"==typeof i.publishCustomEvent&&"visitor"in i&&"function"==typeof i.visitor))return void A()}catch(e){return void A(e)}var r=window.Shopify.analytics;r.replayQueue.forEach(function(e){var i=e[0],n=e[1],r=e[2];t.publishCustomEvent(i,n,r)}),r.replayQueue=[],r.publish=t.publishCustomEvent,r.visitor=t.visitor,r.initialized=!0}}function A(e){B("manager_api_unavailable",void 0===e?void 0:Q(e))}function x(){B("script_load_failed","".concat(I," has failed to load"))}function B(e,t){T||(T=!0,q(),w.emit({status:"failed",errorMsg:t,failureReason:e,requestId:m.requestId,navigationType:m.navigationType,trekkieState:a()}))}function M(e){O&&(q(),w.emit({status:"pagehide-while-loading",useKeepaliveFallback:!0,pagehidePersisted:e.persisted,requestId:m.requestId,navigationType:m.navigationType,trekkieState:a()}))}function q(){O=!1;try{window.removeEventListener("pagehide",M)}catch(e){}}function R(e){var t;!function(e){var t=e.src,i=e.async,n=void 0===i||i,r=e.onload,o=e.onerror,a=e.sri,d=e.scriptDataAttributes,s=void 0===d?{}:d,u=document.createElement("script"),l=document.querySelector("head"),c=document.querySelector("body");if(u.async=n,u.src=t,a&&(u.integrity=a,u.crossOrigin="anonymous"),s)for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))try{u.dataset[p]=String(s[p])}catch(e){}if(r&&u.addEventListener("load",r),o&&u.addEventListener("error",o),l)l.appendChild(u);else{if(!c)throw new Error("Did not find a head or body element to append the script");c.appendChild(u)}}({src:I,async:!0,onload:U,onerror:e,sri:(t=E,"string"==typeof t&&/^sha384-[A-Za-z0-9+/=]+$/.test(t)?E:""),scriptDataAttributes:c})}function D(e){B("script_append_failed",Q(e))}function Q(e){return e instanceof Error?e.message:"Unknown error"}}}();wpmLoader({shopId: 75207901427,storefrontBaseUrl: "https://iwannasleep.com",extensionsBaseUrl: "https://extensions.shopifycdn.com/cdn/shopifycloud/web-pixels-manager",monorailEndpoint: "https://iwannasleep.com/.well-known/shopify/monorail/unstable/produce_batch",surface: "storefront-renderer",enabledBetaFlags: ["4c64608a","16072cab","8450a54b"],webPixelsConfigList: [{"id":"2748055795","configuration":"{\"shopId\":\"75207901427\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"83adcaf06c5deacff41ffdf8f92d9129","type":"APP","apiClientId":246667608065,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_phone","read_customer_personal_data"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"2743861491","configuration":"{\"projectId\":\"yjwpltt04v\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"d8a2bb2ccbb513dc8e8b6937f4b8033e","type":"APP","apiClientId":240074326017,"privacyPurposes":[],"capabilities":["advanced_dom_events"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_personal_data"],"dataSharingControls":["share_all_events"]}
2152,"dataSharingState":"unrestricted"},{"id":"2154463475","configuration":"{\"webPixelName\":\"Judge.me\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"8acc938b1a30dc7624e304493ca567d7","type":"APP","apiClientId":683015,"privacyPurposes":["ANALYTICS"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"unrestricted"},{"id":"2153906419","configuration":"{\"pixelCode\":\"D6SPUDRC77U2A9KFF6R0\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"22e92c2ad45662f435e4801458fb78cc","type":"APP","apiClientId":4383523,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"2148532467","configuration":"{\"shop\":\"i-wanna-sleep-usa.myshopify.com\",\"collect_url\":\"https:\\\/\\\/collect.bogos.io\\\/collect\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"3e41d63cd5ce800ba1fe97b89f532437","type":"APP","apiClientId":177733,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"2049736947","configuration":"{\"accountID\":\"SNZxEE\",\"webPixelConfig\":\"eyJlbmFibGVBZGRlZFRvQ2FydEV2ZW50cyI6IHRydWV9\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"c63c5b72c8d77be5f2d27d14c081da38","type":"APP","apiClientId":123074,"privacyPurposes":["ANALYTICS","MARKETING"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized","enabledFlags":["9a3ed68a"]},{"id":"2044526835","configuration":"{\"companyID\":\"gid:\/\/shopify\/Shop\/75207901427\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"53a564b8574378237642302dbd2cb842","type":"APP","apiClientId":91426783233,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_email","read_customer_name","read_customer_personal_data"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"2008449267","configuration":"{\"storeId\":\"58538ec9-d50f-4d5e-9ea7-45d5d465eaca\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"2066bff610c5c92c0538059190a8d779","type":"APP","apiClientId":274629623809,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_email","read_customer_personal_data"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"1982267635","configuration":"{\"config\":\"{\\\"google_tag_ids\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\",\\\"GT-W6VNLLNS\\\"],\\\"target_country\\\":\\\"ZZ\\\",\\\"gtag_events\\\":[{\\\"type\\\":\\\"begin_checkout\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/efXACNHuje4bEKDQrdxC\\\"]},{\\\"type\\\":\\\"search\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/bl15CJHwje4bEKDQrdxC\\\"]},{\\\"type\\\":\\\"remove_from_cart\\\",\\\"action_label\\\":\\\"G-XCV8SK4YT9\\\"},{\\\"type\\\":\\\"view_item\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/g88aCI7wje4bEKDQrdxC\\\",\\\"MC-HXV1EFPH38\\\"]},{\\\"type\\\":\\\"add_shipping_info\\\",\\\"action_label\\\":\\\"G-XCV8SK4YT9\\\"},{\\\"type\\\":\\\"purchase\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/3hW2CM7uje4bEKDQrdxC\\\",\\\"MC-HXV1EFPH38\\\"]},{\\\"type\\\":\\\"page_view\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/4K5bCNfuje4bEKDQrdxC\\\",\\\"MC-HXV1EFPH38\\\"]},{\\\"type\\\":\\\"view_item_list\\\",\\\"action_label\\\":\\\"G-XCV8SK4YT9\\\"},{\\\"type\\\":\\\"add_payment_info\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/gc-1CJTwje4bEKDQrdxC\\\"]},{\\\"type\\\":\\\"add_to_cart\\\",\\\"action_label\\\":[\\\"G-XCV8SK4YT9\\\",\\\"AW-17910425632\\\/T7v_CNTuje4bEKDQrdxC\\\"]},{\\\"type\\\":\\\"view_cart\\\",\\\"action_label\\\":\\\"G-XCV8SK4YT9\\\"}],\\\"enable_monitoring_mode\\\":false}\"}","eventPayloadVersion":"v1","runtimeContext":"OPEN","scriptVersion":"a3321ca85cf5aaf6b57585fcd8d67b3a","type":"APP","apiClientId":1780363,"privacyPurposes":[],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized","enabledFlags":["9a3ed68a"]}
2152,{"id":"1740210419","configuration":"{\"debug\":\"false\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"a9a83cf44fb282052ff936f7ab101058","type":"APP","apiClientId":4539653,"privacyPurposes":["ANALYTICS"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"unrestricted"},{"id":"1583186163","configuration":"{\"appProxyPath\":\"\/apps\/pagefly\",\"analyticsEndpoint\":\"https:\/\/analytics-v1.pagefly.io\/analytics-v2\/events\",\"focusDuration\":\"3\",\"enableAdvancedTracking\":\"true\"}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"1e023fb0c721518c0dce4129e4d87a86","type":"APP","apiClientId":1743893,"privacyPurposes":["ANALYTICS","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_personal_data"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized"},{"id":"1556775155","configuration":"{\"pixel_id\":\"1150868530445539\",\"pixel_type\":\"facebook_pixel\"}","eventPayloadVersion":"v1","runtimeContext":"OPEN","scriptVersion":"bd2f978c17a94bbb8a74d43de2165dc5","type":"APP","apiClientId":2329312,"privacyPurposes":["ANALYTICS","MARKETING","SALE_OF_DATA"],"dataSharingAdjustments":{"protectedCustomerApprovalScopes":["read_customer_address","read_customer_email","read_customer_name","read_customer_personal_data","read_customer_phone"],"dataSharingControls":["share_all_events"]},"dataSharingState":"optimized","enabledFlags":["9a3ed68a"]},{"id":"shopify-app-pixel","configuration":"{}","eventPayloadVersion":"v1","runtimeContext":"STRICT","scriptVersion":"0530","apiClientId":"shopify-pixel","type":"APP","privacyPurposes":["ANALYTICS","MARKETING"]},{"id":"shopify-custom-pixel","eventPayloadVersion":"v1","runtimeContext":"LAX","scriptVersion":"0530","apiClientId":"shopify-pixel","type":"CUSTOM","privacyPurposes":["ANALYTICS","MARKETING"]}],isMerchantRequest: false,initData: {"shop":{"name":"I wanna sleep","paymentSettings":{"currencyCode":"USD"},"myshopifyDomain":"i-wanna-sleep-usa.myshopify.com","countryCode":"US","storefrontUrl":"https:\/\/iwannasleep.com"},"customer":null,"cart":null,"checkout":null,"productVariants":[],"products":[],"purchasingCompany":null},},"https://iwannasleep.com/cdn","7ec887c8w14f9f074p854094e1m1370c602",{"modern":"","legacy":""},{"trekkieShim":true,"agentContext":true,"apiClientId":"580111","facebookCapiEnabled":"true","themeId":"188909388019","themePublished":"true","eventMetadataId":"46899cc1-aa1e-4576-8cdf-fe7d6f1b8845","pageType":"cart","shopId":"75207901427","storefrontBaseUrl":"https:\/\/iwannasleep.com","extensionBaseUrl":"https:\/\/extensions.shopifycdn.com\/cdn\/shopifycloud\/web-pixels-manager","surface":"storefront-renderer","enabledBetaFlags":"[\"4c64608a\", \"16072cab\", \"8450a54b\"]","isMerchantRequest":"false","hashVersion":"7ec887c8w14f9f074p854094e1m1370c602","publish":"custom","events":"[[\"page_viewed\",{}]]"});})();</script>
2152<script> 2153 window.ShopifyAnalytics = window.ShopifyAnalytics || {}; 2154 window.ShopifyAnalytics.meta = window.ShopifyAnalytics.meta || {}; 2155 window.ShopifyAnalytics.meta.currency = 'USD'; 2156 var meta = {"page":{"pageType":"cart","requestId":"94dba32d-9b4a-4bee-99f4-0f3e18081143-1791452676"}}; 2157 for (var attr in meta) { 2158 window.ShopifyAnalytics.meta[attr] = meta[attr]; 2159 } 2160</script>
vendor: 1 bytes, line 2160
2160
2161<script class="analytics"> 2162 (function () { 2163 var customDocumentWrite = function(content) { 2164 var jquery = null; 2165 2166 if (window.jQuery) { 2167 jquery = window.jQuery; 2168 } else if (window.Checkout && window.Checkout.$) { 2169 jquery = window.Checkout.$; 2170 } 2171 2172 if (jquery) { 2173 jquery('body').append(content); 2174 } 2175 }; 2176 2177 var hasLoggedConversion = function(token) { 2178 if (token) { 2179 return document.cookie.indexOf('loggedConversion=' + token) !== -1; 2180 } 2181 return false; 2182 } 2183 2184 var setCookieIfConversion = function(token) { 2185 if (token) { 2186 var twoMonthsFromNow = new Date(Date.now()); 2187 twoMonthsFromNow.setMonth(twoMonthsFromNow.getMonth() + 2); 2188 2189 document.cookie = 'loggedConversion=' + token + '; expires=' + twoMonthsFromNow; 2190 } 2191 } 2192 2193 var trekkie = window.ShopifyAnalytics.lib = window.trekkie = window.trekkie || []; 2194 window.ShopifyAnalytics.lib.trekkie = window.trekkie; 2195 if (trekkie.integrations) { 2196 return; 2197 } 2198 trekkie.methods = [ 2199 'identify', 2200 'page', 2201 'ready', 2202 'track', 2203 'trackForm', 2204 'trackLink' 2205 ]; 2206 trekkie.factory = function(method) { 2207 return function() { 2208 var args = Array.prototype.slice.call(arguments); 2209 args.unshift(method); 2210 trekkie.push(args); 2211 if (method == 'track' || method == 'page') { 2212 var pageUrl; 2213 try { 2214 pageUrl = window.location.href; 2215 } catch (e) {} 2216 var pageReferrer; 2217 try { 2218 pageReferrer = document.referrer; 2219 } catch (e) {} 2220 try { 2221 if (window.__TREKKIE_SHIM_QUEUE == null) { 2222 window.__TREKKIE_SHIM_QUEUE = []; 2223 } 2224 window.__TREKKIE_SHIM_QUEUE.push({ 2225 from: 'trekkie-stub', 2226 method: method, 2227 args: args.slice(1), 2228 pageContext: { 2229 url: pageUrl, 2230 referrer: pageReferrer 2231 } 2232 }); 2233 } catch (e) { 2234 // no-op 2235 } 2236 } 2237 return trekkie; 2238 }; 2239 }; 2240 for (var i = 0; i < trekkie.methods.length; i++) { 2241 var key = trekkie.methods[i]; 2242 trekkie[key] = trekkie.factory(key); 2243 } 2244 trekkie.load = function(config) { 2245 trekkie.config = config || {}; 2246 trekkie.config.initialDocumentCookie = document.cookie; 2247 var first = document.getElementsByTagName('script')[0]; 2248var script = document.createElement('script'); 2249script.type = 'text/javascript'; 2250script.onerror = function(e) { 2251 var scriptFallback = document.createElement('script'); 2252 scriptFallback.type = 'text/javascript'; 2253 scriptFallback.onerror = function(error) { 2254 var Monorail = { 2255 produce: function produce(monorailDomain, schemaId, payload) { 2256 var currentMs = new Date().getTime(); 2257 var event = { 2258 schema_id: schemaId, 2259 payload: payload, 2260 metadata: { 2261 event_created_at_ms: currentMs, 2262 event_sent_at_ms: currentMs 2263 } 2264 }; 2265 return Monorail.sendRequest("https://" + monorailDomain + "/v1/produce", JSON.stringify(event)); 2266 }, 2267 sendRequest: function sendRequest(endpointUrl, payload) { 2268 // Try the sendBeacon API 2269 if (window && window.navigator && typeof window.navigator.sendBeacon === 'function' && typeof window.Blob === 'function' && !Monorail.isIos12()) { 2270 var blobData = new window.Blob([payload], { 2271 type: 'text/plain' 2272 }); 2273 2274 if (window.navigator.sendBeacon(endpointUrl, blobData)) { 2275 return true; 2276 } // sendBeacon was not successful 2277 2278 } // XHR beacon 2279 2280 var xhr = new XMLHttpRequest(); 2281 2282 try { 2283 xhr.open('POST', endpointUrl); 2284 xhr.setRequestHeader('Content-Type', 'text/plain'); 2285 xhr.send(payload); 2286 } catch (e) { 2287 console.log(e); 2288 } 2289 2290 return false; 2291 }, 2292 isIos12: function isIos12() { 2293 return window.navigator.userAgent.lastIndexOf('iPhone; CPU iPhone OS 12_') !== -1 || window.navigator.userAgent.lastIndexOf('iPad; CPU OS 12_') !== -1; 2294 } 2295 }; 2296 Monorail.produce('monorail-edge.shopifysvc.com', 2297 'trekkie_storefront_load_errors/1.1', 2298 {shop_id: 75207901427, 2299 theme_id: 188909388019, 2300 app_name: "storefront", 2301 context_url: window.location.href, 2302 source_url: "//iwannasleep.com/cdn/s/trekkie.storefront.51e69540e15035ae012ec8cc42e8f9cd792233a0.min.js"}); 2303 2304 }; 2305 scriptFallback.async = true; 2306 scriptFallback.src = '//iwannasleep.com/cdn/s/trekkie.storefront.51e69540e15035ae012ec8cc42e8f9cd792233a0.min.js'; 2307 first.parentNode.insertBefore(scriptFallback, first); 2308}; 2309script.async = true; 2310script.src = '//iwannasleep.com/cdn/s/trekkie.storefront.51e69540e15035ae012ec8cc42e8f9cd792233a0.min.js'; 2311first.parentNode.insertBefore(script, first); 2312 2313 }; 2314 trekkie.load( 2315 {"Trekkie":{"appName":"storefront","development":false,"defaultAttributes":{"shopId":75207901427,"isMerchantRequest":null,"themeId":188909388019,"themeCityHash":"17698827038337987507","contentLanguage":"en","currency":"USD","eventMetadataId":"46899cc1-aa1e-4576-8cdf-fe7d6f1b8845"},"isServerSideCookieWritingEnabled":true,"monorailRegion":"shop_domain","enabledBetaFlags":["764d78cb","8450a54b","4c64608a"]},"Session Attribution":{},"S2S":{"facebookCapiEnabled":true,"source":"trekkie-storefront-renderer","apiClientId":580111}} 2316 ); 2317 2318 var loaded = false;
2319 trekkie.ready(function() { 2320 if (loaded) return; 2321 loaded = true; 2322 2323 window.ShopifyAnalytics.lib = window.trekkie; 2324 2325 var originalDocumentWrite = document.write; 2326 document.write = customDocumentWrite; 2327 try { window.ShopifyAnalytics.merchantGoogleAnalytics.call(this); } catch(error) {}; 2328 document.write = originalDocumentWrite; 2329 2330 var match = window.location.pathname.match(/checkouts\/(.+)\/(thank_you|post_purchase)/) 2331 var token = match? match[1]: undefined; 2332 if (!hasLoggedConversion(token)) { 2333 setCookieIfConversion(token); 2334 2335 } 2336 }); 2337 2338 window.ShopifyAnalytics.lib.page(null,{"pageType":"cart","requestId":"94dba32d-9b4a-4bee-99f4-0f3e18081143-1791452676","shopifyEmitted":true}); 2339 2340 var eventsListenerScript = document.createElement('script'); 2341 eventsListenerScript.async = true; 2342 eventsListenerScript.src = "//iwannasleep.com/cdn/shopifycloud/storefront/assets/shop_events_listener-4e26a9ce.js"; 2343 document.getElementsByTagName('head')[0].appendChild(eventsListenerScript); 2344})();</script>
vendor: 1 bytes, line 2344
2344
2345<script 2346 defer 2347 src="https://iwannasleep.com/cdn/shopifycloud/perf-kit/shopify-perf-kit-3.10.0.min.js" 2348 data-application="storefront-renderer" 2349 data-shop-id="75207901427" 2350 data-render-region="gcp-us-central1" 2351 data-page-type="cart" 2352 data-theme-instance-id="188909388019" 2353 data-theme-name="Dawn" 2354 data-theme-version="15.3.0" 2355 data-monorail-region="shop_domain" 2356 data-resource-timing-sampling-rate="10" 2357 data-shs="true" 2358 data-shs-beacon="true" 2359 data-shs-export-with-fetch="true" 2360 data-shs-logs-sample-rate="1" 2361 data-shs-beacon-endpoint="https://iwannasleep.com/api/collect" 2362></script>
2362 2363<meta name="shopify-y" content="7d9897a2-c2e2-4063-8cfc-f35b0110d981" data-expiration="1823010276000"><meta name="shopify-s" content="ede0d026-ee1c-419f-9047-e5b9e558820d" data-expiration="1791454476000"><meta name="new-cookie-storage-activated" content="t"> 2364</head> 2365 2366 <body class="gradient"> 2367 <a class="skip-to-content-link button visually-hidden" href="#MainContent"> 2368 Skip to content 2369 </a> 2370 2371<link href="//iwannasleep.com/cdn/shop/t/16/assets/quantity-popover.css?v=160630540099520878331791305585" rel="stylesheet" type="text/css" media="all" /> 2372<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-card.css?v=120341546515895839841791305516" rel="stylesheet" type="text/css" media="all" /> 2373
2374<script src="//iwannasleep.com/cdn/shop/t/16/assets/cart.js?v=25986244538023964561791305514" defer="defer"></script>
vendor: 1 bytes, line 2374
2374
2375<script src="//iwannasleep.com/cdn/shop/t/16/assets/quantity-popover.js?v=987015268078116491791305585" defer="defer"></script>
2375 2376 2377<style> 2378 .drawer { 2379 visibility: hidden; 2380 } 2381</style> 2382 2383<cart-drawer class="drawer is-empty"> 2384 <div id="CartDrawer" class="cart-drawer"> 2385 <div id="CartDrawer-Overlay" class="cart-drawer__overlay"></div> 2386 <div 2387 class="drawer__inner gradient color-scheme-1" 2388 role="dialog" 2389 aria-modal="true" 2390 aria-label="Your cart" 2391 tabindex="-1" 2392 ><div class="drawer__inner-empty"> 2393 <div class="cart-drawer__warnings center"> 2394 <div class="cart-drawer__empty-content"> 2395 <h2 class="cart__empty-text">Your cart is empty</h2> 2396 <button 2397 class="drawer__close" 2398 type="button" 2399 onclick="this.closest('cart-drawer').close()" 2400 aria-label="Close" 2401 > 2402 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 2403</span> 2404 </button> 2405 <a href="/collections/all" class="button"> 2406 Continue shopping 2407 </a><p class="cart__login-title h3">Have an account?</p> 2408 <p class="cart__login-paragraph"> 2409 <a href="https://iwannasleep.com/customer_authentication/redirect?locale=en®ion_country=US" class="link underlined-link">Log in</a> to check out faster. 2410 </p></div> 2411 </div></div><div class="drawer__header"> 2412 <h2 class="drawer__heading">Your cart</h2> 2413 <button 2414 class="drawer__close" 2415 type="button" 2416 onclick="this.closest('cart-drawer').close()" 2417 aria-label="Close" 2418 > 2419 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 2420</span> 2421 </button> 2422 </div> 2423 <cart-drawer-items 2424 2425 class=" is-empty" 2426 2427 > 2428 <form 2429 action="/cart" 2430 id="CartDrawer-Form" 2431 class="cart__contents cart-drawer__form" 2432 method="post" 2433 > 2434 <div id="CartDrawer-CartItems" class="drawer__contents js-contents"><p id="CartDrawer-LiveRegionText" class="visually-hidden" role="status"></p> 2435 <p id="CartDrawer-LineItemStatus" class="visually-hidden" aria-hidden="true" role="status"> 2436 Loading... 2437 </p> 2438 </div> 2439 <div id="CartDrawer-CartErrors" role="alert"></div> 2440 </form> 2441 </cart-drawer-items> 2442 <div class="drawer__footer"><!-- Start blocks --> 2443 <!-- Subtotals --> 2444 2445 <div class="cart-drawer__footer" > 2446 <div></div> 2447 2448 <div class="totals" role="status"> 2449 <h2 class="totals__total">Estimated total</h2> 2450 <p class="totals__total-value">$0.00 USD</p> 2451 </div> 2452 2453 <small class="tax-note caption-large rte">Taxes, discounts and <a href="/policies/shipping-policy">shipping</a> calculated at checkout. 2454</small> 2455 </div> 2456 2457 <!-- CTAs --> 2458 2459 <div class="cart__ctas" > 2460 <button 2461 type="submit" 2462 id="CartDrawer-Checkout" 2463 class="cart__checkout-button button" 2464 name="checkout" 2465 form="CartDrawer-Form" 2466 2467 disabled 2468 2469 > 2470 Check out 2471 </button> 2472 </div> 2473 </div> 2474 </div> 2475 </div> 2476</cart-drawer> 2477<!-- BEGIN sections: header-group --> 2478<section id="shopify-section-sections--27943677886707__banner_responsivo_tJrKdj" class="shopify-section shopify-section-group-header-group desktop-mobile-banner"><style> 2479.banner-container img{ 2480 width: 100%; 2481} 2482.hidden-mobile { 2483 display: none; 2484} 2485.hidden-desktop { 2486 display: block; 2487} 2488@media (min-width: 767px){ 2489 .hidden-mobile { 2490 display: block; 2491 } 2492 .hidden-desktop { 2493 display: none; 2494 } 2495} 2496</style> 2497 2498 2499</section><section id="shopify-section-sections--27943677886707__custom_liquid_giKaNX" class="shopify-section shopify-section-group-header-group section"><style data-shopify>.section-sections--27943677886707__custom_liquid_giKaNX-padding {
2500 padding-top: calc(0px * 0.75); 2501 padding-bottom: calc(0px * 0.75); 2502 } 2503 2504 @media screen and (min-width: 750px) { 2505 .section-sections--27943677886707__custom_liquid_giKaNX-padding { 2506 padding-top: 0px; 2507 padding-bottom: 0px; 2508 } 2509 }</style><div class="color-scheme-1 gradient"> 2510 <div class="section-sections--27943677886707__custom_liquid_giKaNX-padding"> 2511 <style> 2512 @import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&display=swap'); 2513 2514 .iws-announce-bar { 2515 background-color: #580E3F; 2516 width: 100%; 2517 overflow: hidden; 2518 padding: 14px 12px; 2519 } 2520 2521 .iws-announce-bar__track { 2522 position: relative; 2523 max-width: 1200px; 2524 margin: 0 auto; 2525 height: 24px; 2526 display: flex; 2527 align-items: center; 2528 justify-content: center; 2529 text-align: center; 2530 } 2531 2532 .iws-announce-bar__item { 2533 position: absolute; 2534 left: 0; 2535 right: 0; 2536 margin: 0; 2537 display: flex; 2538 align-items: center; 2539 justify-content: center; 2540 gap: 8px; 2541 color: #ffffff; 2542 font-family: 'Lato', sans-serif; 2543 font-weight: 300; 2544 font-size: 16px; 2545 letter-spacing: 0.04em; 2546 line-height: 1.3; 2547 opacity: 0; 2548 transform: translateY(6px); 2549 animation-name: iws-announce-fade; 2550 animation-duration: 8s; 2551 animation-iteration-count: infinite; 2552 animation-timing-function: ease-in-out; 2553 } 2554 2555 .iws-announce-bar__item svg { 2556 width: 19px; 2557 height: 19px; 2558 flex-shrink: 0; 2559 } 2560 2561 .iws-announce-bar__item--0 { 2562 animation-delay: 0s; 2563 } 2564 2565 .iws-announce-bar__item--1 { 2566 animation-delay: 4s; 2567 } 2568 2569 @keyframes iws-announce-fade { 2570 0% { 2571 opacity: 0; 2572 transform: translateY(6px); 2573 } 2574 5% { 2575 opacity: 1; 2576 transform: translateY(0); 2577 } 2578 45% { 2579 opacity: 1; 2580 transform: translateY(0); 2581 } 2582 50% { 2583 opacity: 0; 2584 transform: translateY(-6px); 2585 } 2586 100% { 2587 opacity: 0; 2588 } 2589 } 2590 2591 @media (max-width: 749px) { 2592 .iws-announce-bar { 2593 padding: 11px 10px; 2594 } 2595 .iws-announce-bar__item { 2596 font-size: 13px; 2597 } 2598 .iws-announce-bar__item svg { 2599 width: 16px; 2600 height: 16px; 2601 } 2602 } 2603</style> 2604 2605<div class="iws-announce-bar"> 2606 <div class="iws-announce-bar__track"> 2607 <p class="iws-announce-bar__item iws-announce-bar__item--0"> 2608 <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" fill="currentColor" viewBox="0 0 256 256"> 2609 <path d="M255.42,117l-14-35A15.93,15.93,0,0,0,226.58,72H192V64a8,8,0,0,0-8-8H32A16,16,0,0,0,16,72V184a16,16,0,0,0,16,16H49a32,32,0,0,0,62,0h50a32,32,0,0,0,62,0h17a16,16,0,0,0,16-16V120A7.94,7.94,0,0,0,255.42,117ZM192,88h34.58l9.6,24H192ZM32,72H176v64H32ZM80,208a16,16,0,1,1,16-16A16,16,0,0,1,80,208Zm81-24H111a32,32,0,0,0-62,0H32V152H176v12.31A32.11,32.11,0,0,0,161,184Zm31,24a16,16,0,1,1,16-16A16,16,0,0,1,192,208Zm48-24H223a32.06,32.06,0,0,0-31-24V128h48Z"></path> 2610 </svg> 2611 Free Shipping on all orders 2612 </p> 2613 <p class="iws-announce-bar__item iws-announce-bar__item--1"> 2614 <svg xmlns="http://www.w3.org/2000/svg" width="19" height="19" fill="currentColor" viewBox="0 0 256 256"> 2615 <path d="M240,96a8,8,0,0,1-8,8H216v16a8,8,0,0,1-16,0V104H184a8,8,0,0,1,0-16h16V72a8,8,0,0,1,16,0V88h16A8,8,0,0,1,240,96ZM144,56h8v8a8,8,0,0,0,16,0V56h8a8,8,0,0,0,0-16h-8V32a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16Zm72.77,97a8,8,0,0,1,1.43,8A96,96,0,1,1,95.07,37.8a8,8,0,0,1,10.6,9.06A88.07,88.07,0,0,0,209.14,150.33,8,8,0,0,1,216.77,153Zm-19.39,14.88c-1.79.09-3.59.14-5.38.14A104.11,104.11,0,0,1,88,64c0-1.79,0-3.59.14-5.38A80,80,0,1,0,197.38,167.86Z"></path> 2616 </svg> 2617 100 Nights Sleep Trial 2618 </p> 2619 </div> 2620</div> 2621 </div> 2622</div> 2623 2624 2625</section><div id="shopify-section-sections--27943677886707__header" class="shopify-section shopify-section-group-header-group section-header"><link rel="stylesheet" href="//iwannasleep.com/cdn/shop/t/16/assets/component-list-menu.css?v=151968516119678728991791305521" media="print" onload="this.media='all'"> 2626<link rel="stylesheet" href="//iwannasleep.com/cdn/shop/t/16/assets/component-search.css?v=165164710990765432851791305528" media="print" onload="this.media='all'"> 2627<link rel="stylesheet" href="//iwannasleep.com/cdn/shop/t/16/assets/component-menu-drawer.css?v=147478906057189667651791305523" media="print" onload="this.media='all'"> 2628<link 2629 rel="stylesheet" 2630 href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart-notification.css?v=54116361853792938221791305518" 2631 media="print" 2632 onload="this.media='all'" 2633><link rel="stylesheet" href="//iwannasleep.com/cdn/shop/t/16/assets/component-price.css?v=12840323355286466041791305526" media="print" onload="this.media='all'"><style> 2634 header-drawer { 2635 justify-self: start; 2636 margin-left: -1.2rem; 2637 }@media screen and (min-width: 990px) { 2638 header-drawer { 2639 display: none; 2640 } 2641 }.menu-drawer-container { 2642 display: flex; 2643 } 2644 2645 .list-menu { 2646 list-style: none; 2647 padding: 0; 2648 margin: 0; 2649 } 2650 2651 .list-menu--inline { 2652 display: inline-flex; 2653 flex-wrap: wrap; 2654 } 2655 2656 summary.list-menu__item { 2657 padding-right: 2.7rem; 2658 } 2659 2660 .list-menu__item { 2661 display: flex; 2662 align-items: center; 2663 line-height: calc(1 + 0.3 / var(--font-body-scale)); 2664 } 2665 2666 .list-menu__item--link { 2667 text-decoration: none; 2668 padding-bottom: 1rem; 2669 padding-top: 1rem; 2670 line-height: calc(1 + 0.8 / var(--font-body-scale)); 2671 } 2672 2673 @media screen and (min-width: 750px) { 2674 .list-menu__item--link { 2675 padding-bottom: 0.5rem; 2676 padding-top: 0.5rem; 2677 } 2678 } 2679</style><style data-shopify>.header { 2680 padding: 4px 3rem 4px 3rem; 2681 } 2682 2683 .section-header { 2684 position: sticky; /* This is for fixing a Safari z-index issue. PR #2147 */ 2685 margin-bottom: 0px; 2686 } 2687 2688 @media screen and (min-width: 750px) { 2689 .section-header { 2690 margin-bottom: 0px; 2691 } 2692 } 2693 2694 @media screen and (min-width: 990px) { 2695 .header { 2696 padding-top: 8px; 2697 padding-bottom: 8px; 2698 } 2699 }</style>
2699<script src="//iwannasleep.com/cdn/shop/t/16/assets/cart-notification.js?v=133508293167896966491791305514" defer="defer"></script>
2699 2700 2701<sticky-header 2702 2703 data-sticky-type="on-scroll-up" 2704 2705 class="header-wrapper color-scheme-1 gradient header-wrapper--border-bottom" 2706><header class="header header--middle-left header--mobile-center page-width header--has-menu header--has-social header--has-account"> 2707 2708<header-drawer data-breakpoint="tablet"> 2709 <details id="Details-menu-drawer-container" class="menu-drawer-container"> 2710 <summary 2711 class="header__icon header__icon--menu header__icon--summary link focus-inset" 2712 aria-label="Menu" 2713 > 2714 <span><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-hamburger" viewBox="0 0 18 16"><path fill="currentColor" d="M1 .5a.5.5 0 1 0 0 1h15.71a.5.5 0 0 0 0-1zM.5 8a.5.5 0 0 1 .5-.5h15.71a.5.5 0 0 1 0 1H1A.5.5 0 0 1 .5 8m0 7a.5.5 0 0 1 .5-.5h15.71a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5"/></svg> 2715<svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 2716</span> 2717 </summary> 2718 <div id="menu-drawer" class="gradient menu-drawer motion-reduce color-scheme-1"> 2719 <div class="menu-drawer__inner-container"> 2720 <div class="menu-drawer__navigation-container"> 2721 <nav class="menu-drawer__navigation"> 2722 <ul class="menu-drawer__menu has-submenu list-menu" role="list"><li><details id="Details-menu-drawer-menu-item-1"> 2723 <summary 2724 id="HeaderDrawer-sleep-issues" 2725 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2726 > 2727 Sleep Issues 2728 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-arrow" viewB
2728ox="0 0 14 10"><path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546" clip-rule="evenodd"/></svg> 2729</span> 2730 <span class="svg-wrapper"><svg class="icon icon-caret" viewBox="0 0 10 6"><path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg> 2731</span> 2732 </summary> 2733 <div 2734 id="link-sleep-issues" 2735 class="menu-drawer__submenu has-submenu gradient motion-reduce" 2736 tabindex="-1" 2737 > 2738 <div class="menu-drawer__inner-submenu"> 2739 <button class="menu-drawer__close-button link link--text focus-inset" aria-expanded="true"> 2740 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-arrow" viewB
2740ox="0 0 14 10"><path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546" clip-rule="evenodd"/></svg> 2741</span> 2742 Sleep Issues 2743 </button> 2744 <ul class="menu-drawer__menu list-menu" role="list" tabindex="-1"><li><a 2745 id="HeaderDrawer-sleep-issues-all-sleep-issues" 2746 href="/collections/what-s-affecting-your-sleep" 2747 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2748 2749 > 2750 All Sleep Issues 2751 </a></li><li><a 2752 id="HeaderDrawer-sleep-issues-adjustable-comfort" 2753 href="/pages/adjustable-comfort" 2754 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2755 2756 > 2757 Adjustable Comfort 2758 </a></li><li><a 2759 id="HeaderDrawer-sleep-issues-neck-back-pain" 2760 href="/pages/neck-back" 2761 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2762 2763 > 2764 Neck & Back Pain 2765 </a></li><li><a 2766 id="HeaderDrawer-sleep-issues-hot-cold" 2767 href="/pages/hot-cold" 2768 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2769 2770 > 2771 Hot & Cold 2772 </a></li><li><a 2773 id="HeaderDrawer-sleep-issues-travel" 2774 href="/pages/travel" 2775 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2776 2777 > 2778 Travel 2779 </a></li><li><a 2780 id="HeaderDrawer-sleep-issues-baby-kids" 2781 href="/pages/baby-kids" 2782 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2783 2784 > 2785 Baby & Kids 2786 </a></li><li><a 2787 id="HeaderDrawer-sleep-issues-hotel-comfort" 2788 href="/pages/hotel-comfort" 2789 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2790 2791 > 2792 Hotel Comfort 2793 </a></li><li><a 2794 id="HeaderDrawer-sleep-issues-headaches" 2795 href="/products/aliv%E2%84%A2-head-gel-iws" 2796 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2797 2798 > 2799 Headaches 2800 </a></li><li><a 2801 id="HeaderDrawer-sleep-issues-restless-nights" 2802 href="/products/sleep-strips%E2%84%A2-oral-sleep-supplement" 2803 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2804 2805 > 2806 Restless Nights 2807 </a></li></ul> 2808 </div> 2809 </div> 2810 </details></li><li>
2810<details id="Details-menu-drawer-menu-item-2"> 2811 <summary 2812 id="HeaderDrawer-products" 2813 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2814 > 2815 Products 2816 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-arrow" viewBox="0 0 14 10"><path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546" clip-rule="evenodd"/></svg> 2817</span> 2818 <span class="svg-wrapper"><svg class="icon icon-caret" viewBox="0 0 10 6"><path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg> 2819</span> 2820 </summary> 2821 <div 2822 id="link-products" 2823 class="menu-drawer__submenu has-submenu gradient motion-reduce" 2824 tabindex="-1" 2825 > 2826 <div class="menu-drawer__inner-submenu"> 2827 <button class="menu-drawer__close-button link link--text focus-inset" aria-expanded="true"> 2828 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-arrow" viewB
2828ox="0 0 14 10"><path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546" clip-rule="evenodd"/></svg> 2829</span> 2830 Products 2831 </button> 2832 <ul class="menu-drawer__menu list-menu" role="list" tabindex="-1"><li><a 2833 id="HeaderDrawer-products-all-products" 2834 href="/collections/featured-products" 2835 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2836 2837 > 2838 All products 2839 </a></li><li><a 2840 id="HeaderDrawer-products-pillows" 2841 href="/collections/pillows-1" 2842 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2843 2844 > 2845 Pillows 2846 </a></li><li><a 2847 id="HeaderDrawer-products-body-pillow" 2848 href="/products/snowtouch-adjustable-full-body-pillow" 2849 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2850 2851 > 2852 Body Pillow 2853 </a></li><li><a 2854 id="HeaderDrawer-products-knee-pillow" 2855 href="/collections/knee-pillow" 2856 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2857 2858 > 2859 Knee Pillow 2860 </a></li><li><a 2861 id="HeaderDrawer-products-head-gel" 2862 href="/products/aliv%E2%84%A2-head-gel-iws" 2863 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2864 2865 > 2866 Head Gel 2867 </a></li><li><a 2868 id="HeaderDrawer-products-supplements" 2869 href="/products/sleep-strips%E2%84%A2-oral-sleep-supplement" 2870 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2871 2872 > 2873 Supplements 2874 </a></li><li><a 2875 id="HeaderDrawer-products-blanket" 2876 href="/collections/blanket" 2877 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2878 2879 > 2880 Blanket 2881 </a></li><li><a 2882 id="HeaderDrawer-products-bed-sheet" 2883 href="/collections/bed-sheet" 2884 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2885 2886 > 2887 Bed sheet 2888 </a></li><li><a 2889 id="HeaderDrawer-products-accessories" 2890 href="/products/bedsac%E2%84%A2-bedside-organizer" 2891 class="menu-drawer__menu-item link link--text list-menu__item focus-inset" 2892 2893 > 2894 Accessories 2895 </a></li></ul> 2896 </div> 2897 </div> 2898 </details></li><li><a 2899 id="HeaderDrawer-what-affects-your-sleep" 2900 href="/collections/what-s-affecting-your-sleep" 2901 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2902 2903 > 2904 What affects your sleep? 2905 </a></li><li><a 2906 id="HeaderDrawer-special-bundles" 2907 href="/pages/special-bundles" 2908 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2909 2910 > 2911 Special Bundles 2912 </a></li><li><a 2913 id="HeaderDrawer-reviews" 2914 href="/pages/reviews" 2915 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2916 2917 > 2918 Reviews 2919 </a></li><li><a 2920 id="HeaderDrawer-iws-labs" 2921 href="https://iwannasleep.com/pages/about-us-iws#labs" 2922 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2923 2924 > 2925 IWS Labs 2926 </a></li><li><a 2927 id="HeaderDrawer-about-us" 2928 href="https://iwannasleep.com/pages/about-us-iws" 2929 class="menu-drawer__menu-item list-menu__item link link--text focus-inset" 2930 2931 > 2932 About us 2933 </a></li></ul> 2934 </nav> 2935 <div class="menu-drawer__utility-links"><a 2936 href="https://iwannasleep.com/customer_authentication/redirect?locale=en®ion_country=US" 2937 class="menu-drawer__account link focus-inset h5 medium-hide large-up-hide" 2938 rel="nofollow" 2939 ><account-icon>
2939<span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-account" viewBox="0 0 18 19"><path fill="currentColor" fill-rule="evenodd" d="M6 4.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0m3-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8m5.58 12.15c1.12.82 1.83 2.24 1.91 4.85H1.51c.08-2.6.79-4.03 1.9-4.85C4.66 11.75 6.5 11.5 9 11.5s4.35.26 5.58 1.15M9 10.5c-2.5 0-4.65.24-6.17 1.35C1.27 12.98.5 14.93.5 18v.5h17V18c0-3.07-.77-5.02-2.33-6.15-1.52-1.1-3.67-1.35-6.17-1.35" clip-rule="evenodd"/></svg> 2940</span></account-icon>Log in</a><div class="menu-drawer__localization header-localization"><localization-form><form method="post" action="/localization" id="HeaderCountryMobileForm" accept-charset="UTF-8" class="localization-form" enctype="multipart/form-data"><input type="hidden" name="form_type" value="localization" /><input type="hidden" name="utf8" value="â" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="return_to" value="/cart" /><div> 2941 <h2 class="visually-hidden" id="HeaderCountryMobileLabel"> 2942 Country/region 2943 </h2> 2944 2945<div class="disclosure"> 2946 <button 2947 type="button" 2948 class="disclosure__button localization-form__select localization-selector link link--text caption-large" 2949 aria-expanded="false" 2950 aria-controls="HeaderCountryMobile-country-results" 2951 aria-describedby="HeaderCountryMobileLabel" 2952 > 2953 <span>United States | 2954 USD 2955 $</span> 2956 <svg class="icon icon-caret" viewBox="0 0 10 6"><path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg> 2957 2958 </button> 2959 <div class="disclosure__list-wrapper country-selector" hidden> 2960 <div class="country-filter country-filter--no-padding"> 2961 2962 <button 2963 class="country-selector__close-button button--small link" 2964 type="button" 2965 aria-label="Close" 2966 ><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 2967</button> 2968 </div> 2969 <div id="sr-country-search-results" class="visually-hidden" aria-live="polite"></div> 2970 <div 2971 class="disclosure__list country-selector__list" 2972 id="HeaderCountryMobile-country-results" 2973 > 2974 2975 <ul role="list" class="list-unstyled countries"><li class="disclosure__item" tabindex="-1"> 2976 <a 2977 class="link link--text disclosure__link caption-large focus-inset" 2978 href="#" 2979 2980 data-value="CA" 2981 id="Canada" 2982 > 2983 <span 2984 2985 class="visibility-hidden" 2986 2987 ><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-checkmark" viewBox="0 0 12 9"><path fill="currentColor" fill-rule="evenodd" d="M11.35.643a.5.5 0 0 1 .006.707l-6.77 6.886a.5.5 0 0 1-.719-.006L.638 4.845a.5.5 0 1 1 .724-.69l2.872 3.011 6.41-6.517a.5.5 0 0 1 .707-.006z" clip-rule="evenodd"/></svg> 2988</span> 2989 <span class="country">Canada</span> 2990 <span class="localization-form__currency motion-reduce hidden"> 2991 USD 2992 $</span> 2993 </a> 2994 </li><li class="disclosure__item" tabindex="-1"> 2995 <a 2996 class="link link--text disclosure__link caption-large focus-inset" 2997 href="#" 2998 2999 aria-current="true" 3000 3001 data-value="US" 3002 id="United States" 3003 > 3004 <span 3005 3006 ><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-checkmark" viewBox="0 0 12 9"><path fill="currentColor" fill-rule="evenodd" d="M11.35.643a.5.5 0 0 1 .006.707l-6.77 6.886a.5.5 0 0 1-.719-.006L.638 4.845a.5.5 0 1 1 .724-.69l2.872 3.011 6.41-6.517a.5.5 0 0 1 .707-.006z" clip-rule="evenodd"/></svg> 3007</span>
3008 <span class="country">United States</span> 3009 <span class="localization-form__currency motion-reduce hidden"> 3010 USD 3011 $</span> 3012 </a> 3013 </li></ul> 3014 </div> 3015 </div> 3016 <div class="country-selector__overlay"></div> 3017</div> 3018<input type="hidden" name="country_code" value="US"> 3019</div></form></localization-form> 3020 3021</div><ul class="list list-social list-unstyled" role="list"><li class="list-social__item"> 3022 <a href="https://www.instagram.com/iwannasleep_us/" class="list-social__link link"> 3023 <span class="svg-wrapper"><svg class="icon icon-instagram" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M13.23 3.492c-.84-.037-1.096-.046-3.23-.046-2.144 0-2.39.01-3.238.055-.776.027-1.195.164-1.487.273a2.4 2.4 0 0 0-.912.593 2.5 2.5 0 0 0-.602.922c-.11.282-.238.702-.274 1.486-.046.84-.046 1.095-.046 3.23s.01 2.39.046 3.229c.004.51.097 1.016.274 1.495.145.365.319.639.602.913.282.282.538.456.92.602.474.176.974.268 1.479.273.848.046 1.103.046 3.238.046s2.39-.01 3.23-.046c.784-.036 1.203-.164 1.486-.273.374-.146.648-.329.921-.602.283-.283.447-.548.602-.922.177-.476.27-.979.274-1.486.037-.84.046-1.095.046-3.23s-.01-2.39-.055-3.229c-.027-.784-.164-1.204-.274-1.495a2.4 2.4 0 0 0-.593-.913 2.6 2.6 0 0 0-.92-.602c-.284-.11-.703-.237-1.488-.273ZM6.697 2.05c.857-.036 1.131-.045 3.302-.045a63 63 0 0 1 3.302.045c.664.014 1.321.14 1.943.374a4 4 0 0 1 1.414.922c.41.397.728.88.93 1.414.23.622.354 1.279.365 1.942C18 7.56 18 7.824 18 10.005c0 2.17-.01 2.444-.046 3.292-.036.858-.173 1.442-.374 1.943-.2.53-.474.976-.92 1.423a3.9 3.9 0 0 1-1.415.922c-.51.191-1.095.337-1.943.374-.857.036-1.122.045-3.302.045-2.171 0-2.445-.009-3.302-.055-.849-.027-1.432-.164-1.943-.364a4.15 4.15 0 0 1-1.414-.922 4.1 4.1 0 0 1-.93-1.423c-.183-.51-.329-1.085-.365-1.943C2.009 12.45 2 12.167 2 10.004c0-2.161 0-2.435.055-3.302.027-.848.164-1.432.365-1.942a4.4 4.4 0 0 1 .92-1.414 4.2 4.2 0 0 1 1.415-.93c.51-.183 1.094-.33 1.943-.366Zm.427 4.806a4.105 4.105 0 1 1 5.805 5.805 4.105 4.105 0 0 1-5.805-5.805m1.882 5.371a2.668 2.668 0 1 0 2.042-4.93 2.668 2.668 0 0 0-2.042 4.93m5.922-5.942a.958.958 0 1 1-1.355-1.355.958.958 0 0 1 1.355 1.355" clip-rule="evenodd"/></svg> 3024</span> 3025 <span class="visually-hidden">Instagram</span> 3026 </a> 3027 </li><li class="list-social__item"> 3028 <a href="https://www.tiktok.com/@iwannasleepus" class="list-social__link link"> 3029 <span class="svg-wrapper"><svg class="icon icon-tiktok" viewBox="0 0 20 20"><path fill="currentColor" d="M10.511 1.705h2.74s-.157 3.51 3.795 3.768v2.711s-2.114.129-3.796-1.158l.028 5.606A5.073 5.073 0 1 1 8.213 7.56h.708v2.785a2.298 2.298 0 1 0 1.618 2.205z"/></svg> 3030</span> 3031 <span class="visually-hidden">TikTok</span> 3032 </a> 3033 </li></ul> 3034 </div> 3035 </div> 3036 </div> 3037 </div> 3038 </details> 3039</header-drawer> 3040<a href="/" class="header__heading-link link link--text focus-inset"><div class="header__heading-logo-wrapper"> 3041 3042 <img src="//iwannasleep.com/cdn/shop/files/LOGO_CMYK.png?v=1748018600&width=600" alt="I wanna sleep logo â best pillow for neck pain and better sleep quality" srcset="//iwannasleep.com/cdn/shop/files/LOGO_CMYK.png?v=1748018600&width=100 100w, //iwannasleep.com/cdn/shop/files/LOGO_CMYK.png?v=1748018600&width=150 150w, //iwannasleep.com/cdn/shop/files/LOGO_CMYK.png?v=1748018600&width=200 200w" width="100" height="42.86265432098765" loading="eager" class="header__heading-logo motion-reduce" sizes="(max-width: 200px) 50vw, 100px"> 3043 </div></a> 3044 3045<nav class="header__inline-menu"> 3046 <ul class="list-menu list-menu--inline" role="list"><li><header-menu> 3047 <details id="Details-HeaderMenu-1"> 3048 <summary 3049 id="HeaderMenu-sleep-issues" 3050 class="header__menu-item list-menu__item link focus-inset" 3051 > 3052 <span 3053 >Sleep Issues</span><svg class="icon icon-caret" viewBox="0 0 10 6">
3053<path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg> 3054</summary> 3055 <ul 3056 id="HeaderMenu-MenuList-1" 3057 class="header__submenu list-menu list-menu--disclosure color-scheme-1 gradient caption-large motion-reduce global-settings-popup" 3058 role="list" 3059 tabindex="-1" 3060 ><li><a 3061 id="HeaderMenu-sleep-issues-all-sleep-issues" 3062 href="/collections/what-s-affecting-your-sleep" 3063 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3064 3065 > 3066 All Sleep Issues 3067 </a></li><li><a 3068 id="HeaderMenu-sleep-issues-adjustable-comfort" 3069 href="/pages/adjustable-comfort" 3070 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3071 3072 > 3073 Adjustable Comfort 3074 </a></li><li><a 3075 id="HeaderMenu-sleep-issues-neck-back-pain" 3076 href="/pages/neck-back" 3077 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3078 3079 > 3080 Neck & Back Pain 3081 </a></li><li><a 3082 id="HeaderMenu-sleep-issues-hot-cold" 3083 href="/pages/hot-cold" 3084 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3085 3086 > 3087 Hot & Cold 3088 </a></li><li><a 3089 id="HeaderMenu-sleep-issues-travel" 3090 href="/pages/travel" 3091 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3092 3093 > 3094 Travel 3095 </a></li><li><a 3096 id="HeaderMenu-sleep-issues-baby-kids" 3097 href="/pages/baby-kids" 3098 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3099 3100 > 3101 Baby & Kids 3102 </a></li><li><a 3103 id="HeaderMenu-sleep-issues-hotel-comfort" 3104 href="/pages/hotel-comfort" 3105 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3106 3107 > 3108 Hotel Comfort 3109 </a></li><li><a 3110 id="HeaderMenu-sleep-issues-headaches" 3111 href="/products/aliv%E2%84%A2-head-gel-iws" 3112 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3113 3114 > 3115 Headaches 3116 </a></li><li><a 3117 id="HeaderMenu-sleep-issues-restless-nights" 3118 href="/products/sleep-strips%E2%84%A2-oral-sleep-supplement" 3119 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3120 3121 > 3122 Restless Nights 3123 </a></li></ul> 3124 </details> 3125 </header-menu></li><li><header-menu> 3126 <details id="Details-HeaderMenu-2"> 3127 <summary 3128 id="HeaderMenu-products" 3129 class="header__menu-item list-menu__item link focus-inset" 3130 > 3131 <span 3132 >Products</span><svg class="icon icon-caret" viewBox="0 0 10 6">
3132<path fill="currentColor" fill-rule="evenodd" d="M9.354.646a.5.5 0 0 0-.708 0L5 4.293 1.354.646a.5.5 0 0 0-.708.708l4 4a.5.5 0 0 0 .708 0l4-4a.5.5 0 0 0 0-.708" clip-rule="evenodd"/></svg> 3133</summary> 3134 <ul 3135 id="HeaderMenu-MenuList-2" 3136 class="header__submenu list-menu list-menu--disclosure color-scheme-1 gradient caption-large motion-reduce global-settings-popup" 3137 role="list" 3138 tabindex="-1" 3139 ><li><a 3140 id="HeaderMenu-products-all-products" 3141 href="/collections/featured-products" 3142 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3143 3144 > 3145 All products 3146 </a></li><li><a 3147 id="HeaderMenu-products-pillows" 3148 href="/collections/pillows-1" 3149 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3150 3151 > 3152 Pillows 3153 </a></li><li><a 3154 id="HeaderMenu-products-body-pillow" 3155 href="/products/snowtouch-adjustable-full-body-pillow" 3156 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3157 3158 > 3159 Body Pillow 3160 </a></li><li><a 3161 id="HeaderMenu-products-knee-pillow" 3162 href="/collections/knee-pillow" 3163 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3164 3165 > 3166 Knee Pillow 3167 </a></li><li><a 3168 id="HeaderMenu-products-head-gel" 3169 href="/products/aliv%E2%84%A2-head-gel-iws" 3170 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3171 3172 > 3173 Head Gel 3174 </a></li><li><a 3175 id="HeaderMenu-products-supplements" 3176 href="/products/sleep-strips%E2%84%A2-oral-sleep-supplement" 3177 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3178 3179 > 3180 Supplements 3181 </a></li><li><a 3182 id="HeaderMenu-products-blanket" 3183 href="/collections/blanket" 3184 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3185 3186 > 3187 Blanket 3188 </a></li><li><a 3189 id="HeaderMenu-products-bed-sheet" 3190 href="/collections/bed-sheet" 3191 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3192 3193 > 3194 Bed sheet 3195 </a></li><li><a 3196 id="HeaderMenu-products-accessories" 3197 href="/products/bedsac%E2%84%A2-bedside-organizer" 3198 class="header__menu-item list-menu__item link link--text focus-inset caption-large" 3199 3200 > 3201 Accessories 3202 </a></li></ul> 3203 </details> 3204 </header-menu></li><li><a 3205 id="HeaderMenu-what-affects-your-sleep" 3206 href="/collections/what-s-affecting-your-sleep" 3207 class="header__menu-item list-menu__item link link--text focus-inset" 3208 3209 > 3210 <span 3211 >What affects your sleep?</span> 3212 </a></li><li><a 3213 id="HeaderMenu-special-bundles" 3214 href="/pages/special-bundles" 3215 class="header__menu-item list-menu__item link link--text focus-inset" 3216 3217 >
3218 <span 3219 >Special Bundles</span> 3220 </a></li><li><a 3221 id="HeaderMenu-reviews" 3222 href="/pages/reviews" 3223 class="header__menu-item list-menu__item link link--text focus-inset" 3224 3225 > 3226 <span 3227 >Reviews</span> 3228 </a></li><li><a 3229 id="HeaderMenu-iws-labs" 3230 href="https://iwannasleep.com/pages/about-us-iws#labs" 3231 class="header__menu-item list-menu__item link link--text focus-inset" 3232 3233 > 3234 <span 3235 >IWS Labs</span> 3236 </a></li><li><a 3237 id="HeaderMenu-about-us" 3238 href="https://iwannasleep.com/pages/about-us-iws" 3239 class="header__menu-item list-menu__item link link--text focus-inset" 3240 3241 > 3242 <span 3243 >About us</span> 3244 </a></li></ul> 3245</nav> 3246 3247<div class="header__icons"> 3248 <div class="desktop-localization-wrapper"> 3249</div> 3250 3251 3252<details-modal class="header__search"> 3253 <details> 3254 <summary 3255 class="header__icon header__icon--search header__icon--summary link focus-inset modal__toggle" 3256 aria-haspopup="dialog" 3257 aria-label="Search" 3258 > 3259 <span> 3260 <span class="svg-wrapper"><svg fill="none" class="icon icon-search" viewBox="0 0 18 19"><path fill="currentColor" fill-rule="evenodd" d="M11.03 11.68A5.784 5.784 0 1 1 2.85 3.5a5.784 5.784 0 0 1 8.18 8.18m.26 1.12a6.78 6.78 0 1 1 .72-.7l5.4 5.4a.5.5 0 1 1-.71.7z" clip-rule="evenodd"/></svg> 3261</span> 3262 <span class="svg-wrapper header__icon-close"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 3263</span> 3264 </span> 3265 </summary> 3266 <div 3267 class="search-modal modal__content gradient" 3268 role="dialog" 3269 aria-modal="true" 3270 aria-label="Search" 3271 > 3272 <div class="modal-overlay"></div> 3273 <div 3274 class="search-modal__content search-modal__content-bottom" 3275 tabindex="-1" 3276 ><predictive-search class="search-modal__form" data-loading-text="Loading..."><form action="/search" method="get" role="search" class="search search-modal__form"> 3277 <div class="field"> 3278 <input 3279 class="search__input field__input" 3280 id="Search-In-Modal" 3281 type="search" 3282 name="q" 3283 value="" 3284 placeholder="Search"role="combobox" 3285 aria-expanded="false" 3286 aria-owns="predictive-search-results" 3287 aria-controls="predictive-search-results" 3288 aria-haspopup="listbox" 3289 aria-autocomplete="list" 3290 autocorrect="off" 3291 autocomplete="off" 3292 autocapitalize="off" 3293 spellcheck="false"> 3294 <label class="field__label" for="Search-In-Modal">Search</label> 3295 <input type="hidden" name="options[prefix]" value="last"> 3296 <button 3297 type="reset" 3298 class="reset__button field__button hidden" 3299 aria-label="Clear search term" 3300 > 3301 <span class="svg-wrapper"><svg fill="none" stroke="currentColor" class="icon icon-close" viewBox="0 0 18 18"><circle cx="9" cy="9" r="8.5" stroke-opacity=".2"/><path stroke-linecap="round" stroke-linejoin="round" d="M11.83 11.83 6.172 6.17M6.229 11.885l5.544-5.77"/></svg> 3302</span> 3303 </button> 3304 <button class="search__button field__button" aria-label="Search"> 3305 <span class="svg-wrapper"><svg fill="none" class="icon icon-search" viewBox="0 0 18 19"><path fill="currentColor" fill-rule="evenodd" d="M11.03 11.68A5.784 5.784 0 1 1 2.85 3.5a5.784 5.784 0 0 1 8.18 8.18m.26 1.12a6.78 6.78 0 1 1 .72-.7l5.4 5.4a.5.5 0 1 1-.71.7z" clip-rule="evenodd"/></svg> 3306</span> 3307 </button> 3308 </div><div class="predictive-search predictive-search--header" tabindex="-1" data-predictive-search> 3309 3310<div class="predictive-search__loading-state"> 3311 <svg xmlns="http://www.w3.org/2000/svg" class="spinner" viewBox="0 0 66 66"><circle stroke-width="6" cx="33" cy="33" r="30" fill="none" class="path"/></svg> 3312 3313</div> 3314</div> 3315
3316 <span class="predictive-search-status visually-hidden" role="status" aria-hidden="true"></span></form></predictive-search><button 3317 type="button" 3318 class="search-modal__close-button modal__close-button link link--text focus-inset" 3319 aria-label="Close" 3320 > 3321 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-close" viewBox="0 0 18 17"><path fill="currentColor" d="M.865 15.978a.5.5 0 0 0 .707.707l7.433-7.431 7.579 7.282a.501.501 0 0 0 .846-.37.5.5 0 0 0-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 1 0-.707-.708L8.991 7.853 1.413.573a.5.5 0 1 0-.693.72l7.563 7.268z"/></svg> 3322</span> 3323 </button> 3324 </div> 3325 </div> 3326 </details> 3327</details-modal> 3328 3329<a 3330 href="https://iwannasleep.com/customer_authentication/redirect?locale=en®ion_country=US" 3331 class="header__icon header__icon--account link focus-inset small-hide" 3332 rel="nofollow" 3333 ><account-icon><span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-account" viewBox="0 0 18 19"><path fill="currentColor" fill-rule="evenodd" d="M6 4.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0m3-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8m5.58 12.15c1.12.82 1.83 2.24 1.91 4.85H1.51c.08-2.6.79-4.03 1.9-4.85C4.66 11.75 6.5 11.5 9 11.5s4.35.26 5.58 1.15M9 10.5c-2.5 0-4.65.24-6.17 1.35C1.27 12.98.5 14.93.5 18v.5h17V18c0-3.07-.77-5.02-2.33-6.15-1.52-1.1-3.67-1.35-6.17-1.35" clip-rule="evenodd"/></svg> 3334</span></account-icon><span class="visually-hidden">Log in</span> 3335 </a><a href="/cart" class="header__icon header__icon--cart link focus-inset" id="cart-icon-bubble"> 3336 3337 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-cart-empty" viewBox="0 0 40 40"><path fill="currentColor" fill-rule="evenodd" d="M15.75 11.8h-3.16l-.77 11.6a5 5 0 0 0 4.99 5.34h7.38a5 5 0 0 0 4.99-5.33L28.4 11.8zm0 1h-2.22l-.71 10.67a4 4 0 0 0 3.99 4.27h7.38a4 4 0 0 0 4-4.27l-.72-10.67h-2.22v.63a4.75 4.75 0 1 1-9.5 0zm8.5 0h-7.5v.63a3.75 3.75 0 1 0 7.5 0z"/></svg> 3338</span> 3339 3340 <span class="visually-hidden">Cart</span></a> 3341 </div> 3342 </header> 3343</sticky-header> 3344
3345<script type="application/ld+json"> 3346 { 3347 "@context": "http://schema.org", 3348 "@type": "Organization", 3349 "name": "I wanna sleep", 3350 3351 "logo": "https:\/\/iwannasleep.com\/cdn\/shop\/files\/LOGO_CMYK.png?v=1748018600\u0026width=500", 3352 3353 "sameAs": [ 3354 "", 3355 "", 3356 "", 3357 "https:\/\/www.instagram.com\/iwannasleep_us\/", 3358 "https:\/\/www.tiktok.com\/@iwannasleepus", 3359 "", 3360 "", 3361 "", 3362 "" 3363 ], 3364 "url": "https:\/\/iwannasleep.com" 3365 } 3366</script>
3366 3367</div> 3368<!-- END sections: header-group --> 3369 3370 <main id="MainContent" class="content-for-layout focus-none" role="main" tabindex="-1"> 3371 <section id="shopify-section-template--27943663173875__17812231387ad2226b" class="shopify-section section"><div class="page-width scroll-trigger animate--slide-in"><div id="shopify-block-ATG5tKy9NRzZLc1IzU__dr_free_gift_gift_progress_bar_jin8pD" class="shopify-block shopify-app-block"><div class="docapp-app-block page-width"> 3372 <div 3373 class="docapp-free-gift-progress docapp-widget" 3374 data-theme-app-extension-gift-progress 3375 data-primary-bar-color="#741254" 3376 data-secondary-bar-color="#f4f4f4" 3377 data-text-color="#741254" 3378 data-text-size="13" 3379 data-progress-bar-height="16" 3380 style="max-width: 650px !important;" 3381 ></div> 3382</div> 3383 3384 3385</div> 3386</div> 3387 3388 3389</section><div id="shopify-section-template--27943663173875__cart-items" class="shopify-section"><link href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart.css?v=164708765130180853531791305518" rel="stylesheet" type="text/css" media="all" /> 3390<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart-items.css?v=123238115697927560811791305517" rel="stylesheet" type="text/css" media="all" /> 3391<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-totals.css?v=15906652033866631521791305530" rel="stylesheet" type="text/css" media="all" /> 3392<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-price.css?v=12840323355286466041791305526" rel="stylesheet" type="text/css" media="all" /> 3393<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-discounts.css?v=152760482443307489271791305520" rel="stylesheet" type="text/css" media="all" /> 3394<link href="//iwannasleep.com/cdn/shop/t/16/assets/quantity-popover.css?v=160630540099520878331791305585" rel="stylesheet" type="text/css" media="all" /> 3395<style data-shopify>.section-template--27943663173875__cart-items-padding { 3396 padding-top: 27px; 3397 padding-bottom: 27px; 3398 } 3399 3400 @media screen and (min-width: 750px) { 3401 .section-template--27943663173875__cart-items-padding { 3402 padding-top: 36px; 3403 padding-bottom: 36px; 3404 } 3405 }</style>
3405<script src="//iwannasleep.com/cdn/shop/t/16/assets/quantity-popover.js?v=987015268078116491791305585" defer="defer"></script>
3405 3406 3407<cart-items class="gradient color-scheme-1 isolate is-empty"> 3408 <div class="page-width"> 3409 <div class="title-wrapper-with-link"> 3410 <h1 class="title title--primary">Your cart</h1> 3411 <a href="/collections/all" class="underlined-link">Continue shopping</a> 3412 </div> 3413 3414 <div class="cart__warnings"> 3415 <h1 class="cart__empty-text">Your cart is empty</h1> 3416 <a href="/collections/all" class="button"> 3417 Continue shopping 3418 </a><h2 class="cart__login-title">Have an account?</h2> 3419 <p class="cart__login-paragraph"> 3420 <a href="https://iwannasleep.com/customer_authentication/redirect?locale=en®ion_country=US" class="link underlined-link">Log in</a> to check out faster. 3421 </p></div> 3422 3423 <form action="/cart" class="cart__contents critical-hidden" method="post" id="cart"> 3424 <div class="cart__items" id="main-cart-items" data-id="template--27943663173875__cart-items"> 3425 <div class="js-contents"></div> 3426 </div> 3427 3428 <p class="visually-hidden" id="cart-live-region-text" aria-live="polite" role="status"></p> 3429 <p 3430 class="visually-hidden" 3431 id="shopping-cart-line-item-status" 3432 aria-live="polite" 3433 aria-hidden="true" 3434 role="status" 3435 > 3436 Loading... 3437 </p> 3438 </form> 3439 </div> 3440</cart-items> 3441 3442 3443</div><div id="shopify-section-template--27943663173875__cart-footer" class="shopify-section cart__footer-wrapper"><link href="//iwannasleep.com/cdn/shop/t/16/assets/component-cart.css?v=164708765130180853531791305518" rel="stylesheet" type="text/css" media="all" /> 3444<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-totals.css?v=15906652033866631521791305530" rel="stylesheet" type="text/css" media="all" /> 3445<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-price.css?v=12840323355286466041791305526" rel="stylesheet" type="text/css" media="all" /> 3446<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-discounts.css?v=152760482443307489271791305520" rel="stylesheet" type="text/css" media="all" /> 3447<style data-shopify>.section-template--27943663173875__cart-footer-padding { 3448 padding-top: 15px; 3449 padding-bottom: 30px; 3450 } 3451 3452 @media screen and (min-width: 750px) { 3453 .section-template--27943663173875__cart-footer-padding { 3454 padding-top: 20px; 3455 padding-bottom: 40px; 3456 } 3457 }</style><div 3458 class="gradient color-scheme-1 is-empty" 3459 id="main-cart-footer" 3460 data-id="template--27943663173875__cart-footer" 3461> 3462 <div class="page-width"> 3463 <div class="cart__footer isolate section-template--27943663173875__cart-footer-padding"><div class="cart__blocks"> 3464 3465<div class="js-contents" > 3466 <div></div> 3467 3468 <div class="totals"> 3469 <h2 class="totals__total">Estimated total</h2> 3470 <p class="totals__total-value">$0.00 USD</p> 3471 </div> 3472 3473 <small class="tax-note caption-large rte">Taxes, discounts and <a href="/policies/shipping-policy">shipping</a> calculated at checkout. 3474</small> 3475 </div> 3476<div class="cart__ctas" > 3477 <button 3478 type="submit" 3479 id="checkout" 3480 class="cart__checkout-button button" 3481 name="checkout" 3482 3483 disabled 3484 3485 form="cart" 3486 > 3487 Check out 3488 </button> 3489 </div><div class="cart__dynamic-checkout-buttons additional-checkout-buttons"> 3490 <div class="dynamic-checkout__content" id="dynamic-checkout-cart" data-shopify="dynamic-checkout-cart"> <shopify-accelerated-checkout-cart wallet-configs="[{"supports_subs":true,"supports_def_opts":false,"name":"shop_pay","wallet_params":{"shopId":75207901427,"merchantName":"I wanna sleep","personalized":true}}]" access-token="70ce71d9a954eb05ae8c69e544027b65" buyer-country="US" buyer-locale="en" buyer-currency="USD" shop-id="75207901427" cart-id="e0a758f7b9b64cd1113fcab9af1e6f74" enabled-flags="["1172c16a","a1d1f9a1","f5afabb3","370070f3"]" > <div class="wallet-button-wrapper"> <ul class='wallet-cart-grid wallet-cart-grid--skeleton' role="list" data-shopify-buttoncontainer="true"> <li data-testid='grid-cell' class='wallet-cart-button-container'><div class='wallet-cart-button wallet-cart-button__skeleton' role='button' disabled aria-hidden='true'> </div></li> </ul> </div> </shopify-accelerated-checkout-cart> </div> 3491 </div> 3492 3493 <div id="cart-errors"></div> 3494 </div> 3495 </div> 3496 </div> 3497</div> 3498 3499 3500</div> 3501 </main> 3502 3503 <!-- BEGIN sections: footer-group --> 3504<div id="shopify-section-sections--27943677853939__footer" class="shopify-section shopify-section-group-footer-group"> 3505<link href="//iwannasleep.com/cdn/shop/t/16/assets/section-footer.css?v=60318643098753476351791305591" rel="stylesheet" type="text/css" media="all" /> 3506<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-newsletter.css?v=4727253280200485261791305524" rel="stylesheet" type="text/css" media="all" /> 3507<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-list-menu.css?v=151968516119678728991791305521" rel="stylesheet" type="text/css" media="all" /> 3508<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-list-payment.css?v=69253961410771838501791305522" rel="stylesheet" type="text/css" media="all" /> 3509<link href="//iwannasleep.com/cdn/shop/t/16/assets/component-list-social.css?v=35792976012981934991791305522" rel="stylesheet" type="text/css" media="all" /> 3510<style data-shopify>.footer { 3511 margin-top: 0px; 3512 } 3513 3514 .section-sections--27943677853939__footer-padding { 3515 padding-top: 42px; 3516 padding-bottom: 24px; 3517 } 3518 3519 @media screen and (min-width: 750px) { 3520 .footer { 3521 margin-top: 0px; 3522 } 3523 3524 .section-sections--27943677853939__footer-padding { 3525 padding-top: 56px; 3526 padding-bottom: 32px; 3527 } 3528 } 3529 3530 /* IWS Amazon circular button (added) */ 3531 .iws-amazon-circle { 3532 width: 52px; 3533 height: 52px; 3534 border-radius: 999px; 3535 background: #e6007a; 3536 display: inline-flex; 3537 align-items: center; 3538 justify-content: center; 3539 text-decoration: none; 3540 transition: transform 0.2s ease, opacity 0.2s ease; 3541 } 3542 3543 .iws-amazon-circle:hover { 3544 transform: translateY(-2px); 3545 opacity: 0.9; 3546 } 3547 3548 .iws-amazon-circle img { 3549 display: block; 3550 width: 22px; 3551 height: 22px; 3552 /* turns a dark logo into white */ 3553 filter: brightness(0) invert(1); 3554 }</style><footer class="footer color-scheme-1 gradient section-sections--27943677853939__footer-padding">
3554<div class="footer__content-top page-width"><div 3555 class="footer__blocks-wrapper grid grid--1-col grid--2-col grid--4-col-tablet scroll-trigger animate--slide-in" 3556 3557 data-cascade 3558 3559 ><div 3560 class="footer-block grid__item footer-block--menu scroll-trigger animate--slide-in" 3561 3562 3563 data-cascade 3564 style="--animation-order: 1;" 3565 3566 ><h2 class="footer-block__heading inline-richtext"><strong>I wanna sleep</strong></h2><ul class="footer-block__details-content list-unstyled"><li> 3567 <a 3568 href="https://account.iwannasleep.com/profile?locale=en®ion_country=US&buyer_flags=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJpLXdhbm5hLXNsZWVwLXVzYS5teXNob3BpZnkuY29tIiwiZmxhZ3MiOltdLCJleHAiOjE3OTIwNTc0NzYsIm5iZiI6MTc5MTQ1MjY3Nn0.cZteudqogjpNf8coxK5xUkdpohdOFpAcZPejLfmvFX0" 3569 class="link link--text list-menu__item list-menu__item--link" 3570 > 3571 Log in / Register 3572 </a> 3573 </li><li> 3574 <a 3575 href="https://iwannasleep.com/cart" 3576 class="link link--text list-menu__item list-menu__item--link" 3577 > 3578 My Cart 3579 </a> 3580 </li><li> 3581 <a 3582 href="/pages/about-us-iws" 3583 class="link link--text list-menu__item list-menu__item--link" 3584 > 3585 About Us 3586 </a> 3587 </li><li> 3588 <a 3589 href="/pages/join-iws-creators" 3590 class="link link--text list-menu__item list-menu__item--link" 3591 > 3592 Join IWS Creators 3593 </a> 3594 </li><li> 3595 <a 3596 href="/pages/terms-of-service-privacy-policy" 3597 class="link link--text list-menu__item list-menu__item--link" 3598 > 3599 Terms of Service/Privacy Policy 3600 </a> 3601 </li><li> 3602 <a 3603 href="/pages/wholesale-program" 3604 class="link link--text list-menu__item list-menu__item--link" 3605 > 3606 Wholesale 3607 </a> 3608 </li><li> 3609 <a 3610 href="https://careers.iwannasleep.com/careers" 3611 class="link link--text list-menu__item list-menu__item--link" 3612 > 3613 IWS Careers 3614 </a> 3615 </li></ul></div><div 3616 class="footer-block grid__item footer-block--menu scroll-trigger animate--slide-in" 3617 3618 3619 data-cascade 3620 style="--animation-order: 2;" 3621 3622 ><h2 class="footer-block__heading inline-richtext"><strong>Need help?</strong></h2><ul class="footer-block__details-content list-unstyled"><li> 3623 <a 3624 href="mailto:[email protected]" 3625 class="link link--text list-menu__item list-menu__item--link" 3626 > 3627 Contact Support 3628 </a> 3629 </li><li> 3630 <a 3631 href="/pages/faq" 3632 class="link link--text list-menu__item list-menu__item--link" 3633 > 3634 Help Center 3635 </a> 3636 </li><li> 3637 <a 3638 href="/pages/reviews" 3639 class="link link--text list-menu__item list-menu__item--link" 3640 > 3641 Reviews 3642 </a> 3643 </li><li> 3644 <a 3645 href="/pages/returns-exchanges" 3646 class="link link--text list-menu__item list-menu__item--link" 3647 > 3648 Returns & Exchanges 3649 </a> 3650 </li></ul></div><div
3651 class="footer-block grid__item scroll-trigger animate--slide-in" 3652 3653 3654 data-cascade 3655 style="--animation-order: 3;" 3656 3657 ><div class="footer-block__details-content rte"> 3658 <h3>We're a global sleep lifestyle brand. From allergies to insomnia, we create science-backed solutions for every sleep need.</h3><h2><strong>Our mission: Help you sleep better!</strong></h2> 3659 </div></div></div><div 3660 class="footer-block--newsletter scroll-trigger animate--slide-in" 3661 3662 data-cascade 3663 3664 ><div class="footer-block__newsletter"><h2 class="footer-block__heading inline-richtext"><strong>Join our sleep community. </strong>Exclusive offers, early access, and sleep insights.</h2><form method="post" action="/contact#ContactFooter" id="ContactFooter" accept-charset="UTF-8" class="footer__newsletter newsletter-form"><input type="hidden" name="form_type" value="customer" /><input type="hidden" name="utf8" value="â" /><input type="hidden" name="contact[tags]" value="newsletter"> 3665 <div class="newsletter-form__field-wrapper"> 3666 <div class="field"> 3667 <input 3668 id="NewsletterForm--sections--27943677853939__footer" 3669 type="email" 3670 name="contact[email]" 3671 class="field__input" 3672 value="" 3673 aria-required="true" 3674 autocorrect="off" 3675 autocapitalize="off" 3676 autocomplete="email" 3677 3678 placeholder="Email" 3679 required 3680 > 3681 <label class="field__label" for="NewsletterForm--sections--27943677853939__footer"> 3682 Email 3683 </label> 3684 <button 3685 type="submit" 3686 class="newsletter-form__button field__button" 3687 name="commit" 3688 id="Subscribe" 3689 aria-label="Subscribe" 3690 > 3691 <span class="svg-wrapper"><svg xmlns="http://www.w3.org/2000/svg" fill="none" class="icon icon-arrow" viewB
3691ox="0 0 14 10"><path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546" clip-rule="evenodd"/></svg> 3692</span> 3693 </button> 3694 </div></div></form></div> 3695 3696<ul class="list-unstyled list-social footer__list-social" role="list"><li class="list-social__item"> 3697 <a href="https://www.instagram.com/iwannasleep_us/" class="link list-social__link"> 3698 <span class="svg-wrapper"><svg class="icon icon-instagram" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M13.23 3.492c-.84-.037-1.096-.046-3.23-.046-2.144 0-2.39.01-3.238.055-.776.027-1.195.164-1.487.273a2.4 2.4 0 0 0-.912.593 2.5 2.5 0 0 0-.602.922c-.11.282-.238.702-.274 1.486-.046.84-.046 1.095-.046 3.23s.01 2.39.046 3.229c.004.51.097 1.016.274 1.495.145.365.319.639.602.913.282.282.538.456.92.602.474.176.974.268 1.479.273.848.046 1.103.046 3.238.046s2.39-.01 3.23-.046c.784-.036 1.203-.164 1.486-.273.374-.146.648-.329.921-.602.283-.283.447-.548.602-.922.177-.476.27-.979.274-1.486.037-.84.046-1.095.046-3.23s-.01-2.39-.055-3.229c-.027-.784-.164-1.204-.274-1.495a2.4 2.4 0 0 0-.593-.913 2.6 2.6 0 0 0-.92-.602c-.284-.11-.703-.237-1.488-.273ZM6.697 2.05c.857-.036 1.131-.045 3.302-.045a63 63 0 0 1 3.302.045c.664.014 1.321.14 1.943.374a4 4 0 0 1 1.414.922c.41.397.728.88.93 1.414.23.622.354 1.279.365 1.942C18 7.56 18 7.824 18 10.005c0 2.17-.01 2.444-.046 3.292-.036.858-.173 1.442-.374 1.943-.2.53-.474.976-.92 1.423a3.9 3.9 0 0 1-1.415.922c-.51.191-1.095.337-1.943.374-.857.036-1.122.045-3.302.045-2.171 0-2.445-.009-3.302-.055-.849-.027-1.432-.164-1.943-.364a4.15 4.15 0 0 1-1.414-.922 4.1 4.1 0 0 1-.93-1.423c-.183-.51-.329-1.085-.365-1.943C2.009 12.45 2 12.167 2 10.004c0-2.161 0-2.435.055-3.302.027-.848.164-1.432.365-1.942a4.4 4.4 0 0 1 .92-1.414 4.2 4.2 0 0 1 1.415-.93c.51-.183 1.094-.33 1.943-.366Zm.427 4.806a4.105 4.105 0 1 1 5.805 5.805 4.105 4.105 0 0 1-5.805-5.805m1.882 5.371a2.668 2.668 0 1 0 2.042-4.93 2.668 2.668 0 0 0-2.042 4.93m5.922-5.942a.958.958 0 1 1-1.355-1.355.958.958 0 0 1 1.355 1.355" clip-rule="evenodd"/></svg> 3699</span> 3700 <span class="visually-hidden">Instagram</span> 3701 </a> 3702 </li><li class="list-social__item"> 3703 <a href="https://www.tiktok.com/@iwannasleepus" class="link list-social__link"> 3704 <span class="svg-wrapper"><svg class="icon icon-tiktok" viewBox="0 0 20 20"><path fill="currentColor" d="M10.511 1.705h2.74s-.157 3.51 3.795 3.768v2.711s-2.114.129-3.796-1.158l.028 5.606A5.073 5.073 0 1 1 8.213 7.56h.708v2.785a2.298 2.298 0 1 0 1.618 2.205z"/></svg> 3705</span> 3706 <span class="visually-hidden">TikTok</span> 3707 </a> 3708 </li></ul> 3709</div> 3710 </div><div 3711 class="footer__content-bottom scroll-trigger animate--slide-in" 3712 3713 data-cascade 3714 3715 > 3716 <div class="footer__content-bottom-wrapper page-width"> 3717 <div class="footer__column footer__localization isolate"></div> 3718 <div class="footer__column footer__column--info"></div> 3719 </div> 3720 <div class="footer__content-bottom-wrapper page-width footer__content-bottom-wrapper--center"> 3721 <div class="footer__copyright caption"> 3722 <small class="copyright__content" 3723 >© 2026, <a href="/" title="">I wanna sleep</a></small> 3724 <small class="copyright__content"><a target="_blank" rel="nofollow" href="https://www.shopify.com?utm_campaign=poweredby&utm_medium=shopify&utm_source=onlinestore">Powered by Shopify</a></small></div> 3725 </div> 3726 </div> 3727</footer> 3728 3729 3730</div><section id="shopify-section-sections--27943677853939__custom_liquid_VN6j7R" class="shopify-section shopify-section-group-footer-group section"><style data-shopify>.section-sections--27943677853939__custom_liquid_VN6j7R-padding { 3731 padding-top: calc(0px * 0.75); 3732 padding-bottom: calc(52px * 0.75); 3733 } 3734 3735 @media screen and (min-width: 750px) { 3736 .section-sections--27943677853939__custom_liquid_VN6j7R-padding { 3737 padding-top: 0px; 3738 padding-bottom: 52px; 3739 } 3740 }</style><div class="color-scheme-1 gradient"> 3741 <div class="section-sections--27943677853939__custom_liquid_VN6j7R-padding"> 3742 <div class="elfsight-sapp-2f14aed5-1996-4ef7-bdac-7fcd8f587033"></div> 3743 </div> 3744</div> 3745 3746 3747<style> #shopify-section-sections--27943677853939__custom_liquid_VN6j7R /* ===== DESKTOP ===== */.eapps-instagram-feed, #
3747shopify-section-sections--27943677853939__custom_liquid_VN6j7R .eapps-widget, #shopify-section-sections--27943677853939__custom_liquid_VN6j7R .elfsight-app {max-width: 1200px !important; width: 100% !important; margin-left: auto !important; margin-right: auto !important;} #shopify-section-sections--27943677853939__custom_liquid_VN6j7R /* Centralização interna */.eapps-instagram-feed-container {display: flex !important; justify-content: center !important;} </style></section> 3748<!-- END sections: footer-group --> 3749 3750 <ul hidden> 3751 <li id="a11y-refresh-page-message">Choosing a selection results in a full page refresh.</li> 3752 <li id="a11y-new-window-message">Opens in a new window.</li> 3753 </ul> 3754 3755
3755<script> 3756 window.shopUrl = 'https://iwannasleep.com'; 3757 window.routes = { 3758 cart_add_url: '/cart/add', 3759 cart_change_url: '/cart/change', 3760 cart_update_url: '/cart/update', 3761 cart_url: '/cart', 3762 predictive_search_url: '/search/suggest', 3763 }; 3764 3765 window.cartStrings = { 3766 error: `There was an error while updating your cart. Please try again.`, 3767 quantityError: `You can only add [quantity] of this item to your cart.`, 3768 }; 3769 3770 window.variantStrings = { 3771 addToCart: `Add to cart`, 3772 soldOut: `Sold out`, 3773 unavailable: `Unavailable`, 3774 unavailable_with_option: `[value] - Unavailable`, 3775 }; 3776 3777 window.quickOrderListStrings = { 3778 itemsAdded: `[quantity] items added`, 3779 itemAdded: `[quantity] item added`, 3780 itemsRemoved: `[quantity] items removed`, 3781 itemRemoved: `[quantity] item removed`, 3782 viewCart: `View cart`, 3783 each: `[money]/ea`, 3784 min_error: `This item has a minimum of [min]`, 3785 max_error: `This item has a maximum of [max]`, 3786 step_error: `You can only add this item in increments of [step]`, 3787 }; 3788 3789 window.accessibilityStrings = { 3790 imageAvailable: `Image [index] is now available in gallery view`, 3791 shareSuccess: `Link copied to clipboard`, 3792 pauseSlideshow: `Pause slideshow`, 3793 playSlideshow: `Play slideshow`, 3794 recipientFormExpanded: `Gift card recipient form expanded`, 3795 recipientFormCollapsed: `Gift card recipient form collapsed`, 3796 countrySelectorSearchCount: `[count] countries/regions found`, 3797 }; 3798 </script>
3798<script src="//iwannasleep.com/cdn/shop/t/16/assets/predictive-search.js?v=57209189334897115771791305582" defer="defer"></script>
3798<script src="//iwannasleep.com/cdn/shop/t/16/assets/cart-drawer.js?v=169981311261118214701791305513" defer="defer"></script>
3798<style> /* Esconde o contêiner de badge quando estiver vazio, evitando a barra branca */.product-card-wrapper .card__badge:empty {display: none;} /* Caso existam espaços/linhas dentro do contêiner, usa fallback moderno */.product-card-wrapper .card__badge:not(:has(.badge)) {display: none !important;} </style> 3799<div id="shopify-block-AakNoTzR0N0NkN3Z2W__11532412952436166569" class="shopify-block shopify-app-block">
3799<script async src="https://loox.io/widget/Dlpmlw5MP1/loox.1760038072883.js?shop=i-wanna-sleep-usa.myshopify.com"></script>
3799 3800 3801 3802 <!-- __LXV: 1791428140325;__LXR: https://loox.io;__LXC: Dlpmlw5MP1; -->
3802<script>var loox_global_hash = '1791428140325'; 3803var loox_bundle_reviews_enabled = false;</script>
3803<style>.loox-reviews-default { max-width: 1200px; margin: 0 auto; }.loox-rating .loox-icon { color:#D8A200; } 3804:root { --lxs-rating-icon-color: #D8A200; }</style> 3805 3806 3807 3808 3809 3810 3811 3812</div><div id="shopify-block-AS0l5NUlVM2tMU2Jna__5858961087409699889" class="shopify-block shopify-app-block"> 3813 3814<style data-shopify> 3815 .md-footer-selector__container { 3816 background-color: #fff; 3817 } 3818 3819 .md-footer-selector__container .md-form__select:hover { 3820 background-color: #741254 !important; 3821 } 3822 3823 .md-footer-selector__container { 3824 justify-content: center; 3825 } 3826 3827 .md-modal__content.md-modal__dialog--sizeLargeXL { 3828 background-image: unset !important; 3829 } 3830 3831 3832 3833 .md-footer-selector__content .md-modal__formContent { 3834 padding: .75em 0 .75em; 3835 } 3836 3837 .md-footer-selector__content .md-modal__formContent__select { 3838 position: relative; 3839 } 3840 .md-footer-selector__content .md-form__select__country__list { 3841 min-width: 100%; 3842 width: -webkit-fit-content; 3843 width: -moz-fit-content; 3844 width: fit-content; 3845 } 3846 .md-footer-selector__content .md-form__select__language__list { 3847 min-width: 175px; 3848 width: -webkit-fit-content; 3849 width: -moz-fit-content; 3850 width: fit-content; 3851 } 3852 .md-modal__body-market-selector .md-footer-selector__content .md-form__select__language__list { 3853 min-width: 100%; 3854 } 3855 3856 .md-modal__body-market-selector .md-footer-selector__content .md-form__select__language__list, #md-app-embed__footer-popup .md-modal__content, .md-footer-selector__container .md-form__select, .md-form__select__search__input, .md-footer-selector__content .md-form__select__country__list, .md-footer-selector__content .md-form__select__language__list { 3857 background-color: #741254 !important; 3858 color: #ffffff !important; 3859 } 3860 3861 .md-modal__mk-footerPoweredOrbe .md-modal__footerPoweredLink, .md-modal__footer-selector-modal__region-btn, .md-modal__mk-footerPoweredOrbe .md-modal__footerPoweredOrbe, .md-modal__mk-helper-text, #md-app-embed__footer-popup .md-modal__header__title span, #md-app-embed__footer-popup .md-modal__header__title h2, .md-modal__bodyContent__tabs ul > li, .md-modal__bodyContent__tabs ul > li > a, .md-form__select__search__input, .md-footer-selector__selector, .md-footer-selector__selector a, .md-footer-selector__content .md-form__select__country__list-link, .md-footer-selector__content .md-form__select__language__list-link, .md-footer-selector__content .md-form__select__country__list-link-wrapper span, .md-footer-selector__content .md-form__select__language__list-link-wrapper span { 3862 color: #ffffff !important; 3863 } 3864 3865 .md-modal__footer-selector-modal__region-btn { 3866 justify-content: flex-start; 3867 } 3868 3869 .md-footer-selector__selector a { 3870 text-decoration: none; 3871 } 3872 3873 .md-form__select__search__input::placeholder, .md-modal__footer-selector-modal__region-iso {color: rgba(255, 255, 255, 0.6) !important; 3874 } 3875 3876 .md-footer-selector__content .md-form__select__country__list-link:hover, .md-footer-selector__content .md-form__select__language__list-link:hover, .md-modal__footer-selector-modal__region-btn:hover {background: rgba(116, 18, 84, 0.1) !important; 3877 } 3878 3879 .md-footer-selector__content .orbe-highlight-country__divider { 3880 border-bottom: 1px solid #741254 !important; 3881 }.md-footer-selector__content .md-form__select { 3882 border: unset !important; 3883 } 3884 .md-footer-selector__content .md-form__select__country__list, .md-footer-selector__content .md-form__select__language__list { 3885 border: 1px solid #741254 !important; 3886 } 3887 .md-footer-selector__content .md-form__select { 3888 background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="%23ffffff" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 14.0002C9.74401 14.0002 9.48801 13.9023 9.29301 13.7073L4.29301 8.70725C3.90201 8.31625 3.90201 7.68425 4.29301 7.29325C4.68401 6.90225 5.31601 6.90225 5.70701 7.29325L10 11.5862L14.293 7.29325C14.684 6.90225 15.316 6.90225 15.707 7.29325C16.098 7.68425 16.098 8.31625 15.707 8.70725L10.707 13.7073C10.512 13.9023 10.256 14.0002 10 14.0002Z" fill="%23ffffff"/></svg>') !important; 3889 } 3890 .md-footer-selector__content .md-form__select[aria-expanded="true"] { 3891 background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="%23ffffff" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 13.0002C14.744 13.0002 14.488 12.9023 14.293 12.7073L10 8.41425L5.70701 12.7073C5.31601 13.0982 4.68401 13.0982 4.29301 12.7073C3.90201 12.3163 3.90201 11.6842 4.29301 11.2933L9.29301 6.29325C9.68401 5.90225 10.316 5.90225 10.707 6.29325L15.707 11.2933C16.098 11.6842 16.098 12.3163 15.707 12.7073C15.512 12.9023 15.256 13.0002 15 13.0002Z" fill="%23ffffff"/></svg>') !important; 3892 } 3893 3894 3895 .md-footer-selector__content .md-form__select[aria-expanded="true"] .md-form__select__country__list__flag-wrapper { 3896 display: none; 3897 } 3898 .md-footer-selector__content .md-form__select[aria-expanded="true"] .md-form__select__country__list-link-wrapper .md-form__select__span { 3899 display: none; 3900 } 3901 .md-footer-selector__content .md-form__select[aria-expanded="true"] .md-form__select__search__input { 3902 display: block; 3903 font-family: inherit; 3904 line-height: inherit; 3905 border: none; 3906 } 3907 3908 3909 .md-footer-modal-closeButton { 3910 position: absolute; 3911 right: 0; 3912 top: 0; 3913 margin: 0 !important; 3914 padding-top: 1.5em; 3915 } 3916 3917 .md-footer-modal-closeButton.md-modal-closeButton .md-icon__Svg { 3918 fill: #741254 !important; 3919 } 3920 3921 .md-modal__footer-selector-modal__region-list-divider span { 3922 border-bottom: 1px solid rgba(116, 18, 84,0.20) !important; 3923 } 3924 3925 @media (max-width: 560px) { 3926 md-footer-selector-popup__form .md-modal__mk-footerPoweredOrbe { 3927 border-top: 1px solid rgba(116, 18, 84,0.20) !important; 3928 } 3929 }.md-footer-selector__content .md-form__select__country__list-link__flag, .md-footer-selector__content .md-fix-flag-white { 3930 width: 1.25em; 3931 height: 1.25em; 3932 border-radius: 35px; 3933 } 3934 3935 3936 @media (max-width: 48.0525em) { 3937 orbe-country-selector { 3938 width: 100%; 3939 } 3940 orbe-country-selector .md-form__select__country__list-link-wrapper span { 3941 text-overflow: ellipsis; 3942 white-space: nowrap; 3943 overflow: hidden; 3944 } 3945 } 3946 3947.md-modal__footer { 3948 padding: 0.75em 1.5em 1.5em; 3949 }#md-app-embed__footer-popup .md-modal__content { 3950 font-size: 16px !important 3951 } 3952 3953 3954 3955 .md-footer-modal-closeButton { 3956 position: absolute; 3957 right: 0; 3958 top: 0; 3959 margin: 0 !important; 3960 padding-top: 1.5em; 3961 padding-right: 1.5em; 3962 } 3963 3964 3965 3966 3967 3968 3969.md-footer-selector__content { 3970 max-width: 15em; 3971 } 3972 @media (max-width: 560px) { 3973 .md-footer-selector__content .md-modal__formContent__select:last-child { 3974 margin-top: 0px; 3975 } 3976 }</style> 3977<!-- BEGIN app snippet: load-css-flags --> 3978<style data-orbe-flags="43">.orbe-flags-xx, .orbe-flags__before-xx:before {background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/xx.svg') !important;}.orbe-flags-us, .orbe-flags__before-us:before {background-image: url('https://cdn.shopify.com/static/images/flags/us.svg') !important;}.orbe-flags-ca, .orbe-flags__before-ca:before {background-image: url('https://cdn.shopify.com/static/images/flags/ca.svg') !important;}.orbe-flags-br, .orbe-flags__before-br:before {background-image: url('https://cdn.shopify.com/static/images/flags/br.svg') !important;}</style><style data-orbe-flags="circle">.orbe-flags-circle-xx, .orbe-flags-circle__before-xx:before { 3979 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/xx-1x1.svg') !important; 3980 }.orbe-flags-circle-us, .orbe-flags-circle__before-us:before { 3981 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/us-1x1.svg') !important; 3982 }.orbe-flags-circle-ca, .orbe-flags-circle__before-ca:before { 3983 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/ca-1x1.svg') !important; 3984 }.orbe-flags-circle-br, .orbe-flags-circle__before-br:before { 3985 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/br-1x1.svg') !important; 3986 }</style>
3986<script type="application/json" id="orbe-flag-css-meta">{"codes":",xx,us,ca,br","asset43":"https:\/\/cdn.shopify.com\/extensions\/01a10b24-e7f5-74bb-826a-087e105f5da6\/orbe-geolocation-504\/assets\/xx.svg","assetCircle":"https:\/\/cdn.shopify.com\/extensions\/01a10b24-e7f5-74bb-826a-087e105f5da6\/orbe-geolocation-504\/assets\/xx-1x1.svg","local43":"xx,xk,ac,af,arab,asean,cefta,cp,dg,ea,eac,es-ct,es-ga,es-pv,ic,pc,sh-ac,sh-hl,sh-ta,ta,un,gb-eng,gb-nir,gb-sct,gb-wls"}</script>
3986<!-- END app snippet --> 3987<div id="md-footer-selector-block"> 3988 <div class="md-footer-selector__container"> 3989 <div class="md-footer-selector__content"> 3990 <md-footer-selector__form data-wg-notranslate data-ly-locked="true" class="notranslate"> 3991 3992 <form method="post" action="/localization" id="md-footer-selector__form__id" accept-charset="UTF-8" class="md-modal__formContent" enctype="multipart/form-data"><input type="hidden" name="form_type" value="localization" /><input type="hidden" name="utf8" value="â" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="return_to" value="/cart" /> 3993 <!-- BEGIN app snippet: country-selector --><div class="md-modal__formContent__select"> 3994 <input name="country_code" type="hidden" id="orbe-country-selector-footer-id"> 3995 <button type="button" name="md-form__select__country__button" id="md-form__select__country--footer" role="combobox" 3996 aria-haspopup="listbox" aria-label="United States" class="md-form__select" 3997 aria-expanded="false" aria-controls="orbeFooterCountryList" data-value="US"> 3998 <div class="md-form__select__country__list-link-wrapper"> 3999 <div class="md-form__select__country__list__flag-wrapper"> 4000 <div class="md-form__select__country__list-link__flag"><div class="orbe-flags-circle-us md-form__select__img " data-circle="true"></div> 4001 </div> 4002 </div><span class="md-form__select__span">United States</span><input onkeyup="orbeMKFactory.getInstance('original-mk-selector-AS0l5NUlVM2tMU2Jna__5858961087409699889').searchCountryInput()"placeholder="Country"type="text" 4003 class="md-form__select__search__input " spellcheck="false" data-ms-editor="true" aria-label="Search and Enter" aria-description="Search and Enter" 4004 role="combobox" 4005 aria-autocomplete="list" 4006 aria-controls="orbeFooterCountryList" 4007 aria-expanded="false" 4008 aria-haspopup="listbox" 4009 aria-activedescendant="" 4010 ></div> 4011 </button> 4012 <ul id="orbeFooterCountryList" role="listbox" 4013 class="md-form__select__country__list md-form__select__country__list-top" hidden> 4014 <li id="orbe-country-CA" 4015 tabindex="-1" role="option" 4016 data-name="Canada" data-country="CA" style="display: list-item;"> 4017 <span class="md-form__select__country__list-link" data-countryname="Canada" data-primarymarket="false" data-currency="USD" data-symbol="$" data-primary="enabled" data-defaultlocale="en" data-subfoldersuffix="" data-domainurl="i-wanna-sleep-usa.myshopify.com" data-host="iwannasleep.com" data-country="CA" data-value="CA" 4018 data-locales="en" data-namelocales="English"data-shipping-threshold="" 4019 data-delivery-time="" 4020 data-return-time="" 4021 data-payment="" 4022 data-taxes-included="false" 4023 data-duties-included="false"> 4024 <div class="md-form__select__country__list-link-wrapper"> 4025 <div class="md-form__select__country__list__flag-wrapper"> 4026 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-ca md-form__select__img " data-circle="true"></div> 4027 </div> 4028 </div> 4029 <span class="md-form__select__span">Canada</span> 4030 </div> 4031 </span> 4032 </li> 4033 <li id="orbe-country-US" 4034 tabindex="-1" role="option" 4035 data-name="United States" data-country="US" style="display: list-item;"> 4036 <span class="md-form__select__country__list-link" aria-current="true" data-countryname="United States" data-primarymarket="true" data-currency="USD" data-symbol
4036="$" data-primary="enabled" data-defaultlocale="en" data-subfoldersuffix="" data-domainurl="iwannasleep.com" data-host="iwannasleep.com" data-country="US" data-value="US" 4037 data-locales="en" data-namelocales="English"data-shipping-threshold="" 4038 data-delivery-time="" 4039 data-return-time="" 4040 data-payment="" 4041 data-taxes-included="false" 4042 data-duties-included="false"> 4043 <div class="md-form__select__country__list-link-wrapper"> 4044 <div class="md-form__select__country__list__flag-wrapper"> 4045 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-us md-form__select__img " data-circle="true"></div> 4046 </div> 4047 </div> 4048 <span class="md-form__select__span">United States</span> 4049 </div> 4050 </span> 4051 </li> 4052 <li id="orbe-country-BR" 4053 tabindex="-1" role="option" 4054 data-name="Brasil" data-country="BR" style="display: list-item;"> 4055 <span class="md-form__select__country__list-link" data-countryname="Brasil" data-primarymarket="true" data-currency="BRL" data-symbol="R$" data-primary="undefined" data-defaultlocale="pt-BR" data-subfoldersuffix="" data-domainurl="www.iwannasleep.com.br" data-host="www.iwannasleep.com.br" data-country="BR" data-value="BR" 4056 data-locales="pt-BR" data-namelocales="português (Brasil)"data-shipping-threshold="" 4057 data-delivery-time="" 4058 data-return-time="" 4059 data-payment="" 4060 data-taxes-included="false" 4061 data-duties-included="false"> 4062 <div class="md-form__select__country__list-link-wrapper"> 4063 <div class="md-form__select__country__list__flag-wrapper"> 4064 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-br md-form__select__img " data-circle="true"></div> 4065 </div> 4066 </div> 4067 <span class="md-form__select__span">Brasil</span> 4068 </div> 4069 </span> 4070 </li></ul> 4071</div> 4072<!-- END app snippet --> 4073</form> 4074 4075 </md-footer-selector__form> 4076 </div> 4077 </div> 4078</div> 4079 4080
4081<script> 4082 if (typeof mdApp_showClassicFlagSelectorIcon == 'undefined') {var mdApp_showClassicFlagSelectorIcon = true;var mdApp_showClassicFlagSelectorIconCircle = true;} 4083 4084 if (typeof mdApp_searchCountry == 'undefined') {var mdApp_searchCountry = true;} 4085 4086 if (typeof mdApp_showModalFlagSelectorIcon == 'undefined') {var mdApp_showModalFlagSelectorIcon = true;var mdApp_showModalFlagSelectorIconCircle = false;} 4087 4088 if (typeof mdApp_showClassicCurrencyCodeEnabled === 'undefined') {var mdApp_showClassicCurrencyCodeEnabled = false;} 4089 4090 if (typeof mdApp_showModalCurrencyCodeEnabled === 'undefined') {var mdApp_showModalCurrencyCodeEnabled = 'iso';} 4091 4092 if (typeof mdApp_backgroundMKSelector == 'undefined') { 4093 var mdApp_backgroundMKSelector = '#741254'; 4094 } 4095 4096 <!-- BEGIN app snippet: js-variables --> 4097 4098 4099if (typeof mdApp_redirectMode == 'undefined') { 4100 var mdApp_redirectMode = false; 4101} 4102if (typeof mdApp_redirectRegionMode == 'undefined') { 4103 var mdApp_redirectRegionMode = false; 4104} 4105if (typeof mdApp_redirectRegionCode === 'undefined') { 4106 var mdApp_redirectRegionCode = ''; 4107} 4108if (typeof mdApp_redirectCountryCode === 'undefined') { 4109 var mdApp_redirectCountryCode = ''; 4110} 4111if (typeof mdApp_redirectCountryName === 'undefined') { 4112 var mdApp_redirectCountryName = ''; 4113} 4114if (typeof mdApp_redirectCountryCurrencyCode === 'undefined') { 4115 var mdApp_redirectCountryCurrencyCode = ''; 4116} 4117if (typeof mdApp_redirectCountryCurrencySymbol === 'undefined') { 4118 var mdApp_redirectCountryCurrencySymbol = ''; 4119} 4120if (typeof mdApp_redirectLocale === 'undefined') { 4121 var mdApp_redirectLocale = ''; 4122} 4123if (typeof mdApp_redirectEndonymName === 'undefined') { 4124 var mdApp_redirectEndonymName = ''; 4125} 4126if (typeof mdApp_redirectUrl === 'undefined') { 4127 var mdApp_redirectUrl = ''; 4128} 4129if (typeof mdApp_forceHideOrbe == 'undefined') { 4130 var mdApp_forceHideOrbe = false; 4131} 4132if (typeof mdApp_currentPlan == 'undefined') { 4133var mdApp_currentPlan = 'plus'; 4134} 4135if (typeof mdApp_forceExternalStoreRedirectMode == 'undefined') { 4136var mdApp_forceExternalStoreRedirectMode = false; 4137} 4138if (typeof mdApp_forceExternalStoreRedirectList == 'undefined') { 4139var mdApp_forceExternalStoreRedirectList = []; 4140} 4141if (typeof mdApp_deferUntilScroll == 'undefined') { 4142var mdApp_deferUntilScroll = false; 4143} 4144 4145if (typeof mdApp_skipRequestAPI == 'undefined') {var mdApp_skipRequestAPI = 'fal
4145se';} 4146 4147if (typeof mdApp_merchantKey === 'undefined') {var mdApp_merchantKey = 'md_key_40042i87359866';} 4148 4149if (typeof mdApp_MAIN_URL === 'undefined') { 4150 4151 var mdApp_MAIN_URL = 'https://iwannasleep.com'; 4152 4153} 4154 4155if (typeof mdApp_currentCountryCode === 'undefined') { 4156 4157 4158 var mdApp_currentCountryCode = 'US'; 4159 4160} 4161 4162if (typeof mdApp_currentCountryCodeName === 'undefined') { 4163 var mdApp_currentCountryCodeName = 'United States'; 4164} 4165 4166if (typeof mdApp_blockDomain === 'undefined') {var mdApp_blockDomain = '';} 4167 4168if (typeof mdApp_currentPageRelativeUrl === 'undefined') {var mdApp_currentPageRelativeUrl = "\/cart"; 4169} 4170 4171if (typeof mdApp_translateTextJSON === 'undefined') {var mdApp_translateTextJSON = {"pt-BR":{"title":"Você está na loja correta?","helperText":"","text":"Selecione abaixo o paÃs onde você deseja receber seu produto:","ctaText":"Acessar a loja","countryLabel":"PaÃs","languageLabel":"","fallbackText":"Nós não enviamos para {country}","fallbackHelperText":"","fallbackBodyText":"Selecione abaixo o paÃs onde você deseja receber seu produto:","fallbackCtaText":"Acessar a loja"},"BR-country":{"pt-BR":{"title":"Está no lugar certo?","helperText":"\u003cp\u003eCompre do pa\u0026iacute;s da sua escolha. Lembre-se de que s\u0026oacute; podemos enviar o seu pedido para endere\u0026ccedil;os localizados no pa\u0026iacute;s escolhido.\u003c\/p\u003e","text":"Por favor, selecione o seu paÃs de envio.","ctaText":"Comprar agora","countryLabel":"PaÃs","languageLabel":"Idioma","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}},"CA-country":{"en":{"title":"Are you in the right place?","helperText":"\u003cp\u003eBuy from the country of your choice. Remember that we can only ship your order to addresses located in the chosen country.\u003c\/p\u003e","text":"Please select your shipping country.","ctaText":"Shop now","countryLabel":"Country","languageLabel":"Language","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}},"US-country":{"en":{"title":"Are you in the right place?","helperText":"\u003cp\u003eBuy from the country of your choice. Remember that we can only ship your order to addresses located in the chosen country.\u003c\/p\u003e","text":"Please select your shipping country.","ctaText":"Shop now","countryLabel":"Country","languageLabel":"Language","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}}};} 4172 4173if (typeof mdApp_translateTextPreviewJSON === 'undefined') {var mdApp_translateTextPreviewJSON = '';} 4174 4175if (typeof mdApp_klaviyoConnect == 'undefined') {var mdApp_klaviyoConnect = false;} 4176 4177if (typeof mdApp_connectifConnect == 'undefined') {var mdApp_connectifConnect = false;} 4178 4179if (typeof mdApp_discountSupport == 'undefined') {var mdApp_discountSupport = true;} 4180 4181if (typeof mdApp_advancedLanguage == 'undefined') {var mdApp_advancedLanguage = { 4182 "option_language_force_default": false, 4183 "option_language_force_showRecommendation": false, 4184 4185 "option_language_force_langRedirect": false 4186 4187 };} 4188 4189if (typeof mdApp_firstVisitSettings == 'undefined') {var mdApp_firstVisitSettings = { 4190 "option_force_showModal_behaviour": false, 4191 4192 "popup_display_order": 1, 4193 4194 "other_popup_classes": null, 4195 "exclude_ip": null 4196 };} 4197 4198if (typeof mdApp_secondVisitSettings == 'undefined') {var mdApp_secondVisitSettings = { 4199 "option_force_redirect_behaviour": false 4200 };} 4201 4202if (typeof mdApp_syncstoresData == 'undefined') { 4203 4204 var mdApp_syncstoresData = { 4205 "exclude_paths": "/pages*", 4206 "exclude_paths_splited": "/pages*", 4207 "redirect_fullpath": false 4208 }; 4209 4210} 4211 4212if (typeof mdApp_orbeCustomer === 'undefined') { 4213 4214 var mdApp_orbeCustomer = ''; 4215 4216} 4217 4218if (typeof mdApp_orbeCustomerB2B === 'undefined') { 4219 4220 4221 var mdApp_orbeCustomerB2B = false; 4222 4223} 4224 4225if (typeof mdApp_skipTruncate === 'undefined') { 4226 var mdApp_skipTruncate = false; 4227} 4228 4229if (typeof mdApp_skipReturnToDomainCheck === 'undefined') { 4230 var mdApp_skipReturnToDomainCheck = false; 4231} 4232 4233if (typeof mdApp_cookiesSettings == 'undefined') {var mdApp_cookiesSettings = { 4234 "modal_close_time": 7, 4235 4236 "session_only": false, 4237 4238 "modal_reappear": 60 4239 };} 4240 4241if (typeof mdApp_countryRules == 'undefined') {var mdApp_countryRules = { 4242 "fallbackCountry": "" 4243 };} 4244<!-- END app snippet --> 4245 4246 let mdFooterSelectorBlock = document.getElementById('md-footer-selector-block'); 4247 if (mdFooterSelectorBlock != null) { 4248 let customMDFooterSelectorBlock = document.getElementById('custom__md-footer-selector-block'); 4249 if (customMDFooterSelectorBlock != null) { 4250 customMDFooterSelectorBlock.appendChild(mdFooterSelectorBlock); 4251 } else if (document.getElementById('shopify-section-footer') != null) { 4252 document.getElementById('shopify-section-footer').appendChild(mdFooterSelectorBlock); 4253 } else if (document.querySelector('footer') != null) { 4254 document.querySelector('footer').appendChild(mdFooterSelectorBlock); 4255 } else if (document.querySelector('.footer') != null) { 4256 document.querySelector('.footer').appendChild(mdFooterSelectorBlock); 4257 } 4258 } 4259 4260 4261 4262 4263</script>
vendor: 1 bytes, line 4263
4263
4264<script> 4265 var orbitoMK; 4266 function initializeCountrySelector_AS0l5NUlVM2tMU2Jna__5858961087409699889() { 4267 if (typeof orbeMKFactory !== 'undefined') { 4268 const originalMKSelector = orbeMKFactory.createInstance('original-mk-selector-AS0l5NUlVM2tMU2Jna__5858961087409699889', { 4269 settings: { 4270 classicSelector: false 4271 } 4272 }); 4273 4274 } else { 4275 setTimeout(initializeCountrySelector_AS0l5NUlVM2tMU2Jna__5858961087409699889, 100); 4276 } 4277 } 4278 4279 initializeCountrySelector_AS0l5NUlVM2tMU2Jna__5858961087409699889(); 4280</script>
4280 4281 4282 4283 4284</div><div id="shopify-block-AYlZha3Y3M1ZCdHA1e__15912215999290715800" class="shopify-block shopify-app-block"> 4285 4286<style data-shopify> 4287 .md-modal__content, .md-btn, .md-modal__formContent__select select, .md-form__select, .md-form__select__country__list-link, .md-form__select__language__list-link, .md-form__select__country__list-link-wrapper span, .md-form__select__language__list-link-wrapper span, .md-modal__bodyContent__text p { 4288 font-size: 14px !important; 4289 } 4290 4291 .md-modal__header__title span, .md-modal__header__title h2 { 4292 font-size: 20px; 4293 } 4294 4295 #md-app-embed__modal .md-modal__header__title span, #md-app-embed__modal .md-modal__header__title h2 { 4296 color: #741254 !important; 4297 line-height: 1.75em; 4298 } 4299 4300 #md-app-embed__modal .md-form__select__search__input, #md-app-embed__modal .md-form__select, #md-app-embed__modal .md-form__select__country__list-link, #md-app-embed__modal .md-form__select__language__list-link, #md-app-embed__modal .md-form__select__country__list-link-wrapper span, #md-app-embed__modal .md-form__select__language__list-link-wrapper span { 4301 color: #741254 !important; 4302 } 4303 4304 4305 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__country__list__flag-wrapper { 4306 display: none; 4307 } 4308 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__country__list-link-wrapper .md-form__select__span { 4309 display: none; 4310 } 4311 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__search__input { 4312 display: block; 4313 font-family: inherit; 4314 line-height: inherit; 4315 border: none; 4316 font-size: 14px !important; 4317 } 4318 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__search__input::placeholder { 4319 font-size: 14px !important; 4320 } 4321 @media screen and (-webkit-min-device-pixel-ratio: 2) { 4322 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__search__input { 4323 font-size: max(16px, 14px) !important; 4324 } 4325 4326 #md-app-embed__modal .md-form__select[aria-expanded="true"] .md-form__select__search__input::placeholder { 4327 font-size: max(16px, 14px) !important; 4328 } 4329 } 4330 #md-app-embed__modal .md-form__select__country__list-link:hover, #md-app-embed__modal .md-form__select__language__list-link:hover { 4331 background: rgba(116, 18, 84, 0.1) !important; 4332 } 4333 4334 #md-app-embed__modal .md-form__select__search__input::placeholder { 4335 color: rgba(116, 18, 84, 0.5) !important; 4336 } 4337 4338 .md-btn__primary { 4339 background: #741254 !important; 4340 color: #ffffff !important; 4341 } 4342 4343 4344 .md-btn__primary:hover { 4345 background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) !important; 4346 } 4347 4348 .md-btn__primary:active { 4349 background-image: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) !important; 4350 } 4351 4352 #md-app-embed__modal .md-form__select__search__input, #md-app-embed__modal .md-modal__content, #md-app-embed__modal .md-form__select__country__list, #md-app-embed__modal .md-form__select__language__list { 4353 background-color: #ffffff !important; 4354 color: #741254 !important; 4355 } 4356 4357 #md-app-embed__modal .md-modal__bodyContent p { 4358 color: #741254 !important; 4359 } 4360 4361 #md-app-embed__modal .md-modal__footerPoweredLink { 4362 color: #741254 !important; 4363 } 4364 .md-modal__footerContent { 4365 text-align: right; 4366 } 4367 #md-app-embed__modal .md-modal-closeButton .md-icon__Svg { 4368 fill: #741254 !important; 4369 } 4370 4371 #md-app-embed__modal .orbe-highlight-country__divider { 4372 border-bottom: 1px solid #741254 !important; 4373 } 4374 #md-app-embed__modal .md-form__select { 4375 border: unset !important; 4376 } 4377 #md-app-embed__modal .md-form__select__country__list, #md-app-embed__modal .md-form__select__language__list { 4378 border: 1px solid #741254 !important; 4379 } 4380 4381 #md-app-embed__modal .md-form__select { 4382 background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="%23741254" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10 14.0002C9.74401 14.0002 9.48801 13.9023 9.29301 13.7073L4.29301 8.70725C3.90201 8.31625 3.90201 7.68425 4.29301 7.29325C4.68401 6.90225 5.31601 6.90225 5.70701 7.29325L10 11.5862L14.293 7.29325C14.684 6.90225 15.316 6.90225 15.707 7.29325C16.098 7.68425 16.098 8.31625 15.707 8.70725L10.707 13.7073C10.512 13.9023 10.256 14.0002 10 14.0002Z" fill="%23741254"/></svg>') !important; 4383 } 4384 #md-app-embed__modal .md-form__select[aria-expanded="true"] { 4385 background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="%23741254" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15 13.0002C14.744 13.0002 14.488 12.9023 14.293 12.7073L10 8.41425L5.70701 12.7073C5.31601 13.0982 4.68401 13.0982 4.29301 12.7073C3.90201 12.3163 3.90201 11.6842 4.29301 11.2933L9.29301 6.29325C9.68401 5.90225 10.316 5.90225 10.707 6.29325L15.707 11.2933C16.098 11.6842 16.098 12.3163 15.707 12.7073C15.512 12.9023 15.256 13.0002 15 13.0002Z" fill="%23741254"/></svg>') !important; 4386 } 4387 .md-modal__footerContent { 4388 max-width: 100%; 4389 } 4390 4391 4392 4393 4394 /* Custom CSS */ 4395 4396 4397 .md-modal__footer { 4398 padding: 0.75em 1.5em 1.5em; 4399 } 4400 .md-modal__header__flag { 4401 display: block !important; 4402 background-position: center; 4403 background-size: cover; 4404 background-repeat: no-repeat; 4405 position: relative; 4406 width: 46.6px; 4407 height: 35px; 4408 margin: auto; 4409 margin-top: 1.5em; 4410 overflow: clip; 4411 outline: 0.0625rem solid rgba(0, 0, 0, 0.05); 4412 outline-offset: calc(0.0625rem* -1); 4413 } 4414 4415 .md-modal__header__flag img { 4416 height: 35px; 4417 width: 35px !important; 4418 border-radius: 35px; 4419 } 4420 4421 .md-modal-closeButton { 4422 position: absolute; 4423 right: 0; 4424 top: 0; 4425 margin: 0 !important; 4426 padding-top: 1.5em; 4427 padding-right: 1.5em; 4428 } 4429 .md-modal__header__flag, .md-fix-flag__header-white { 4430 width: 35px !important; 4431 border-radius: 33px; 4432 } 4433 4434 #md-app-embed__modal .md-form__select__country__list-link__flag, #md-app-embed__modal .md-fix-flag-white { 4435 width: 1.25em; 4436 height: 1.25em; 4437 border-radius: 35px; 4438 background-clip: padding-box; 4439 } 4440 4441 4442 .md-modal__backdrop { 4443 display: block !important; 4444 } 4445</style> 4446<!-- BEGIN app snippet: load-css-flags --> 4447<style data-orbe-flags="43">.orbe-flags-xx, .orbe-flags__before-xx:before {background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/xx.svg') !important;}.orbe-flags-us, .orbe-flags__before-us:before {background-image: url('https://cdn.shopify.com/static/images/flags/us.svg') !important;}.orbe-flags-ca, .orbe-flags__before-ca:before {background-image: url('https://cdn.shopify.com/static/images/flags/ca.svg') !important;}.orbe-flags-br, .orbe-flags__before-br:before {background-image: url('https://cdn.shopify.com/static/images/flags/br.svg') !important;}</style><style data-orbe-flags="circle">.orbe-flags-circle-xx, .orbe-flags-circle__before-xx:before { 4448 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/xx-1x1.svg') !important; 4449 }.orbe-flags-circle-us, .orbe-flags-circle__before-us:before { 4450 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/us-1x1.svg') !important; 4451 }.orbe-flags-circle-ca, .orbe-flags-circle__before-ca:before { 4452 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/ca-1x1.svg') !important; 4453 }.orbe-flags-circle-br, .orbe-flags-circle__before-br:before { 4454 background-image: url('https://cdn.shopify.com/extensions/01a10b24-e7f5-74bb-826a-087e105f5da6/orbe-geolocation-504/assets/br-1x1.svg') !important; 4455 }</style>
4455<script type="application/json" id="orbe-flag-css-meta">{"codes":",xx,us,ca,br","asset43":"https:\/\/cdn.shopify.com\/extensions\/01a10b24-e7f5-74bb-826a-087e105f5da6\/orbe-geolocation-504\/assets\/xx.svg","assetCircle":"https:\/\/cdn.shopify.com\/extensions\/01a10b24-e7f5-74bb-826a-087e105f5da6\/orbe-geolocation-504\/assets\/xx-1x1.svg","local43":"xx,xk,ac,af,arab,asean,cefta,cp,dg,ea,eac,es-ct,es-ga,es-pv,ic,pc,sh-ac,sh-hl,sh-ta,ta,un,gb-eng,gb-nir,gb-sct,gb-wls"}</script>
4455<!-- END app snippet --> 4456<div class="md-app-embed orbe--hidden" aria-hidden="true" id="md-app-embed__modal" data-nosnippet> 4457 4458 <!--googleoff: all--> 4459 4460 <div class="md-modal__container"> 4461 <div class="md-modal__dialog" role="dialog" aria-modal="true" 4462 aria-labelledby="label-md-modal__dialog" tabindex="-1"> 4463 <div class="md-modal__content notranslate" data-wg-notranslate><form method="post" action="/localization" id="md-modal__form__id" accept-charset="UTF-8" class="" enctype="multipart/form-data"><input type="hidden" name="form_type" value="localization" /><input type="hidden" name="utf8" value="â" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="return_to" value="/cart" /> 4464 <div class="md-modal__grid"> 4465 <div class="md-modal__grid__1"> 4466 <div class="md-modal__header__flag"> 4467 </div> 4468 <div class="md-modal__header"> 4469 <div class="md-modal__header__title"> 4470 <span id="label-md-modal__dialog" 4471 class="md-modal__header__title__span md-modal__header__custom__title" 4472 data-mdAppTitle 4473 role="heading" aria-level="2" tabindex="-1" 4474 > 4475 Are you in the right place? 4476 </span> 4477 </div> 4478 4479 <button class="md-modal-closeButton md-modal-closeButtonAction" aria-label="Close" type="button"> 4480 <span class="md-icon"> 4481 <span class="md-visuallyHidden"></span> 4482 <svg viewBox="0 0 20 20" class="md-icon__Svg" focusable="false" aria-hidden="true"> 4483 <path d="m11.414 10 6.293-6.293a1 1 0 1 0-1.414-1.414L10 8.586 3.707 2.293a1 1 0 0 0-1.414 1.414L8.586 10l-6.293 6.293a1 1 0 1 0 1.414 1.414L10 11.414l6.293 6.293A.998.998 0 0 0 18 17a.999.999 0 0 0-.293-.707L11.414 10z"></path> 4484 </svg> 4485 </span> 4486 </button> 4487 </div> 4488 <div class="md-modal__body"> 4489 <div class="md-modal__bodyContent" id="md-modal__idBodyContent"> 4490 <p class="md-modal__bodyContent__text" data-mdAppText>Please select your shipping country.</p> 4491 <div class="md-modal__bodyContent__helperText" data-mdAppHelperText> 4492 <p>Buy from the country of your choice. Remember that we can only ship your order to addresses located in the chosen country.</p> 4493 </div> 4494 </div> 4495 </div> 4496 4497 <!-- Custom HTML --> 4498<div class="md-modal__formContent notranslate" aria-describedby="md-modal__idBodyContent" data-wg-notranslate> 4499 <!-- BEGIN app snippet: country-selector --><div class="md-modal__formContent__select"> 4500 <span class="md-modal__formContent__selectLabel" id="label-md-form__country-code" data-mdAppCountryLabel>Country</span> 4501 <input name="country_code" type="hidden" id="orbe-country-selector-popup-id"> 4502 <button type="button" name="md-form__select__country__button" id="md-form__select__country" role="combobox" 4503 aria-haspopup="listbox" aria-labelledby="label-md-form__country-code" class="md-form__select" 4504 aria-expanded="false" aria-controls="orbeCountryList" data-value="US"> 4505 <div class="md-form__select__country__list-link-wrapper"> 4506 <div class="md-form__select__country__list__flag-wrapper"> 4507 <div class="md-form__select__country__list-link__flag"><div class="orbe-flags-circle-us md-form__select__img " data-circle="true"></div> 4508 </div> 4509 </div><span class="md-form__select__span">United States ($)</span><input onkeyup="orbito.searchCountryInput()"placeholder="Country"type="text" 4510 class="md-form__select__search__input " spellcheck="false" data-ms-editor="true" aria-label="Search and Enter" aria-description="Search and Enter" 4511 role="combobox" 4512 aria-autocomplete="list" 4513 aria-controls="orbeCountryList" 4514 aria-expanded="false" 4515 aria-haspopup="listbox"
4516 aria-activedescendant="" 4517 ></div> 4518 </button> 4519 <ul id="orbeCountryList" role="listbox" 4520 class="md-form__select__country__list " hidden> 4521 <li id="orbe-country-CA" 4522 tabindex="-1" role="option" 4523 data-name="Canada" data-country="CA" style="display: list-item;"> 4524 <span class="md-form__select__country__list-link" data-countryname="Canada" data-primarymarket="false" data-currency="USD" data-symbol="$" data-primary="enabled" data-defaultlocale="en" data-subfoldersuffix="" data-domainurl="i-wanna-sleep-usa.myshopify.com" data-host="iwannasleep.com" data-country="CA" data-value="CA" 4525 data-locales="en" data-namelocales="English"data-shipping-threshold="" 4526 data-delivery-time="" 4527 data-return-time="" 4528 data-payment="" 4529 data-taxes-included="false" 4530 data-duties-included="false"> 4531 <div class="md-form__select__country__list-link-wrapper"> 4532 <div class="md-form__select__country__list__flag-wrapper"> 4533 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-ca md-form__select__img " data-circle="true"></div> 4534 </div> 4535 </div> 4536 <span class="md-form__select__span">Canada ($)</span> 4537 </div> 4538 </span> 4539 </li> 4540 <li id="orbe-country-US" 4541 tabindex="-1" role="option" 4542 data-name="United States" data-country="US" style="display: list-item;"> 4543 <span class="md-form__select__country__list-link" aria-current="true" data-countryname="United States" data-primarymarket="true" data-currency="USD" data-symbol="$" data-primary="enabled" data-defaultlocale="en" data-subfoldersuffix="" data-domainurl="iwannasleep.com" data-host="iwannasleep.com" data-country="US" data-value="US" 4544 data-locales="en" data-namelocales="English"data-shipping-threshold="" 4545 data-delivery-time="" 4546 data-return-time="" 4547 data-payment="" 4548 data-taxes-included="false" 4549 data-duties-included="false"> 4550 <div class="md-form__select__country__list-link-wrapper"> 4551 <div class="md-form__select__country__list__flag-wrapper"> 4552 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-us md-form__select__img " data-circle="true"></div> 4553 </div> 4554 </div> 4555 <span class="md-form__select__span">United States ($)</span> 4556 </div> 4557 </span> 4558 </li> 4559 <li id="orbe-country-BR" 4560 tabindex="-1" role="option" 4561 data-name="Brasil" data-country="BR" style="display: list-item;"> 4562 <span class="md-form__select__country__list-link" data-countryname="Brasil" data-primarymarket="true" data-currency="BRL" data-symbol="R$" data-primary="undefined" data-defaultlocale="pt-BR" data-subfoldersuffix="" data-domainurl="www.iwannasleep.com.br" data-host="www.iwannasleep.com.br" data-country="BR" data-value="BR" 4563 data-locales="pt-BR" data-namelocales="português (Brasil)"data-shipping-threshold="" 4564 data-delivery-time="" 4565 data-return-time="" 4566 data-payment="" 4567 data-taxes-included="false" 4568 data-duties-included="false"> 4569 <div class="md-form__select__country__list-link-wrapper"> 4570 <div class="md-form__select__country__list__flag-wrapper"> 4571 <div class="md-form__select__country__list-link__flag "><div class="orbe-flags-circle-br md-form__select__img " data-circle="true"></div> 4572 </div> 4573 </div>
4574 <span class="md-form__select__span">Brasil (R$)</span> 4575 </div> 4576 </span> 4577 </li></ul> 4578</div> 4579<!-- END app snippet --> 4580<!-- BEGIN app snippet: language-selector --><div class="md-modal__formContent__select" style="display: none !important;"> 4581 <span class="md-modal__formContent__selectLabel" id="label-md-form__select__language" data-mdAppLanguageLabel>Language</span> 4582 <input name="language_code" id="orbe-lang-selector-popup-id" type="hidden"> 4583 <button type="button" name="md-form__select__language__button" id="md-form__select__language" class="md-form__select" 4584 aria-expanded="false" aria-controls="orbeLanguageList" role="combobox" aria-haspopup="listbox" 4585 aria-labelledby="label-md-form__select__language" data-value="en" 4586 4587 > 4588 <div class="md-form__select__language__list-link-wrapper"> 4589 <span class="md-form__select__span">English</span> 4590 </div> 4591 </button> 4592 <ul id="orbeLanguageList" role="listbox" 4593 class="md-form__select__language__list " hidden><li data-locale="en" 4594 class="" tabindex="-1" role="option"> 4595 <span class="md-form__select__language__list-link" aria-current="true" data-value="en"> 4596 <div class="md-form__select__language__list-link-wrapper"> 4597 <span class="md-form__select__span" data-value="en">English</span> 4598 </div> 4599 </span> 4600 </li></ul> 4601</div> 4602<!-- END app snippet --> 4603 </div> 4604 <div class="md-modal__footer "> 4605 <div class="md-modal__footerContent"> 4606 <button type="submit" class="md-btn md-btn__primary" id="md-btn__form__onSubmit" data-mdAppCTAText>Access</button> 4607 </div> 4608 4609 </div> 4610 </div> 4611 4612 <div class="md-modal__grid__2"> 4613 4614 </div> 4615 </div> 4616 </form> 4617 </div> 4618 </div> 4619 </div> 4620 4621 <!--googleon: all--> 4622 4623 <div class="md-modal__backdrop"></div> 4624 </div>
4624<script> 4625 4626if (typeof mdApp_hideOnFallback === 'undefined') { 4627 var mdApp_hideOnFallback = false; 4628 } 4629 if (typeof mdApp_showFlagHeaderIcon == 'undefined') {var mdApp_showFlagHeaderIcon = true;var mdApp_showFlagHeaderIconCircle = true;} 4630 4631 if (typeof mdApp_showFlagSelectorIcon == 'undefined') {var mdApp_showFlagSelectorIcon = true;} 4632 4633 if (typeof mdApp_currencyCodeEnabled === 'undefined') {var mdApp_currencyCodeEnabled = 'symbol_flag';} 4634 4635 if (typeof mdApp_backgroundModal == 'undefined') { 4636 var mdApp_backgroundModal = '#ffffff'; 4637 } 4638 4639 if (typeof mdApp_fallbackText === 'undefined') { 4640 var mdApp_fallbackText = `We donât ship to {country}`; 4641 } 4642 4643 if (typeof mdApp_disableFallbackPR === 'undefined') { 4644 var mdApp_disableFallbackPR = false; 4645 } 4646 4647 if (typeof mdApp_searchCountrySelectorModal == 'undefined') {var mdApp_searchCountrySelectorModal = true;} 4648 4649 <!-- BEGIN app snippet: js-variables --> 4650 4651 4652if (typeof mdApp_redirectMode == 'undefined') { 4653 var mdApp_redirectMode = false; 4654} 4655if (typeof mdApp_redirectRegionMode == 'undefined') { 4656 var mdApp_redirectRegionMode = false; 4657} 4658if (typeof mdApp_redirectRegionCode === 'undefined') { 4659 var mdApp_redirectRegionCode = ''; 4660} 4661if (typeof mdApp_redirectCountryCode === 'undefined') { 4662 var mdApp_redirectCountryCode = ''; 4663} 4664if (typeof mdApp_redirectCountryName === 'undefined') { 4665 var mdApp_redirectCountryName = ''; 4666} 4667if (typeof mdApp_redirectCountryCurrencyCode === 'undefined') { 4668 var mdApp_redirectCountryCurrencyCode = ''; 4669} 4670if (typeof mdApp_redirectCountryCurrencySymbol === 'undefined') { 4671 var mdApp_redirectCountryCurrencySymbol = ''; 4672} 4673if (typeof mdApp_redirectLocale === 'undefined') { 4674 var mdApp_redirectLocale = ''; 4675} 4676if (typeof mdApp_redirectEndonymName === 'undefined') { 4677 var mdApp_redirectEndonymName = ''; 4678} 4679if (typeof mdApp_redirectUrl === 'undefined') { 4680 var mdApp_redirectUrl = ''; 4681} 4682if (typeof mdApp_forceHideOrbe == 'undefined') { 4683 var mdApp_forceHideOrbe = false; 4684} 4685if (typeof mdApp_currentPlan == 'undefined') { 4686var mdApp_currentPlan = 'plus'; 4687} 4688if (typeof mdApp_forceExternalStoreRedirectMode == 'undefined') { 4689var mdApp_forceExternalStoreRedirectMode = false; 4690} 4691if (typeof mdApp_forceExternalStoreRedirectList == 'undefined') { 4692var mdApp_forceExternalStoreRedirectList = []; 4693} 4694if (typeof mdApp_deferUntilScroll == 'undefined') { 4695var mdApp_deferUntilScroll = false; 4696} 4697 4698if (typeof mdApp_skipRequestAPI == 'undefined') {var mdApp_skipRequestAPI = 'fal
4698se';} 4699 4700if (typeof mdApp_merchantKey === 'undefined') {var mdApp_merchantKey = 'md_key_40042i87359866';} 4701 4702if (typeof mdApp_MAIN_URL === 'undefined') { 4703 4704 var mdApp_MAIN_URL = 'https://iwannasleep.com'; 4705 4706} 4707 4708if (typeof mdApp_currentCountryCode === 'undefined') { 4709 4710 4711 var mdApp_currentCountryCode = 'US'; 4712 4713} 4714 4715if (typeof mdApp_currentCountryCodeName === 'undefined') { 4716 var mdApp_currentCountryCodeName = 'United States'; 4717} 4718 4719if (typeof mdApp_blockDomain === 'undefined') {var mdApp_blockDomain = '';} 4720 4721if (typeof mdApp_currentPageRelativeUrl === 'undefined') {var mdApp_currentPageRelativeUrl = "\/cart"; 4722} 4723 4724if (typeof mdApp_translateTextJSON === 'undefined') {var mdApp_translateTextJSON = {"pt-BR":{"title":"Você está na loja correta?","helperText":"","text":"Selecione abaixo o paÃs onde você deseja receber seu produto:","ctaText":"Acessar a loja","countryLabel":"PaÃs","languageLabel":"","fallbackText":"Nós não enviamos para {country}","fallbackHelperText":"","fallbackBodyText":"Selecione abaixo o paÃs onde você deseja receber seu produto:","fallbackCtaText":"Acessar a loja"},"BR-country":{"pt-BR":{"title":"Está no lugar certo?","helperText":"\u003cp\u003eCompre do pa\u0026iacute;s da sua escolha. Lembre-se de que s\u0026oacute; podemos enviar o seu pedido para endere\u0026ccedil;os localizados no pa\u0026iacute;s escolhido.\u003c\/p\u003e","text":"Por favor, selecione o seu paÃs de envio.","ctaText":"Comprar agora","countryLabel":"PaÃs","languageLabel":"Idioma","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}},"CA-country":{"en":{"title":"Are you in the right place?","helperText":"\u003cp\u003eBuy from the country of your choice. Remember that we can only ship your order to addresses located in the chosen country.\u003c\/p\u003e","text":"Please select your shipping country.","ctaText":"Shop now","countryLabel":"Country","languageLabel":"Language","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}},"US-country":{"en":{"title":"Are you in the right place?","helperText":"\u003cp\u003eBuy from the country of your choice. Remember that we can only ship your order to addresses located in the chosen country.\u003c\/p\u003e","text":"Please select your shipping country.","ctaText":"Shop now","countryLabel":"Country","languageLabel":"Language","fallbackText":"","fallbackHelperText":"","fallbackBodyText":"","fallbackCtaText":""}}};} 4725 4726if (typeof mdApp_translateTextPreviewJSON === 'undefined') {var mdApp_translateTextPreviewJSON = '';} 4727 4728if (typeof mdApp_klaviyoConnect == 'undefined') {var mdApp_klaviyoConnect = false;} 4729 4730if (typeof mdApp_connectifConnect == 'undefined') {var mdApp_connectifConnect = false;} 4731 4732if (typeof mdApp_discountSupport == 'undefined') {var mdApp_discountSupport = true;} 4733 4734if (typeof mdApp_advancedLanguage == 'undefined') {var mdApp_advancedLanguage = { 4735 "option_language_force_default": false, 4736 "option_language_force_showRecommendation": false, 4737 4738 "option_language_force_langRedirect": false 4739 4740 };} 4741 4742if (typeof mdApp_firstVisitSettings == 'undefined') {var mdApp_firstVisitSettings = { 4743 "option_force_showModal_behaviour": false, 4744 4745 "popup_display_order": 1, 4746 4747 "other_popup_classes": null, 4748 "exclude_ip": null 4749 };} 4750 4751if (typeof mdApp_secondVisitSettings == 'undefined') {var mdApp_secondVisitSettings = { 4752 "option_force_redirect_behaviour": false 4753 };} 4754 4755if (typeof mdApp_syncstoresData == 'undefined') { 4756 4757 var mdApp_syncstoresData = { 4758 "exclude_paths": "/pages*", 4759 "exclude_paths_splited": "/pages*", 4760 "redirect_fullpath": false 4761 }; 4762 4763} 4764 4765if (typeof mdApp_orbeCustomer === 'undefined') { 4766 4767 var mdApp_orbeCustomer = ''; 4768 4769} 4770 4771if (typeof mdApp_orbeCustomerB2B === 'undefined') { 4772 4773 4774 var mdApp_orbeCustomerB2B = false; 4775 4776} 4777 4778if (typeof mdApp_skipTruncate === 'undefined') { 4779 var mdApp_skipTruncate = false; 4780} 4781 4782if (typeof mdApp_skipReturnToDomainCheck === 'undefined') { 4783 var mdApp_skipReturnToDomainCheck = false; 4784} 4785 4786if (typeof mdApp_cookiesSettings == 'undefined') {var mdApp_cookiesSettings = { 4787 "modal_close_time": 7, 4788 4789 "session_only": false, 4790 4791 "modal_reappear": 60 4792 };} 4793 4794if (typeof mdApp_countryRules == 'undefined') {var mdApp_countryRules = { 4795 "fallbackCountry": "" 4796 };} 4797<!-- END app snippet --> 4798</script>
4798 4799 4800 4801 4802</div>
4802<script src="https://cdn.shopify.com/storefront/standard-actions.js" type="module" data-source-attribution="shopify.standard_actions"></script>
4802 4803</body> 4804</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.