#jsh-chat-root{font-family:inherit;position:fixed;z-index:2147482000;bottom:22px;color:var(--jsh-text)}
#jsh-chat-root.bottom-right{right:22px}#jsh-chat-root.bottom-left{left:22px}
#jsh-chat-root *{box-sizing:border-box}
#jsh-chat-root .jsh-launcher{margin-left:auto;display:flex;align-items:center;gap:10px;border:0;border-radius:999px;background:var(--jsh-primary);color:#fff;padding:12px 16px;min-height:56px;box-shadow:0 12px 34px rgba(16,35,53,.22);cursor:pointer;font:inherit;font-weight:700}
#jsh-chat-root.bottom-left .jsh-launcher{margin-left:0}
#jsh-chat-root .jsh-launcher b{font-size:22px;line-height:1}
#jsh-chat-root .jsh-window{display:none;width:min(390px,calc(100vw - 24px));max-height:650px;background:var(--jsh-bg);border:0;border-radius:20px;overflow:hidden;box-shadow:0 18px 45px rgba(6,24,38,.18),0 6px 18px rgba(6,24,38,.12);margin-bottom:12px}
#jsh-chat-root.open .jsh-window{display:block}
#jsh-chat-root .jsh-window header{display:flex;align-items:flex-start;justify-content:space-between;background:var(--jsh-primary);color:#fff;padding:20px}
#jsh-chat-root header strong{display:block;font-size:16px}#jsh-chat-root header small{display:block;margin-top:5px;opacity:.92}
#jsh-chat-root header i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--jsh-success);margin-right:5px}
#jsh-chat-root .jsh-close{border:0;background:transparent;color:#fff;font-size:26px;cursor:pointer;line-height:1}
#jsh-chat-root .jsh-body{padding:25px}#jsh-chat-root .jsh-body h2{font:inherit;font-size:22px;font-weight:800;margin:0 0 10px;color:var(--jsh-text)}
#jsh-chat-root .jsh-body p{font:inherit;line-height:1.55;color:var(--jsh-muted);margin:0 0 20px}
#jsh-chat-root .jsh-start{width:100%;border:0;border-radius:11px;padding:13px 16px;background:var(--jsh-primary);color:#fff;font:inherit;font-weight:800;cursor:pointer}
#jsh-chat-root footer{text-align:center;color:var(--jsh-muted);font-size:11px;padding:0 20px 16px}
#jsh-chat-root button:focus-visible{outline:3px solid var(--jsh-accent);outline-offset:3px}
@media(max-width:600px){#jsh-chat-root{left:10px!important;right:10px!important;bottom:12px}#jsh-chat-root .jsh-window{width:100%}#jsh-chat-root .jsh-label{display:none}#jsh-chat-root .jsh-launcher{width:56px;height:56px;padding:0;justify-content:center;margin-left:auto}}
@media(prefers-reduced-motion:reduce){#jsh-chat-root *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#jsh-chat-root .jsh-chat-status{font-size:12px;color:var(--jsh-muted);padding-bottom:10px;border-bottom:1px solid var(--jsh-border);margin-bottom:12px}
#jsh-chat-root .jsh-messages{height:280px;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:4px 0 12px}
#jsh-chat-root .jsh-msg{max-width:82%;padding:10px 12px;border-radius:13px;line-height:1.4;font-size:14px;white-space:pre-wrap}
#jsh-chat-root .jsh-msg.visitor{align-self:flex-end;background:var(--jsh-primary);color:#fff;border-bottom-right-radius:4px}
#jsh-chat-root .jsh-msg.agent{align-self:flex-start;background:var(--jsh-surface);color:var(--jsh-text);border-bottom-left-radius:4px}
#jsh-chat-root .jsh-compose{display:flex;gap:8px;border-top:1px solid var(--jsh-border);padding-top:12px}
#jsh-chat-root .jsh-compose textarea{flex:1;resize:none;border:1px solid var(--jsh-border);border-radius:10px;padding:10px;font:inherit;color:var(--jsh-text)}
#jsh-chat-root .jsh-compose button{border:0;border-radius:10px;background:var(--jsh-primary);color:#fff;font:inherit;font-weight:700;padding:0 14px;cursor:pointer}

#jsh-chat-root .jsh-back{border:0;background:transparent;color:var(--jsh-muted);font:inherit;font-size:12px;padding:0;margin:0 0 14px;cursor:pointer}
#jsh-chat-root .jsh-intake textarea{width:100%;resize:vertical;min-height:92px;border:1px solid var(--jsh-border);border-radius:11px;padding:11px;font:inherit;color:var(--jsh-text);background:var(--jsh-bg)}
#jsh-chat-root .jsh-start-submit{width:100%;border:0;border-radius:11px;padding:13px 16px;background:var(--jsh-primary);color:#fff;font:inherit;font-weight:800;cursor:pointer;margin-top:10px}
#jsh-chat-root .jsh-start-submit:disabled,#jsh-chat-root .jsh-compose button:disabled{opacity:.6;cursor:wait}
#jsh-chat-root .jsh-form-error{color:#b42318;font-size:12px;min-height:18px;margin-top:6px}
#jsh-chat-root .jsh-new-conversation{border:0;background:transparent;color:var(--jsh-muted);font:inherit;font-size:11px;width:100%;padding:10px 0 0;cursor:pointer}

#jsh-chat-root .jsh-intake input{box-sizing:border-box;width:100%;border:1px solid var(--jsh-border);border-radius:10px;padding:10px 11px;font:inherit;color:var(--jsh-text);background:var(--jsh-bg);margin-bottom:8px}
#jsh-chat-root .jsh-contact-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#jsh-chat-root .jsh-contact-help{display:block;color:var(--jsh-muted);font-size:11px;margin:-2px 0 10px}
@media(max-width:420px){#jsh-chat-root .jsh-contact-row{grid-template-columns:1fr}}

#jsh-chat-root header .jsh-team-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px;background:#87949b}
#jsh-chat-root header .jsh-team-dot.online{background:var(--jsh-success)}
#jsh-chat-root header .jsh-team-dot.away{background:#d79b35}
#jsh-chat-root header .jsh-team-dot.offline{background:#87949b}

#jsh-chat-root .jsh-compose{align-items:stretch}
#jsh-chat-root .jsh-compose textarea{min-width:0}
#jsh-chat-root .jsh-compose-actions{display:flex;gap:6px;align-items:stretch}
#jsh-chat-root .jsh-attach{display:flex;align-items:center;justify-content:center;width:42px;border:1px solid var(--jsh-border);border-radius:10px;cursor:pointer;font-size:18px;background:var(--jsh-bg)}
#jsh-chat-root .jsh-attach input{display:none}
#jsh-chat-root .jsh-msg a{color:inherit;text-decoration:underline;font-weight:600}

#jsh-chat-root .jsh-launcher{position:relative}
#jsh-chat-root .jsh-unread-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#c83b32;color:#fff;font-size:11px;font-weight:800;align-items:center;justify-content:center;border:2px solid #fff}
#jsh-chat-root .jsh-msg.system{align-self:center;max-width:92%;background:transparent;color:var(--jsh-muted);font-size:12px;text-align:center;padding:7px 10px}

#jsh-chat-root .jsh-proactive{padding:20px}
#jsh-chat-root .jsh-proactive-label{font-size:12px;font-weight:700;color:var(--jsh-muted);margin-bottom:10px}
#jsh-chat-root .jsh-proactive-message{background:var(--jsh-surface);border-radius:14px;padding:14px;font-size:15px;line-height:1.45}
#jsh-chat-root .jsh-proactive-start{margin-top:14px;border:0;border-radius:10px;background:var(--jsh-primary);color:#fff;padding:11px 16px;font-weight:700;cursor:pointer}

#jsh-chat-root .jsh-agent-msg-wrap{display:flex;gap:8px;align-items:flex-start}
#jsh-chat-root .jsh-agent-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 30px}
#jsh-chat-root .jsh-agent-name{font-size:10px;font-weight:700;opacity:.72;margin-bottom:3px}

#jsh-chat-root .jsh-rating-card{margin:12px;padding:14px;border:1px solid var(--jsh-border,#dde5e9);border-radius:12px;background:#fff;text-align:center}#jsh-chat-root .jsh-rating-card p{margin:4px 0 8px;color:#6d7d86;font-size:13px}#jsh-chat-root .jsh-stars{display:flex;justify-content:center;gap:4px;margin:8px 0}#jsh-chat-root .jsh-stars button{border:0;background:transparent;font-size:27px;line-height:1;cursor:pointer;color:var(--jsh-accent,#2e7898);padding:3px}#jsh-chat-root .jsh-rating-card textarea{box-sizing:border-box;width:100%;margin:6px 0;border:1px solid #dbe4ea;border-radius:8px;padding:8px}#jsh-chat-root .jsh-rating-send{border:0;border-radius:8px;padding:8px 12px;background:var(--jsh-primary,#0b2438);color:#fff;cursor:pointer}#jsh-chat-root .jsh-rating-send:disabled{opacity:.45;cursor:default}


/* v0.17 UX controls */
#jsh-chat-root .jsh-window header{position:relative;align-items:center}
#jsh-chat-root .jsh-window-controls{display:flex;align-items:center;gap:7px;margin-left:auto}
#jsh-chat-root .jsh-circle-control{width:38px;height:38px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.13);color:#fff;cursor:pointer;font-size:19px;line-height:1;padding:0;transition:background .15s ease,transform .15s ease}
#jsh-chat-root .jsh-circle-control:hover{background:rgba(255,255,255,.22);transform:translateY(-1px)}
#jsh-chat-root .jsh-more{font-size:15px;letter-spacing:1px;font-weight:800}
#jsh-chat-root .jsh-brand-logo{max-width:110px;max-height:38px;object-fit:contain;margin-right:10px}
#jsh-chat-root.expanded .jsh-window{width:min(560px,calc(100vw - 24px));max-height:min(820px,calc(100vh - 30px))}
#jsh-chat-root .jsh-conversation-menu{position:absolute;z-index:20;right:54px;top:62px;background:#fff;border:1px solid var(--jsh-border);border-radius:10px;box-shadow:0 12px 30px rgba(16,35,53,.18);padding:6px;min-width:170px}
#jsh-chat-root .jsh-conversation-menu button{width:100%;border:0;background:#fff;color:var(--jsh-text);padding:9px 11px;text-align:left;border-radius:7px;cursor:pointer;font-weight:600}
#jsh-chat-root .jsh-conversation-menu button:hover{background:var(--jsh-surface)}
#jsh-chat-root .jsh-end-confirm{position:absolute;z-index:21;top:72px;right:14px;left:14px;background:#fff;color:var(--jsh-text);border:1px solid var(--jsh-border);border-radius:12px;box-shadow:0 12px 34px rgba(16,35,53,.18);padding:14px}
#jsh-chat-root .jsh-end-confirm p{margin:5px 0 12px;color:var(--jsh-muted);font-size:13px}
#jsh-chat-root .jsh-end-confirm>div{display:flex;justify-content:flex-end;gap:7px}
#jsh-chat-root .jsh-end-confirm button{border:1px solid var(--jsh-border);background:#fff;border-radius:8px;padding:8px 11px;cursor:pointer}
#jsh-chat-root .jsh-end-confirm .jsh-end-confirm-btn{background:var(--jsh-primary);border-color:var(--jsh-primary);color:#fff}
#jsh-chat-root .jsh-compose{display:flex;align-items:flex-end;gap:8px}
#jsh-chat-root .jsh-compose textarea{flex:1}
#jsh-chat-root .jsh-compose-actions{display:flex;gap:7px;align-items:center}
#jsh-chat-root .jsh-send-circle{border:0;background:var(--jsh-primary);color:#fff;font-size:18px;padding:0}
#jsh-chat-root .jsh-privacy-notice{font-size:10px;line-height:1.4;color:var(--jsh-muted);margin:8px 1px 11px}
#jsh-chat-root .jsh-privacy-notice a{color:inherit;text-decoration:underline}
#jsh-chat-root #jsh-chat-root .jsh-rating-card{margin:14px 0 0}
#jsh-chat-root .jsh-rating-actions{display:flex;justify-content:center;gap:7px}
#jsh-chat-root .jsh-rating-skip{border:1px solid var(--jsh-border);background:#fff;color:var(--jsh-text);border-radius:8px;padding:8px 12px;cursor:pointer}
@media(max-width:600px){#jsh-chat-root .jsh-expand{display:none}#jsh-chat-root .jsh-circle-control{width:36px;height:36px}}

/* v0.17.1 reliability cleanup */
#jsh-chat-root .jsh-body{overflow-y:auto;min-height:0}
#jsh-chat-root .jsh-end-confirm .jsh-end-cancel{color:var(--jsh-text)!important;background:#fff!important;min-width:88px}
#jsh-chat-root .jsh-end-confirm .jsh-end-confirm-btn{white-space:nowrap}
#jsh-chat-root #jsh-chat-root .jsh-rating-card{background:var(--jsh-surface);border-radius:12px;padding:14px;border:1px solid var(--jsh-border)}
#jsh-chat-root .jsh-rating-card strong{font-size:16px}
#jsh-chat-root #jsh-chat-root .jsh-stars button{font-size:30px}

/* v0.17.4 contained scrolling + rating isolation */
#jsh-chat-root .jsh-window{
  height:min(650px,calc(100vh - 44px));
  max-height:calc(100vh - 44px);
  display:none;
  flex-direction:column;
}
#jsh-chat-root.open .jsh-window{display:flex}
#jsh-chat-root .jsh-window>header{flex:0 0 auto}
#jsh-chat-root .jsh-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-gutter:stable;
}
#jsh-chat-root .jsh-window>footer{flex:0 0 auto}
#jsh-chat-root .jsh-rating-card{
  width:100%;
  max-width:100%;
  margin:14px 0 0!important;
  overflow:hidden;
}
#jsh-chat-root .jsh-stars{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px!important;
}
#jsh-chat-root .jsh-stars button{
  width:100%!important;
  min-width:0!important;
  height:46px!important;
  padding:0!important;
  margin:0!important;
  border-radius:8px!important;
  background:#fff!important;
  border:1px solid var(--jsh-border)!important;
  color:var(--jsh-accent)!important;
  box-shadow:none!important;
  appearance:none!important;
}
#jsh-chat-root .jsh-rating-card textarea{
  min-height:70px!important;
  max-height:110px!important;
  resize:vertical!important;
  font:inherit!important;
  background:#fff!important;
  color:var(--jsh-text)!important;
}
#jsh-chat-root .jsh-rating-actions{display:grid!important;grid-template-columns:1fr 1.6fr;gap:8px!important}
#jsh-chat-root .jsh-rating-actions button{
  min-height:42px!important;
  width:100%!important;
  margin:0!important;
  font:inherit!important;
  font-weight:700!important;
}
#jsh-chat-root .jsh-new-conversation{margin-top:10px}
#jsh-chat-root.expanded .jsh-window{
  height:min(820px,calc(100vh - 30px));
  max-height:calc(100vh - 30px);
}
@media(max-width:600px){
 #jsh-chat-root .jsh-window{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 #jsh-chat-root .jsh-body{padding:18px}
}

