#ms-upit-root{--ms-accent:#1769aa;position:fixed;right:20px;bottom:22px;z-index:999999;font-family:Arial,Helvetica,sans-serif;color:#15283b;font-size:14px;line-height:1.45}
#ms-upit-root,#ms-upit-root *{box-sizing:border-box}
#ms-upit-root [hidden]{display:none!important}
#ms-upit-root .ms-upit-launch{appearance:none;background:var(--ms-accent);color:#fff;border:2px solid var(--ms-accent);border-radius:999px;padding:14px 20px;min-height:44px;font-weight:700;box-shadow:0 8px 28px #0c355144;cursor:pointer;font-size:var(--ms-launch-font,14px);line-height:1.2}
#ms-upit-root .ms-upit-launch span{margin-left:8px}
#ms-upit-root[data-size=small] .ms-upit-launch{padding:10px 15px}
#ms-upit-root[data-size=large] .ms-upit-launch{padding:17px 25px}
#ms-upit-root[data-shape=rounded] .ms-upit-launch{border-radius:14px}
#ms-upit-root[data-shape=square] .ms-upit-launch{border-radius:3px}
#ms-upit-root[data-style=outline] .ms-upit-launch{background:#fff;color:var(--ms-accent)}
#ms-upit-root[data-style=glass] .ms-upit-launch{background:color-mix(in srgb,var(--ms-accent) 24%,transparent);border-color:color-mix(in srgb,var(--ms-accent) 65%,transparent);color:#143f60;backdrop-filter:blur(12px)}
#ms-upit-root .ms-upit-panel{width:min(var(--ms-panel-width,390px),calc(100vw - 24px));height:min(var(--ms-panel-height,610px),calc(100dvh - 24px));max-height:calc(100vh - 24px);background:#fff;border-radius:var(--ms-panel-radius,17px);box-shadow:0 18px 55px #06243b55;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d5e5f0;min-height:0}
#ms-upit-root .ms-upit-head{flex:0 0 auto;padding:16px;background:var(--ms-accent);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:70px}
#ms-upit-root .ms-upit-head strong{display:block;font-size:17px}
#ms-upit-root .ms-upit-head span{display:block;font-size:11px;color:#e9f6ff}
#ms-upit-root .ms-upit-close{border:0;background:transparent;color:#fff;font-size:28px;cursor:pointer;padding:0 7px;line-height:1}
/* min-height:0 and flex:1 are essential: this region scrolls inside flex panel */
#ms-upit-root .ms-upit-body{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:18px;scrollbar-width:thin;scrollbar-color:#b7cbdc transparent}
#ms-upit-root .ms-upit-progress{font-size:12px;color:#53738b;margin-bottom:9px}
#ms-upit-root .ms-upit-question{font-size:17px;font-weight:700;margin-bottom:17px}
#ms-upit-root .ms-upit-choices{display:grid;gap:9px}
#ms-upit-root .ms-upit-choice{border:1px solid #cedde8;border-radius:11px;background:#fff;padding:13px 14px;text-align:left;color:#183854;font:inherit;font-weight:600;cursor:pointer;min-height:44px}
#ms-upit-root .ms-upit-choice:hover,#ms-upit-root .ms-upit-choice:focus-visible{border-color:var(--ms-accent);background:#eef7fe}
#ms-upit-root .ms-upit-form{display:grid;gap:12px}
#ms-upit-root .ms-upit-form label{display:grid;gap:5px;font-weight:600;font-size:13px}
#ms-upit-root .ms-upit-form input,#ms-upit-root .ms-upit-form textarea{width:100%;padding:10px;border:1px solid #b8ccd9;border-radius:8px;font:inherit;background:#fff;color:#15283b;min-width:0}
#ms-upit-root .ms-upit-privacy{font-size:12px;font-weight:400;color:#527086}
#ms-upit-root .ms-upit-privacy a{color:var(--ms-accent);text-decoration:underline}
#ms-upit-root .ms-upit-honeypot{position:absolute!important;left:-99999px;opacity:0;pointer-events:none}
#ms-upit-root .ms-upit-error{color:#a52020;font-size:13px;margin:0}
#ms-upit-root .ms-upit-submit{background:var(--ms-accent);color:#fff;padding:12px;border-radius:10px;border:0;font-weight:700;cursor:pointer;min-height:44px}
#ms-upit-root .ms-upit-submit:disabled{opacity:.65;cursor:wait}
#ms-upit-root .ms-upit-result{padding:15px;border-radius:10px;background:#e9f7ed;color:#176137;font-weight:600}
#ms-upit-root .ms-upit-footer{flex:0 0 auto;border-top:1px solid #e3eaf0;padding:10px 15px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#6b7e8e;background:#fff}
#ms-upit-root .ms-upit-back{border:0;background:transparent;padding:4px 0;color:var(--ms-accent);cursor:pointer;font-weight:600}
@media(max-width:480px){#ms-upit-root{right:12px;bottom:12px}#ms-upit-root .ms-upit-panel{width:min(var(--ms-panel-width,390px),calc(100vw - 24px));height:min(var(--ms-panel-height,610px),calc(100dvh - 24px))}#ms-upit-root .ms-upit-body{padding:15px}}

/* v2.1 scroll fix: isolate the panel from theme layout constraints */
html #ms-upit-root .ms-upit-panel:not([hidden]){
 position:fixed!important;right:20px!important;bottom:20px!important;
 display:flex!important;flex-direction:column!important;
 height:min(var(--ms-panel-height,610px),calc(100dvh - 40px))!important;
 max-height:calc(100dvh - 40px)!important;
 min-height:0!important;
 overflow:hidden!important;
}
html #ms-upit-root .ms-upit-body{
 display:block!important;flex:1 1 auto!important;
 height:0!important;min-height:0!important;
 overflow:auto!important;overflow-y:scroll!important;
 overscroll-behavior-y:contain!important;
 -webkit-overflow-scrolling:touch!important;
 touch-action:pan-y!important;
}
@media(max-width:480px){html #ms-upit-root .ms-upit-panel:not([hidden]){right:12px!important;bottom:12px!important;height:min(var(--ms-panel-height,610px),calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important}}

/* v2.2: configurable launcher location and independently positioned panel */
html body #ms-upit-root{
 right:var(--ms-chat-x,20px)!important;
 left:auto!important;
 bottom:var(--ms-chat-bottom,90px)!important;
}
html body #ms-upit-root[data-side="left"]{
 left:var(--ms-chat-x,20px)!important;
 right:auto!important;
}
html body #ms-upit-root .ms-upit-panel:not([hidden]){
 right:var(--ms-chat-x,20px)!important;
 left:auto!important;
 bottom:var(--ms-chat-bottom,90px)!important;
 max-height:calc(100dvh - var(--ms-chat-bottom,90px) - 12px)!important;
 height:min(var(--ms-panel-height,610px), calc(100dvh - var(--ms-chat-bottom,90px) - 12px))!important;
}
html body #ms-upit-root[data-side="left"] .ms-upit-panel:not([hidden]){
 right:auto!important;
 left:var(--ms-chat-x,20px)!important;
}
@media(max-width:480px){
 html body #ms-upit-root{
  right:var(--ms-chat-x-mobile,12px)!important;
  bottom:var(--ms-chat-bottom-mobile,76px)!important;
 }
 html body #ms-upit-root[data-side="left"]{
  left:var(--ms-chat-x-mobile,12px)!important;
  right:auto!important;
 }
 html body #ms-upit-root .ms-upit-panel:not([hidden]){
  right:var(--ms-chat-x-mobile,12px)!important;
  bottom:var(--ms-chat-bottom-mobile,76px)!important;
  max-height:calc(100dvh - var(--ms-chat-bottom-mobile,76px) - 12px)!important;
  height:min(var(--ms-panel-height,610px),calc(100dvh - var(--ms-chat-bottom-mobile,76px) - 12px))!important;
 }
 html body #ms-upit-root[data-side="left"] .ms-upit-panel:not([hidden]){
  right:auto!important;
  left:var(--ms-chat-x-mobile,12px)!important;
 }
}

