#ottm-chat-root{font-family:Arial,Helvetica,sans-serif;position:fixed;bottom:22px;right:22px;z-index:999999;color:#172437;font-size:14px}#ottm-chat-root *{box-sizing:border-box}#ottm-chat-toggle{border:0;border-radius:30px;background:#1674b8;color:white;padding:15px 22px;font-weight:700;box-shadow:0 5px 22px #0003;cursor:pointer}#ottm-chat-panel{position:absolute;bottom:65px;right:0;width:365px;max-width:calc(100vw - 24px);height:min(590px,calc(100vh - 110px));background:#fff;border-radius:15px;box-shadow:0 8px 40px #0004;overflow:hidden;display:flex;flex-direction:column;border:1px solid #ddd}#ottm-chat-panel[hidden],#ottm-chat-lead[hidden]{display:none!important}#ottm-chat-panel header{position:relative;background:#1674b8;color:#fff;padding:17px 45px 17px 17px;display:flex;flex-direction:column;gap:5px}#ottm-chat-panel header span{font-size:12px;opacity:.9}#ottm-chat-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:white;font-size:26px;cursor:pointer}#ottm-chat-messages{padding:15px;overflow-y:auto;flex:1;background:#f7f9fc;display:flex;flex-direction:column;gap:10px}.ottm-bubble{padding:11px 13px;border-radius:13px;max-width:88%;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.ottm-bubble.bot{background:#fff;align-self:flex-start;border:1px solid #e3e8ef}.ottm-bubble.user{background:#1674b8;color:white;align-self:flex-end}#ottm-chat-form{display:flex;gap:7px;padding:10px;border-top:1px solid #eee}#ottm-chat-form input{flex:1;min-width:0;padding:10px;border:1px solid #ccd5df;border-radius:7px;background:white;color:#172437}#ottm-chat-form button,#ottm-chat-lead button[type=submit]{border:0;border-radius:7px;background:#1674b8;color:white;padding:10px 12px;cursor:pointer}#ottm-chat-root button:disabled{opacity:.55;cursor:wait}.ottm-chat-actions{display:flex;justify-content:space-around;gap:8px;padding:7px 12px}.ottm-chat-actions button,.ottm-chat-actions a{background:none;border:0;color:#1165a1;font-size:13px;cursor:pointer;text-decoration:none}#ottm-chat-lead{padding:12px;max-height:250px;overflow-y:auto;border-top:1px solid #eee}#ottm-chat-lead label{display:block;margin:5px 0;font-size:12px}#ottm-chat-lead input,#ottm-chat-lead textarea{display:block;width:100%;padding:7px;border:1px solid #ccd5df;border-radius:5px;background:white;color:#172437}#ottm-chat-lead textarea{height:55px}#ottm-chat-lead-status{font-size:12px}.ottm-hp{position:absolute;left:-10000px}#ottm-chat-panel footer{font-size:10px;line-height:1.3;color:#64748b;text-align:center;padding:8px 12px;border-top:1px solid #eee}@media(max-width:480px){#ottm-chat-root{right:12px;bottom:12px}#ottm-chat-panel{width:calc(100vw - 24px);height:min(620px,calc(100dvh - 90px))}}

/* v1.1: isolate controls from aggressive theme button rules */
#ottm-chat-root #ottm-chat-close{position:absolute!important;right:12px!important;top:12px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;max-width:30px!important;max-height:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#fff!important;padding:0!important;margin:0!important;font-size:24px!important;line-height:1!important;box-shadow:none!important;transform:none!important;}
#ottm-chat-root #ottm-chat-close:hover{background:rgba(255,255,255,.15)!important;}
#ottm-chat-root #ottm-chat-form button,#ottm-chat-root #ottm-chat-lead-toggle,#ottm-chat-root #ottm-chat-lead button[type=submit]{width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1.3!important;border-radius:7px!important;padding:10px 12px!important;box-shadow:none!important;transform:none!important;}
#ottm-chat-root #ottm-chat-lead-toggle{background:transparent!important;color:#1165a1!important;padding:6px!important;}
#ottm-chat-root #ottm-chat-panel{isolation:isolate;}
#ottm-chat-root #ottm-chat-panel header{min-height:72px;}
#ottm-chat-root #ottm-chat-panel footer{flex-shrink:0;}

