#ca-chat-btn{display:flex;align-items:center;justify-content:center;padding:0;position:fixed;right:18px;bottom:18px;z-index:99998;width:58px;height:58px;border-radius:50%;border:0;background:#FFC107;color:#2b2300;font-size:26px;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
#ca-chat-btn:hover{transform:scale(1.06)}
#ca-chat{position:fixed;right:18px;bottom:88px;z-index:99999;width:360px;max-width:calc(100vw - 24px);height:520px;max-height:calc(100vh - 110px);display:none;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.28);overflow:hidden;font:14px/1.45 -apple-system,Segoe UI,Roboto,sans-serif;color:#222}
#ca-chat.open{display:flex}
#ca-chat header{background:#FFC107;color:#2b2300;padding:12px 14px;display:flex;justify-content:space-between;align-items:center}
#ca-chat header b{display:block;font-size:15px}#ca-chat header small{opacity:.85;font-size:11px}
#ca-chat header small a{color:inherit;text-decoration:underline}
#ca-chat header button{background:none;border:0;color:#2b2300;font-size:22px;cursor:pointer}
#ca-chat .log{flex:1;overflow-y:auto;padding:12px;background:#f6f6f6}
#ca-chat .m{max-width:86%;margin:0 0 8px;padding:8px 11px;border-radius:12px;white-space:pre-wrap;word-wrap:break-word}
#ca-chat .m.a{background:#fff;border:1px solid #e3e3e3}
#ca-chat .m.u{background:#FFC107;color:#2b2300;margin-left:auto}
#ca-chat .m a{color:inherit;text-decoration:underline;font-weight:600}
#ca-chat form{display:flex;border-top:1px solid #ddd;background:#fff}
#ca-chat input{flex:1;border:0;padding:12px;font-size:14px;outline:0;min-width:0}
#ca-chat form button{border:0;background:#FFC107;color:#2b2300;padding:0 16px;font-weight:600;cursor:pointer}
#ca-chat form button:disabled{opacity:.5}
@media(max-width:480px){#ca-chat{right:8px;bottom:80px;height:70vh}}
