/* ==========================================================================
   Singles' Day (11.11) offer strip — styles

   SECTION 1 is the handoff's stylesheet (references/7search-singles-day-
   strip.html) as delivered, with the same edits the Diwali and Halloween
   strips needed (assets/diwali-strip/style.css explains each at length):
     - #sd7 is position: fixed instead of relative: a bar that stays on
       screen the whole way down, on every page.
     - z-index 1030 instead of 99990: above the header (41, 999 when sticky)
       but UNDER Bootstrap's modals (1040/1050), so the login and "schedule a
       meeting" dialogs are never cut off by the bar.
     - "closed" is html.sd7-shut, not #sd7.sd7-closed, because the reserved
       space (section 2) lives on <html> and follows the same switch. A
       closed bar is also visibility: hidden once folded, so its buttons
       leave the tab order.
     - No transition before html.sd7-ready (set by script.js after the first
       frame) replaces the handoff's .sd7-instant, so a visitor who closed it
       is never shown it folding on load.
     - #sd7 p inherits the strip's font: the sitewide p rule replaced it.
   SECTION 2 is new: it makes room for the bar on each page family.
   ========================================================================== */

/* ---------- 1. the strip (handoff) ---------- */
#sd7{
  --s7-h:56px;
  --s7-ink:#3a0710;
  --s7-gold:#ffd36b;
  --s7-amber:#f5b13d;
  --s7-pink:#ffc4d0;
  --s7-mist:#f7cfd6;
  --s7-goldg:linear-gradient(180deg,#fff4c9 0%,#ffd36b 48%,#f0a334 100%);
  --s7-pinkg:linear-gradient(180deg,#fff3f6 0%,#ffc4d0 50%,#ff97b0 100%);
  --s7-bg:linear-gradient(90deg,#24050a 0%,#550b15 24%,#8e131f 52%,#5e0c17 78%,#2a060b 100%);
  --s7-display:"Potta One","Poppins",system-ui,sans-serif;
  --s7-fab-x:20px;   /* corner red packet: distance from the left edge */
  --s7-fab-y:20px;   /* corner red packet: distance from the bottom edge */
  position:fixed;top:0;left:0;right:0;z-index:1030;
  font-family:"Poppins",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  line-height:1.2;-webkit-font-smoothing:antialiased;
}
#sd7[hidden]{display:none!important}
#sd7 *,#sd7 *::before,#sd7 *::after{box-sizing:border-box}
#sd7 button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;line-height:1.2}
/* font-family: the sitewide p{font-family:var(--body-font)} (assets/css/style.css)
   would set the card copy in Roboto instead of the strip's Poppins. */
#sd7 p{margin:0;font-family:inherit}
#sd7 i{font-style:normal}
#sd7 svg{display:block}
#sd7 :focus-visible{outline:2px solid var(--s7-gold);outline-offset:2px}
#sd7 .sd7-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#sd7 .sd7-sprite{position:absolute;width:0;height:0;overflow:hidden}

/* ---------- the strip ---------- */
#sd7 .sd7-bar{position:relative;z-index:3;height:var(--s7-h);overflow:hidden;background:var(--s7-bg);color:#fff;
  transition:height .4s cubic-bezier(.6,0,.2,1)}
/* lantern light on the left, soft pink glow behind the marquee */
#sd7 .sd7-bar::before{content:"";position:absolute;left:-30px;top:50%;width:230px;height:170px;transform:translateY(-50%);
  background:radial-gradient(closest-side,rgba(255,184,92,.34),rgba(255,184,92,0));pointer-events:none}
#sd7 .sd7-bar::after{content:"";position:absolute;left:22%;right:22%;top:30%;height:150px;
  background:radial-gradient(closest-side,rgba(255,96,124,.32),rgba(255,96,124,0));pointer-events:none}
.sd7-shut #sd7 .sd7-bar{height:0;visibility:hidden;transition:height .4s cubic-bezier(.6,0,.2,1),visibility 0s .4s}
html:not(.sd7-ready) #sd7 .sd7-bar{transition:none}

