/* The chat window (public/chat.js), on the website and in the app. Everything sits under .abd-chat and sets what it
   needs itself, so neither page's own styles reach in and nothing here reaches out. */
.abd-chat{
  --abd-ink:#17160f;--abd-muted:#6b685c;--abd-line:rgba(26,23,14,.12);--abd-paper:#fff;--abd-soft:#f6f3ec;
  --abd-dark:#1f1b13;--abd-gold:#e9c44b;--abd-gold-hover:#f0cf62;
  position:fixed;right:20px;bottom:20px;z-index:2147483000;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:var(--abd-ink);text-align:left;
}
.abd-chat *,.abd-chat *::before,.abd-chat *::after{box-sizing:border-box}
.abd-chat [hidden]{display:none!important}
.abd-chat-launcher{
  position:relative;display:grid;place-items:center;width:56px;height:56px;margin:0;padding:0;border:0;border-radius:50%;
  background:var(--abd-dark);color:#fff;cursor:pointer;box-shadow:0 10px 30px rgba(23,22,15,.26);transition:transform .2s ease,box-shadow .2s ease;
}
.abd-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(23,22,15,.3)}
.abd-chat-launcher svg{width:25px;height:25px}
.abd-chat-dot{position:absolute;top:3px;right:3px;width:13px;height:13px;border-radius:50%;background:var(--abd-gold);border:2px solid var(--abd-dark)}
.abd-chat-panel{
  position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;overflow:hidden;
  width:min(370px,calc(100vw - 40px));height:min(540px,calc(100vh - 120px));
  background:var(--abd-paper);border:1px solid var(--abd-line);border-radius:18px;box-shadow:0 24px 70px rgba(23,22,15,.22);
}
.abd-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 16px 15px 18px;background:var(--abd-dark);color:#fff}
.abd-chat-heading{flex:1;min-width:0}
.abd-chat-faces{display:flex;flex:none}
.abd-chat-face{display:block;width:34px;height:34px;margin-left:-9px;border:2px solid var(--abd-dark);border-radius:50%;object-fit:cover;background:#3a342a}
.abd-chat-face:first-child{margin-left:0}
.abd-chat-head strong{display:block;font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.abd-chat-head span{display:block;margin-top:1px;font-size:12.5px;color:rgba(255,255,255,.72)}
.abd-chat-close{display:grid;place-items:center;flex:none;width:30px;height:30px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:#fff;cursor:pointer;opacity:.8}
.abd-chat-close:hover{opacity:1;background:rgba(255,255,255,.12)}
.abd-chat-close svg{width:18px;height:18px}
.abd-chat-log{flex:1;display:flex;flex-direction:column;gap:10px;margin:0;padding:16px;overflow-y:auto;list-style:none;background:var(--abd-soft)}
.abd-chat-msg{display:flex;flex-direction:column;gap:3px;max-width:85%;margin:0;padding:0}
.abd-chat-msg::before{content:none}
.abd-chat-msg p{margin:0;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.abd-chat-msg.is-team{align-self:flex-start;flex-direction:row;align-items:flex-end;gap:8px;max-width:90%}
.abd-chat-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.abd-chat-avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;object-fit:cover;background:var(--abd-dark);color:#fff}
.abd-chat-avatar svg{width:22px;height:22px}
.abd-chat-msg.is-follow{margin-top:-6px}
.abd-chat-msg.is-follow .abd-chat-avatar{visibility:hidden}
.abd-chat-msg.is-follow .abd-chat-author{display:none}
.abd-chat-msg.is-team p{background:var(--abd-paper);color:var(--abd-ink);border:1px solid var(--abd-line);border-bottom-left-radius:4px}
.abd-chat-msg.is-you{align-self:flex-end}
.abd-chat-msg.is-you p{background:var(--abd-dark);color:#fff;border-bottom-right-radius:4px}
.abd-chat-msg.is-pending{opacity:.55}
.abd-chat-author{padding-left:4px;font-size:11.5px;color:var(--abd-muted)}
.abd-chat-note{margin:0;padding:14px 16px;border-top:1px solid var(--abd-line);font-size:13.5px;color:var(--abd-ink)}
.abd-chat-note a{color:inherit;text-decoration:underline}
.abd-chat-form{display:grid;gap:8px;margin:0;padding:12px;border-top:1px solid var(--abd-line);background:var(--abd-paper)}
.abd-chat-who{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.abd-chat input,.abd-chat textarea{
  display:block;width:100%;min-width:0;margin:0;padding:9px 11px;border:1px solid var(--abd-line);border-radius:10px;
  background:var(--abd-paper);color:var(--abd-ink);font:inherit;font-size:14px;line-height:1.45;box-shadow:none;outline:none;
}
.abd-chat input::placeholder,.abd-chat textarea::placeholder{color:var(--abd-muted);opacity:1}
.abd-chat input:focus,.abd-chat textarea:focus{border-color:var(--abd-ink)}
.abd-chat-compose{display:flex;align-items:flex-end;gap:8px}
.abd-chat textarea{min-height:42px;max-height:140px;resize:none}
.abd-chat-send{display:grid;place-items:center;flex:none;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:var(--abd-gold);color:var(--abd-ink);cursor:pointer}
.abd-chat-send:hover{background:var(--abd-gold-hover)}
.abd-chat-send:disabled{opacity:.5;cursor:default}
.abd-chat-send svg{width:18px;height:18px}
.abd-chat-error{margin:0;font-size:12.5px;color:#a23a2c}
.abd-chat-privacy{justify-self:start;font-size:11.5px;color:var(--abd-muted);text-decoration:underline;text-underline-offset:2px}
.abd-chat-privacy:hover{color:var(--abd-ink)}
.abd-chat :focus-visible{outline:2px solid var(--abd-gold);outline-offset:2px}
@media (max-width:520px){
  .abd-chat{right:14px;bottom:14px}
  .abd-chat-panel{position:fixed;inset:auto 0 0 0;width:100%;height:min(88vh,640px);border-radius:18px 18px 0 0}
  .abd-chat.is-open .abd-chat-launcher{display:none}
  .abd-chat-who{grid-template-columns:1fr}
}
@media print{.abd-chat{display:none}}
@media (prefers-reduced-motion:reduce){.abd-chat-launcher{transition:none}.abd-chat-launcher:hover{transform:none}}
