/* NG giveaway popup, Midnight Navy (design: projects/Upcoming Sale Handover 2026-10-24/popup).
   Everything is scoped under #ngbg, so the theme's button and input styles can't reach it.
   Desktop (900px and up): 860x500 popup, form panel left, card side right.
   Phone and tablet (under 900px): floats with a 16px gap on every side, card side on top. */

#ngbg{
  --ngbg-navy-1:#333b0a; --ngbg-navy-2:#262c07; --ngbg-navy-3:#191d04; /* olive since 2026-10-28 (Safras); names kept from the navy design */
  --ngbg-gold:#bca169; --ngbg-gold-light:#e6d6ac; --ngbg-dark:#2e3033; --ngbg-red:#ff5544;
  --ngbg-sand-1:#f3ecdc; --ngbg-sand-2:#e8dcc0; --ngbg-sand-3:#d9c8a0;
  --ngbg-font:"Montserrat",system-ui,sans-serif;
  font-family:var(--ngbg-font);-webkit-font-smoothing:antialiased;color:#fff;line-height:1.3
}
#ngbg *,#ngbg *::before,#ngbg *::after{box-sizing:border-box}
#ngbg h2,#ngbg p,#ngbg form{margin:0;padding:0}
#ngbg [hidden]{display:none !important}
#ngbg button{font-family:inherit;text-transform:none;letter-spacing:normal}
#ngbg [tabindex="-1"]:focus{outline:none}  /* headings get focus from script on step change; no ring needed */

/* ---------- Overlay ---------- */
/* the same overlay as the store's Klaviyo popup on live: flat dark, no blur, .35s fade */
#ngbg .ngbg-veil{position:fixed;inset:0;z-index:99998;background:rgba(20,20,20,.6)}
#ngbg .ngbg-wrap{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:16px;overflow-y:auto;pointer-events:none}
#ngbg .ngbg-pop{position:relative;pointer-events:auto;display:grid;overflow:hidden;width:860px;max-width:100%;min-height:500px;grid-template-columns:minmax(0,1fr) 340px;
  box-shadow:0 40px 90px -30px rgba(0,0,0,.85),inset 0 0 0 1px rgba(188,161,105,.35)}
@media (prefers-reduced-motion:no-preference){
  #ngbg .ngbg-pop{animation:ngbg-in .5s cubic-bezier(.2,.8,.2,1) both}
  #ngbg .ngbg-veil{animation:ngbg-fade .35s ease-out both}
}
@keyframes ngbg-in{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ngbg-fade{from{opacity:0}to{opacity:1}}

/* ---------- Form panel: Midnight Navy ---------- */
#ngbg .ngbg-panel{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:22px 44px 30px;
  background:
    radial-gradient(70% 45% at 50% 0%,rgba(188,161,105,.16) 0%,rgba(188,161,105,0) 72%),
    linear-gradient(180deg,var(--ngbg-navy-1) 0%,var(--ngbg-navy-2) 50%,var(--ngbg-navy-3) 100%)}
#ngbg .ngbg-logo{display:block;width:168px;height:auto;margin:-6px auto 0}

/* WIN 500 AED: gold letters, still (the flip-in was removed 2026-10-28, Safras) */
#ngbg .ngbg-h{margin:18px 0 0;padding:0;font-size:56px;font-weight:800;line-height:1;letter-spacing:-.01em;text-transform:uppercase;white-space:nowrap;color:var(--ngbg-gold)}
#ngbg .ngbg-sub{margin-top:14px !important;font-size:16px;font-weight:500;line-height:1.4}

#ngbg .ngbg-form{width:100%;display:grid;gap:14px;margin-top:20px !important}
#ngbg .ngbg-cd-wrap{display:grid;gap:8px}
#ngbg .ngbg-cd-label{font-size:14px;font-weight:600;color:var(--ngbg-gold)}
#ngbg .ngbg-cd{display:flex;gap:8px}
#ngbg .ngbg-cd .u{flex:1;min-width:0;display:grid;justify-items:center;gap:6px}
#ngbg .ngbg-cd b{display:block;width:100%;padding:12px 0 10px;text-align:center;font-size:30px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.01em;color:#fff;
  background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(188,161,105,.4)}
