
.tjm-chatbot-root { position: fixed; bottom: 20px; z-index: 999999; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.tjm-chatbot-root.tjm-left { left: 20px; }
.tjm-chatbot-root.tjm-right { right: 20px; }

.tjm-chatbot-button {
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  background: #111; color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.tjm-chatbot-panel {
  position: absolute;
  bottom: 72px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  display: none;
}
.tjm-chatbot-panel.open { display: flex; flex-direction: column; }

.tjm-chatbot-header {
  padding: 12px 14px;
  background: #111;
  color: #fff;
  display:flex; align-items:center; justify-content:space-between;
  font-weight: 600;
}
.tjm-chatbot-close { background: transparent; border: none; color:#fff; cursor:pointer; font-size: 18px; }

.tjm-chatbot-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #fafafa;
}

.tjm-chatbot-msg { margin: 10px 0; display:flex; }
.tjm-chatbot-msg.user { justify-content: flex-end; }
.tjm-chatbot-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.35;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.tjm-chatbot-msg.user .tjm-chatbot-bubble { background:#111; color:#fff; border-bottom-right-radius: 4px; }
.tjm-chatbot-msg.bot .tjm-chatbot-bubble { background:#fff; color:#111; border: 1px solid rgba(0,0,0,.08); border-bottom-left-radius: 4px; }

.tjm-chatbot-inputbar {
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 10px;
  display:flex; gap: 8px; align-items:center;
}
.tjm-chatbot-inputbar textarea{
  flex:1; resize:none; height: 40px; max-height: 120px;
  border: 1px solid rgba(0,0,0,.12); border-radius: 10px;
  padding: 10px 10px; font-size: 14px;
}
.tjm-chatbot-send {
  border: none; cursor:pointer;
  background:#111; color:#fff;
  padding: 10px 12px; border-radius: 10px;
}
.tjm-chatbot-upload {
  display:none;
}
.tjm-chatbot-upload-label{
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px; border-radius: 10px;
  cursor:pointer; background:#fff;
}
.tjm-chatbot-hint {
  font-size: 12px; color: #444; padding: 8px 12px; background:#fff; border-top: 1px solid rgba(0,0,0,.08);
}


/* Compatibility: mirror tjm- classes to jtm- classes */
:root {}
:is(.jtm-chatbot-root){all:unset;}

.jtm-chatbot-root, .jtm-chatbot-panel, .jtm-chatbot-button { z-index: 999999; }
