/* fsc consent v1 (Nov 25, 2026): cookie banner for fivesisterscollection.com. Loads Google Analytics (G-67P8V94L1F) and the Meta Pixel (2266287333950466) ONLY after the visitor clicks Accept. Decline is the same size and weight as Accept. Global Privacy Control = declined automatically. Choice is remembered for 365 days. "Cookie settings" link in the footer reopens the banner. */ (function () { var GA = 'G-67P8V94L1F', PX = '2266287333950466', KEY = 'fsc_consent', w = window, d = document; w.dataLayer = w.dataLayer || []; if (!w.gtag) w.gtag = function () { w.dataLayer.push(arguments); }; if (!w.fbq) { var q = function () { q.queue.push(arguments); }; q.queue = []; q.loaded = 1; q.version = '2.0'; q.push = q; w.fbq = q; w._fbq = q; w.__fscStub = 1; } function get() { try { return localStorage.getItem(KEY); } catch (e) { var m = d.cookie.match(/fsc_consent=(\w+)/); return m && m[1]; } } function set(v) { try { localStorage.setItem(KEY, v); } catch (e) {} d.cookie = KEY + '=' + v + ';max-age=31536000;path=/;SameSite=Lax;Secure'; } function wipe() { d.cookie.split(';').forEach(function (c) { var n = c.split('=')[0].trim(); if (/^(_ga|_gid|_gat|_fbp|_fbc)/.test(n)) { ['', '; domain=.fivesisterscollection.com', '; domain=www.fivesisterscollection.com'].forEach(function (dm) { d.cookie = n + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/' + dm; }); } }); } var loaded = false; function load() { if (loaded) return; loaded = true; var g = d.createElement('script'); g.async = 1; g.src = 'https://www.googletagmanager.com/gtag/js?id=' + GA; d.head.appendChild(g); gtag('js', new Date()); gtag('config', GA, { cookie_flags: 'SameSite=None;Secure', send_page_view: true }); if (w.__fscStub) { var f = d.createElement('script'); f.async = 1; f.src = 'https://connect.facebook.net/en_US/fbevents.js'; d.head.appendChild(f); } fbq('init', PX); fbq('track', 'PageView'); } var css = '#fscCk{position:fixed;left:12px;right:12px;bottom:12px;z-index:2147483000;max-width:760px;margin:0 auto;background:#1d3557;color:#fff;border-radius:10px;padding:16px 18px;box-shadow:0 4px 18px rgba(0,0,0,.3);font:15px/1.45 Georgia,serif;display:flex;flex-wrap:wrap;gap:12px;align-items:center}' + '#fscCk p{margin:0;flex:1 1 320px}#fscCk a{color:#fff;text-decoration:underline}' + '#fscCk .b{display:flex;gap:10px;flex:0 0 auto}#fscCk button{font:600 15px/1 Georgia,serif;min-width:118px;padding:12px 16px;border-radius:6px;border:2px solid #fff;background:#fff;color:#1d3557;cursor:pointer}' + '#fscCk button:focus{outline:3px solid #f4d35e;outline-offset:2px}'; function banner() { if (d.getElementById('fscCk')) return; var s = d.createElement('style'); s.textContent = css; d.head.appendChild(s); var b = d.createElement('div'); b.id = 'fscCk'; b.setAttribute('role', 'dialog'); b.setAttribute('aria-label', 'Cookie choices'); b.innerHTML = '

We would like to use cookies to understand how visitors use our site and to measure our Facebook and Instagram ads. If you decline, we use only the cookies the site needs to work. Privacy Policy

' + '
'; b.addEventListener('click', function (e) { var v = e.target.getAttribute && e.target.getAttribute('data-v'); if (!v) return; var was = get(); set(v); b.remove(); if (v === 'yes') load(); else { wipe(); if (was === 'yes') location.reload(); } }); d.body.appendChild(b); } function link() { var f = d.querySelector('footer') || d.querySelector('.footer') || d.body; var a = d.createElement('a'); a.href = '#'; a.textContent = 'Cookie settings'; a.style.cssText = 'display:block;text-align:center;margin:8px 0 14px;font-size:13px;letter-spacing:.06em;text-transform:uppercase'; a.addEventListener('click', function (e) { e.preventDefault(); banner(); }); f.appendChild(a); } var gpc = navigator.globalPrivacyControl === true; var c = get(); if (gpc && c !== 'no') { set('no'); c = 'no'; } if (c === 'yes') load(); function ready() { link(); if (!c) banner(); } if (d.readyState === 'loading') d.addEventListener('DOMContentLoaded', ready); else ready(); })();