/* the digits roll up like the homepage sale timer (ng-saletimer) */
#ngbg .ngbg-cd b{position:relative;overflow:hidden;height:54px;padding:0;line-height:54px}
#ngbg .ngbg-cd .cur,#ngbg .ngbg-cd .next{position:absolute;left:0;right:0;top:0;text-align:center}
#ngbg .ngbg-cd .next{transform:translateY(100%)}
#ngbg .ngbg-cd b.is-rolling .cur{transform:translateY(-100%);transition:transform .55s cubic-bezier(.65,0,.2,1)}
#ngbg .ngbg-cd b.is-rolling .next{transform:translateY(0);transition:transform .55s cubic-bezier(.65,0,.2,1)}
@media (prefers-reduced-motion:reduce){#ngbg .ngbg-cd b.is-rolling .cur,#ngbg .ngbg-cd b.is-rolling .next{transition:none}}
#ngbg .ngbg-cd small{font-size:12px;font-weight:600;line-height:1;color:#fff}

#ngbg .ngbg-step1{width:100%}  /* the same edges as step 2, so the form does not move between steps */
#ngbg .ngbg-row{display:grid;grid-template-columns:minmax(0,1fr) 144px;gap:8px;margin-top:6px}
#ngbg .ngbg-in{display:block;width:100%;min-width:0;height:54px;margin:0;padding:0 16px;border-radius:0;font:500 16px/1 var(--ngbg-font);outline:none;
  background-color:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.6);color:#fff;caret-color:var(--ngbg-gold);transition:border-color .15s,box-shadow .15s}
#ngbg .ngbg-in::placeholder{color:rgba(255,255,255,.78);opacity:1}
#ngbg .ngbg-in:hover{border-color:#fff}
#ngbg .ngbg-in:focus{border-color:var(--ngbg-gold);box-shadow:0 0 0 3px rgba(188,161,105,.35)}
#ngbg .ngbg-in[aria-invalid="true"]{border-color:var(--ngbg-red);box-shadow:0 0 0 3px rgba(255,85,68,.2)}
#ngbg select.ngbg-in{appearance:none;-webkit-appearance:none;padding:0 32px 0 14px;cursor:pointer;background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bca169' stroke-width='1.5'/%3E%3C/svg%3E")}
#ngbg select.ngbg-in option{color:var(--ngbg-dark)}
#ngbg .ngbg-tel{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}

#ngbg .ngbg-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;margin:0;padding:0 18px;border:0;border-radius:0;cursor:pointer;white-space:nowrap;
  font:600 17px/1 var(--ngbg-font);background:var(--ngbg-gold);color:var(--ngbg-dark);transition:background-color .2s,color .2s}
#ngbg .ngbg-btn svg{width:18px;height:18px;flex:none;transition:transform .2s}
#ngbg .ngbg-btn:hover{background:#fff;color:var(--ngbg-dark)}
#ngbg .ngbg-btn:hover svg{transform:translateX(3px)}
#ngbg .ngbg-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
#ngbg .ngbg-btn[disabled]{opacity:.75;cursor:wait}