/* gold-trimmed scalloped valance hanging over your header */
#sd7 .sd7-trim,#sd7 .sd7-valance{position:absolute;z-index:3;left:0;right:0;top:100%;pointer-events:none;transition:opacity .3s}
#sd7 .sd7-trim{height:10px;background:linear-gradient(90deg,#b67b1d,#ffd36b 25%,#fff0b8 50%,#ffd36b 75%,#b67b1d);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24V1A12 7 0 0 1 0 1Z'/%3E%3C/svg%3E") 0 0/24px 10px repeat-x;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24V1A12 7 0 0 1 0 1Z'/%3E%3C/svg%3E") 0 0/24px 10px repeat-x}
#sd7 .sd7-valance{height:8px;background:var(--s7-bg);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24V1A12 7 0 0 1 0 1Z'/%3E%3C/svg%3E") 0 0/24px 8px repeat-x;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M0 0H24V1A12 7 0 0 1 0 1Z'/%3E%3C/svg%3E") 0 0/24px 8px repeat-x}
.sd7-shut #sd7 .sd7-trim,.sd7-shut #sd7 .sd7-valance{opacity:0}

/* lantern glow: hover the strip to find gold clouds and hearts */
#sd7 .sd7-beam,#sd7 .sd7-reveal{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .35s}
#sd7 .sd7-beam{background:radial-gradient(circle 130px at var(--mx,50%) var(--my,50%),rgba(255,206,130,.22),rgba(255,206,130,.07) 45%,rgba(255,206,130,0) 70%)}
#sd7 .sd7-reveal{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='56' viewBox='0 0 180 56'%3E%3Cg fill='none' stroke='%23ffd36b' stroke-width='1' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M15 37c-5 0-6.5-6-2-7.5 3-1 5.5 1.2 4.5 3.6-.8 1.8-3.6 1.6-3.6-.2'/%3E%3Cpath d='M17.5 31.5c1-6 9-8 12-3 2-5 10-5 12 0 4-1 8 2 7 6'/%3E%3Cpath d='M48.5 34.5c3 1 3.5 5.5-.5 6.5H14'/%3E%3Cpath d='M106 20c-4 0-5-4.6-1.2-5.6 2.2-.5 3.8 1 3 2.6'/%3E%3Cpath d='M107.5 16.5c1-4 7-6 9-2 2-4 8-3 9 1 3 0 5 2 4 5'/%3E%3Cpath d='M129.5 20.5c2 1 2 3.5-.5 4.5H104'/%3E%3C/g%3E%3Cg fill='%23ffe9a8'%3E%3Cpath d='M70 9Q70 14 75 14Q70 14 70 19Q70 14 65 14Q70 14 70 9Z'/%3E%3Cpath d='M152 34Q152 39 157 39Q152 39 152 44Q152 39 147 39Q152 39 152 34Z'/%3E%3Cpath d='M88 42Q88 45 91 45Q88 45 88 48Q88 45 85 45Q88 45 88 42Z'/%3E%3C/g%3E%3C/svg%3E") 0 0/180px 56px repeat-x;
  -webkit-mask-image:radial-gradient(circle 110px at var(--mx,50%) var(--my,50%),#000 35%,transparent 100%);
          mask-image:radial-gradient(circle 110px at var(--mx,50%) var(--my,50%),#000 35%,transparent 100%)}
@media (hover:hover) and (pointer:fine){
  #sd7 .sd7-bar:hover .sd7-beam,#sd7 .sd7-bar:hover .sd7-reveal{opacity:1}
}
#sd7 .sd7-heart{position:absolute;top:50%;width:20px;height:18px;color:#ff9db4;opacity:.65;transform:translateY(-50%)}
#sd7 .sd7-heart--sm{width:13px;height:12px}
#sd7 .sd7-1111{position:absolute;top:50%;transform:translateY(-50%) rotate(-8deg);font-family:var(--s7-display);font-size:20px;color:var(--s7-gold);opacity:.7}

/* scenery: lanterns + pagoda on the left, plum blossom branch on the right */
#sd7 .sd7-branch{position:absolute;z-index:1;right:0;top:0;height:100%;width:auto;color:#6a2a24;pointer-events:none}
#sd7 .sd7-petals{position:absolute;z-index:1;right:64px;top:0;width:1px;height:100%;pointer-events:none}
#sd7 .sd7-petals i{position:absolute;top:8px;left:0;width:7px;height:5px;border-radius:70% 0;background:#ffb1c4;opacity:0;
  animation:sd7-fall 9s linear infinite}
#sd7 .sd7-petals i:nth-child(2){left:24px;top:2px;background:#ffd0db;animation-duration:10s;animation-delay:3s}
#sd7 .sd7-petals i:nth-child(3){left:-12px;top:20px;animation-duration:8.5s;animation-delay:6s}
@keyframes sd7-fall{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:.95}70%{opacity:.85}100%{opacity:0;transform:translate(-170px,44px) rotate(340deg)}}

