/* Messages inbox (messages.js) and website chat widget (guest-chat.js). */
.zxm-head h2{margin:0 0 .25rem}
.zxm-note{color:#4b5d78;font-size:.92rem;margin:.25rem 0 .75rem}
.zxm-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}
.zxm-tabs .active{background:var(--zx-navy);color:#fff}
.zxm-status{min-height:1.2em;color:#1d5f3a;font-size:.9rem;margin:.25rem 0}
.zxm-layout{display:grid;grid-template-columns:minmax(220px,300px) 1fr;gap:1rem}
@media(max-width:760px){.zxm-layout{grid-template-columns:1fr}}
.zxm-list{display:flex;flex-direction:column;gap:.4rem;max-height:65vh;overflow:auto}
.zxm-item{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;text-align:left;padding:.6rem .7rem;border:1px solid #d7deea;border-radius:10px;background:#fff;cursor:pointer}
.zxm-item.active{border-color:var(--zx-navy);box-shadow:0 0 0 2px rgba(11,19,43,0.13)}
.zxm-item.unread strong::after{content:" •";color:#c0392b}
.zxm-sub{color:#4b5d78;font-size:.88rem}
.zxm-meta{color:#6b7a90;font-size:.8rem}
.zxm-empty{color:#6b7a90}
.zxm-pane{min-width:0}
.zxm-pane label{display:flex;flex-direction:column;gap:.25rem;margin:.5rem 0;font-weight:600}
.zxm-thread-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem}
.zxm-thread-head h3{margin:0}
.zxm-actions{margin-left:auto;display:flex;gap:.5rem}
.zxm-log{list-style:none;margin:.75rem 0;padding:0;display:flex;flex-direction:column;gap:.5rem;max-height:55vh;overflow:auto}
.zxm-msg{max-width:80%;padding:.5rem .75rem;border-radius:12px;background:#eef2f8;align-self:flex-start}
.zxm-msg.mine{background:#dff0e6;align-self:flex-end}
.zxm-msg.removed .zxm-body{font-style:italic;color:#6b7a90}
.zxm-from{display:block;font-size:.78rem;color:#4b5d78}
.zxm-body{margin:.2rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
.zxm-original{margin:.2rem 0;font-size:.85rem;color:#8a2a1e;white-space:pre-wrap}
.zxm-link{background:none;border:0;padding:0;color:#1b4f9c;text-decoration:underline;cursor:pointer;font-size:.8rem;margin-right:.75rem}
.zxm-compose{display:flex;flex-direction:column;gap:.4rem}
.zxm-compose textarea{width:100%;resize:vertical}
.zxm-compose .btn{align-self:flex-end}
.zxm-report{border:1px solid #e3c9c4;border-radius:10px;padding:.6rem .8rem;margin:.5rem 0;display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.zxm-report>p,.zxm-report>span{flex-basis:100%;margin:0}
.zxm-report.resolved{border-color:#d7deea;opacity:.75}

.zgc-launch{position:fixed;right:1.25rem;bottom:1.25rem;z-index:1100;border:0;border-radius:999px;padding:.8rem 1.2rem;background:var(--zx-navy);color:#fff;font:600 1rem/1 Inter,system-ui,sans-serif;box-shadow:0 8px 24px #0b1d4040;cursor:pointer}
.zgc-launch:focus-visible,.zgc-x:focus-visible{outline:3px solid #f2b705;outline-offset:2px}
.zgc-panel{position:fixed;right:1.25rem;bottom:5rem;z-index:1100;width:min(360px,calc(100vw - 2.5rem));max-height:min(70vh,560px);overflow:auto;background:#fff;color:var(--zx-navy);border-radius:16px;box-shadow:0 16px 40px #0b1d4040;padding:.9rem;font:400 .95rem/1.4 Inter,system-ui,sans-serif}
.zgc-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem}
.zgc-x{background:none;border:0;font-size:1.5rem;line-height:1;cursor:pointer;color:var(--zx-navy)}
.zgc-note{color:#4b5d78;font-size:.88rem;margin:.3rem 0}
.zgc-form{display:flex;flex-direction:column;gap:.45rem}
.zgc-form .field{width:100%;padding:.55rem .6rem;border:1px solid #c9d2e0;border-radius:8px;font:inherit}
.zgc-form .btn{align-self:flex-end;border:0;border-radius:8px;padding:.55rem 1rem;background:var(--zx-navy);color:#fff;font:inherit;cursor:pointer}
.zgc-check{font-size:.85rem}
.zgc-error{color:#a3261b;font-size:.85rem;min-height:1em;margin:0}
.zgc-log{list-style:none;margin:.4rem 0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.zgc-msg{max-width:85%;padding:.45rem .65rem;border-radius:12px;background:#eef2f8;align-self:flex-start}
.zgc-msg.mine{background:#dff0e6;align-self:flex-end}
.zgc-from{display:block;font-size:.75rem;color:#4b5d78}
.zgc-body{margin:.15rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
.zgc-link{background:none;border:0;padding:0;color:#1b4f9c;text-decoration:underline;cursor:pointer;font-size:.8rem}
@media print{.zgc-launch,.zgc-panel{display:none}}