#ngbg .ngbg-err{display:flex;align-items:flex-start;gap:8px;font-size:14px;font-weight:500;line-height:1.4;text-align:left;color:#fff}
#ngbg .ngbg-err svg{flex:none;width:18px;height:18px;color:var(--ngbg-red)}
#ngbg .ngbg-consent{font-size:12px;font-weight:500;line-height:1.5;text-align:center}
#ngbg .ngbg-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* Step 2 and success: centred like step 1, Back at the top left */
#ngbg .ngbg-step2{width:100%;display:grid;gap:13px;text-align:center}
#ngbg .ngbg-step2 input{text-align:left}
#ngbg .ngbg-step2 h2,#ngbg .ngbg-done h2,#ngbg .ngbg-sub{text-wrap:balance}
#ngbg .ngbg-step2 h2{margin-bottom:6px;font-size:26px;font-weight:700;line-height:1.25;color:#fff}
#ngbg .ngbg-back{display:inline-flex;align-items:center;gap:4px;justify-self:start;width:auto;height:auto;margin:0 0 6px;padding:4px 0;border:0;background:none;color:#fff;font:600 15px/1.2 var(--ngbg-font);cursor:pointer}
#ngbg .ngbg-back svg{width:16px;height:16px}
#ngbg .ngbg-back:hover,#ngbg .ngbg-back:focus-visible{background:none;color:#fff;text-decoration:underline;text-underline-offset:3px}
#ngbg .ngbg-done{width:100%;display:grid;justify-items:center;gap:12px;text-align:center}
#ngbg .ngbg-done h2{font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.15;color:var(--ngbg-gold)}
#ngbg .ngbg-done > p{font-size:16px;font-weight:500;line-height:1.5}
#ngbg .ngbg-done b[data-ngbg-echo]{font-weight:700}
#ngbg .ngbg-done b[data-ngbg-echo="email"]{overflow-wrap:anywhere}
#ngbg .ngbg-done b[data-ngbg-echo="phone"]{white-space:nowrap}
#ngbg .ngbg-facts{display:grid;gap:10px;width:100%;margin-top:6px;text-align:left}
#ngbg .ngbg-facts div{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;font-size:15px;font-weight:500;line-height:1.4;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(188,161,105,.3)}
#ngbg .ngbg-facts svg{width:20px;height:20px;flex:none;color:var(--ngbg-gold)}

