/* ==========================================================================
   Srivasthra Traditional - AI Silk Concierge Chatbot Styles
   ========================================================================== */

.chatbot-wrapper {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 36px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(71, 9, 22, 0.28);
  border: 1px solid rgba(198, 146, 52, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.chatbot-wrapper.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: var(--maroon-gradient, linear-gradient(135deg, #700f24, #470916));
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-accent, #c69234);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e5b964;
  object-fit: cover;
  background-color: #242028;
}

.chatbot-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #f7dc9f;
  margin: 0;
  line-height: 1.2;
}

.chatbot-status {
  font-size: 11.5px;
  color: #d1cbd6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chatbot-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25d366;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.chatbot-close-btn:hover {
  color: #e5b964;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #faf7f2;
}

.chat-msg {
  max-width: 85%;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 11px 15px;
  border-radius: 12px;
  word-wrap: break-word;
}

.chat-msg.bot {
  align-self: flex-start;
  background-color: #ffffff;
  color: #2a252e;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(198, 146, 52, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #700f24, #8e1531);
  color: #ffffff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 8px rgba(112, 15, 36, 0.15);
}

.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.chat-quick-btn {
  background: #ffffff;
  border: 1px solid rgba(198, 146, 52, 0.4);
  color: #700f24;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 16px;
  text-align: left;
  transition: all 0.2s ease;
  cursor: pointer;
}

.chat-quick-btn:hover {
  background-color: #fbeff2;
  border-color: #700f24;
  transform: translateX(4px);
}

.chat-typing-indicator {
  align-self: flex-start;
  display: none;
  background: #ffffff;
  border: 1px solid rgba(198, 146, 52, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  gap: 4px;
}

.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #c69234;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chat-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chatbot-input-bar {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid rgba(198, 146, 52, 0.2);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chatbot-input {
  flex-grow: 1;
  border: 1px solid rgba(198, 146, 52, 0.3);
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 13.5px;
  outline: none;
  background-color: #fdfbf8;
}

.chatbot-input:focus {
  border-color: #700f24;
  background: #ffffff;
}

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #700f24, #8e1531);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  background: #c69234;
  transform: scale(1.08);
}
