#ffwa-root{position:fixed;left:22px;right:auto;bottom:20px;z-index:2147483000;font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#102a47;box-sizing:border-box}
#ffwa-root *{box-sizing:border-box}
#ffwa-root .ffwa-toggle{display:flex;align-items:center;justify-content:center;margin-left:0;margin-right:auto;width:var(--ffwa-launcher-size,96px);height:var(--ffwa-launcher-size,96px);padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer;overflow:visible;transition:transform .16s ease,filter .16s ease}
#ffwa-root .ffwa-panel{width:min(370px,calc(100vw - 24px));height:min(530px,calc(100dvh - 105px));margin-bottom:12px;box-shadow:0 10px 38px #0003;border-radius:15px;overflow:hidden;background:white;border:1px solid #d7e1ee;display:flex;flex-direction:column}
#ffwa-root .ffwa-panel[hidden]{display:none}
#ffwa-root .ffwa-head{background:#092947;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px}
#ffwa-root .ffwa-head strong{font-size:16px}
#ffwa-root .ffwa-close{border:0;background:transparent;color:#fff;font-size:27px;line-height:1;cursor:pointer;padding:0 4px}
#ffwa-root .ffwa-messages{overflow:auto;padding:15px;flex:1;display:flex;align-items:flex-start;flex-direction:column;gap:12px;background:#f8faff}
#ffwa-root .ffwa-bubble{white-space:pre-line;overflow-wrap:anywhere;max-width:92%;font-size:14px;padding:11px 13px;border-radius:13px;background:white;border:1px solid #dce6f2;color:#183451}
#ffwa-root .ffwa-bubble.visitor{margin-left:auto;background:#e4f0ff;border:0}
#ffwa-root .ffwa-source{display:block;margin-top:9px;font-weight:700;color:#115cb4;text-decoration:underline}
#ffwa-root .ffwa-form{display:flex;gap:6px;padding:10px;border-top:1px solid #e2e8f0;margin:0;background:white}
#ffwa-root .ffwa-input{flex:1;min-width:0;font:inherit;font-size:14px;border:1px solid #b4c5d9;border-radius:9px;padding:10px 9px;background:#fff;color:#102a47}
#ffwa-root .ffwa-send{background:var(--ffwa-accent);border:0;border-radius:9px;color:white;padding:10px 14px;font-weight:bold;cursor:pointer}
#ffwa-root .ffwa-send:disabled{opacity:.55;cursor:wait}
#ffwa-root .ffwa-foot{font-size:11px;color:#586d82;text-align:center;padding:0 8px 8px;background:white}
@media(max-width:480px){#ffwa-root{left:10px;right:auto;bottom:10px}#ffwa-root .ffwa-panel{height:min(550px,calc(100dvh - 90px))}}

.ffwa-source{display:block;margin-top:10px;}

/* v1.0.22 — football launcher, scoped to the assistant only */
#ffwa-root .ffwa-toggle:hover{transform:scale(1.055);filter:brightness(1.05)}
#ffwa-root .ffwa-toggle:focus-visible{outline:3px solid #145ecc;outline-offset:4px}
#ffwa-root .ffwa-ball-image{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 5px 10px rgba(0,0,0,.23))}
@media(max-width:480px){#ffwa-root .ffwa-toggle{width:var(--ffwa-launcher-size-mobile,78px);height:var(--ffwa-launcher-size-mobile,78px)}}

/* v1.0.40 — subtle animated typing indicator (visual only) */
#ffwa-root .ffwa-bubble.ffwa-typing{min-width:64px;min-height:41px;display:flex;align-items:center;justify-content:center}
#ffwa-root .ffwa-typing-dots{display:inline-flex;align-items:center;justify-content:center;gap:5px;height:18px}
#ffwa-root .ffwa-typing-dot{display:block;width:7px;height:7px;border-radius:50%;background-color:#577797;animation:ffwa-dot-bounce 1.05s ease-in-out infinite}
#ffwa-root .ffwa-typing-dot:nth-child(2){animation-delay:.14s}
#ffwa-root .ffwa-typing-dot:nth-child(3){animation-delay:.28s}
@keyframes ffwa-dot-bounce{0%,60%,100%{transform:translateY(0);opacity:.65}30%{transform:translateY(-6px);opacity:1}}
@media (prefers-reduced-motion:reduce){#ffwa-root .ffwa-typing-dot{animation:none;opacity:.8}}

/* Keep source links visibly separate from the answer paragraph. */
#ffwa-root .ffwa-source{display:block;clear:both;margin-top:16px;padding-top:3px;line-height:1.45;}
#ffwa-root .ffwa-bubble{white-space:pre-line;}

/* v1.0.51 - optional human follow-up */
#ffwa-root .ffwa-followup{width:100%;background:#f0f6ff;border:1px solid #c5dbf7;border-radius:10px;padding:10px;font-size:13px}
#ffwa-root .ffwa-followup-open,#ffwa-root .ffwa-followup-send{border:0;border-radius:7px;padding:9px 12px;background:var(--ffwa-accent);color:#fff;cursor:pointer;font-weight:600}
#ffwa-root .ffwa-followup-form{display:flex;flex-direction:column;gap:9px}
#ffwa-root .ffwa-followup-form label{display:block}
#ffwa-root .ffwa-followup-email{display:block;width:100%;padding:8px;border:1px solid #aebfd3;border-radius:6px}
#ffwa-root .ffwa-followup-consent{display:flex!important;align-items:flex-start;gap:6px;line-height:1.4}
#ffwa-root .ffwa-followup-consent input{margin-top:3px;flex-shrink:0}
#ffwa-root .ffwa-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important}
#ffwa-root .ffwa-followup-status{font-size:12px}

/* v1.0.57: visible test-mode note and multiline replies */
#ffwa-root .ffwa-test-note{margin:0 0 10px;font-size:12px;font-weight:600;color:#324b72;line-height:1.45}
#ffwa-root .ffwa-bubble{white-space:pre-line}

/* v1.0.58 — compact, readable optional follow-up form */
#ffwa-root .ffwa-followup{padding:9px 10px}
#ffwa-root .ffwa-followup-form{gap:7px}
#ffwa-root .ffwa-followup-form label{line-height:1.4}
#ffwa-root .ffwa-followup-consent{gap:7px}
#ffwa-root .ffwa-followup-send{width:100%;padding:9px 12px}
@media(max-width:480px){
  #ffwa-root .ffwa-followup{padding:8px}
  #ffwa-root .ffwa-followup-form{gap:6px}
  #ffwa-root .ffwa-followup-email{padding:7px 8px}
  #ffwa-root .ffwa-followup-consent{line-height:1.3}
  #ffwa-root .ffwa-test-note{margin:0 0 6px}
}

/* v1.0.59 — mobile viewport/keyboard-safe chat positioning.
   The visualViewport variables track the space above the iOS keyboard. */
@media (max-width:767px){
  #ffwa-root.ffwa-root-open{
    position:fixed;
    top:var(--ffwa-visual-top,0px);
    bottom:auto;
    left:0;
    right:0;
    width:100%;
    height:var(--ffwa-visual-height,100dvh);
    padding:6px 10px 8px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    pointer-events:none;
  }
  #ffwa-root.ffwa-root-open .ffwa-toggle{
    flex:0 0 auto;
    margin:0;
    pointer-events:auto;
  }
  #ffwa-root.ffwa-root-open .ffwa-panel{
    order:1;
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    height:auto;
    width:100%;
    margin:0;
    pointer-events:auto;
  }
  #ffwa-root.ffwa-root-open .ffwa-messages{
    min-height:0;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
  #ffwa-root.ffwa-root-open .ffwa-form{flex:0 0 auto;}
  #ffwa-root.ffwa-root-open .ffwa-foot{flex:0 0 auto;}
  #ffwa-root .ffwa-input,#ffwa-root .ffwa-followup-email{font-size:16px;}
}
