/* Optional widget shell; the conversation UI remains in its own same-origin document. */
#nua-floating-chat{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:9990;font-family:"DM Sans",sans-serif;color:#020842;--nua-floating-bottom:0px;transform:translateY(calc(-1 * var(--nua-floating-bottom)))}
#nua-floating-chat *{box-sizing:border-box}
#nua-floating-chat button,#nua-floating-chat a{font-family:inherit}
#nua-floating-launcher{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 18px;border:0;border-radius:28px;background:linear-gradient(84deg,#3fb5fd,#0b6eda);color:#fff;font-size:14px;font-weight:700;line-height:1.4;box-shadow:0 6px 24px #02084229;cursor:pointer}
#nua-floating-chat .nua-floating-logo,#nua-floating-chat svg{width:32px;height:32px;object-fit:contain;flex-shrink:0;margin:0;border-radius:50%;background:#fff;padding:3px;color:#0b6eda}
#nua-floating-unread{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;background:#fff;color:#0b6eda;border-radius:20px;font-size:11px}
#nua-floating-panel{position:absolute;right:0;bottom:68px;width:min(420px,calc(100vw - 32px));height:min(640px,calc(100dvh - 112px));max-height:calc(100vh - 112px);display:flex;flex-direction:column;background:#fff;border:1px solid #e0e7ef;border-radius:16px;box-shadow:0 12px 48px #02084230;overflow:hidden}
#nua-floating-panel>header{display:flex;align-items:center;gap:10px;padding:14px;background:#f3f8ff;border-bottom:1px solid #e0e7ef;flex-shrink:0}
#nua-floating-panel>header>div{flex:1;min-width:0}
#nua-floating-panel strong{display:block;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
#nua-floating-panel header span{display:block;font-size:12px;color:#49515b}
#nua-floating-panel header button,#nua-floating-panel header a{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid #dce5ef;border-radius:8px;background:#fff;color:#0b6eda;font-size:22px;line-height:1;text-decoration:none;cursor:pointer;padding:0}
#nua-floating-content{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
#nua-floating-content iframe{display:block;width:100%;height:100%;flex:1;min-height:0;border:0;margin:0}
#nua-floating-status,.nua-floating-notice{padding:20px;margin:0;font-size:14px;line-height:1.7}
#nua-floating-status[hidden]{display:none}
#nua-floating-content #nua-floating-retry{margin:0 20px 20px;padding:10px;border:1px solid #dce5ef;border-radius:8px;background:#f3f8ff;color:#0b6eda;cursor:pointer}
#nua-floating-chat .nua-floating-notice h2{font-size:20px;line-height:1.4;margin:0 0 12px;color:#020842}
#nua-floating-chat .nua-floating-notice a{display:inline-block;padding:9px 20px;background:#0b6eda;color:#fff;text-decoration:none;border-radius:8px}
#nua-floating-chat [hidden]{display:none!important}
#nua-floating-chat button:focus-visible,#nua-floating-chat a:focus-visible{outline:3px solid #0b6eda;outline-offset:3px}
body.nua-floating-chat-document{margin:0!important;padding:0!important;background:#fff;overflow:hidden}
.nua-floating-chat-document>.nua-customer-dashboard,.nua-floating-chat-document .nua-customer-dashboard-inner{width:100%;max-width:none;margin:0;padding:0;height:100dvh}
.nua-floating-chat-document .nua-customer-dashboard-header,.nua-floating-chat-document .nua-chat-header[hidden]{display:none!important}
.nua-floating-chat-document .nua-chat-customer{height:100%;margin:0;padding:0}
.nua-floating-chat-document .nua-customer-chat-layout{display:flex!important;flex-direction:column!important;gap:0!important;height:100%!important;min-height:0!important}
.nua-floating-chat-document .nua-customer-chat-layout>.nua-chat-container{width:100%!important;flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none;border-radius:0;display:flex;flex-direction:column}
.nua-floating-chat-document .nua-chat-messages{flex:1;min-height:0;overflow:auto;padding:14px}
.nua-floating-chat-document .nua-chat-composer{flex-shrink:0;padding:10px;gap:7px}
.nua-floating-chat-document .nua-msg-bubble{max-width:100%;overflow-wrap:anywhere}
.nua-floating-chat-document .nua-offer-card{max-width:100%;min-width:0}
.nua-floating-chat-document .nua-floating-orders{flex:0 0 auto;border-top:1px solid #e0e7ef;font:13px/1.5 "DM Sans",sans-serif}
.nua-floating-chat-document .nua-floating-orders summary{padding:8px 14px;cursor:pointer;color:#0b6eda;background:#f3f8ff}
.nua-floating-chat-document .nua-floating-orders .nua-customer-orders-sidebar{display:block!important;width:100%!important;height:auto;max-height:190px!important;overflow:auto;border:0;border-radius:0;margin:0}
.nua-floating-frame-status{font:12px/1.5 "DM Sans",sans-serif;padding:6px 14px;margin:0;color:#49515b;flex-shrink:0}
.nua-floating-frame-status:empty{display:none}
@media(max-width:480px){#nua-floating-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}#nua-floating-panel{width:calc(100vw - 24px);height:min(640px,calc(100dvh - 100px));bottom:64px}#nua-floating-launcher{min-height:48px;padding:8px 14px}.nua-floating-chat-document .nua-offer-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Position only the floating shell; keep the conversation document unchanged. */
#nua-floating-chat[data-position="left"]{left:max(20px,env(safe-area-inset-left));right:auto}
#nua-floating-chat[data-position="left"] #nua-floating-panel{left:0;right:auto}
#nua-floating-launcher .nua-floating-custom-logo{object-fit:contain;object-position:center;border-radius:0;background:transparent}
#nua-floating-launcher{max-width:calc(100vw - 40px)}
#nua-floating-launcher>span:not(#nua-floating-unread){min-width:0;overflow-wrap:anywhere;text-align:left}
#nua-floating-chat #nua-floating-unread{flex-shrink:0}
@media(max-width:480px){#nua-floating-chat[data-position="left"]{left:max(12px,env(safe-area-inset-left));right:auto}#nua-floating-launcher{max-width:calc(100vw - 24px)}}

#nua-floating-chat #nua-floating-presence{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:#64748b}
#nua-floating-chat #nua-floating-presence::before{content:"";display:inline-block;flex:0 0 6px;width:6px;height:6px;align-self:center;border-radius:50%;background:#c49a45}
#nua-floating-chat #nua-floating-presence.is-online::before{background:#22a56a}
#nua-floating-chat #nua-floating-presence{font-weight:500;letter-spacing:.01em;transition:color .2s ease}
#nua-floating-chat #nua-floating-presence.is-online{color:#21845b}
#nua-floating-chat #nua-floating-presence::before{box-shadow:0 0 0 3px #c49a4514;transition:background-color .2s ease,box-shadow .2s ease}
#nua-floating-chat #nua-floating-presence.is-online::before{box-shadow:0 0 0 3px #22a56a14}
@media(prefers-reduced-motion:reduce){#nua-floating-chat #nua-floating-presence,#nua-floating-chat #nua-floating-presence::before{transition:none}}
#nua-floating-chat #nua-floating-presence{display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;width:fit-content;max-width:100%;padding:3px 9px;border:1px solid #e7e2d6;border-radius:12px;background:#faf8f2;color:#71634c;font-size:11px;font-weight:500;line-height:1.5;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
#nua-floating-chat #nua-floating-presence.is-online{background:#eff9f3;border-color:#d6ecdf;color:#23764f}