/* v1.2: in-panel callback view, compact form, theme-safe controls */
#ottm-chat-root #ottm-chat-panel{min-height:0;}
#ottm-chat-root #ottm-chat-panel.ottm-lead-mode #ottm-chat-messages,#ottm-chat-root #ottm-chat-panel.ottm-lead-mode #ottm-chat-form,#ottm-chat-root #ottm-chat-panel.ottm-lead-mode .ottm-chat-actions{display:none!important;}
#ottm-chat-root #ottm-chat-panel.ottm-lead-mode #ottm-chat-lead{display:block!important;flex:1;min-height:0;max-height:none;overflow-y:auto;padding:16px 18px;background:#fff;}
#ottm-chat-root .ottm-lead-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;color:#172437;}
#ottm-chat-root #ottm-lead-back{border:0!important;background:#edf3f8!important;color:#24425d!important;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:8px!important;font-size:22px!important;line-height:1!important;cursor:pointer;}
#ottm-chat-root .ottm-lead-intro{font-size:12px;line-height:1.45;color:#56677b;margin:8px 0 14px;}
#ottm-chat-root #ottm-chat-lead label{display:block;font-size:12px;font-weight:600;color:#334155;margin:0 0 10px;}
#ottm-chat-root #ottm-chat-lead input,#ottm-chat-root #ottm-chat-lead textarea{margin-top:4px!important;min-height:34px!important;padding:8px 10px!important;font:inherit!important;font-weight:400!important;box-shadow:none!important;border:1px solid #ccd5df!important;border-radius:7px!important;}
#ottm-chat-root #ottm-chat-lead textarea{height:66px!important;resize:vertical;}
#ottm-chat-root #ottm-chat-lead button[type=submit]{background:#1674b8!important;color:#fff!important;width:100%!important;padding:11px 14px!important;}
#ottm-chat-root #ottm-chat-lead button[hidden]{display:none!important;}
#ottm-chat-root #ottm-chat-lead-status{font-size:13px;line-height:1.4;color:#155c43;font-weight:600;margin:10px 0;}
#ottm-chat-root #ottm-chat-panel.ottm-lead-mode footer{flex-shrink:0;}

/* v1.3: compact header and clear success state */
#ottm-chat-root #ottm-chat-panel header{min-height:0!important;padding:12px 45px 12px 16px!important;gap:2px!important;}
#ottm-chat-root #ottm-chat-panel header strong{font-size:15px!important;line-height:1.25!important;}
#ottm-chat-root #ottm-chat-panel header span{font-size:11px!important;line-height:1.25!important;}
#ottm-chat-root #ottm-chat-close{top:9px!important;}
#ottm-chat-root #ottm-chat-lead.ottm-lead-success-mode .ottm-lead-intro,#ottm-chat-root #ottm-chat-lead.ottm-lead-success-mode label,#ottm-chat-root #ottm-chat-lead.ottm-lead-success-mode .ottm-hp,#ottm-chat-root #ottm-chat-lead.ottm-lead-success-mode button[type=submit]{display:none!important;}
#ottm-chat-root #ottm-lead-success[hidden]{display:none!important;}
#ottm-chat-root #ottm-lead-success{margin:24px 0;padding:20px 15px;text-align:center;background:#f0f9f5;border:1px solid #cce7d9;border-radius:12px;color:#155c43;}
#ottm-chat-root #ottm-lead-success strong{font-size:16px;line-height:1.4;}
#ottm-chat-root #ottm-lead-success p{margin:10px 0 20px;color:#334155;font-size:13px;}
#ottm-chat-root #ottm-lead-success-back{background:#1674b8!important;color:white!important;border:0!important;border-radius:7px!important;padding:10px 18px!important;cursor:pointer!important;}

#ottm-chat-welcome{position:absolute;bottom:68px;right:0;width:270px;max-width:calc(100vw - 30px);background:#fff;border:1px solid #d7e3ef;border-radius:13px;padding:14px 34px 14px 15px;box-shadow:0 7px 25px #0003;color:#23364b;font-size:14px;line-height:1.45;cursor:pointer}#ottm-chat-welcome[hidden]{display:none!important}#ottm-chat-welcome-close{position:absolute;right:8px;top:6px;border:0;background:transparent;color:#41566d;font-size:21px;cursor:pointer}#ottm-chat-toggle.ottm-pulse{animation:ottm-attention 1.2s ease-in-out 2}@keyframes ottm-attention{0%,100%{transform:scale(1);box-shadow:0 5px 22px #0003}50%{transform:scale(1.055);box-shadow:0 5px 25px #1674b877}}@media(prefers-reduced-motion:reduce){#ottm-chat-toggle.ottm-pulse{animation:none}}
