/* Position both controls within the visible viewport, including the iOS keyboard. */
:root{--nit-chat-safe-bottom:env(safe-area-inset-bottom,0px)}
/* The SDK's transparent launcher must not intercept the custom arrow. */
#nitlibrary_status_widget_v2{display:none!important;pointer-events:none!important}
#nitlibrary_widget_v2{box-sizing:border-box!important}
#nit-chat-controls{position:fixed;right:0;top:var(--nit-chat-launcher-top,auto);bottom:auto;width:44px;z-index:9998;font-family:inherit}
#nit-chat-controls[hidden]{display:none!important}
#nit-chat-launcher{display:flex;align-items:center;justify-content:center;gap:10px;width:44px;min-height:48px;padding:10px;border:1px solid #c4d0d3;border-right:0;border-radius:0;background:#edf4f4;color:#00536a;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;box-shadow:none}
#nit-chat-launcher span{display:none}
#nit-chat-launcher svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2}
#nit-chat-launcher:hover{background:#dce9e9}
#nit-chat-launcher:focus-visible{outline:3px solid #fbbd2c;outline-offset:-3px}
#nit-chat-controls.nit-chat-intro{width:auto;max-width:calc(100% - 12px)}
.nit-chat-intro #nit-chat-launcher{width:auto;background:#00536a;color:#fff;padding:12px 16px}
.nit-chat-intro #nit-chat-launcher span{display:inline}
#nitlibrary_widget_v2{position:fixed!important;z-index:9999!important;top:var(--nit-chat-top,12px)!important;left:auto!important;right:max(12px,env(safe-area-inset-right))!important;bottom:auto!important;width:388px!important;min-width:0!important;max-width:calc(100vw - 24px - env(safe-area-inset-right) - env(safe-area-inset-left))!important;height:var(--nit-chat-height,calc(100dvh - 24px))!important;min-height:0!important;max-height:none!important;margin:0!important;border:1px solid #d5dddd!important;border-radius:0!important;box-shadow:0 6px 24px #17212b18!important;transition:none!important}
@media(max-width:767px){#nitlibrary_widget_v2{width:calc(100vw - 24px - env(safe-area-inset-right) - env(safe-area-inset-left))!important}#nit-chat-launcher{touch-action:manipulation}}
@media(prefers-reduced-motion:reduce){#nit-chat-launcher{transition:none}}

#nit-chat-controls.nit-chat-footer-hidden,body.nit-chat-footer-crowded #nitlibrary_widget_v2{visibility:hidden!important;pointer-events:none!important}
