.sweetrail-chatbot-wrapper {
  position: fixed;
  z-index: 1000;
}

.sweetrail-chatbot-wrapper.bottom-right {
  bottom: 20px;
  right: 20px;
}

.sweetrail-chatbot-wrapper.bottom-left {
  bottom: 20px;
  left: 20px;
}

.sweetrail-chatbot-wrapper.center-right {
  top: 50%;
  right: 0;
  margin-top: -30px;
  /* Center without transform to avoid stacking context issues */
}

.sweetrail-chatbot-toggle {
  background-color: rgb(78 205 196);
  color: #ffffff;
  border: none;
  border-radius: 12px 0 0 12px;
  width: 50px;
  height: 60px;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transition: padding-right 0.3s ease, width 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.sweetrail-chatbot-toggle:hover {
  width: 60px;
}

.sweetrail-chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sweetrail-chatbot-wrapper.center-right .sweetrail-chatbot-window {
  position: fixed;
  /* Fixed relative to viewport because parent transform is removed */
  bottom: 0;
  /* Flush to bottom as requested */
  top: auto;
  right: 70px;
}

.sweetrail-chatbot-wrapper.bottom-left .sweetrail-chatbot-window {
  right: auto;
  left: 0;
}

.sweetrail-chatbot-wrapper.bottom-right .sweetrail-chatbot-window {
  right: 80px;
  bottom: 0;
}

.sweetrail-chatbot-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.chatbot-header {
  background-color: rgb(78 205 196);
  color: #ffffff;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 16px;
}

.chatbot-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: rgb(247 249 252);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.message.bot {
  background-color: #e5e7eb;
  color: rgb(51, 51, 51);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.message.user {
  background-color: rgb(78 205 196);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

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

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  outline: none;
}

#chatbot-input:focus {
  border-color: rgb(78 205 196);
}

#chatbot-send {
  background: none;
  border: none;
  color: rgb(78 205 196);
  cursor: pointer;
  font-size: 18px;
}