/* Live chat widget and admin inbox */
.kc-launch{position:fixed;right:18px;bottom:18px;z-index:2600;display:inline-flex;align-items:center;gap:8px;padding:13px 18px;border:0;border-radius:999px;background:#0B2A5B;color:#fff;font:700 15px/1 "Inter",system-ui,sans-serif;cursor:pointer;box-shadow:0 12px 28px -10px rgba(11,42,91,.6)}
.kc-launch:hover{background:#123C80}
.kc-badge{position:absolute;top:-6px;right:-4px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#F7941D;color:#0B2A5B;font-size:12px;line-height:20px;text-align:center}
.kc-panel{position:fixed;right:18px;bottom:82px;z-index:2600;width:min(370px,calc(100vw - 24px));max-height:min(560px,calc(100vh - 110px));display:flex;flex-direction:column;background:#fff;color:#12213D;border-radius:16px;box-shadow:0 24px 60px -18px rgba(11,42,91,.45);overflow:hidden;font-family:"Inter",system-ui,sans-serif}
.kc-panel[hidden]{display:none}
.kc-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#0B2A5B;color:#fff}
.kc-head strong{display:block;font-family:"Montserrat",system-ui,sans-serif;font-size:16px}
.kc-status{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.9}.kc-status::before{content:"";width:8px;height:8px;border-radius:50%;background:#94a3b8}
.kc-status.is-on::before{background:#22c55e}.kc-status.is-off::before{background:#F7941D}
.kc-x{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.kc-body{display:flex;flex-direction:column;gap:10px;padding:12px;overflow:auto;flex:1}
.kc-log{display:flex;flex-direction:column;gap:8px;overflow-y:auto;min-height:40px;max-height:300px}
.kc-msg{max-width:85%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.4;word-wrap:break-word;white-space:pre-wrap}
.kc-msg p{margin:0}.kc-msg small{display:block;margin-top:4px;font-size:11px;opacity:.7}
.kc-msg.is-visitor{align-self:flex-end;background:#1E6FD9;color:#fff;border-bottom-right-radius:4px}
.kc-msg.is-agent{align-self:flex-start;background:#F2F6FD;color:#12213D;border-bottom-left-radius:4px}
.kc-msg.is-system{align-self:center;background:none;color:#4A5872;font-size:12px;text-align:center}
.kc-start,.kc-send{display:flex;flex-direction:column;gap:8px}
.kc-start[hidden],.kc-send[hidden]{display:none}
.kc-start label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600}
.kc-start input,.kc-start textarea,.kc-send textarea{font:inherit;font-size:14px;padding:9px 10px;border:1px solid #C9D5EA;border-radius:10px;resize:vertical;min-height:0}
.kc-row{display:flex;justify-content:space-between;align-items:center}
.kc-btn{align-self:flex-end;background:#F7941D;color:#0B2A5B;border:0;border-radius:10px;padding:10px 18px;font:700 14px "Inter",system-ui,sans-serif;cursor:pointer}
.kc-link{background:none;border:0;color:#4A5872;font-size:13px;text-decoration:underline;cursor:pointer}
.kc-wa{font-size:13px;color:#128C7E;text-align:center}
.kc-err{margin:0;color:#b91c1c;font-size:13px}.kc-err:empty{display:none}
@media (max-width:640px){.kc-launch span{display:none}.kc-launch{padding:15px}}
@media (max-width:760px){body:not(.pub) .kc-launch{bottom:78px}body:not(.pub) .kc-panel{bottom:142px}}
/* inbox */
.ci-wrap{display:grid;grid-template-columns:300px 1fr;gap:16px;align-items:start}
.ci-list{display:flex;flex-direction:column;gap:2px;max-height:70vh;overflow:auto;padding:8px}
.ci-row{display:flex;flex-direction:column;gap:3px;padding:10px;border-radius:10px;text-decoration:none;color:inherit}
.ci-row:hover,.ci-row.is-active{background:#E6EEFB}.ci-row.is-closed{opacity:.65}
.ci-top{display:flex;justify-content:space-between;gap:8px}.ci-last{font-size:13px;color:#4A5872;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ci-badge{background:#F7941D;color:#0B2A5B;border-radius:999px;padding:0 8px;font-size:12px;font-weight:700}
.ci-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}.ci-head h2{margin:0}
.ci-actions{display:flex;gap:8px;flex-wrap:wrap}
.ci-log{max-height:55vh;min-height:300px;padding:10px;border:1px solid #E3E9F3;border-radius:12px;margin:12px 0}
.ci-send{flex-direction:row;align-items:flex-end}.ci-send textarea{flex:1}
@media (max-width:860px){.ci-wrap{grid-template-columns:1fr}.ci-list{max-height:220px}}
html[data-theme="dark"] .kc-panel{background:#0f1b30;color:#e5edf8}html[data-theme="dark"] .kc-msg.is-agent{background:#1b2a44;color:#e5edf8}
html[data-theme="dark"] .ci-row:hover,html[data-theme="dark"] .ci-row.is-active{background:#1b2a44}
.pub-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
