/* Brand palette pulled from digitalekho.com's live CSS:
   --color--03: #041d34 (dark navy), --color--04: #4487e4 (accent blue),
   --color--05: #e0e9f5 (light blue-gray), --color--06: #6b91c1 */

.ekho-chatbot-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #041d34;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  font-size: 26px;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ekho-chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  z-index: 999999;
}

.ekho-chatbot-panel.open {
  display: flex;
}

.ekho-chatbot-header {
  background: #041d34;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ekho-chatbot-header strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.ekho-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.ekho-chatbot-disclaimer {
  font-size: 11px;
  color: #5d6c7b;
  padding: 8px 14px;
  background: #e0e9f5;
  border-bottom: 1px solid #d3e0f0;
}

.ekho-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ekho-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ekho-msg-user {
  align-self: flex-end;
  background: #4487e4;
  color: #fff;
}

.ekho-msg-bot {
  align-self: flex-start;
  background: #e0e9f5;
  color: #041d34;
}

.ekho-msg-bot.ekho-loading {
  color: #6b91c1;
  font-style: italic;
}

.ekho-sources-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: #4487e4;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: -6px;
}

.ekho-sources {
  align-self: flex-start;
  font-size: 12px;
  color: #5d6c7b;
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 8px 10px;
  max-width: 88%;
}

.ekho-chatbot-footer {
  border-top: 1px solid #e2e2e2;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
}

.ekho-chatbot-footer textarea {
  flex: 1;
  resize: none;
  height: 40px;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.ekho-chatbot-footer button {
  background: #4487e4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 14px;
}

.ekho-chatbot-footer button:disabled,
.ekho-chatbot-footer textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ekho-remaining {
  font-size: 11px;
  color: #6b91c1;
  padding: 0 14px 8px;
  text-align: right;
}
