/* =====================================================================
   FILE:  /css/tax-assistant.css
   WHAT:  Styles for the upgraded "Ask a tax question" chat assistant
          (answer cards, link chips, specialist hand-off box, typing dots,
          the attention bubble next to the chat button).
   WHY:   Before, these styles were injected by tax-assistant.js at runtime.
          They now live in this file so the browser can cache them and the
          developer can edit them like any other stylesheet.
   WHERE: Loaded on EVERY page that shows the chat button (all pages),
          in <head>, AFTER /css/style.css.
   HOW:   Every selector starts with .chat or .ta- , so nothing outside the
          chat widget is affected. Colours use the site variables from
          style.css (--navy, --orange, --peach ...) with fallbacks.
   ===================================================================== */
.chat .ta-note{font-size:11.5px;color:var(--muted,#56636f);background:#fff;border-bottom:1px solid var(--line,#e2e6ea);padding:8px 16px;line-height:1.45}
.chat .msg ul{margin:6px 0 2px;padding-left:18px}
.chat .msg li{margin:2px 0}
.chat .msg p{margin:0 0 6px}
.chat .msg p:last-child{margin:0}
.chat .ta-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chat .ta-links a{font:600 12.5px/1 var(--body,sans-serif);padding:7px 10px;border-radius:99px;background:var(--peach,#fdf0e9);color:var(--orange-dk,#c94c19);text-decoration:none}
.chat .ta-links a:hover{background:#fbe0d1}
.chat .ta-human{align-self:stretch;background:var(--navy,#172533);color:#dfe6ec;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.45;display:grid;gap:10px}
.chat .ta-human b{color:#fff}
.chat .ta-human button{justify-self:start;border:0;border-radius:6px;background:var(--orange,#e9612a);color:#fff;font:600 14px var(--body,sans-serif);padding:10px 14px;cursor:pointer}
.chat .ta-human button:hover{background:var(--orange-dk,#c94c19)}
.chat .ta-typing{display:inline-flex;gap:4px}
.chat .ta-typing i{width:6px;height:6px;border-radius:50%;background:#9aa4ae;animation:taDot 1s infinite}
.chat .ta-typing i:nth-child(2){animation-delay:.15s}
.chat .ta-typing i:nth-child(3){animation-delay:.3s}
@keyframes taDot{0%,80%,100%{opacity:.3}
40%{opacity:1}
}
.chat .ta-reset{background:none;border:0;color:#b9c5d0;font-size:12px;cursor:pointer;padding:4px 6px;margin-left:auto}
.chat .ta-reset:hover{color:#fff}
.ta-teaser{position:fixed;right:20px;z-index:39;width:min(300px,calc(100vw - 40px));background:#fff;color:var(--ink,#1b2530);border-radius:14px;padding:14px 38px 14px 16px;box-shadow:0 22px 50px -16px rgba(15,26,37,.45),0 0 0 1px var(--line,#e2e6ea);font:15px/1.45 var(--body,sans-serif);animation:taIn .35s ease;cursor:pointer}
.ta-teaser::after{content:"";position:absolute;right:34px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 4px -2px rgba(15,26,37,.12)}
.ta-teaser b{display:block;color:var(--navy,#172533);font-size:15.5px;margin-bottom:2px}
.ta-teaser .ta-go{display:block;margin-top:8px;color:var(--orange-dk,#c94c19);font-weight:600}
.ta-teaser .ta-x{position:absolute;top:6px;right:6px;width:30px;height:30px;border:0;background:none;color:#8a96a3;font-size:20px;line-height:1;cursor:pointer;border-radius:6px}
.ta-teaser .ta-x:hover{background:var(--mist,#f4f6f8);color:var(--navy,#172533)}
.chat-fab .ta-badge{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#d92d20;color:#fff;font:700 12px/20px var(--body,sans-serif);text-align:center;box-shadow:0 0 0 2px #fff}
.chat-fab.ta-pulse{animation:taPulse 1.6s ease 3}
@keyframes taPulse{0%,100%{box-shadow:0 14px 30px -10px rgba(233,97,42,.6)}
50%{box-shadow:0 0 0 10px rgba(233,97,42,.18),0 14px 30px -10px rgba(233,97,42,.6)}
}
@keyframes taIn{from{opacity:0;transform:translateY(8px)}
to{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){.ta-teaser,.chat-fab.ta-pulse{animation:none}
}

/* Teaser on phones: shorter text and a smaller bubble so it never covers the page */
.ta-teaser .ta-short{display:none}
@media (max-width:480px){
.ta-teaser{width:min(230px,calc(100vw - 40px));padding:11px 34px 11px 14px;font-size:14px}
.ta-teaser b{font-size:14.5px}
.ta-teaser .ta-long{display:none}
.ta-teaser .ta-short{display:block}
.ta-teaser .ta-go{margin-top:4px}
}