/* occasional paper-plane fly-by: why fly solo? */
#sd7 .sd7-planes{position:absolute;inset:0;z-index:4;pointer-events:none}
#sd7 .sd7-plane{position:absolute;top:0;left:0;width:26px;height:16px;visibility:hidden;filter:drop-shadow(0 0 4px rgba(255,200,120,.85))}
#sd7 .sd7-plane > svg{width:100%;height:100%}
#sd7 .sd7-plane--a{color:#fff6f7}
#sd7 .sd7-plane--b{width:22px;height:14px;color:var(--s7-gold)}
#sd7 .sd7-plane-love{position:absolute;left:23px;top:-10px;width:11px;height:10px;color:#ff8fab;opacity:0}
#sd7 .sd7-planes.sd7-go .sd7-plane{visibility:visible}
#sd7 .sd7-planes.sd7-go .sd7-plane--a{animation:sd7-fly-a 7s linear forwards}
#sd7 .sd7-planes.sd7-go .sd7-plane--b{animation:sd7-fly-b 7s linear forwards}
#sd7 .sd7-planes.sd7-go .sd7-plane-love{animation:sd7-love 7s linear forwards}
@keyframes sd7-fly-a{
  0%{transform:translate(-60px,28px) rotate(-8deg)} 25%{transform:translate(25vw,12px) rotate(-2deg)} 50%{transform:translate(50vw,18px) rotate(4deg)}
  75%{transform:translate(75vw,9px) rotate(-4deg)} 100%{transform:translate(calc(100vw + 60px),15px) rotate(-6deg)}}
@keyframes sd7-fly-b{
  0%{transform:translate(-300px,6px) rotate(8deg)} 30%{transform:translate(calc(30vw - 130px),30px) rotate(-6deg)}
  55%{transform:translate(calc(55vw - 32px),30px) rotate(2deg)} 75%{transform:translate(calc(75vw - 32px),22px) rotate(-4deg)}
  100%{transform:translate(calc(100vw + 28px),28px) rotate(-6deg)}}
@keyframes sd7-love{0%,54%{opacity:0;transform:translateY(4px) scale(.4)}62%{opacity:1;transform:translateY(-2px) scale(1.2)}70%{transform:none}88%{opacity:1}96%,100%{opacity:0;transform:translateY(-6px)}}

/* row */
#sd7 .sd7-row{position:relative;z-index:2;display:flex;align-items:center;gap:16px;height:var(--s7-h);max-width:1680px;margin:0 auto;padding:0 12px 0 0}

/* left scene + red packet button */
#sd7 .sd7-scene{position:relative;display:flex;align-items:center;height:100%;flex:0 0 auto;padding-left:84px}
#sd7 .sd7-scene-art{position:absolute;left:0;bottom:0;height:100%;width:auto;color:#1f0408;overflow:visible;pointer-events:none}
#sd7 .sd7-lan{transform-box:fill-box;transform-origin:50% 0;animation:sd7-sway 3.8s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(255,120,60,.7))}
#sd7 .sd7-lan--b{animation-duration:4.6s;animation-delay:-1.4s}
@keyframes sd7-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
#sd7 .sd7-env-btn{position:relative;display:flex;align-items:center;gap:8px;height:100%;padding:0 4px;border-radius:10px}
#sd7 .sd7-env{width:38px;height:47.5px;overflow:visible;filter:drop-shadow(0 0 6px rgba(255,170,80,.55));transition:transform .2s;
  animation:sd7-glow 2.6s ease-in-out infinite}
#sd7 .sd7-env-btn:hover .sd7-env{transform:rotate(-6deg) scale(1.06)}
#sd7 .sd7-env-flap{transform-box:fill-box;transform-origin:50% 0;transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
#sd7 .sd7-env-coin{transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
#sd7 .sd7-env-btn:hover .sd7-env-flap{transform:scaleY(.78)}
#sd7 .sd7-env-btn:hover .sd7-env-coin{transform:translateY(-3px)}
#sd7 .sd7-env-btn[aria-expanded="true"] .sd7-env-flap{transform:scaleY(-.24)}
#sd7 .sd7-env-btn[aria-expanded="true"] .sd7-env-coin{transform:translateY(-8px)}
#sd7 .sd7-env-label{font-family:var(--s7-display);font-size:17px;letter-spacing:.4px;word-spacing:-.15em;text-transform:uppercase;white-space:nowrap;padding:2px 2px 4px;
  background:var(--s7-goldg);-webkit-background-clip:text;background-clip:text;color:transparent}