/* v0.17.5 upload removal + composer cleanup */
#jsh-chat-root .jsh-compose-actions{flex:0 0 auto}
#jsh-chat-root .jsh-send-circle{
 width:46px!important;height:46px!important;min-width:46px!important;
 border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border:0!important;background:var(--jsh-primary)!important;color:#fff!important;
 font-size:18px!important;padding:0!important;margin:0!important;cursor:pointer!important;
}
#jsh-chat-root .jsh-compose textarea{min-width:0}
#jsh-chat-root .jsh-rating-error{
 margin-top:9px;padding:8px 10px;border-radius:7px;background:#fff;
 border:1px solid var(--jsh-border);color:#8b2d2d;font-size:11px;line-height:1.4;text-align:left;
}

/* v0.18.0.2 compact mobile chat window */
@media (max-width: 600px){
  .jsh-chat-panel,
  .jsh-chat-widget-panel,
  .jsh-widget-panel{
    top:auto!important;
    bottom:calc(72px + env(safe-area-inset-bottom, 0px))!important;
    height:auto!important;
    min-height:0!important;
    max-height:min(72dvh, 620px)!important;
  }

  .jsh-chat-panel .jsh-chat-header,
  .jsh-chat-widget-panel .jsh-chat-header,
  .jsh-widget-panel .jsh-chat-header{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }

  .jsh-chat-panel .jsh-chat-body,
  .jsh-chat-widget-panel .jsh-chat-body,
  .jsh-widget-panel .jsh-chat-body{
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }

  .jsh-chat-messages{
    min-height:0!important;
    overflow-y:auto!important;
  }

  .jsh-chat-compose,
  .jsh-chat-footer{
    flex:0 0 auto!important;
  }
}