/* ---------- Card side: whitish, three black gift cards (sand until 2026-10-28, Sajjad) ---------- */
#ngbg .ngbg-side{position:relative;overflow:hidden;background:
  radial-gradient(60% 50% at 50% 50%,#ffffff 0%,rgba(255,255,255,0) 70%),
  linear-gradient(160deg,#ffffff 0%,#f8f6f1 55%,#ede8de 100%)}
#ngbg .ngbg-fan{position:absolute;left:50%;top:50%;width:0;height:0}
#ngbg .ngbg-gc{position:absolute;left:0;top:0;width:262px;aspect-ratio:1.586;border-radius:10px;overflow:hidden;container-type:inline-size;
  background:radial-gradient(120% 90% at 0% 0%,rgba(230,214,172,.16) 0%,rgba(230,214,172,0) 50%),linear-gradient(140deg,#25221b 0%,#0e0d0b 60%,#1b1914 100%);
  box-shadow:0 26px 36px -18px rgba(0,0,0,.6),0 6px 14px -8px rgba(0,0,0,.35)}
/* three big cards overlap in a cascade down the panel (--x, --y, --r) and slide in from outside it (--fx, --fy, --fr).
   Each card lies over the one below it, so every card keeps its 500 AED (bottom right) in view; the bottom card lands first */
#ngbg .ngbg-gc{transform:translate(-50%,-50%) translate(var(--x),var(--y)) rotate(var(--r))}
#ngbg .ngbg-gc:nth-child(1){--x:-10px;--y:-110px;--r:-13deg;--fx:-320px;--fy:-480px;--fr:-50deg;z-index:3}
#ngbg .ngbg-gc:nth-child(2){--x:16px;--y:4px;--r:-4deg;--fx:440px;--fy:-20px;--fr:40deg;z-index:2}
#ngbg .ngbg-gc:nth-child(3){--x:2px;--y:122px;--r:5deg;--fx:-200px;--fy:480px;--fr:-30deg;z-index:1}
@media (prefers-reduced-motion:no-preference){
  #ngbg .ngbg-gc{animation:ngbg-deal .6s cubic-bezier(.2,.85,.25,1) both}
  #ngbg .ngbg-gc:nth-child(3){animation-delay:.05s}
  #ngbg .ngbg-gc:nth-child(2){animation-delay:.13s}
  #ngbg .ngbg-gc:nth-child(1){animation-delay:.21s}
}
@keyframes ngbg-deal{from{transform:translate(-50%,-50%) translate(var(--fx),var(--fy)) rotate(var(--fr))}}
#ngbg .ngbg-gc::before{content:"";position:absolute;inset:4.5cqw;border:1px solid rgba(188,161,105,.6);border-radius:4cqw}
#ngbg .ngbg-gc .chip{position:absolute;left:10%;top:38%;width:13cqw;height:10cqw;border-radius:2cqw;background:repeating-linear-gradient(90deg,rgba(0,0,0,.18) 0 1px,rgba(0,0,0,0) 1px 4cqw),linear-gradient(135deg,#f0dfae 0%,#bca169 55%,#8e7440 100%)}
#ngbg .ngbg-gc .lbl{position:absolute;left:10%;top:15%;font-size:4.6cqw;font-weight:700;letter-spacing:.24em;line-height:1;text-transform:uppercase;color:var(--ngbg-gold-light)}
#ngbg .ngbg-gc .amt{position:absolute;right:10%;bottom:14%;display:flex;align-items:baseline;gap:2cqw;font-size:19cqw;font-weight:800;letter-spacing:-.03em;line-height:1;font-variant-numeric:lining-nums;
  background:linear-gradient(180deg,#f6e7bd 0%,#bca169 70%,#a08550 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
#ngbg .ngbg-gc .amt small{font-size:5.4cqw;font-weight:700;letter-spacing:.04em;color:var(--ngbg-gold-light);-webkit-text-fill-color:var(--ngbg-gold-light)}
@media (prefers-reduced-motion:no-preference){
  #ngbg .ngbg-gc::after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,rgba(255,244,214,0) 36%,rgba(255,244,214,.24) 50%,rgba(255,244,214,0) 64%);transform:translateX(-130%);animation:ngbg-sheen 1.8s .9s ease-out 1 forwards}
}
@keyframes ngbg-sheen{to{transform:translateX(130%)}}

#ngbg .ngbg-x{position:absolute;top:8px;right:8px;z-index:5;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;background:none;color:var(--ngbg-dark);cursor:pointer}
#ngbg .ngbg-x svg{width:20px;height:20px}
#ngbg .ngbg-x:focus-visible{outline:2px solid currentColor;outline-offset:-4px}

/* ---------- The button that reopens it: a copy of SBD's Klaviyo teaser ----------
   A black bar, WIN 500 AED in white bold Montserrat, the dismiss x as a small olive disc inside it.
   Desktop: 240px wide, flush on the bottom edge, 20px from the left. Phones and tablets (below):
   the same bar, as wide as its words, 15px from the left like the page gutter, and under any
   opened popup (z-index 99, the filter popup is 100), so it no longer covers the right edge of
   product cards and filters as the vertical right-edge tab did. The x hides it for the rest of the visit. */
#ngbg .ngbg-teaser{position:fixed;left:20px;bottom:0;z-index:99990;display:flex;align-items:center;width:240px;min-height:48px;background:#000}
#ngbg .ngbg-tab{flex:1;display:block;width:auto;height:auto;margin:0;padding:13px 0 13px 20px;border:0;border-radius:0;cursor:pointer;text-align:center;
  font:700 18px/22px var(--ngbg-font);letter-spacing:normal;text-transform:uppercase;color:#fff;background:transparent;box-shadow:none}
#ngbg .ngbg-tab:hover,#ngbg .ngbg-tab:focus{background:transparent;color:#fff}
#ngbg .ngbg-tab:focus-visible{outline:2px solid #fff;outline-offset:-4px}
#ngbg .ngbg-tabx{flex:none;display:grid;place-items:center;width:22px;height:22px;margin:0 13px 0 8px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:var(--ngbg-navy-1);color:#fff;box-shadow:none}
#ngbg .ngbg-tabx svg{width:11px;height:11px}
#ngbg .ngbg-tabx:hover,#ngbg .ngbg-tabx:focus{background:var(--ngbg-navy-1);color:#fff}
@media (prefers-reduced-motion:no-preference){#ngbg .ngbg-teaser{animation:ngbg-fade .3s ease-out both}}

/* ---------- Step 2: names and the store's WhatsApp picker ---------- */
#ngbg .ngbg-names{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#ngbg .iti{display:block;width:100%}

#ngbg .iti__selected-country,#ngbg .iti__selected-country:hover,#ngbg .iti__selected-country:focus{margin:0;padding:0 14px 0 14px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff}
#ngbg .iti__selected-dial-code{order:-1;margin:0 8px 0 0;color:#fff;font-size:16px}
#ngbg .iti__flag,.iti--container .iti__flag-box{display:none}
/* the code reads as its own control: a full-size chevron and a divider before the number */
#ngbg .iti__selected-country{position:relative}
#ngbg .iti__selected-country::after{content:"";position:absolute;right:0;top:8px;bottom:8px;width:1px;background:rgba(255,255,255,.35)}
#ngbg .iti__arrow{width:0;height:0;margin:0 0 0 8px;border:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid var(--ngbg-gold)}
#ngbg .iti__arrow--up{border-top:0;border-bottom:6px solid var(--ngbg-gold)}
body.ngbg-open .iti--container{z-index:100001}

/* ---------- Phone and tablet ---------- */
@media (max-width:899px){
  /* one fixed top on phones, so the card strip stays put when the step changes */
  #ngbg .ngbg-wrap{padding:56px 16px 16px;place-items:start center}
  /* only the front card carries the GIFT CARD label: the cards behind would show it cut */
  #ngbg .ngbg-gc:not(:first-child) .lbl{display:none}
  #ngbg .ngbg-pop{width:100%;max-width:420px;min-height:0;grid-template-columns:none;grid-template-rows:172px auto}
  #ngbg .ngbg-side{grid-row:1}
  #ngbg .ngbg-panel{grid-row:2;padding:18px 16px;justify-content:flex-start}
  #ngbg .ngbg-gc{width:160px}
  /* left over centre over right, so the right-hand 500 AED of each card stays in view */
  #ngbg .ngbg-gc:nth-child(1){--x:-98px;--y:-4px;--r:-8deg;--fx:-420px;--fy:-40px;--fr:-45deg;z-index:3}
  #ngbg .ngbg-gc:nth-child(2){--x:98px;--y:10px;--r:7deg;--fx:420px;--fy:-40px;--fr:45deg;z-index:1}
  #ngbg .ngbg-gc:nth-child(3){--x:0px;--y:4px;--r:-2deg;--fx:0px;--fy:260px;--fr:-20deg;z-index:2}
  /* a white disc keeps the X readable over the cards */
  #ngbg .ngbg-x{top:6px;right:6px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.94);box-shadow:0 2px 8px rgba(0,0,0,.25)}
  #ngbg .ngbg-x:hover,#ngbg .ngbg-x:focus{background:#fff;color:var(--ngbg-dark)}
  #ngbg .ngbg-x svg{width:18px;height:18px}
  #ngbg .ngbg-logo{width:136px}
  #ngbg .ngbg-h{margin-top:12px;font-size:38px}
  #ngbg .ngbg-sub{margin-top:10px !important;font-size:15px}
  #ngbg .ngbg-sub br{display:none}
  #ngbg .ngbg-form{gap:12px;margin-top:16px !important}
  #ngbg .ngbg-cd{gap:6px}
  #ngbg .ngbg-cd b{font-size:26px;height:48px;line-height:48px}
  /* stack field, error, button in that order */
  #ngbg .ngbg-row{display:contents}
  #ngbg .ngbg-row .ngbg-in{order:1;margin-top:4px}
  #ngbg .ngbg-form > .ngbg-err{order:2}
  #ngbg .ngbg-row .ngbg-btn{order:3}
  #ngbg .ngbg-form > .ngbg-consent{order:4}
  #ngbg .ngbg-btn{height:56px}
  #ngbg .ngbg-step2 h2{font-size:22px}
  #ngbg .ngbg-done h2{font-size:24px}
}
@media (max-width:899px){
  #ngbg .ngbg-teaser{left:15px;width:auto;min-height:40px;z-index:99}
  #ngbg .ngbg-tab{padding:11px 0 11px 16px;font-size:14px;line-height:18px}
  #ngbg .ngbg-tabx{margin:0 10px 0 8px}
}
@media (max-width:359px){#ngbg .ngbg-h{font-size:32px}#ngbg .ngbg-cd b{font-size:22px}}