#sd7 .sd7-shake .sd7-env{animation:sd7-wobble .6s}
#sd7 .sd7-shake .sd7-env-flap{animation:sd7-flapk .8s}
#sd7 .sd7-shake .sd7-env-coin{animation:sd7-coink .8s}
@keyframes sd7-glow{50%{filter:drop-shadow(0 0 11px rgba(255,200,100,.9))}}
@keyframes sd7-wobble{20%{transform:rotate(-14deg) scale(1.1)}40%{transform:rotate(10deg) scale(1.12)}60%{transform:rotate(-6deg)}80%{transform:rotate(3deg)}}
@keyframes sd7-flapk{30%,65%{transform:scaleY(-.24)}}
@keyframes sd7-coink{35%,65%{transform:translateY(-9px)}}

/* running marquee, "Why fly solo?" style */
#sd7 .sd7-mq{position:relative;flex:1 1 auto;min-width:0;height:100%;display:flex;align-items:center;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent);
          mask-image:linear-gradient(90deg,transparent,#000 22px,#000 calc(100% - 22px),transparent)}
#sd7 .sd7-mq-track{display:flex;width:max-content;animation:sd7-scroll 30s linear infinite}
#sd7 .sd7-mq:hover .sd7-mq-track{animation-play-state:paused}
#sd7 .sd7-mq-group{display:flex;align-items:center;flex:0 0 auto}
#sd7 .sd7-mq-i{display:inline-block;white-space:nowrap;font-family:var(--s7-display);font-weight:400;font-size:19px;letter-spacing:.5px;word-spacing:-.15em;
  text-transform:uppercase;line-height:1;padding:5px 0 6px;color:#fff;text-shadow:0 2px 0 rgba(40,0,6,.4)}
#sd7 .sd7-hot{display:inline-block;padding:0 2px 2px;background:var(--s7-pinkg);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;
  filter:drop-shadow(0 0 8px rgba(255,120,150,.45))}
#sd7 .sd7-big20{font-size:23px}
#sd7 .sd7-chip{display:inline-block;vertical-align:2px;margin-left:4px;padding:3px 10px;border:1.5px dashed var(--s7-gold);border-radius:7px;word-spacing:normal;
  font-family:"Poppins",system-ui,sans-serif;font-size:14px;font-weight:700;letter-spacing:1px;text-transform:none;text-shadow:none;color:var(--s7-gold);background:rgba(40,0,6,.35)}
#sd7 .sd7-sep{width:17px;height:24px;margin:0 22px;flex:0 0 auto;overflow:visible;filter:drop-shadow(0 0 5px rgba(255,140,70,.75))}
@keyframes sd7-scroll{to{transform:translateX(-50%)}}

/* countdown */
#sd7 .sd7-cd{display:flex;align-items:center;gap:8px;flex:0 0 auto;font-size:12.5px;font-weight:500;color:var(--s7-mist);white-space:nowrap}
#sd7 .sd7-cd-v{display:inline-flex;gap:6px;padding:6px 11px;border:1px solid rgba(255,211,107,.5);border-radius:8px;background:rgba(30,2,6,.45);color:#fff;font-size:13.5px}
#sd7 [data-sd7-cd]{font-variant-numeric:tabular-nums}
#sd7 [data-sd7-cd] b{font-weight:700}
#sd7 [data-sd7-cd] i{font-weight:500;color:var(--s7-gold);margin-left:1px}

/* gold "Claim My Bonus" pill with a shine sweep */
#sd7 .sd7-cta{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;height:38px;padding:0 18px 0 22px;overflow:hidden;
  border-radius:999px;background:linear-gradient(180deg,#ffe28a 0%,#f5b13d 100%);color:var(--s7-ink);font-weight:700;font-size:14.5px;
  text-decoration:none;white-space:nowrap;box-shadow:0 4px 14px rgba(255,170,60,.35),inset 0 1px 0 rgba(255,255,255,.55);
  transition:transform .15s,box-shadow .2s}