/* Shorter phones should not allow the widget to consume the full screen. */
@media (max-width:600px) and (max-height:740px){
  .jsh-chat-panel,
  .jsh-chat-widget-panel,
  .jsh-widget-panel{
    max-height:66dvh!important;
  }
}

/* v0.18.0.3 — correct mobile geometry */
@media (max-width: 600px) {
  #jsh-chat-root .jsh-window {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    height: min(600px, 68dvh) !important;
    min-height: 0 !important;
    max-height: min(600px, 68dvh) !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #jsh-chat-root .jsh-header {
    flex: 0 0 auto !important;
    padding: 16px 18px !important;
  }

  #jsh-chat-root .jsh-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 18px !important;
  }

  #jsh-chat-root .jsh-footer,
  #jsh-chat-root .jsh-compose {
    flex: 0 0 auto !important;
  }
}
@media (max-width: 600px) and (max-height: 740px) {
  #jsh-chat-root .jsh-window {
    height: 62dvh !important;
    max-height: 62dvh !important;
  }
}

/* v0.18.0.4 — never let responsive layout override launcher/open state */
@media (max-width: 600px) {
  #jsh-chat-root .jsh-window[hidden],
  #jsh-chat-root .jsh-window.jsh-hidden {
    display: none !important;
  }
}

