#inu-chat-root{
  --inu-chat-accent:#1c64f2;
  --inu-chat-accent-2:#0b4cc4;
  --inu-chat-bg:#ffffff;
  --inu-chat-surface:#f5f8ff;
  --inu-chat-text:#172033;
  --inu-chat-muted:#6b7280;
  --inu-chat-border:#e5eaf4;
  position:fixed;
  z-index:999999;
  bottom:22px;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--inu-chat-text)
}
#inu-chat-root.inu-chat-right{right:22px}
#inu-chat-root.inu-chat-left{left:22px}
#inu-chat-root *{box-sizing:border-box}

.inu-chat-launcher{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#fff,#f7faff);
  color:var(--inu-chat-text);
  padding:10px 16px 10px 10px;
  box-shadow:0 14px 45px rgba(15,40,95,.18);
  cursor:pointer;
  min-width:238px;
  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease;
}
.inu-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 52px rgba(15,40,95,.22)}
.inu-chat-launcher:focus-visible{outline:3px solid rgba(28,100,242,.22);outline-offset:2px}
.inu-chat-launcher-visual{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#eef5ff,#ffffff);box-shadow:inset 0 0 0 1px rgba(28,100,242,.08)}
.inu-chat-launcher-image{width:46px;height:46px;display:block;object-fit:contain}
.inu-chat-launcher-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.inu-chat-launcher-text strong{font-size:15px;font-weight:800}
.inu-chat-launcher-text small{font-size:12px;color:var(--inu-chat-muted);margin-top:3px}
.inu-chat-unread{position:absolute;top:-5px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;display:grid;place-items:center;border:2px solid #fff;font-weight:700}

.inu-chat-window{
  position:absolute;
  bottom:86px;
  width:min(400px,calc(100vw - 28px));
  height:min(690px,calc(100vh - 120px));
  background:var(--inu-chat-bg);
  border:1px solid var(--inu-chat-border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 28px 80px rgba(20,35,70,.25);
  display:flex;
  flex-direction:column
}
.inu-chat-right .inu-chat-window{right:0}
.inu-chat-left .inu-chat-window{left:0}
.inu-chat-window[hidden]{display:none}

.inu-chat-widget-header{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:74px;
  padding:10px 12px;
  background:linear-gradient(135deg,#0c56d8,#123f94);
  color:#fff
}
.inu-chat-avatar-wrap{position:relative;flex:0 0 auto}
.inu-chat-avatar-image{width:42px;height:42px;border-radius:13px;display:block;object-fit:contain;background:rgba(255,255,255,.14);padding:3px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.inu-chat-online-dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#22c55e}
.inu-chat-title-wrap{display:flex;flex-direction:column;min-width:0;flex:1;gap:3px}
.inu-chat-title-line{display:flex;align-items:center;gap:8px;min-width:0}
.inu-chat-title-wrap strong{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inu-chat-title-wrap small{opacity:.9;font-size:11px;line-height:1.25;margin:0}
.inu-test-badge{display:inline-flex;align-items:center;flex:0 0 auto;font-size:9px;line-height:1;letter-spacing:.06em;padding:4px 7px;border-radius:999px;background:#fbbf24;color:#482b00;font-weight:800;margin:0}
#inu-chat-root #inu-chat-close.inu-chat-icon-button{all:unset !important;box-sizing:border-box !important;width:34px !important;height:34px !important;min-width:34px !important;min-height:34px !important;max-width:34px !important;max-height:34px !important;flex:0 0 34px !important;display:grid !important;place-items:center !important;margin:0 !important;padding:0 !important;border:0 !important;border-radius:10px !important;background:rgba(255,255,255,.10) !important;color:#fff !important;cursor:pointer !important;box-shadow:none !important;transform:none !important;position:static !important;appearance:none !important;-webkit-appearance:none !important}
#inu-chat-root #inu-chat-close.inu-chat-icon-button::before,#inu-chat-root #inu-chat-close.inu-chat-icon-button::after{content:none !important;display:none !important}
#inu-chat-root #inu-chat-close.inu-chat-icon-button svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;pointer-events:none}
#inu-chat-root #inu-chat-close.inu-chat-icon-button:hover{background:rgba(255,255,255,.18) !important}
#inu-chat-root #inu-chat-close.inu-chat-icon-button:focus-visible{outline:2px solid rgba(255,255,255,.9) !important;outline-offset:2px !important}


.inu-chat-messages{flex:1;overflow:auto;padding:17px;background:var(--inu-chat-surface)}
.inu-message{display:flex;margin-bottom:12px}
.inu-message>div{max-width:86%;padding:11px 13px;border-radius:16px;background:#fff;border:1px solid #e7eaf0;box-shadow:0 3px 12px rgba(26,40,70,.05)}
.inu-message p{margin:3px 0 0;line-height:1.5}
.inu-message small{display:block;margin-top:6px;color:#8790a3;font-size:11px}
.inu-message b{font-size:11px;color:#44516a}
.inu-message-visitor{justify-content:flex-end}
.inu-message-visitor>div{background:linear-gradient(135deg,var(--inu-chat-accent),var(--inu-chat-accent-2));color:#fff;border-color:transparent}
.inu-message-visitor small{color:rgba(255,255,255,.78)}
.inu-message-system>div{max-width:100%;background:#eef4ff;border-color:#d9e6ff}

.inu-chat-footer-note{padding:0 16px 11px;color:#657089;font-size:12px;background:#fff}

.inu-chat-form{display:flex;align-items:flex-end;gap:10px;padding:12px 14px 14px;border-top:1px solid #e9edf4;background:#fff}
#inu-chat-root .inu-chat-form textarea{flex:1;resize:none !important;max-height:120px;border:1px solid #d9dfe9;border-radius:16px;padding:12px 14px;font:inherit;outline:none;box-shadow:none;min-height:48px;line-height:1.45;margin:0 !important;overflow-y:auto !important;scrollbar-width:none;-ms-overflow-style:none;appearance:none;-webkit-appearance:none;background-image:none !important}
#inu-chat-root .inu-chat-form textarea::-webkit-scrollbar{width:0 !important;height:0 !important;display:none !important}
#inu-chat-root .inu-chat-form textarea::-webkit-resizer{display:none !important}
#inu-chat-root .inu-chat-form textarea:focus{border-color:#7aa6f7;box-shadow:0 0 0 4px rgba(20,87,217,.08)}
.inu-chat-form button{margin:0 !important;width:48px;height:48px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--inu-chat-accent),var(--inu-chat-accent-2));color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 20px rgba(20,87,217,.25)}
.inu-chat-form button:hover{filter:brightness(1.03)}
.inu-chat-form button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}

@media (max-width: 600px){
  #inu-chat-root.inu-chat-right,#inu-chat-root.inu-chat-left{left:14px;right:14px;bottom:14px}
  .inu-chat-launcher{width:100%;min-width:0}
  .inu-chat-window{width:100%;height:min(78vh,700px);bottom:86px;left:0 !important;right:0 !important}
}

/* v0.3 AI + human handoff */
#inu-chat-root .inu-message-ai{justify-content:flex-start}
#inu-chat-root .inu-message-ai>div{background:#fff;border-color:#d9e6ff;box-shadow:0 3px 12px rgba(26,40,70,.05)}
#inu-chat-root .inu-message-ai b{color:#0f4fc4}
#inu-chat-root .inu-ai-typing p{display:flex;gap:5px;align-items:center;min-height:16px}
#inu-chat-root .inu-ai-typing p span{display:block;width:7px;height:7px;border-radius:50%;background:#7d8ba5;animation:inu-chat-bounce 1.15s infinite ease-in-out}
#inu-chat-root .inu-ai-typing p span:nth-child(2){animation-delay:.15s}
#inu-chat-root .inu-ai-typing p span:nth-child(3){animation-delay:.3s}
@keyframes inu-chat-bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-5px);opacity:1}}
#inu-chat-root .inu-chat-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px 10px;background:#fff;color:#657089;font-size:11px;line-height:1.35;border-top:1px solid #eef1f6}
#inu-chat-root .inu-chat-footer-actions span{flex:1;min-width:0}
#inu-chat-root .inu-chat-human-button{all:unset!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-height:30px!important;padding:6px 10px!important;border:1px solid #cbd9f4!important;border-radius:999px!important;background:#f5f8ff!important;color:#1457d9!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1.1!important;cursor:pointer!important;transition:.16s ease!important}
#inu-chat-root .inu-chat-human-button:hover{background:#eaf1ff!important;border-color:#9fbbef!important}
#inu-chat-root .inu-chat-human-button:disabled{opacity:.65!important;cursor:default!important}
@media(max-width:600px){#inu-chat-root .inu-chat-footer-actions{align-items:flex-start;flex-direction:column}#inu-chat-root .inu-chat-human-button{align-self:flex-start!important}}

/* v0.4 RAG citations */
#inu-chat-root .inu-message-sources{margin-top:9px;padding-top:8px;border-top:1px solid #e7edf8;display:flex;flex-direction:column;gap:5px}
#inu-chat-root .inu-message-sources>strong{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
#inu-chat-root .inu-message-sources a,#inu-chat-root .inu-message-sources span{font-size:11px;line-height:1.35;color:#1457d9;text-decoration:none;word-break:break-word}
#inu-chat-root .inu-message-sources a:hover{text-decoration:underline}

/* v0.4.6: when the chat window is open, hide the launcher so it does not occupy space. */
#inu-chat-root.is-open .inu-chat-launcher{display:none!important}
#inu-chat-root.is-open .inu-chat-window{bottom:0}
@media(max-width:600px){#inu-chat-root.is-open .inu-chat-window{bottom:0}}


/* v0.5 safe Markdown rendering */
.inu-message-content{margin-top:5px;line-height:1.55}
.inu-message-content p{margin:0 0 7px;line-height:1.55}
.inu-message-content p:last-child{margin-bottom:0}
.inu-message-content ul,.inu-message-content ol{margin:6px 0 8px 20px;padding:0}
.inu-message-content li{margin:3px 0;line-height:1.5}
.inu-message-content strong{font-weight:700}
.inu-message-content em{font-style:italic}
.inu-message-content code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;padding:1px 4px;border-radius:4px;background:rgba(15,23,42,.07)}
.inu-message-content a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.inu-message-content h3,.inu-message-content h4{font-size:14px;margin:7px 0 5px;line-height:1.4}
.inu-message-content blockquote{margin:7px 0;padding:6px 10px;border-left:3px solid rgba(30,64,175,.25);background:rgba(255,255,255,.45);border-radius:0 6px 6px 0}
.inu-md-gap{height:4px}
.inu-message-visitor .inu-message-content code{background:rgba(255,255,255,.14)}

/* v0.8 lead capture */
#inu-chat-root .inu-chat-conversation-ui{display:flex;flex:1;min-height:0;flex-direction:column}
#inu-chat-root .inu-chat-conversation-ui[hidden]{display:none!important}
#inu-chat-root .inu-chat-lead-panel{flex:1;min-height:0;overflow:auto;padding:18px;background:linear-gradient(180deg,#f8fbff 0%,#fff 48%)}
#inu-chat-root .inu-chat-lead-panel[hidden]{display:none!important}
#inu-chat-root .inu-chat-lead-form{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid #e5ebf5;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(28,58,105,.07)}
#inu-chat-root .inu-chat-lead-heading strong{display:block;font-size:16px;line-height:1.35;color:#17223b}
#inu-chat-root .inu-chat-lead-heading p{margin:6px 0 0;color:#647089;font-size:12.5px;line-height:1.5}
#inu-chat-root .inu-chat-field{display:flex;flex-direction:column;gap:6px;margin:0}
#inu-chat-root .inu-chat-field>span,#inu-chat-root .inu-chat-audience-field legend{font-size:12px;font-weight:700;color:#35415a}
#inu-chat-root .inu-chat-field input{box-sizing:border-box;width:100%;height:44px;margin:0;padding:0 12px;border:1px solid #d8e0ec;border-radius:12px;background:#fff;color:#17223b;font:inherit;font-size:13px;outline:none;box-shadow:none}
#inu-chat-root .inu-chat-field input:focus{border-color:#6d9cf1;box-shadow:0 0 0 3px rgba(20,87,217,.08)}
#inu-chat-root .inu-chat-audience-field{border:0;padding:0;margin:0;min-width:0}
#inu-chat-root .inu-chat-audience-field legend{padding:0 0 7px}
#inu-chat-root .inu-chat-audience-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#inu-chat-root .inu-chat-audience-options label{position:relative;margin:0;cursor:pointer;min-width:0}
#inu-chat-root .inu-chat-audience-options input{position:absolute;opacity:0;pointer-events:none}
#inu-chat-root .inu-chat-audience-options .inu-audience-choice{box-sizing:border-box;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;padding:10px 7px;border:1px solid #dde5f0;border-radius:15px;background:linear-gradient(180deg,#fff 0%,#f7f9fd 100%);color:#35415a;font-size:11.5px;font-weight:750;line-height:1.25;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}
#inu-chat-root .inu-chat-audience-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#edf3ff;font-size:18px;line-height:1;box-shadow:inset 0 0 0 1px rgba(20,87,217,.06)}
#inu-chat-root .inu-chat-audience-label{display:block;max-width:100%;overflow-wrap:anywhere}
#inu-chat-root .inu-chat-audience-options input:focus-visible+.inu-audience-choice{outline:3px solid rgba(20,87,217,.18);outline-offset:2px}
#inu-chat-root .inu-chat-audience-options input:checked+.inu-audience-choice{border-color:#1457d9;background:linear-gradient(180deg,#f4f8ff 0%,#e9f1ff 100%);color:#0e4cc4;box-shadow:0 7px 18px rgba(20,87,217,.14)}
#inu-chat-root .inu-chat-audience-options input:checked+.inu-audience-choice .inu-audience-icon{background:#1457d9;color:#fff;box-shadow:none}
#inu-chat-root .inu-chat-audience-options label:hover .inu-audience-choice{border-color:#9fbbed;transform:translateY(-1px)}
#inu-chat-root .inu-chat-lead-error{padding:9px 10px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#b42318;font-size:12px;line-height:1.4}
#inu-chat-root .inu-chat-lead-error[hidden]{display:none!important}
#inu-chat-root .inu-chat-privacy{margin:0;color:#718096;font-size:10.5px;line-height:1.45}
#inu-chat-root .inu-chat-privacy a{color:#1457d9;text-decoration:none}
#inu-chat-root .inu-chat-privacy a:hover{text-decoration:underline}
#inu-chat-root .inu-chat-lead-submit{all:unset!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;width:100%!important;padding:10px 16px!important;border-radius:13px!important;background:linear-gradient(135deg,#1457d9,#0f409b)!important;color:#fff!important;font-family:inherit!important;font-size:13px!important;font-weight:800!important;cursor:pointer!important;box-shadow:0 10px 22px rgba(20,87,217,.22)!important}
#inu-chat-root .inu-chat-lead-submit:hover{filter:brightness(1.04)}
@media(max-width:350px){#inu-chat-root .inu-chat-audience-options{grid-template-columns:1fr}#inu-chat-root .inu-chat-audience-options .inu-audience-choice{min-height:54px;flex-direction:row;justify-content:flex-start;text-align:left;padding:9px 11px}}

/* v0.9 clickable links + roomier chat */
#inu-chat-root .inu-message-content a{color:#0b57d0;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;word-break:break-word}
#inu-chat-root .inu-message-visitor .inu-message-content a{color:#fff}
#inu-chat-root .inu-message-content a:hover{filter:brightness(.86)}

/* v0.9.1 response feedback */
#inu-chat-root .inu-message-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:7px;min-height:24px}
#inu-chat-root .inu-message-foot>small{display:block;margin:0;color:#8790a3;font-size:11px;flex:0 0 auto}
#inu-chat-root .inu-message-feedback{display:flex;align-items:center;justify-content:flex-end;gap:4px;min-width:0;color:#7a8498;font-size:9.5px;line-height:1}
#inu-chat-root .inu-message-feedback>span{white-space:nowrap;opacity:.85}
#inu-chat-root .inu-feedback-btn{all:unset!important;box-sizing:border-box!important;display:grid!important;place-items:center!important;width:25px!important;height:25px!important;border-radius:8px!important;border:1px solid transparent!important;background:transparent!important;cursor:pointer!important;font-size:13px!important;line-height:1!important;transition:.14s ease!important}
#inu-chat-root .inu-feedback-btn:hover{background:#f1f5fb!important;border-color:#dce5f2!important;transform:translateY(-1px)}
#inu-chat-root .inu-feedback-btn.is-active{background:#e9f1ff!important;border-color:#b8cdf4!important;box-shadow:0 0 0 2px rgba(20,87,217,.06)!important}
#inu-chat-root .inu-feedback-btn:disabled{opacity:.5!important;cursor:wait!important;transform:none!important}
#inu-chat-root .inu-message-feedback.is-saved::after{content:'Đã lưu';font-size:9px;color:#16803b;margin-left:2px;white-space:nowrap}
#inu-chat-root .inu-message-agent .inu-message-feedback,#inu-chat-root .inu-message-ai .inu-message-feedback{color:#7a8498}
@media(max-width:430px){#inu-chat-root .inu-message-feedback>span{display:none}}

/* compact message cards + mobile anchor positioning */
#inu-chat-root .inu-message>div{padding:5px 10px}
#inu-chat-root .inu-message-foot{min-height:17px}
@media(max-width:600px){
  #inu-chat-root.inu-chat-right,#inu-chat-root.inu-chat-left{left:auto;right:14px;bottom:14px}
  #inu-chat-root.inu-chat-left{left:14px;right:auto}
  #inu-chat-root .inu-chat-unread{top:-4px;right:-4px}
  #inu-chat-root .inu-chat-window{width:min(400px,calc(100vw - 28px));}
}

/* v1.8.0 compact live launcher + vector audience icons */
#inu-chat-root .inu-chat-launcher{
  margin:0!important;
  min-width:205px!important;
  min-height:62px!important;
  padding:5px 12px 5px 6px!important;
  gap:7px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(135deg,#0c56d8,#123f94)!important;
  color:#fff!important;
  box-shadow:0 12px 34px rgba(12,63,148,.28)!important;
}
#inu-chat-root .inu-chat-launcher:hover{box-shadow:0 16px 40px rgba(12,63,148,.34)!important}
#inu-chat-root .inu-chat-launcher-icon{position:relative;width:54px!important;height:54px!important}
#inu-chat-root .inu-chat-launcher-icon img{display:block;width:52px!important;height:52px!important;object-fit:contain;margin:0!important}
#inu-chat-root .inu-chat-launcher-presence-dot{position:absolute;right:-1px;bottom:1px;width:12px;height:12px;border:2px solid #fff;border-radius:999px;background:#1ddd22;box-shadow:0 0 0 3px rgba(29,221,34,.14)}
#inu-chat-root .inu-chat-launcher.is-human-online .inu-chat-launcher-presence-dot{background:#1ddd22;box-shadow:0 0 0 3px rgba(29,221,34,.14)}
#inu-chat-root .inu-chat-launcher-text{max-width:136px}
#inu-chat-root .inu-chat-launcher-text strong{font-size:13.5px!important;line-height:1.12;color:#fff!important;letter-spacing:.005em}
#inu-chat-root .inu-chat-launcher-text small{font-size:10.5px!important;line-height:1.18;color:rgba(255,255,255,.83)!important;margin-top:2px!important}
#inu-chat-root .inu-audience-icon{font-size:0!important}
#inu-chat-root .inu-audience-svg{width:18px;height:18px;display:block}
#inu-chat-root .inu-message>div{padding:5px 10px}
#inu-chat-root .inu-message-foot{min-height:17px}

@media(max-width:600px){
  #inu-chat-root .inu-chat-launcher{width:60px!important;min-width:60px!important;height:60px!important;min-height:60px!important;padding:3px!important;border-radius:18px!important}
  #inu-chat-root .inu-chat-launcher-text{display:none!important}
  #inu-chat-root .inu-chat-launcher-icon{width:54px!important;height:54px!important}
  #inu-chat-root .inu-chat-launcher-icon img{width:52px!important;height:52px!important}
  #inu-chat-root .inu-chat-launcher-presence-dot{right:-1px;bottom:0}
}
#inu-chat-root .inu-chat-online-dot{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.14)}
#inu-chat-root .inu-chat-online-dot.is-human-online{background:#22c55e;box-shadow:0 0 0 2px rgba(34,197,94,.14)}


/* v2.3.3 — responsive placement is independent from Flatsome layout. */
#inu-chat-root{z-index:var(--inu-layer,999999);bottom:calc(var(--inu-desktop-bottom,22px) + env(safe-area-inset-bottom,0px))}
#inu-chat-root.inu-chat-right{right:var(--inu-desktop-side,22px);left:auto}
#inu-chat-root.inu-chat-left{left:var(--inu-desktop-side,22px);right:auto}
#inu-chat-root .inu-chat-window{width:min(var(--inu-desktop-width,400px),calc(100vw - 24px));max-height:calc(100dvh - var(--inu-desktop-bottom,22px) - 18px)}
@media(max-width:600px){
 #inu-chat-root.inu-chat-mobile-right{left:auto;right:var(--inu-mobile-side,5px);bottom:calc(var(--inu-mobile-bottom,80px) + env(safe-area-inset-bottom,0px))}
 #inu-chat-root.inu-chat-mobile-left{right:auto;left:var(--inu-mobile-side,5px);bottom:calc(var(--inu-mobile-bottom,80px) + env(safe-area-inset-bottom,0px))}
 #inu-chat-root .inu-chat-window{width:min(var(--inu-mobile-width,325px),calc(100vw - var(--inu-mobile-side,5px) - 8px));height:min(78dvh,700px);max-height:calc(100dvh - var(--inu-mobile-bottom,80px) - env(safe-area-inset-bottom,0px) - 12px);left:auto!important;right:0!important}
 #inu-chat-root.inu-chat-mobile-left .inu-chat-window{right:auto!important;left:0!important}
}

/* v2.5.3: desktop resizing, independent of Flatsome grid and CSS. */
@media (min-width:601px){
 #inu-chat-root .inu-chat-window{width:min(max(430px,var(--inu-desktop-width,430px)),calc(100vw - 24px));min-width:min(430px,calc(100vw - 24px));min-height:min(420px,calc(100dvh - var(--inu-desktop-bottom,22px) - 16px));}
 #inu-chat-root .inu-chat-resize-handle{display:block;position:absolute;z-index:9;touch-action:none;user-select:none;background:transparent;}
 #inu-chat-root.inu-chat-right .inu-chat-resize-side{left:0;top:16px;bottom:16px;width:10px;cursor:ew-resize;}
 #inu-chat-root.inu-chat-left .inu-chat-resize-side{right:0;top:16px;bottom:16px;width:10px;cursor:ew-resize;}
 #inu-chat-root .inu-chat-resize-top{top:0;left:18px;right:18px;height:10px;cursor:ns-resize;}
 #inu-chat-root .inu-chat-resize-side:hover,#inu-chat-root .inu-chat-resize-top:hover{background:rgba(28,100,242,.12);}
 #inu-chat-root .inu-chat-resize-corner{top:0;width:22px;height:22px;background:linear-gradient(135deg,rgba(28,100,242,.18),transparent 55%);}
 #inu-chat-root.inu-chat-right .inu-chat-resize-corner{left:0;cursor:nwse-resize;border-top-left-radius:23px;}
 #inu-chat-root.inu-chat-left .inu-chat-resize-corner{right:0;cursor:nesw-resize;border-top-right-radius:23px;transform:scaleX(-1);}
 #inu-chat-root .inu-chat-resize-corner:hover{background:linear-gradient(135deg,rgba(28,100,242,.46),transparent 70%);}
 #inu-chat-root .inu-chat-window.inu-resizing{transition:none!important;user-select:none;}
}
@media (max-width:600px){#inu-chat-root .inu-chat-resize-handle{display:none!important}}

/* v2.9.1: unmistakable, tappable retry for a message without server ACK. */
#inu-chat-root .inu-message-pending .inu-message-foot{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
#inu-chat-root .inu-message-pending .inu-local-status{white-space:normal;line-height:1.35;color:rgba(255,255,255,.84)!important}
#inu-chat-root .inu-retry-send{
  all:unset!important;box-sizing:border-box!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  min-height:30px!important;padding:4px 11px!important;border-radius:999px!important;
  background:#fff!important;color:#1457d9!important;font-size:12px!important;font-weight:700!important;
  cursor:pointer!important;white-space:nowrap!important;border:1px solid rgba(255,255,255,.86)!important;
}
#inu-chat-root .inu-retry-send:focus-visible{outline:3px solid #facc15!important;outline-offset:2px!important}