#sd7 .sd7-cta svg{position:relative;width:11px;height:11px}
#sd7 .sd7-cta:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(255,180,70,.6),inset 0 1px 0 rgba(255,255,255,.55);color:var(--s7-ink);text-decoration:none}
#sd7 .sd7-cta::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;pointer-events:none;
  background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.7),rgba(255,255,255,0));transform:skewX(-20deg)}
#sd7 .sd7-row .sd7-cta::after{animation:sd7-shine 5s 2s ease-in-out infinite}
#sd7 .sd7-cta:hover::after{animation:sd7-shine-once .8s ease-out}
@keyframes sd7-shine{0%{left:-60%}18%,100%{left:130%}}
@keyframes sd7-shine-once{from{left:-60%}to{left:130%}}

#sd7 .sd7-x{flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:#ffdfe4;transition:background .2s,color .2s}
#sd7 .sd7-x:hover{background:rgba(255,255,255,.12);color:#fff}
#sd7 .sd7-x svg{width:13px;height:13px}

/* ---------- red packet card: hangs on gold cords under the strip ---------- */
#sd7 .sd7-pop{position:absolute;top:calc(100% + 30px);left:24px;z-index:2;width:310px;max-width:calc(100vw - 20px);padding:0 18px 14px;
  border-radius:16px;background:linear-gradient(175deg,#d4202d 0%,#b01220 55%,#80091a 100%);border:1.5px solid rgba(255,211,107,.75);color:#fff;text-align:center;
  box-shadow:0 22px 50px rgba(30,0,6,.6),0 0 30px rgba(255,180,80,.2);transform-origin:50% -30px;will-change:transform}
#sd7 .sd7-pop[hidden],#sd7 .sd7-fab[hidden]{display:none}
#sd7 .sd7-pop:focus{outline:none}
#sd7 .sd7-flap{display:block;height:62px;margin:0 -18px;border-radius:14.5px 14.5px 50% 50% / 14.5px 14.5px 70% 70%;
  background:linear-gradient(180deg,#f04855 0%,#d72633 100%);border-bottom:1.5px solid rgba(255,211,107,.85);box-shadow:0 5px 12px rgba(70,0,10,.35)}
#sd7 .sd7-seal{position:relative;display:grid;place-items:center;width:46px;height:46px;margin:-25px auto 8px;border-radius:50%;
  background:radial-gradient(circle at 40% 35%,#fff3c4,#ffd36b 45%,#d9911f 100%);
  box-shadow:0 3px 8px rgba(70,0,10,.45),inset 0 0 0 2px rgba(255,255,255,.35),inset 0 0 0 4px rgba(185,125,28,.4);
  font-family:var(--s7-display);font-size:11px;color:#8f0f1d}
#sd7 .sd7-str{position:absolute;bottom:100%;width:2px;height:420px;margin-bottom:-2px;pointer-events:none;
  background:linear-gradient(to top,#ffd36b 0,#ffd36b 40px,rgba(255,211,107,.45))}
#sd7 .sd7-str--l{left:44px}
#sd7 .sd7-str--r{right:44px}
#sd7 .sd7-str::after{content:"";position:absolute;bottom:-4px;left:-3.5px;width:9px;height:9px;background:var(--s7-gold);transform:rotate(45deg);box-shadow:0 0 8px #ffa83d}
#sd7 .sd7-pop.sd7-pop--fab{position:fixed;top:auto;bottom:calc(var(--s7-fab-y) + 74px);left:var(--s7-fab-x);transform-origin:30px 100%}
#sd7 .sd7-pop--fab .sd7-str{display:none}
#sd7 .sd7-pop--fab::before{content:"";position:absolute;bottom:-8px;left:26px;width:13px;height:13px;background:#80091a;
  border-right:1.5px solid rgba(255,211,107,.75);border-bottom:1.5px solid rgba(255,211,107,.75);transform:rotate(45deg)}
#sd7 .sd7-pop.sd7-anim{animation:sd7-spring .55s cubic-bezier(.25,1.55,.45,1)}
@keyframes sd7-spring{from{opacity:0;transform:translateY(24px) scale(.6)}to{opacity:1;transform:none}}
#sd7 .sd7-pop-h{display:inline-block;font-family:var(--s7-display);font-size:23px;letter-spacing:.5px;word-spacing:-.15em;text-transform:uppercase;line-height:1.15;margin:0 0 6px;padding:0 2px 3px;
  background:var(--s7-goldg);-webkit-background-clip:text;background-clip:text;color:transparent}
#sd7 .sd7-pop-t{font-size:14px;line-height:1.5;color:#ffe3e7}
#sd7 .sd7-pop-t b{color:var(--s7-gold);font-weight:700}
#sd7 .sd7-code{display:flex;align-items:stretch;margin:14px 0 10px;border:1.5px dashed rgba(255,211,107,.85);border-radius:10px;overflow:hidden;background:rgba(60,0,10,.35)}
#sd7 .sd7-code-v{flex:1;display:flex;align-items:center;justify-content:center;padding:0 12px;font-weight:700;font-size:18px;letter-spacing:2px;color:var(--s7-gold)}
#sd7 .sd7-copy{padding:10px 14px;background:rgba(255,211,107,.18);font-size:13px;font-weight:600;color:var(--s7-gold);transition:background .2s}
#sd7 .sd7-copy:hover{background:rgba(255,211,107,.3)}
#sd7 .sd7-pop-cd{font-size:12.5px;color:#ffc9d0;margin:10px 0 12px}
#sd7 .sd7-pop-cd [data-sd7-cd]{display:inline-flex;gap:5px;color:#fff;margin-left:4px}
#sd7 .sd7-pop .sd7-cta{display:flex;width:100%;height:42px;font-size:15px}
#sd7 .sd7-fine{margin-top:12px;font-size:11.5px;line-height:1.5;color:#ffbcc6}
#sd7 .sd7-reopen{display:none;margin-left:4px;text-decoration:underline;color:var(--s7-mist);font-size:11.5px}
.sd7-shut #sd7 .sd7-reopen{display:inline}
#sd7 .sd7-pop-x{position:absolute;top:8px;right:8px;z-index:1;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#ffe0e5}
#sd7 .sd7-pop-x:hover{background:rgba(255,255,255,.14);color:#fff}
#sd7 .sd7-pop-x svg{width:12px;height:12px}

/* ---------- corner red packet (appears once the strip is gone) ---------- */
#sd7 .sd7-fab{position:fixed;left:var(--s7-fab-x);bottom:var(--s7-fab-y);z-index:4;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 50% 38%,#5c0b14,#1f0307 74%);
  box-shadow:0 8px 24px rgba(40,0,6,.5),0 0 0 2px rgba(255,211,107,.8);animation:sd7-fab-in .5s cubic-bezier(.2,1.5,.4,1)}