/* v0.18.1.0 — softer floating window + online attention */
#jsh-chat-root .jsh-window{
  border:0!important;
  outline:0;
  box-shadow:0 24px 70px rgba(6,24,38,.22),0 8px 24px rgba(6,24,38,.13)!important;
}
#jsh-chat-root .jsh-attention-tip{
  appearance:none;border:0;cursor:pointer;margin:0 0 10px auto;
  max-width:280px;padding:10px 14px;border-radius:14px;
  display:flex;align-items:center;gap:9px;
  background:#fff;color:var(--jsh-text);
  box-shadow:0 12px 34px rgba(6,24,38,.18);
  font:inherit;font-size:13px;font-weight:650;text-align:left;
  animation:jshTipIn .28s ease-out both;
}
#jsh-chat-root.bottom-left .jsh-attention-tip{margin-left:0;margin-right:auto}
#jsh-chat-root .jsh-attention-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--jsh-success);box-shadow:0 0 0 4px rgba(82,199,136,.14)}
#jsh-chat-root.jsh-attention .jsh-launcher{animation:jshLauncherAttention 1.1s ease-in-out 0s 3}
@keyframes jshLauncherAttention{
  0%,100%{transform:translateY(0);box-shadow:0 12px 34px rgba(16,35,53,.22)}
  45%{transform:translateY(-5px);box-shadow:0 18px 42px rgba(16,35,53,.30)}
}
@keyframes jshTipIn{
  from{opacity:0;transform:translateY(8px) scale(.98)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
 #jsh-chat-root.jsh-attention .jsh-launcher,#jsh-chat-root .jsh-attention-tip{animation:none!important}
}
@media(max-width:600px){
 #jsh-chat-root .jsh-attention-tip{max-width:240px;margin-bottom:8px;font-size:12px}
}

/* v0.18.2.0 — compact mobile header / preserve primary CTA */
@media (max-width:600px){
 #jsh-chat-root .jsh-window{
   height:min(610px,72dvh)!important;
   max-height:min(610px,72dvh)!important;
 }
 #jsh-chat-root .jsh-window>header{
   padding:13px 15px!important;
   min-height:0!important;
   display:grid!important;
   grid-template-columns:minmax(0,1fr) auto!important;
   grid-template-rows:auto!important;
   align-items:center!important;
   gap:10px!important;
 }
 #jsh-chat-root .jsh-brand{
   display:flex!important;
   align-items:center!important;
   gap:9px!important;
   min-width:0!important;
 }
 #jsh-chat-root .jsh-brand-logo{
   max-height:28px!important;
   max-width:72px!important;
   width:auto!important;
   flex:0 0 auto!important;
 }
 #jsh-chat-root .jsh-brand h3{
   margin:0!important;
   font-size:16px!important;
   line-height:1.15!important;
   white-space:nowrap!important;
   overflow:hidden!important;
   text-overflow:ellipsis!important;
 }
 #jsh-chat-root .jsh-brand small{
   margin:0!important;
   font-size:11px!important;
   line-height:1!important;
   display:inline-flex!important;
   align-items:center!important;
   gap:5px!important;
   white-space:nowrap!important;
 }
 #jsh-chat-root .jsh-brand small .dot{width:7px!important;height:7px!important}
 #jsh-chat-root .jsh-window-controls{grid-column:2!important;grid-row:1!important}
 #jsh-chat-root .jsh-body{padding:14px 16px!important}
 #jsh-chat-root .jsh-intake h2{font-size:24px!important;line-height:1.15!important;margin:8px 0 6px!important}
 #jsh-chat-root .jsh-intake .jsh-subtitle{font-size:14px!important;line-height:1.45!important;margin-bottom:12px!important}
 #jsh-chat-root .jsh-back{margin-bottom:6px!important}
 #jsh-chat-root .jsh-intake input{min-height:44px!important;padding:10px 12px!important}
 #jsh-chat-root .jsh-intake textarea{min-height:82px!important;padding:10px 12px!important}
 #jsh-chat-root .jsh-intake .jsh-primary,
 #jsh-chat-root .jsh-intake button[type=submit]{min-height:46px!important}
}
@media(max-width:600px) and (max-height:740px){
 #jsh-chat-root .jsh-window{height:68dvh!important;max-height:68dvh!important}
 #jsh-chat-root .jsh-intake textarea{min-height:68px!important}
}

