/* ===========================================================================
   Restyles the Blastily chat launcher as the Blink lashes in a lavender haze,
   the same launcher thetaadvisory.ca's helper uses.

   Blastily builds its widget in script with inline styles, so every rule here
   is !important to beat them. Hooks, as of the widget on 2026-11-02:
     button.bb-l                         the launcher (bottom right)
     div[style*="2147483647"]            the open panel (the only z-index that high)
       > div:first-child > div[style*="absolute"]   the round badge on the panel's header
                                         (absolute-positioned; the optional "● status" line
                                         under the greeting is a plain div and is left alone)
   If Blastily renames these, the chat still works; it just falls back to its
   own purple bubble. The launcher's lashes and their blink are in assets/chat-lashes.svg;
   the panel badge uses the still copy, assets/chat-lashes-still.svg, so only one thing blinks.
   =========================================================================== */

button.bb-l{
  width:68px !important; height:68px !important;
  /* a Blastily status line turns its launcher into a wide pill: keep ours round */
  padding:0 !important; gap:0 !important; border-radius:50% !important;
  background:radial-gradient(circle at 50% 54%, #D4BEF4 0%, #E3D4F9 36%, #F3ECFC 60%, #FFFFFF 76%) !important;
  box-shadow:0 0 0 1px rgba(190,165,232,.55), 0 14px 28px -12px rgba(60,36,120,.45) !important;
  animation:none !important;
  transition:transform .2s cubic-bezier(.22,.94,.24,1.02);
  right:max(18px, env(safe-area-inset-right, 0px)) !important;
  bottom:max(18px, env(safe-area-inset-bottom, 0px)) !important;
}
button.bb-l:hover{transform:translateY(-2px)}
button.bb-l:focus-visible{outline:3px solid #302058; outline-offset:3px}
button.bb-l > *{display:none !important}
button.bb-l::before{
  content:''; position:relative; z-index:1; width:46px; height:32px;
  background:url(/assets/chat-lashes.svg) center / contain no-repeat;
}
/* the haze swells as the lashes lift, in step with the blink in the SVG */
button.bb-l::after{
  content:''; position:absolute; inset:14%; border-radius:50%; pointer-events:none; opacity:.8;
  background:radial-gradient(circle, rgba(196,168,240,.55), rgba(196,168,240,0) 70%);
  animation:bb-haze 9s cubic-bezier(.45,0,.25,1) 4s 6;
}
@keyframes bb-haze{0%,6%,40%,100%{transform:scale(1); opacity:.8} 18%,26%{transform:scale(1.18); opacity:1}}

/* the badge on the open panel's header */
div[style*="2147483647"] > div:first-child > div[style*="absolute"]{
  background:radial-gradient(circle at 50% 54%, #D4BEF4 0%, #E3D4F9 36%, #F3ECFC 60%, #FFFFFF 76%) !important;
}
div[style*="2147483647"] > div:first-child > div[style*="absolute"] > *{display:none !important}
div[style*="2147483647"] > div:first-child > div[style*="absolute"]::before{
  content:''; width:42px; height:29px;
  background:url(/assets/chat-lashes-still.svg) center / contain no-repeat; /* still: only the launcher blinks */
}