#sd7 .sd7-fab svg{width:33px;height:41px;overflow:visible;filter:drop-shadow(0 0 5px rgba(255,190,90,.55));animation:sd7-bob 3s ease-in-out infinite}
#sd7 .sd7-fab-tag{position:absolute;top:-6px;right:-12px;padding:4px 7px;border-radius:999px;background:linear-gradient(180deg,#ffe28a,#f5b13d);
  color:var(--s7-ink);font-size:11px;font-weight:700;line-height:1;white-space:nowrap}
@keyframes sd7-bob{50%{transform:translateY(-3px) rotate(4deg)}}
@keyframes sd7-fab-in{from{transform:scale(0) rotate(-90deg)}to{transform:none}}

/* pause the ambient animations while the strip is off screen or closed */
#sd7.sd7-idle .sd7-lan,#sd7.sd7-idle .sd7-petals i,#sd7.sd7-idle .sd7-row .sd7-env,
#sd7.sd7-idle .sd7-row .sd7-cta::after,#sd7.sd7-idle .sd7-mq-track{animation-play-state:paused}

/* confetti burst: gold coins, hearts, sparkles (lives on <body>) */
.sd7-candy{position:fixed;z-index:99999;pointer-events:none;width:10px;height:10px;margin:-5px 0 0 -5px;will-change:transform,opacity}
.sd7-candy--0{border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3c4,#ffd36b 45%,#d9911f)}
.sd7-candy--0::after{content:"";position:absolute;left:3.3px;top:3.3px;width:3.4px;height:3.4px;background:#8f0f1d}
.sd7-candy--1{width:11px;height:10px;background:#ff8fab;
  clip-path:path("M5.5 10L1.2 5.7C-.5 4-.3 1.2 1.9.4 3.3-.1 4.7.5 5.5 1.7 6.3.5 7.7-.1 9.1.4 11.3 1.2 11.5 4 9.8 5.7Z")}
.sd7-candy--2{width:12px;height:12px;background:#ffe9a8;clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}

/* ---------- responsive ---------- */
@media (max-width:1280px){#sd7 .sd7-env-label{display:none}}
@media (max-width:1100px){#sd7 .sd7-cd-l{display:none}}
@media (max-width:900px){#sd7 .sd7-cd,#sd7 .sd7-branch,#sd7 .sd7-petals{display:none}}
@media (max-width:640px){
  #sd7{--s7-h:50px;--s7-fab-x:14px;--s7-fab-y:14px}
  #sd7 .sd7-scene{padding-left:0}
  #sd7 .sd7-scene-art{display:none}
  #sd7 .sd7-row{gap:8px;padding:0 6px 0 4px}
  #sd7 .sd7-env{width:33px;height:41px}
  #sd7 .sd7-mq-i{font-size:16px}
  #sd7 .sd7-big20{font-size:19px}
  #sd7 .sd7-chip{font-size:12.5px;padding:2px 8px}
  #sd7 .sd7-sep{margin:0 14px}
  #sd7 .sd7-row .sd7-cta{height:32px;padding:0 12px 0 14px;font-size:13px}
  #sd7 .sd7-cta-more{display:none}
  #sd7 .sd7-x{width:26px;height:26px}
  #sd7 .sd7-pop{left:8px;width:calc(100vw - 16px);max-width:330px}
  #sd7 .sd7-pop.sd7-pop--fab{left:calc(var(--s7-fab-x) - 2px);bottom:calc(var(--s7-fab-y) + 72px)}
  #sd7 .sd7-fab{width:56px;height:56px}
}
@media (prefers-reduced-motion:reduce){
  #sd7 .sd7-mq-track,#sd7 .sd7-env,#sd7 .sd7-lan,#sd7 .sd7-fab svg,#sd7 .sd7-pop,#sd7 .sd7-fab,#sd7 .sd7-cta::after{animation:none!important}
  #sd7 .sd7-planes,#sd7 .sd7-petals{display:none}
  #sd7 .sd7-bar{transition:none}
}

/* ---------- 2. making room for a fixed bar ----------
   Exactly the Diwali strip's rules (assets/diwali-strip/style.css section 2
   has the long version): --sd7-bar-h is the bar's height while open, 0 once
   closed, and every rule is gated on html.sd7-on, which strip.php's boot
   script sets before the first paint. Each header behaviour gets the offset
   where it already positions itself (CLAUDE.md §9):
     classic pages   pad <body>; the sticky bar (past 500px) sits under it
     CPA Goal, offers  padding <body> is all they need
     ad-format pages the room is made inside #smooth-content (a ::before the
                     smoother measures) and the docked header sits under it
   Only the bar is reserved: the gold valance hangs 10px over the top of the
   header, as the handoff draws it, and lets clicks through. */
html.sd7-on{--sd7-bar-h:56px}
@media (max-width:640px){html.sd7-on{--sd7-bar-h:50px}}
html.sd7-on.sd7-shut{--sd7-bar-h:0px}

html.sd7-on body:not(.text-ads-body){padding-top:var(--sd7-bar-h)}
html.sd7-on .sticky-wrapper.sticky{top:var(--sd7-bar-h)}
html.sd7-on #smooth-content::before{content:"";display:block;height:var(--sd7-bar-h)}
html.sd7-on .th-header.ta-header-dock{top:var(--sd7-bar-h)}

html.sd7-ready body:not(.text-ads-body){transition:padding-top .4s cubic-bezier(.6,0,.2,1)}
html.sd7-ready .sticky-wrapper.sticky{transition:top .4s cubic-bezier(.6,0,.2,1)}
html.sd7-ready #smooth-content::before{transition:height .4s cubic-bezier(.6,0,.2,1)}
html.sd7-ready .th-header.ta-header-dock{transition:transform 450ms var(--ease-out,ease),top .4s cubic-bezier(.6,0,.2,1)}

/* The offers page IS the offer, and its countdown tab already owns the
   bottom-left corner the closed-bar red packet would take. */
.offers-body #sd7 .sd7-fab{display:none}

@media (prefers-reduced-motion:reduce){
  html.sd7-ready body:not(.text-ads-body),html.sd7-ready .sticky-wrapper.sticky,html.sd7-ready #smooth-content::before{transition:none}
}