/* v0.18.2.1 — compact mobile identity row + always-reachable intake CTA */
@media(max-width:600px){
 #jsh-chat-root .jsh-window{
   height:min(570px,68dvh)!important;
   max-height:min(570px,68dvh)!important;
 }
 #jsh-chat-root .jsh-window>header{
   padding:12px 14px!important;
 }
 #jsh-chat-root .jsh-window>header>div:first-child{
   display:flex!important;
   flex-direction:row!important;
   align-items:center!important;
   gap:9px!important;
   min-width:0!important;
 }
 #jsh-chat-root header strong{
   display:inline-block!important;
   margin:0!important;
   font-size:15px!important;
   line-height:1.15!important;
   white-space:nowrap!important;
   overflow:hidden!important;
   text-overflow:ellipsis!important;
   max-width:190px!important;
 }
 #jsh-chat-root header small{
   display:inline-flex!important;
   align-items:center!important;
   margin:0!important;
   font-size:11px!important;
   line-height:1!important;
   white-space:nowrap!important;
   opacity:.95!important;
 }
 #jsh-chat-root .jsh-brand-logo{
   max-height:24px!important;
   max-width:58px!important;
   margin:0!important;
 }
 #jsh-chat-root .jsh-window-controls{gap:5px!important}
 #jsh-chat-root .jsh-circle-control{width:34px!important;height:34px!important}
 #jsh-chat-root .jsh-body{padding:12px 15px 8px!important}
 #jsh-chat-root .jsh-back{margin-bottom:5px!important}
 #jsh-chat-root .jsh-body h2{font-size:22px!important;margin:4px 0 5px!important}
 #jsh-chat-root .jsh-body p{font-size:13px!important;line-height:1.35!important;margin-bottom:9px!important}
 #jsh-chat-root .jsh-intake input{min-height:40px!important;padding:8px 10px!important;margin-bottom:6px!important}
 #jsh-chat-root .jsh-intake textarea{
   min-height:58px!important;
   height:58px!important;
   padding:8px 10px!important;
   resize:none!important;
 }
 #jsh-chat-root .jsh-privacy-notice{font-size:9px!important;line-height:1.25!important;margin:5px 1px!important}
 #jsh-chat-root .jsh-form-error{min-height:0!important;margin:2px 0!important}
 #jsh-chat-root .jsh-start-submit{
   position:sticky!important;
   bottom:0!important;
   z-index:5!important;
   min-height:44px!important;
   margin-top:6px!important;
   box-shadow:0 -8px 18px rgba(255,255,255,.92)!important;
 }
 #jsh-chat-root footer{padding:5px 16px 9px!important;font-size:10px!important}
}
@media(max-width:380px){
 #jsh-chat-root header strong{max-width:155px!important}
}

