
#pj367-launch{position:fixed;right:20px;bottom:20px;z-index:2147483000;background:#0b5ed7;color:white;border:0;border-radius:30px;padding:13px 19px;font:700 15px system-ui;box-shadow:0 6px 24px #0004;cursor:pointer}
#pj367-root{position:relative;z-index:2147483001}
.pj367-backdrop{position:fixed;inset:0;background:#06172ba8;display:grid;place-items:center;padding:16px}
.pj367-panel{width:min(950px,100%);height:min(720px,90dvh);background:white;color:#183451;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 18px 70px #0005;font-family:system-ui,sans-serif}
.pj367-panel header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#0b355f;color:white}
.pj367-panel header strong{display:block;font-size:18px}.pj367-panel header small{display:block;font-size:12px;opacity:.8}
.pj367-close{background:transparent;color:white;border:0;font-size:23px;cursor:pointer}
.pj367-layout{display:flex;flex:1;min-height:0}.pj367-side{width:230px;flex-shrink:0;border-right:1px solid #dce5f0;padding:14px;overflow:auto}
.pj367-side h3{margin:0 0 12px;font-size:15px}.pj367-side p{font-size:13px;color:#64748b}
.pj367-thread{display:block;text-align:left;width:100%;padding:12px 8px;background:white;border:0;border-bottom:1px solid #e3eaf2;cursor:pointer;border-radius:6px}
.pj367-thread.active{background:#e6f0ff}.pj367-thread strong,.pj367-thread small{display:block;overflow-wrap:anywhere}
.pj367-thread small{color:#64748b;margin-top:5px}
.pj367-chat{display:flex;flex-direction:column;flex:1;min-width:0}
.pj367-messages{flex:1;overflow:auto;padding:18px;background:#f4f7fc}
.pj367-bubble{max-width:83%;width:max-content;padding:12px 14px;border-radius:12px;margin:0 0 12px;background:white;box-shadow:0 1px 5px #0001;overflow-wrap:anywhere}
.pj367-bubble.owner{margin-left:auto;background:#dcecff}
.pj367-bubble strong{font-size:12px}.pj367-bubble p{margin:6px 0;white-space:pre-wrap}.pj367-bubble time{font-size:10px;color:#64748b}
.pj367-form{display:flex;gap:8px;padding:12px;background:white;border-top:1px solid #e3eaf2}.pj367-form textarea{flex:1;resize:vertical;min-width:0;max-height:110px;border:1px solid #bac7d8;border-radius:9px;padding:10px;font:14px system-ui}
.pj367-form button{border:0;border-radius:9px;background:#0b5ed7;color:white;padding:0 18px;font-weight:700;cursor:pointer}.pj367-form button:disabled{opacity:.5}
.pj367-status{min-height:17px;padding:0 14px 4px;color:#a32323;font-size:12px}
.pj367-error{position:fixed;bottom:80px;right:20px;background:#fff3f3;border:1px solid #c88;color:#a32323;padding:14px;border-radius:10px;z-index:2147483001}
@media(max-width:650px){#pj367-launch{right:12px;bottom:12px}.pj367-backdrop{padding:5px}.pj367-panel{height:94dvh}.pj367-layout{flex-direction:column}.pj367-side{width:auto;max-height:155px;border-right:0;border-bottom:1px solid #dce5f0}.pj367-side:has(.pj367-thread){max-height:190px}.pj367-bubble{max-width:94%}}

/* v372 — layout iPhone: mensagens e campo de envio sempre visíveis */
.pj367-panel{min-height:0}
.pj367-layout,.pj367-chat,.pj367-messages{min-height:0}
.pj367-thread.active strong{color:#163553!important}
.pj367-form[hidden]{display:none!important}
@media(max-width:650px){
 .pj367-backdrop{padding:0;align-items:stretch;justify-items:stretch}
 .pj367-panel{height:100dvh;max-height:100dvh;width:100%;border-radius:0;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box}
 .pj367-panel header{flex-shrink:0;padding:12px 16px}
 .pj367-panel header strong{font-size:17px}
 .pj367-panel header small{font-size:11px}
 .pj367-layout{flex:1;display:flex;flex-direction:column;overflow:hidden}
 .pj367-side{flex:0 0 auto;width:100%;max-height:118px!important;overflow:auto;padding:10px 12px;box-sizing:border-box}
 .pj367-side h3{font-size:14px;margin-bottom:6px}
 .pj367-thread{padding:7px 10px}
 .pj367-thread strong{font-size:14px;color:#163553}
 .pj367-thread small{font-size:11px;margin-top:2px}
 .pj367-chat{flex:1;min-height:0;overflow:hidden}
 .pj367-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px}
 .pj367-bubble{max-width:84%;padding:9px 11px;margin-bottom:9px}
 .pj367-bubble p{font-size:14px}
 .pj367-form{flex:0 0 auto;align-items:center;padding:8px 10px;gap:7px}
 .pj367-form textarea{height:42px;min-height:42px;max-height:80px;padding:9px;font-size:16px}
 .pj367-form button{align-self:stretch;padding:0 14px}
 .pj367-status{flex:0 0 auto;min-height:0;padding:0 10px;font-size:11px}
}

/* v380: botão de suporte discreto, somente ícone */
#pj367-launch{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:#0b355f!important;font-size:20px!important;line-height:1!important;box-shadow:0 3px 12px #0003!important;right:18px!important;bottom:18px!important}
@media(max-width:650px){#pj367-launch{right:12px!important;bottom:12px!important}}
