/* app/javascript/chatbot/chatbot.module.css */
.chatbot_chatbot * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  line-height: 1.5;
}
.chatbot_chatbot {
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.chatbot_toggleButton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  color: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 14px;
  font-weight: 500;
}
.chatbot_toggleButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.chatbot_toggleButton:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3), 0 2px 12px rgba(0, 0, 0, 0.15);
}
.chatbot_buttonIcon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.chatbot_window {
  width: 360px;
  height: 520px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: chatbot_slideUp 0.3s ease-out;
}
@keyframes chatbot_slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chatbot_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #4f46e5;
  color: white;
}
.chatbot_headerLogo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot_chatIcon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.chatbot_title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.chatbot_closeButton {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background-color 0.2s;
  font-size: 24px;
  font-weight: bold;
}
.chatbot_closeButton:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.chatbot_closeIcon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chatbot_messagesContainer {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: #f9fafb;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  position: relative !important;
  height: 100%;
}
.chatbot_messagesContent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}
.chatbot_messagesContainer::-webkit-scrollbar {
  width: 6px;
}
.chatbot_messagesContainer::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot_messagesContainer::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}
.chatbot_emptyState {
  color: #64748b;
  text-align: center;
  padding: 24px;
}
.chatbot_message {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.chatbot_assistantMessage {
  padding-right: 36px;
}
.chatbot_userMessage {
  padding-left: 36px;
  flex-direction: row-reverse;
}
@keyframes chatbot_fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.chatbot_avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e2e8f0;
  font-size: 14px;
  flex-shrink: 0;
}
.chatbot_userMessage .chatbot_avatar {
  background-color: #dbeafe;
}
.chatbot_bubble {
  padding: 12px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  word-break: break-word;
  max-width: 85%;
}
.chatbot_userMessage .chatbot_bubble {
  background-color: #4f46e5;
  color: white;
}
.chatbot_content {
  font-size: 14px;
  line-height: 1.5;
}
.chatbot_content li {
  margin-left: 24px;
}
.chatbot_typingIndicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: fit-content;
  margin: 8px 0 8px 40px;
}
.chatbot_typingDot {
  width: 8px;
  height: 8px;
  background-color: #a3a3a3;
  border-radius: 50%;
  animation: chatbot_typingAnimation 1.4s infinite ease-in-out;
}
.chatbot_typingDot:nth-child(1) {
  animation-delay: 0s;
}
.chatbot_typingDot:nth-child(2) {
  animation-delay: 0.2s;
}
.chatbot_typingDot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes chatbot_typingAnimation {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}
.chatbot_streaming {
  position: relative;
}
.chatbot_inputContainer {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background-color: white;
}
.chatbot_textInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chatbot_textInput:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.chatbot_textInput:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}
.chatbot_sendButton,
.chatbot_voiceButton {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}
.chatbot_sendButton:hover,
.chatbot_voiceButton:hover {
  filter: brightness(1.05);
}
.chatbot_sendButton:active,
.chatbot_voiceButton:active {
  transform: scale(0.98);
}
.chatbot_sendButton:disabled,
.chatbot_voiceButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.chatbot_microphoneIcon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.chatbot_voiceActive {
  background-color: #ef4444 !important;
}
.chatbot_loadingSpinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: chatbot_spin 1s linear infinite;
}
@keyframes chatbot_spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 480px) {
  .chatbot_window {
    width: 320px;
    height: 480px;
    bottom: 80px;
  }
  .chatbot_buttonText {
    display: none;
  }
}
@media (max-width: 640px) {
  .chatbot_window {
    position: fixed;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
.chatbot_chatContainer {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 450px;
  min-height: 600px;
  height: 50vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: chatbot_slideIn 0.3s ease-out;
  transform-origin: bottom right;
}
.chatbot_iframeChatContainer {
  position: relative;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}
@keyframes chatbot_slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 768px) {
  .chatbot_chatContainer {
    top: 0;
    left: 0;
    right: 0;
    bottom: 120px;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: calc(100vh - 120px);
    border-radius: 0;
    animation: none;
  }
}
.chatbot_suggestionButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background-color: white;
  border-top: 1px solid #e2e8f0;
}
.chatbot_suggestionButton {
  padding: 8px 16px;
  border-radius: 16px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  color: #334155;
}
.chatbot_suggestionButton:hover {
  background-color: #e2e8f0;
}
.chatbot_suggestionButton:active {
  transform: scale(0.98);
}
.chatbot_downArrowIndicator {
  position: absolute !important;
  right: 16px !important;
  bottom: 16px !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000 !important;
  pointer-events: auto;
  font-size: 16px;
  color: #374151;
}
.chatbot_visible {
  opacity: 1;
  transform: translateY(0);
}
.chatbot_loadingIndicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: white;
  width: fit-content;
  margin-left: 10px;
}
.chatbot_dot {
  width: 8px;
  height: 8px;
  background: #e5e7eb;
  border-radius: 50%;
  animation: chatbot_typing 1.4s infinite;
  height: 10px;
  width: 10px;
  margin-right: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: inline-block;
  animation: chatbot_pulse 1.5s infinite ease-in-out;
}
.chatbot_dot:nth-child(2) {
  animation-delay: 0.2s;
}
.chatbot_dot:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes chatbot_typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
@keyframes chatbot_pulse {
  0%, 60%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  30% {
    transform: scale(1.2);
    opacity: 1;
  }
}
.chatbot_disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  padding: 8px 12px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  line-height: 1.25;
  background-color: #f9fafb;
}
.chatbot_ratingContainer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.chatbot_ratingContainer:hover {
  opacity: 1;
}
.chatbot_assistantMessage .chatbot_ratingContainer {
  justify-content: flex-start;
}
.chatbot_ratingButton {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}
.chatbot_ratingButton:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.chatbot_ratingButton.chatbot_active {
  color: #0284c7;
  font-weight: 500;
}
.chatbot_ratingButton.chatbot_positive.chatbot_active {
  color: #16a34a;
}
.chatbot_ratingButton.chatbot_negative.chatbot_active {
  color: #dc2626;
}
.chatbot_ratingButton svg {
  width: 14px;
  height: 14px;
  margin-right: 3px;
}
.chatbot_ratingButton .chatbot_count {
  margin-left: 3px;
  font-size: 10px;
}
/*# sourceMappingURL=/assets/chatbot-bundle-21f4b6ca.css.map */
