/* Launcher button (collapsed state) */
#bizkit-chat-root .bizkit-chat-launcher{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:99999;
  background:rgba(255,255,255,.10);
  color:#e7e7e7;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:600;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#bizkit-chat-root .bizkit-chat-launcher.is-hidden{
  display:none;
}

/* Panel */
#bizkit-chat-root .bizkit-chat-widget{
  position:fixed;
  right:18px;
  bottom:18px;
  width:320px;
  max-width:calc(100vw - 36px);
  max-height: calc(100vh - 36px);
  background:#0f1115;
  color:#e7e7e7;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.45);
  z-index:99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display:none;
  resize: both;          /* user can drag size */
  overflow: auto;        /* required for resize to work reliably */
  min-width: 280px;
  min-height: 240px;
}

#bizkit-chat-root .bizkit-chat-widget.is-open{
  display:block;
}
/* Mobile: disable resize (better UX) */
@media (max-width: 768px) {
  #bizkit-chat-root .bizkit-chat-widget {
    resize: none;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
  }
}
#bizkit-chat-root .bizkit-chat-header{
  padding:10px 12px;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#bizkit-chat-root .bizkit-chat-title{
  font-weight:600;
}

#bizkit-chat-root .bizkit-chat-minimise{
  background:transparent;
  color:#e7e7e7;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  width:34px;
  height:30px;
  cursor:pointer;
  line-height:1;
}

#bizkit-chat-root .bizkit-chat-log{
  height:220px;
  max-height:calc(70vh - 110px);
  overflow:auto;
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

#bizkit-chat-root .bizkit-chat-line{
  padding:8px 10px;
  border-radius:12px;
  line-height:1.25;
  white-space:pre-wrap;
}

#bizkit-chat-root .bizkit-chat-line.user{
  align-self:flex-end;
  background:rgba(255,255,255,.08);
}

#bizkit-chat-root .bizkit-chat-line.bot{
  align-self:flex-start;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

#bizkit-chat-root .bizkit-chat-row{
  display:flex;
  gap:8px;
  padding:10px 12px;
  border-top:1px solid rgba(255,255,255,.08);
}

#bizkit-chat-root .bizkit-chat-input{
  flex:1;
  background:#0b0d11;
  color:#e7e7e7;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  padding:8px 10px;
  outline:none;
}

#bizkit-chat-root .bizkit-chat-send{
  background:rgba(255,255,255,.10);
  color:#e7e7e7;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  padding:8px 12px;
  cursor:pointer;
}

#bizkit-chat-root .bizkit-chat-send:disabled{
  opacity:.6;
  cursor:not-allowed;
}

@media (max-width: 480px){
  #bizkit-chat-root .bizkit-chat-widget{
    right:12px;
    bottom:12px;
    width:calc(100vw - 24px);
    max-height:65vh;
  }

  #bizkit-chat-root .bizkit-chat-launcher{
    right:12px;
    bottom:12px;
  }
}