:root{--chat-dark:#1d2428;--chat-orange:#f59a23;--chat-red:#e53b3f;--chat-border:#d8dee3}
.ta-chat,.ta-chat *{box-sizing:border-box}
.ta-chat{position:fixed;right:22px;bottom:20px;z-index:99990;font-family:"Segoe UI",Tahoma,sans-serif;color:#273038}
.ta-chat [hidden]{display:none!important}
.ta-chat-toggle{display:flex;align-items:center;gap:13px;min-width:250px;justify-content:center;padding:14px 18px;border:0;border-radius:999px;background:var(--chat-dark);color:#fff;font:700 17px/1.2 inherit;box-shadow:0 12px 30px #0004;cursor:pointer}
.ta-chat-toggle:hover{background:#11171a}.ta-chat-badge{display:inline-grid;place-items:center;min-width:35px;height:35px;padding:0 8px;border-radius:999px;background:var(--chat-red);font-size:15px}
.ta-chat-panel{position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;width:min(390px,calc(100vw - 24px));height:min(570px,calc(100vh - 125px));height:min(570px,calc(100dvh - 125px));max-height:calc(100vh - 125px);overflow:hidden;border:1px solid #303a40;border-radius:20px;background:#f7f8f8;box-shadow:0 22px 55px #0006}
.ta-chat-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:15px 16px;background:var(--chat-dark);color:#fff}.ta-chat-header>div{display:flex;flex-direction:column;gap:2px}.ta-chat-header strong{font-size:17px}.ta-chat-header span{font-size:12px;color:#cad2d6}.ta-chat-header button{width:34px;height:34px;border:0;border-radius:50%;background:#303a40;color:#fff;font-size:25px;cursor:pointer}
.ta-chat-guest{flex:1;min-height:0;overflow:auto;padding:25px}.ta-chat-guest p{margin:0 0 18px;line-height:1.5}.ta-chat label{display:block;font-weight:650}.ta-chat input,.ta-chat textarea{display:block;width:100%;margin-top:7px;padding:11px;border:1px solid var(--chat-border);border-radius:10px;background:#fff;color:#222;font:inherit}.ta-chat button{font-family:inherit}
.ta-chat-guest button,.ta-chat-compose button{padding:11px 16px;border:0;border-radius:10px;background:var(--chat-orange);color:#fff;font-weight:750;cursor:pointer}.ta-chat-guest button{width:100%;margin-top:12px}
.ta-chat-member{flex:1;min-height:0;display:flex;flex-direction:column}.ta-chat-tools{display:flex;gap:10px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--chat-border);font-size:12px;color:#667178}.ta-chat-tools span{margin-right:auto}.ta-chat-tools a,.ta-chat-tools button{border:0;background:none;color:#a65300;text-decoration:underline;cursor:pointer;padding:0}
.ta-chat-history{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:#eef1f2}.ta-chat-messages{flex:1;min-height:0;overflow:auto;padding:13px;background:#eef1f2}.ta-chat-empty{text-align:center;color:#727c82;margin:30px 0}.ta-chat-load-older{flex:0 0 auto;margin:8px auto 0;padding:6px 11px;border:1px solid #c7d0d5;border-radius:999px;background:#fff;color:#526068;cursor:pointer}.ta-chat-new-messages{position:absolute;z-index:2;left:50%;bottom:12px;transform:translateX(-50%);padding:8px 13px;border:0;border-radius:999px;background:var(--chat-dark);color:#fff;font-weight:700;box-shadow:0 5px 15px #0004;cursor:pointer}
.ta-chat-message{margin:0 0 12px}.ta-chat-message.is-own{text-align:right}.ta-chat-message.is-own .ta-chat-message-head{justify-content:flex-end}.ta-chat-message-head{display:flex;gap:7px;align-items:baseline;margin:0 4px 4px;font-size:12px;color:#6c777d}.ta-chat-message-head strong{color:#263036;font-size:13px}.ta-chat-message-ip{color:#a34444;font-weight:650}.ta-chat-message-body{display:inline-block;max-width:92%;padding:9px 11px;border-radius:4px 14px 14px 14px;background:#fff;border:1px solid #dce1e3;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4;text-align:left}.ta-chat-message.is-own .ta-chat-message-body{background:#fff2df;border-radius:14px 4px 14px 14px}.ta-chat-message.is-pending{opacity:.65}.ta-chat-message.is-failed .ta-chat-message-body{border-color:#c33}.ta-chat-message.is-deleted .ta-chat-message-body{color:#778087;font-style:italic}.ta-chat-message-reply{display:block;margin-bottom:6px;padding:6px 8px;border-left:3px solid var(--chat-orange);border-radius:5px;background:#f4f5f5;color:#59656b;font-size:12px}.ta-chat-message-actions{display:flex;justify-content:flex-start;gap:8px;margin:4px 5px 0}.ta-chat-message.is-own .ta-chat-message-actions{justify-content:flex-end}.ta-chat-message-actions button{padding:0;border:0;background:none;color:#8a520d;font-size:11px;text-decoration:underline;cursor:pointer}.ta-chat-delivery{font-size:11px;color:#7b858a}
.ta-chat-muted{flex:0 0 auto;padding:9px 12px;background:#fff0f0;border-bottom:1px solid #e8b9b9;color:#8a2020;font-size:13px;font-weight:650}.ta-chat-reply-preview{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:8px 11px;background:#fff8ec;border-top:1px solid #ead3ad;font-size:12px}.ta-chat-reply-preview>div{display:grid;min-width:0;margin-right:auto}.ta-chat-reply-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ta-chat-reply-preview button{border:0;background:none;font-size:20px;cursor:pointer}.ta-chat-compose{flex:0 0 auto;display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;background:#fff;border-top:1px solid var(--chat-border)}.ta-chat-compose textarea{margin:0;resize:none}.ta-chat-compose button{align-self:stretch}.ta-chat-compose textarea:disabled,.ta-chat-compose button:disabled{opacity:.55;cursor:not-allowed}
.ta-chat-status{position:absolute;left:14px;right:14px;bottom:2px;margin:0;color:#9a4c00;font-size:12px;pointer-events:none}.ta-chat-check{display:flex!important;align-items:center;gap:8px;margin-top:12px;font-weight:500!important}.ta-chat-check input,.ta-chat-notify input{display:inline-block;width:auto;margin:0}.ta-chat-notify{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:7px 12px;margin:0;background:#fff8ec;border-bottom:1px solid var(--chat-border);font-size:12px;cursor:pointer}.ta-password-field{position:relative;display:block}.ta-password-field input{padding-right:48px!important}.ta-password-field .ta-password-toggle{position:absolute;right:5px;top:12px;width:36px;height:36px;margin:0;padding:0;border:0;background:transparent;color:#536068;font-size:19px;cursor:pointer}.ta-password-field .ta-password-toggle:hover{background:#f2f2f2;color:#a65300}
@media(max-width:520px){.ta-chat{right:12px;bottom:12px}.ta-chat-toggle{min-width:0;padding:13px 15px}.ta-chat-panel{right:0;bottom:66px;height:calc(100vh - 115px);height:calc(100dvh - 115px);max-height:calc(100vh - 115px)}}
