/* Watty chat widget. Uses the site's accent colour; sits below the consent banner (z-index 50) and lifts above it when shown. */
#watty-root{--w-bottom:18px;position:fixed;right:16px;bottom:var(--w-bottom);z-index:40;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1d2530}
#watty-root *{box-sizing:border-box}
#watty-root[hidden]{display:none}
.watty-fab{display:flex;align-items:center;gap:8px;background:#a85408;color:#fff;border:0;border-radius:999px;padding:11px 18px 11px 14px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 4px 16px rgba(0,0,0,.25)}
.watty-fab:hover{background:#a85408}
.watty-fab:focus-visible,.watty-x:focus-visible,.watty-chip:focus-visible,.watty-send:focus-visible,.watty-in:focus-visible{outline:3px solid #1d63d6;outline-offset:2px}
.watty-bulb{display:inline-block;flex:none;width:34px;height:34px;border-radius:50%;background:#fffdf3;box-shadow:0 0 0 2px #ffe58a,0 0 10px rgba(255,217,61,.7);padding:3px;line-height:0}
.watty-bulb-head{width:40px;height:40px}
.watty-svg{display:block;overflow:visible}
.watty-fab:hover .watty-svg,.watty-fab:focus-visible .watty-svg{animation:watty-bob .6s ease-in-out 2}
@keyframes watty-bob{0%,100%{transform:rotate(0)}30%{transform:rotate(-8deg)}70%{transform:rotate(8deg)}}
.watty-panel{position:absolute;right:0;bottom:56px;width:min(380px,calc(100vw - 32px));max-height:min(560px,calc(100vh - var(--w-bottom) - 90px));display:flex;flex-direction:column;background:#fff;border:1px solid #dfe3ea;border-radius:14px;box-shadow:0 10px 36px rgba(0,0,0,.28);overflow:hidden}
.watty-panel[hidden]{display:none}
.watty-head{display:flex;align-items:center;gap:10px;background:#a85408;color:#fff;padding:10px 12px}
.watty-title{flex:1;min-width:0;font-weight:800;line-height:1.2}
.watty-title small{display:block;font-weight:400;opacity:.92;font-size:.78rem}
.watty-x{background:transparent;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:2px 8px;border-radius:6px}
.watty-x:hover{background:rgba(255,255,255,.2)}
.watty-note{background:#fff4d6;border-bottom:1px solid #e8c766;color:#4a3a00;font-size:.78rem;padding:6px 12px;line-height:1.35}
.watty-log{flex:1;overflow-y:auto;padding:12px;background:#f6f7f9;min-height:140px;display:flex;flex-direction:column;gap:8px}
.watty-msg{max-width:92%;padding:8px 11px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem}
.watty-msg.bot{background:#fff;border:1px solid #dfe3ea;align-self:flex-start;border-bottom-left-radius:4px}
.watty-msg.me{background:#a85408;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.watty-msg.err{background:#fdecec;border:1px solid #f0a8a8}
.watty-msg a{color:inherit;font-weight:700}
.watty-msg.bot a{color:#a85408}
.watty-chips{display:flex;flex-wrap:wrap;gap:6px;padding-top:2px}
.watty-chip{background:#fff;border:1px solid #d9730d;color:#a85408;border-radius:999px;padding:5px 10px;font:inherit;font-size:.8rem;cursor:pointer;text-align:left}
.watty-chip:hover{background:#fff4e8}
.watty-form{display:flex;gap:6px;padding:8px;border-top:1px solid #dfe3ea;background:#fff}
.watty-in{flex:1;min-width:0;resize:none;border:1px solid #b9c2cf;border-radius:8px;padding:8px 10px;font:inherit;font-size:.92rem;max-height:96px}
.watty-send{background:#a85408;color:#fff;border:0;border-radius:8px;padding:0 14px;font:inherit;font-weight:700;cursor:pointer}
.watty-send:disabled{opacity:.5;cursor:default}
.watty-foot{display:flex;justify-content:space-between;gap:8px;padding:4px 12px 8px;background:#fff;font-size:.72rem;color:#5a6676}
.watty-dots{display:inline-flex;gap:3px;align-items:center;height:1em}
.watty-dots i{width:6px;height:6px;border-radius:50%;background:#8793a3;animation:watty-b 1s infinite ease-in-out}
.watty-dots i:nth-child(2){animation-delay:.15s}.watty-dots i:nth-child(3){animation-delay:.3s}
@keyframes watty-b{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.watty-dots i{animation:none;opacity:.6}.watty-fab:hover .watty-svg,.watty-fab:focus-visible .watty-svg{animation:none}}
@media (max-width:520px){#watty-root{right:10px}.watty-fab span.watty-label{display:none}.watty-fab{padding:7px}.watty-panel{position:fixed;right:10px;left:10px;width:auto;bottom:calc(var(--w-bottom) + 56px)}}
@media print{#watty-root{display:none!important}}
