/* Isolated guest-support widget. QR-free, mobile-first, no third-party chat script. */
#nmt-chat-toggle{position:fixed;z-index:99;right:18px;bottom:24px;border-radius:40px;border:2px solid #e5be7d;color:#fff5e4;background:#63122b;padding:13px 17px;min-height:56px;display:flex;align-items:center;gap:9px;box-shadow:0 12px 28px #2e071b77;font:700 13px/1.4 system-ui;cursor:pointer;max-width:calc(100vw - 25px)}
#nmt-chat-toggle:hover{background:#822645}
#nmt-chat-panel{position:fixed;z-index:100;bottom:89px;right:18px;width:min(390px,calc(100vw - 24px));height:min(620px,calc(100dvh - 110px));background:#fffaf2;color:#4f2334;box-shadow:0 20px 55px #24081999;border:1px solid #ca9e61;border-radius:17px;display:flex;flex-direction:column;overflow:hidden;font-family:'DM Sans',system-ui,sans-serif}
#nmt-chat-panel[hidden]{display:none!important}
.nmt-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;background:#56142c;color:#ffdfac;padding:16px 16px 13px}
.nmt-chat-head strong{display:block;font:600 19px/1.35 Georgia,'Noto Serif Myanmar',serif}
.nmt-chat-head small{display:block;font-size:10px;line-height:1.6;color:#e7c7ae;margin-top:4px}
#nmt-chat-close{border:1px solid #a78058;background:transparent;border-radius:50%;width:34px;height:34px;flex:none;cursor:pointer;color:#fff;font-size:23px;line-height:1}
#nmt-chat-feed{display:flex;flex-direction:column;gap:10px;flex:1;overflow-y:auto;padding:15px;background:linear-gradient(#fff9ef,#fff5e8)}
.nmt-chat-msg{max-width:90%;font-size:12px;padding:12px 13px;border:1px solid #ddc3a6;border-radius:12px;background:#fffefb;white-space:pre-wrap;overflow-wrap:anywhere}
.nmt-chat-msg p{margin:0;line-height:1.8}.nmt-chat-msg small{font-weight:800;color:#8e503b;display:block;margin:0 0 6px;font-size:10px}
.nmt-chat-msg.nmt-user{align-self:flex-end;background:#68182f;color:#fff4e0;border-color:#68182f}
.nmt-chat-msg.nmt-assistant{align-self:flex-start}
#nmt-chat-form{display:grid;grid-template-columns:1fr auto;align-items:start;gap:6px;padding:11px 12px 4px;border-top:1px solid #e5c9a5;background:#fffdf7}
#nmt-chat-text{grid-column:1/3}
#nmt-chat-form .nmt-chat-consent{grid-column:1;display:flex;align-items:flex-start;gap:6px;color:#63493f;font-size:10px;line-height:1.5;max-height:65px;overflow-y:auto}
#nmt-chat-form .nmt-chat-consent input{margin-top:3px;flex:0 0 auto}
#nmt-chat-send{grid-column:2;align-self:center}
#nmt-chat-text{width:100%;min-width:0;min-height:46px;max-height:80px;resize:vertical;padding:10px 12px;background:white;color:#462234;border:1px solid #cba67e;border-radius:9px;font-size:13px}
#nmt-chat-send,.nmt-chat-submit{background:#68182f;color:#fff2dd;border:none;padding:11px 13px;border-radius:9px;font-weight:800;cursor:pointer;font-size:13px}
#nmt-chat-send:disabled,.nmt-chat-submit:disabled{opacity:.55;cursor:wait}
#nmt-chat-links{display:flex;gap:7px;padding:8px 12px 7px;background:#fffdf7}
#nmt-chat-links a,#nmt-chat-links button{font:750 11px/1.45 system-ui;border-radius:9px;padding:9px 8px;cursor:pointer;text-align:center;flex:1;text-decoration:none;white-space:normal}
#nmt-chat-links a{background:#e8bd7f;color:#551b32;border:1px solid #cba063}#nmt-chat-links button{border:1px solid #b67c6f;color:#64233c;background:transparent}
.nmt-chat-note{background:#fffaf2;padding:7px 14px 11px;margin:0;font-size:9px;line-height:1.55;color:#8b7265}
#nmt-chat-lead{display:flex;flex-direction:column;gap:11px;padding:14px;overflow-y:auto;flex:1;background:#fffaf2}
#nmt-chat-lead[hidden]{display:none!important}
#nmt-chat-lead>label{font-size:12px;font-weight:750;display:block;color:#5c263b}
#nmt-chat-lead input:not([type=checkbox]),#nmt-chat-lead textarea{margin-top:4px;display:block;width:100%;padding:10px;background:white;border:1px solid #d0ad89;color:#48253a;border-radius:8px;font-size:13px}
#nmt-chat-lead textarea{min-height:76px;resize:vertical}
#nmt-chat-lead .nmt-chat-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.7;font-size:11px;font-weight:400}
#nmt-chat-lead .nmt-chat-consent input{margin-top:4px}
#nmt-lead-status{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;color:#34664a;line-height:1.7}
.nmt-chat-back{background:none;border:0;color:#6d2438;text-decoration:underline;cursor:pointer;font-size:12px}
.nmt-honey{position:absolute;left:-10000px;opacity:0}
@media(max-width:750px){#nmt-chat-toggle{bottom:83px;right:10px;font-size:11px;padding:11px 13px;min-height:49px}#nmt-chat-panel{bottom:145px;right:6px;height:min(570px,calc(100dvh - 168px));width:min(390px,calc(100vw - 12px))}}
@media(max-width:380px){#nmt-chat-panel{height:calc(100dvh - 150px);bottom:142px}#nmt-chat-toggle{padding:10px;font-size:10px}}

/* V7.9.1: iPhone input zoom/safe-area fix */
@media(max-width:750px){#nmt-chat-text,#nmt-lead-name,#nmt-lead-phone,#nmt-lead-message{font-size:16px}#nmt-chat-toggle{bottom:calc(82px + env(safe-area-inset-bottom))}#nmt-chat-panel{bottom:calc(144px + env(safe-area-inset-bottom));max-height:calc(100dvh - 165px - env(safe-area-inset-bottom))}}