/* v2.3 typography settings - scoped to this widget */
#ms-upit-root {font-family:var(--ms-font, Arial, Helvetica, sans-serif)!important;font-size:var(--ms-text-size,14px)!important;}
#ms-upit-root .ms-upit-panel, #ms-upit-root .ms-upit-panel button, #ms-upit-root .ms-upit-panel input, #ms-upit-root .ms-upit-panel textarea, #ms-upit-root .ms-upit-launch {font-family:var(--ms-font, Arial, Helvetica, sans-serif)!important;}
#ms-upit-root .ms-upit-question {font-size:var(--ms-question-size,17px)!important;}
#ms-upit-root .ms-upit-choice {font-size:var(--ms-answer-size,14px)!important;}
#ms-upit-root .ms-upit-form input, #ms-upit-root .ms-upit-form textarea {font-size:var(--ms-text-size,14px)!important;}
#ms-upit-root .ms-upit-form label {font-size:var(--ms-text-size,14px)!important;}
#ms-upit-root .ms-upit-result {font-size:var(--ms-text-size,14px)!important;}
#ms-upit-root .ms-upit-head strong {font-size:calc(var(--ms-text-size,14px) + 3px)!important;}
#ms-upit-root .ms-upit-launch-icon:empty {display:none!important;}

/* v2.4: short attention prompts; no continuous movement. */
#ms-upit-root[data-attention="pulse"] .ms-upit-launch.ms-upit-attention{animation:ms-upit-pulse 1s ease-out 1!important}
#ms-upit-root[data-attention="bounce"] .ms-upit-launch.ms-upit-attention{animation:ms-upit-bounce .8s ease-in-out 1!important}
#ms-upit-root[data-attention="shake"] .ms-upit-launch.ms-upit-attention{animation:ms-upit-shake .65s ease-in-out 1!important}
@keyframes ms-upit-pulse{0%,100%{box-shadow:0 8px 28px #0c355144}45%{box-shadow:0 8px 28px #0c355144,0 0 0 12px color-mix(in srgb,var(--ms-accent) 20%,transparent)}}
@keyframes ms-upit-bounce{0%,100%{transform:translateY(0)}40%{transform:translateY(-9px)}65%{transform:translateY(-3px)}}
@keyframes ms-upit-shake{0%,100%{transform:translateX(0)}25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@media(prefers-reduced-motion:reduce){#ms-upit-root .ms-upit-launch.ms-upit-attention{animation:none!important}}
