/* Minimal styles for bottom-right chat widget */
.assistant-chatbot-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.assistant-chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #710000 0%, #a10000 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(113, 0, 0, 0.4);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
}

.assistant-chatbot-button:hover {
  background: linear-gradient(135deg, #5b0000 0%, #810000 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(113, 0, 0, 0.6);
}

.assistant-chatbot-button:active {
  transform: scale(0.95);
}

.assistant-chatbot-button svg {
  width: 24px;
  height: 24px;
  fill: white;
  position: relative;
  top: -1px;
}

.assistant-chatbot-button img {
  width: 24px;
  height: 24px;
  display: block;
  position: relative;
  top: -1px;
  right: -1px;
}

.assistant-chatbot-panel {
  width: 380px;
  height: 600px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  bottom: 90px;
  right: 20px;
}

.assistant-chatbot-panel.is-open {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.assistant-chatbot-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #710000 0%, #8b0000 50%, #710000 100%);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assistant-chatbot-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-chatbot-header-title svg,
.assistant-chatbot-header-title img {
  width: 24px;
  height: 24px;
  fill: white;
  display: block;
}

.assistant-chatbot-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.assistant-chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.assistant-chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
}

.assistant-chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 14px;
  word-wrap: break-word;
}

.assistant-chatbot-message.is-user {
  align-self: flex-end;
  background: #700000;
  color: white;
  border-bottom-right-radius: 4px;
}

.assistant-chatbot-message.is-assistant {
  align-self: flex-start;
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
}

.assistant-chatbot-message.is-loading {
  align-self: flex-start;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
}

.assistant-chatbot-loading-dots {
  display: inline-flex;
  gap: 4px;
}

.assistant-chatbot-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #700000;
  animation: bounce 1.4s infinite ease-in-out both;
}

.assistant-chatbot-loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.assistant-chatbot-loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.assistant-chatbot-input-wrapper {
  padding: 16px;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 8px;
}

.assistant-chatbot-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.assistant-chatbot-input:focus {
  border-color: #700000;
}

.assistant-chatbot-send {
  background: linear-gradient(135deg, #700000 0%, #a00000 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.assistant-chatbot-send svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.assistant-chatbot-send img {
  width: 20px;
  height: 20px;
  display: block;
}

.assistant-chatbot-send:hover {
  background: linear-gradient(135deg, #5a0000 0%, #800000 100%);
}

.assistant-chatbot-send:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .assistant-chatbot-panel {
    bottom: 80px;
    left: 10px;
    right: 10px;
    width: auto;
    height: calc(100vh - 100px);
  }

  .assistant-chatbot-root {
    right: 10px;
    bottom: 10px;
  }
}
