/* NEW NEXTGEN CHAT R11 — Simple is the best. Independent Public widget. */
.nxchat-r11-launch{position:fixed;right:20px;bottom:20px;z-index:11000;display:flex;align-items:center;gap:9px;padding:12px 17px;background:#17191e;color:#fff;border:1px solid #51482a;border-radius:999px;font:600 14px/1.2 system-ui,sans-serif;box-shadow:0 9px 38px #0007;cursor:pointer}
.nxchat-r11-launch svg{width:21px;height:21px;fill:none;stroke:#ffdb26;stroke-width:2}
.nxchat-r11-launch:focus-visible,.nxchat-r11-close:focus-visible,.nxchat-r11-send:focus-visible{outline:3px solid #e8c423;outline-offset:2px}
.nxchat-r11-panel{position:fixed;right:20px;bottom:80px;z-index:11010;width:min(380px,calc(100vw - 24px));height:min(590px,calc(100dvh - 100px));display:flex;flex-direction:column;background:#f9f9fb;color:#242633;border:1px solid #dedfe4;border-radius:18px;box-shadow:0 18px 65px #0008;overflow:hidden;font:14px/1.45 system-ui,sans-serif}
.nxchat-r11-panel[hidden]{display:none!important}
.nxchat-r11-header{display:flex;align-items:center;gap:10px;background:#222329;color:#fff;padding:13px 14px;flex:none}
.nxchat-r11-brand{max-width:165px;max-height:47px;width:100%;object-fit:contain;object-position:left center}
.nxchat-r11-headtxt{margin-left:auto;font-size:11px;color:#d5d5dc;white-space:nowrap}
.nxchat-r11-close{border:0;background:#3b3d44;color:#fff;font:24px/1 system-ui;border-radius:50%;height:30px;width:30px;cursor:pointer}
.nxchat-r11-subhead{display:flex;align-items:center;justify-content:space-between;padding:9px 14px;font-size:12px;background:#f3f3f6;color:#626671;border-bottom:1px solid #e7e7ec}
.nxchat-r11-connection{color:#4a6154}
.nxchat-r11-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin}
.nxchat-r11-welcome{align-self:flex-start;margin-top:2px;max-width:86%;background:#eef0f3;border-radius:14px;padding:12px 14px;color:#30333b}
.nxchat-r11-msg{max-width:86%;align-self:flex-start;display:flex;flex-direction:column;gap:3px}
.nxchat-r11-msg.mine{align-self:flex-end}
.nxchat-r11-bubble{padding:10px 12px;background:#eceef1;color:#23252a;border-radius:14px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px;line-height:1.5}
.nxchat-r11-msg.mine .nxchat-r11-bubble{background:#fff0ac;border:1px solid #eddb8c}
.nxchat-r11-time{font-size:10px;color:#757982;text-align:right;padding-right:4px}
.nxchat-r11-failed{border-color:#f2a8a8!important;background:#ffe9e9!important}
.nxchat-r11-retry{border:0;color:#b71e28;background:transparent;text-decoration:underline;text-align:right;font:12px system-ui;cursor:pointer;padding:2px 0}
.nxchat-r11-older{align-self:center;padding:5px 10px;border:1px solid #d9dadd;background:#fff;border-radius:10px;font:12px system-ui;cursor:pointer}
.nxchat-r11-composewrap{background:#fff;border-top:1px solid #ececf0;padding:11px;flex:none}
.nxchat-r11-notice{font-size:11px;color:#606873;min-height:13px;margin-bottom:5px}
.nxchat-r11-compose{display:flex;gap:8px;align-items:flex-end;padding:6px;border:1px solid #d6d8dd;border-radius:16px;background:#fafafa}
.nxchat-r11-input{resize:none;min-height:27px;max-height:120px;flex:1;outline:none;border:0;background:transparent;color:#202226;font:14px/1.4 system-ui,sans-serif;padding:7px 6px;overflow:auto}
.nxchat-r11-send{border:0;background:#ffdb26;color:#202226;border-radius:12px;height:39px;width:42px;cursor:pointer;font:20px system-ui;flex:none}
.nxchat-r11-send:disabled{opacity:.48;cursor:default}
.nxchat-r11-new{margin:4px auto 8px;border:1px solid #c5c6cf;border-radius:9px;background:#fff;padding:7px 12px;cursor:pointer}
@media(max-width:600px){.nxchat-r11-panel{left:0;right:0;top:0;bottom:0;width:100vw;height:100dvh;border-radius:0;border:0}.nxchat-r11-launch{right:14px;bottom:max(76px,env(safe-area-inset-bottom,0px) + 70px)}.nxchat-r11-composewrap{padding-bottom:max(12px,env(safe-area-inset-bottom,0px))}.nxchat-r11-messages{padding:12px}}

/* R14: keep mobile input readable and prevent theme globals overriding send action. */
.nxchat-r11-panel,.nxchat-r11-panel *{box-sizing:border-box}
.nxchat-r11-panel .nxchat-r11-input{font-size:16px!important;box-shadow:none!important}
.nxchat-r11-panel .nxchat-r11-send{display:inline-flex;justify-content:center;align-items:center}
.nxchat-r11-panel .nxchat-r11-messages{scroll-padding-bottom:10px}
@media(max-width:600px){.nxchat-r11-panel{height:100dvh;max-height:100dvh}.nxchat-r11-composewrap{padding-bottom:max(14px,env(safe-area-inset-bottom))}}

/* R16: isolate from old EGT theme selectors; keep the composer above the mobile keyboard. */
html body .nxchat-r11-launch{z-index:2147483000!important;pointer-events:auto!important;display:flex!important;opacity:1!important;visibility:visible!important;background:#202126!important;color:#fff!important}
html body .nxchat-r11-panel{z-index:2147483001!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;contain:layout style}
html body .nxchat-r11-panel[hidden]{display:none!important}
.nxchat-r16-photo-button{appearance:none;border:0;background:transparent;color:#474b56;cursor:pointer;display:grid;place-items:center;min-height:42px;min-width:42px;font:25px/1 system-ui}
.nxchat-r16-photo{display:block;max-width:min(260px,68vw);height:auto;max-height:250px;object-fit:contain;border-radius:10px}
.nxchat-r11-messages{overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}
.nxchat-r11-input{font-size:16px!important;line-height:1.45!important;min-width:0!important;max-height:160px}
.nxchat-r11-send,.nxchat-r11-close{min-width:44px!important;min-height:44px!important;touch-action:manipulation}
.nxchat-r11-panel{display:flex!important;flex-direction:column!important}
@media (max-width:680px){
 html body .nxchat-r11-panel{inset:0!important;bottom:0!important;right:0!important;left:0!important;top:0!important;max-width:none!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}
 .nxchat-r11-header{padding-top:max(12px,env(safe-area-inset-top))!important}
 .nxchat-r11-composewrap{padding-bottom:max(14px,env(safe-area-inset-bottom))!important}
 .nxchat-r11-messages{flex:1!important;min-height:0!important}
}

/* R20: P49 legacy #nx-live-support:not(.is-open) gate. Keep matching is-open class,
   and win the legacy #id display:block !important selector while the chat is open. */
html body #nx-live-support.nxchat-r11-panel.is-open:not([hidden]) {
  display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
html body #nx-live-support.nxchat-r11-panel[hidden] {
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}

/* R21: hide screen-reader-only label visually; keep accessible naming for textarea. */
html body #nx-live-support label.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html body #nx-live-support .nxchat-r11-compose{display:flex!important;align-items:center!important;gap:6px!important;padding:6px 7px!important;border-radius:15px!important;background:#fff!important}
html body #nx-live-support textarea.nxchat-r11-input{flex:1!important;min-width:0!important;min-height:38px!important;margin:0!important;padding:8px 5px!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#282b30!important;font:400 16px/1.45 system-ui,sans-serif!important}
html body #nx-live-support .nxchat-r11-input::placeholder{color:#8b91a0!important;opacity:1}
.nxchat-r21-sender{display:block;font-size:10px;font-weight:800;color:#52586a;letter-spacing:.35px;margin-bottom:4px}
#nx-live-support .nxchat-r11-msg:not(.mine) .nxchat-r11-bubble{display:block}
#nx-live-support .nxchat-r11-headtxt{font-weight:700;color:#ffe17a;letter-spacing:.1px}
@media(max-width:600px){html body #nx-live-support .nxchat-r11-composewrap{padding:10px 12px max(12px,env(safe-area-inset-bottom))!important}}

/* R29 visitor messaging enhancements */
#nx-live-support .nx29-visitor-typing{flex:none;margin:2px 14px 6px;color:#6a7080;font-size:12px}
#nx-live-support .nx29-visitor-typing[hidden]{display:none!important}
#nx-live-support .nx29-receipt{font-size:10px;text-align:right;color:#59615f;margin-top:-2px}
#nx-live-support .nx29-notification-permission{border:1px solid #dedfe3;border-radius:7px;padding:4px 7px;background:#fff;color:#40495d;font-size:11px;cursor:pointer;margin-left:auto}
#nx-live-support .nx29-notification-permission[hidden]{display:none!important}
#nx-live-support .nx29-notification-permission:focus-visible{outline:2px solid #ffca26}
@media(max-width:680px){#nx-live-support .nxchat-r11-input{font-size:16px!important}#nx-live-support .nxchat-r11-composewrap{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}}

/* R30 small optional customer topic and own read-only status cards */
.nx30-visitor-tools{padding:5px 13px 8px;background:inherit;display:grid;gap:6px;flex-shrink:0}
.nx30-visitor-heading{font-size:11px;color:#626c7a}.nx30-choices{display:flex;gap:5px;overflow-x:auto;max-width:100%;scrollbar-width:thin}
.nx30-choices button,.nx30-cards-button{flex-shrink:0;border:1px solid #d5d8df;background:#f8f8fa;border-radius:12px;font-size:11px;padding:6px 9px;color:#344050;cursor:pointer}
.nx30-choices button.selected{background:#ffe49a;border-color:#eac754;color:#151515}
.nx30-cards-button{justify-self:start;background:#f7f3e8}.nx30-cards[hidden]{display:none!important}.nx30-cards{display:grid;gap:5px;max-height:110px;overflow:auto;padding:6px;background:#fff;border-radius:8px}.nx30-cards p{font-size:11px;margin:0;color:#3a3e46}
@media(max-width:390px){.nx30-visitor-tools{padding:4px 8px 6px}.nx30-choices button{padding:5px 7px}}
