* {
  box-sizing: border-box;
}

html,
body {
  font-family: Arial, sans-serif;
  background: transparent !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.chatbot-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: white;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  user-select: none;
}

.chatbot-box {
  display: none;
  position: fixed;
  bottom: 95px;
  right: 24px;
  width: 360px;
  max-width: calc(100% - 40px);
  height: 520px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 9999;
  border: 1px solid #e5e7eb;
}

.chatbot-header {
  background: #111827;
  color: white;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header small {
  display: block;
  font-size: 12px;
  color: #d1d5db;
  margin-top: 3px;
}

.chatbot-header button {
  background: transparent;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chatbot-messages {
  height: 355px;
  padding: 14px;
  overflow-y: auto;
  background: #f9fafb;
}

.bot-message,
.user-message {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.bot-message {
  background: #e5e7eb;
  color: #111827;
  margin-right: 35px;
}

.user-message {
  background: #111827;
  color: white;
  margin-left: 35px;
  text-align: right;
}

.chatbot-disclaimer {
  font-size: 11px;
  color: #6b7280;
  padding: 7px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.chatbot-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.chatbot-input input:focus {
  border-color: #111827;
}

.chatbot-input button {
  margin-left: 8px;
  padding: 10px 14px;
  border: none;
  background: #111827;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.chatbot-input button:hover,
.chatbot-button:hover {
  opacity: 0.92;
}

@media (max-width: 480px) {
  .chatbot-box {
    right: 10px;
    bottom: 85px;
    width: calc(100% - 20px);
    height: 520px;
  }

  .chatbot-button {
    right: 18px;
    bottom: 18px;
  }
}
body.embed-mode {
  background: transparent !important;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.embed-mode .chatbot-button {
  display: none !important;
}

body.embed-mode .chatbot-box {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100vh !important;
  max-width: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

body.embed-mode .chatbot-header {
  display: none !important;
}

body.embed-mode .chatbot-messages {
  height: calc(100vh - 95px) !important;
}