/* v0.18.2.2 — desktop intake compaction */
@media(min-width:601px){
 #jsh-chat-root .jsh-intake h2{
   margin-bottom:8px!important;
 }
 #jsh-chat-root .jsh-intake .jsh-subtitle,
 #jsh-chat-root .jsh-intake > p{
   font-size:15px!important;
   line-height:1.4!important;
   margin:0 0 14px!important;
   max-width:100%!important;
 }
 #jsh-chat-root .jsh-intake textarea{
   min-height:112px!important;
   height:112px!important;
 }
 #jsh-chat-root .jsh-intake input{
   min-height:48px!important;
 }
 #jsh-chat-root .jsh-start-submit{
   margin-top:12px!important;
   min-height:50px!important;
 }
}

/* v0.18.3.0 — configurable launcher/attention colors + mobile-safe attention */
#jsh-chat-root .jsh-launcher{
 background:var(--jsh-launcher-bg-d,var(--jsh-primary))!important;
 color:var(--jsh-launcher-fg-d,#fff)!important;
}
#jsh-chat-root .jsh-launcher b,
#jsh-chat-root .jsh-launcher .jsh-label{color:inherit!important}
#jsh-chat-root .jsh-attention-tip{
 background:var(--jsh-attention-bg-d,#fff)!important;
 color:var(--jsh-attention-fg-d,var(--jsh-text))!important;
}
@media(max-width:600px){
 #jsh-chat-root .jsh-launcher{
   background:var(--jsh-launcher-bg-m,var(--jsh-primary))!important;
   color:var(--jsh-launcher-fg-m,#fff)!important;
 }
 #jsh-chat-root .jsh-attention-tip{
   position:absolute!important;
   right:0!important;
   bottom:calc(100% + 8px)!important;
   width:min(230px,calc(100vw - 28px))!important;
   max-width:calc(100vw - 28px)!important;
   margin:0!important;
   padding:9px 11px!important;
   border-radius:13px!important;
   font-size:11px!important;
   line-height:1.25!important;
   white-space:normal!important;
   overflow-wrap:anywhere!important;
   background:var(--jsh-attention-bg-m,#fff)!important;
   color:var(--jsh-attention-fg-m,var(--jsh-text))!important;
 }
 #jsh-chat-root.bottom-left .jsh-attention-tip{left:0!important;right:auto!important}
}


