.k5chat[hidden],.k5chat-launcher[hidden]{display:none!important}.k5chat,.k5chat *{box-sizing:border-box}.k5chat{position:fixed;z-index:10000;right:24px;bottom:104px;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100dvh - 130px));min-height:320px;display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(130,146,209,.19);border-radius:20px;background:#111426;color:#f5f6ff;box-shadow:0 20px 70px #0009;text-align:left;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}.k5chat-head{height:74px;flex:none;display:flex;align-items:center;gap:12px;padding:14px 16px;background:#192440;border-bottom:1px solid #ffffff12}.k5chat-avatar,.k5chat-launcher{display:grid;place-items:center;background:linear-gradient(135deg,#773cff,#4d48e8 65%,#29c8d6);color:#fff;box-shadow:0 5px 20px #593ef477}.k5chat-avatar{width:42px;height:42px;border-radius:14px}.k5chat-avatar svg{width:22px;height:22px}.k5chat-title{flex:1;display:grid;gap:4px}.k5chat-title strong{font-size:16px;line-height:20px}.k5chat-title small{font-size:11px;color:#a8bed0}.k5chat-title i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#57df9b;margin-right:5px}.k5chat-close{border:0;background:#ffffff0b;color:#b1bbce;border-radius:12px;width:36px;height:36px;font-size:23px;cursor:pointer}.k5chat-body{flex:1;min-height:0;padding:18px 16px;overflow:auto;background:linear-gradient(150deg,#141729,#0e1222);scrollbar-width:thin}.k5chat-message{display:flex;margin-bottom:12px}.k5chat-message.visitor{justify-content:flex-end}.k5chat-bubble{max-width:85%;padding:12px 14px;border:1px solid #ffffff0f;border-radius:4px 16px 16px;background:#262a3b;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.k5chat-message.visitor .k5chat-bubble{background:#4147b7;border-radius:16px 4px 16px 16px}.k5chat-time{display:block;color:#aab3c9;text-align:right;font-size:10px;line-height:1;margin-top:8px}.k5chat-error{padding:0 15px;color:#ff9797;font-size:12px;margin:0}.k5chat-form{flex:none;display:flex;align-items:center;gap:10px;padding:13px 14px;background:#101528;border-top:1px solid #ffffff10}.k5chat-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.k5chat-form textarea{display:block;flex:1;resize:none;min-width:0;height:46px;padding:13px 15px;border:1px solid #5249ab;border-radius:15px;outline:none;background:#242a3b;color:white;font:14px/19px inherit}.k5chat-form textarea:focus{border-color:#8e83ff;box-shadow:0 0 0 3px #765dff25}.k5chat-form textarea::placeholder{color:#8f98ab}.k5chat-send{width:46px;height:46px;flex:none;display:grid;place-items:center;border:0;border-radius:15px;background:linear-gradient(135deg,#a641fb,#5449f2 65%,#2daeda);color:#fff;cursor:pointer}.k5chat-send:disabled{opacity:.5}.k5chat-send svg{width:22px;height:22px}.k5chat-launcher{position:fixed;z-index:9999;right:24px;bottom:22px;border:0;border-radius:50%;width:68px;height:68px;cursor:pointer}.k5chat-launcher svg{width:29px;height:29px}@media(max-width:600px){.k5chat{right:12px;bottom:88px;width:calc(100vw - 24px);height:min(620px,calc(100dvh - 110px));border-radius:18px}.k5chat-launcher{width:58px;height:58px;right:16px;bottom:16px}.k5chat-form{padding-bottom:max(13px,env(safe-area-inset-bottom))}}

.k5chat-form textarea{font-size:16px;line-height:20px}
