.re-chat{--re-primary:#004466;--re-accent:#1b98c6;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#1d2924;font-size:14px}.re-chat *{box-sizing:border-box}.re-panel{width:min(390px,calc(100vw - 24px));height:570px;max-height:75vh;background:#f4f7f8;border-radius:18px;box-shadow:0 12px 40px #0004;overflow:hidden;display:flex;flex-direction:column;border:1px solid #cbd8de}.re-header{display:flex;align-items:center;gap:10px;background:linear-gradient(125deg,#00283d,var(--re-primary));border-bottom:3px solid var(--re-accent);padding:12px;color:white}.re-header strong,.re-header small{display:block}.re-header small{font-size:11px;opacity:.85}.re-avatar{display:grid;place-items:center;flex:none;background:#ffffff;color:#004466;border-radius:50%;width:43px;height:43px;font-size:28px;font-weight:bold}.re-close{margin-left:auto;color:white;border:0;background:transparent;font-size:28px;cursor:pointer}.re-messages{flex:1;overflow:auto;padding:12px;overscroll-behavior:contain}.re-line{display:flex;margin:7px 0}.re-user{justify-content:flex-end}.re-bubble{background:white;border-radius:12px;padding:10px 12px;max-width:90%;box-shadow:0 1px 6px #0001;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.re-user .re-bubble{background:var(--re-primary);color:white}.re-quick{display:flex;gap:6px;overflow-x:auto;padding:9px;background:white;border-top:1px solid #ddd}.re-chip{flex:none;border:1px solid #8ec7e6;border-radius:20px;padding:7px 9px;background:#eef7fc;color:#004466;font-size:11px;cursor:pointer}.re-form{display:flex;padding:8px;background:white;gap:6px}.re-form input{min-width:0;flex:1;border:1px solid #ced8de;border-radius:20px;padding:9px 12px;font-size:13px}.re-form button,.re-lead button{border:0;background:var(--re-primary);color:white;border-radius:18px;padding:9px 13px;cursor:pointer}.re-foot{font-size:10px;text-align:center;background:white;padding:0 8px 7px;color:#5a6b73}.re-whatsapp{display:block;background:#168b45;color:white!important;text-align:center;border-radius:10px;padding:9px;margin:7px 0;text-decoration:none;font-weight:bold}.re-lead{display:grid;gap:7px;padding:11px;background:#fff;border:1px solid #cde0ea;border-radius:12px;margin:9px 0}.re-lead input{width:100%;border:1px solid #ccd5da;border-radius:7px;padding:8px;font-size:12px}.re-lead small{font-size:10px;color:#4d606a}.re-floating{position:fixed;z-index:999990;right:18px}.re-floating.re-left{right:auto;left:18px}.re-floating .re-panel{display:none;position:absolute;right:0;bottom:73px}.re-floating.re-left .re-panel{right:auto;left:0}.re-floating.re-open .re-panel{display:flex}.re-launch{display:flex;align-items:center;gap:8px;background:var(--re-primary);border:2px solid var(--re-accent);border-radius:50px;color:white;padding:6px 13px 6px 6px;box-shadow:0 8px 25px #0004;cursor:pointer}.re-launch b,.re-launch small{display:block;text-align:left}.re-launch small{font-size:10px}.re-inline .re-close{display:none}.re-inline .re-panel{max-width:100%}@media(max-width:520px){.re-floating{right:12px}.re-floating.re-left{left:12px}.re-floating .re-panel,.re-floating.re-left .re-panel{position:fixed;inset:12px;width:auto;height:auto;max-height:none}.re-launch>span:last-child{display:none}}

/* v1.1: isolate layout from theme and ensure fixed bottom-right widget */
html body .re-chat.re-floating{position:fixed!important;left:auto!important;right:22px!important;top:auto!important;z-index:2147482000!important;display:block!important;width:auto!important;height:auto!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important;float:none!important;background:transparent!important;border:0!important;box-shadow:none!important;}
html body .re-chat.re-floating.re-left{left:22px!important;right:auto!important;}
html body .re-chat.re-floating .re-launch{position:relative!important;display:flex!important;width:auto!important;height:auto!important;min-height:52px!important;margin:0!important;line-height:1.2!important;float:none!important;background:var(--re-primary)!important;color:white!important;border:2px solid var(--re-accent)!important;border-radius:50px!important;text-transform:none!important;letter-spacing:normal!important;}
html body .re-chat.re-floating .re-panel{display:none!important;position:absolute!important;left:auto!important;right:0!important;top:auto!important;bottom:70px!important;width:min(390px,calc(100vw - 24px))!important;height:570px!important;max-height:min(75vh,650px)!important;margin:0!important;padding:0!important;background:#f4f7f8!important;border:1px solid #cbd8de!important;border-radius:18px!important;box-shadow:0 12px 40px #0004!important;overflow:hidden!important;float:none!important;transform:none!important;}
html body .re-chat.re-floating.re-left .re-panel{right:auto!important;left:0!important;}
html body .re-chat.re-floating.re-open .re-panel{display:flex!important;flex-direction:column!important;}
html body .re-chat .re-header{display:flex!important;background:linear-gradient(125deg,#00283d,var(--re-primary))!important;color:#fff!important;}
html body .re-chat .re-messages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;}
html body .re-chat .re-form{display:flex!important;align-items:center!important;flex:0 0 auto!important;}
html body .re-chat .re-form input{display:block!important;flex:1 1 auto!important;width:1%!important;min-width:0!important;max-width:none!important;margin:0!important;background:#fff!important;color:#1d2924!important;}
html body .re-chat .re-form button{width:48px!important;min-width:48px!important;flex:0 0 48px!important;background:var(--re-primary)!important;color:#fff!important;}
html body .re-chat .re-close{display:block!important;flex:0 0 auto!important;width:36px!important;min-width:36px!important;height:36px!important;color:#fff!important;background:transparent!important;}
html body .re-chat .re-quick{flex:0 0 auto!important;}
html body .re-chat .re-foot{flex:0 0 auto!important;}
@media(max-width:520px){html body .re-chat.re-floating{right:12px!important;}html body .re-chat.re-floating.re-left{left:12px!important;}html body .re-chat.re-floating .re-panel,html body .re-chat.re-floating.re-left .re-panel{position:fixed!important;inset:12px!important;left:12px!important;right:12px!important;top:12px!important;bottom:12px!important;width:auto!important;height:auto!important;max-height:none!important;}html body .re-chat.re-floating .re-launch>span:last-child{display:none!important;}}

/* v1.2: image avatar and theme-proof positioning */
html body .re-chat .re-avatar{overflow:hidden!important;padding:2px!important;background:#ffffff!important;border:1.5px solid var(--re-accent)!important;display:flex!important;align-items:center!important;justify-content:center!important;}
html body .re-chat .re-avatar img{display:block!important;object-fit:contain!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;border:0!important;}
html body .re-chat .re-launch{box-sizing:border-box!important;cursor:pointer!important;}
html body .re-chat .re-launch:focus-visible{outline:3px solid var(--re-accent)!important;outline-offset:3px!important;}
html body .re-chat .re-panel{box-sizing:border-box!important;}