/* v0.18.3.1 — expanded conversations use the available panel height */
#jsh-chat-root .jsh-panel.jsh-expanded .jsh-body,
#jsh-chat-root .jsh-panel.expanded .jsh-body{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
}
#jsh-chat-root .jsh-panel.jsh-expanded .jsh-chat-view,
#jsh-chat-root .jsh-panel.expanded .jsh-chat-view{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
}
#jsh-chat-root .jsh-panel.jsh-expanded .jsh-messages,
#jsh-chat-root .jsh-panel.expanded .jsh-messages{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
#jsh-chat-root .jsh-panel.jsh-expanded .jsh-composer,
#jsh-chat-root .jsh-panel.expanded .jsh-composer{
  flex:0 0 auto!important;
  margin-top:auto!important;
}

/* Closed-state CTA should look and behave like a primary action, not a text link. */
#jsh-chat-root .jsh-new-conversation,
#jsh-chat-root .jsh-new-conversation-button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:50px!important;
  padding:13px 18px!important;
  margin:20px 0 8px!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--jsh-primary)!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
  text-decoration:none!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
#jsh-chat-root .jsh-new-conversation:hover{filter:brightness(.96)}
#jsh-chat-root .jsh-new-conversation:focus-visible{
  outline:3px solid color-mix(in srgb,var(--jsh-accent) 45%,transparent)!important;
  outline-offset:2px!important;
}

/* In expanded mode, keep the conversation region tall even with only a few messages. */
@media(min-width:601px){
 #jsh-chat-root .jsh-panel.jsh-expanded .jsh-messages,
 #jsh-chat-root .jsh-panel.expanded .jsh-messages{
   padding-bottom:18px!important;
 }
}

/* v0.29.3 mobile conversation composer fit */
@media(max-width:600px){
 #jsh-chat-root .jsh-compose{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;align-items:stretch!important;width:100%!important;min-width:0!important;padding-top:10px!important}
 #jsh-chat-root .jsh-compose textarea{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:52px!important;min-height:52px!important;max-height:76px!important;padding:10px 11px!important;margin:0!important;overflow-y:auto!important}
 #jsh-chat-root .jsh-compose-actions{display:block!important;width:44px!important;min-width:44px!important}
 #jsh-chat-root .jsh-compose-actions .jsh-send-circle,#jsh-chat-root .jsh-compose-actions button{display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;height:52px!important;min-height:52px!important;padding:0!important;margin:0!important;border-radius:11px!important}
 #jsh-chat-root .jsh-new-conversation{margin-top:8px!important;min-height:42px!important}
}
