#chatbot-rivavo-widget {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.chatbot-rivavo-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 1001;
}

.chatbot-rivavo-button {
  width: 69px;
  height: 69px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17a2b8, #0c5460);
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s ease;
}

.chatbot-rivavo-button-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: #0c5460;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.chatbot-rivavo-button:hover {
  transform: scale(1.1);
}

.chatbot-rivavo-container {
  position: fixed;
  bottom: 125px;
  right: 20px;
  width: 380px;
  height: 500px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

.chatbot-rivavo-container.active {
  display: flex;
}

.chatbot-rivavo-header {
  background: linear-gradient(135deg, #17a2b8, #0c5460);
  color: #fff;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
}

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

.chatbot-rivavo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f8f9fa;
}

.chatbot-rivavo-message {
  margin-bottom: 12px;
  animation: chatbotRivavoSlideIn 0.3s ease;
}

@keyframes chatbotRivavoSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-rivavo-message.user {
  text-align: right;
}

.chatbot-rivavo-message.bot {
  text-align: left;
}

.chatbot-rivavo-message-text {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.4;
}

.chatbot-rivavo-message.user .chatbot-rivavo-message-text {
  background: #17a2b8;
  color: #fff;
}

.chatbot-rivavo-message.bot .chatbot-rivavo-message-text {
  background: #e9ecef;
  color: #333;
}

.chatbot-rivavo-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.chatbot-rivavo-input input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 10px 15px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.chatbot-rivavo-input input:focus {
  outline: none;
  border-color: #17a2b8;
}

.chatbot-rivavo-input button,
.chatbot-rivavo-option {
  background: #17a2b8;
  color: #fff;
  border: 0;
  border-radius: 24px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.chatbot-rivavo-option {
  border-radius: 8px;
  width: 100%;
  text-align: left;
}

.chatbot-rivavo-input button:hover,
.chatbot-rivavo-option:hover {
  background: #0c5460;
}

@media (max-width: 480px) {
  .chatbot-rivavo-container {
    width: calc(100vw - 20px);
    height: 70vh;
    bottom: 110px;
  }
}
