* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

body.no-scroll {
  overflow: hidden;
}

.chatbot-wrapper {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 1002;
}

.chat-container {
  width: 400px;
  height: 750px;
  max-height: calc(100vh - 115px);
  background: white;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

.chat-container.hidden {
  display: none;
}

.chat-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-toggle-btn {
  width: 55px;
  height: 55px;
  background: #000000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
}

.chat-toggle-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.chat-mini {
  position: fixed;
  bottom: 90px;
  right: 20px;
  max-width: 280px;
  width: calc(100% - 40px);
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 1001;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
  transform: translateY(8px);
  opacity: 0;
}

.chat-mini.is-visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.chat-mini .mini-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.chat-mini .mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-mini .mini-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chat-mini .mini-title {
  font-weight: 700;
  color: #111827;
  font-size: 13px;
}

.chat-mini .mini-snippet {
  color: #374151;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.chat-toggle-btn img {
  height: 60%;
  object-fit: cover;
  border-radius: 0%;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.chat-header {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #404040;
}

.minimize-btn {
  position: absolute;
  top: 15px;
  right: 55px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.minimize-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.minimize-btn:active {
  transform: scale(0.95);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.close-btn:active {
  transform: scale(0.95);
}

.chat-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="1.2" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.8" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.header-content {
  position: relative;
  z-index: 2;
}

.bot-avatar {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border: 2px solid #666;
  overflow: hidden;
}

.bot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.bot-name {
  color: white;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.bot-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  animation: pulse-enhanced 2s infinite;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-enhanced {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8f9fa;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.3s forwards;
}

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

.message.user {
  flex-direction: row-reverse;
}

.message-bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  word-wrap: break-word;
  position: relative;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.bot .message-bubble {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: #334155;
  border-bottom-left-radius: 6px;
  border: 1px solid #f1f5f9;
}

.message.user .message-bubble {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: white;
  border-bottom-right-radius: 6px;
}

/* HTML content styling within message bubbles */
.message-bubble h1,
.message-bubble h2,
.message-bubble h3,
.message-bubble h4,
.message-bubble h5,
.message-bubble h6 {
  margin: 0.5em 0;
  font-weight: bold;
  line-height: 1.3;
}

.message-bubble h1 {
  font-size: 1.4em;
}
.message-bubble h2 {
  font-size: 1.3em;
}
.message-bubble h3 {
  font-size: 1.2em;
}
.message-bubble h4 {
  font-size: 1.1em;
}
.message-bubble h5 {
  font-size: 1.05em;
}
.message-bubble h6 {
  font-size: 1em;
}

.message-bubble p {
  margin: 5px 0;
  line-height: 1.1;
}

.message-bubble ul,
.message-bubble ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.message-bubble li {
  margin: 0.25em 0;
  line-height: 1.4;
}

.message-bubble strong,
.message-bubble b {
  font-weight: bold;
}

.message-bubble em,
.message-bubble i {
  font-style: italic;
}

.message-bubble u {
  text-decoration: underline;
}

.message-bubble code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.message-bubble pre {
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 0.5em 0;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  white-space: pre-wrap;
}

.message-bubble blockquote {
  border-left: 3px solid #ccc;
  margin: 0.5em 0;
  padding-left: 1em;
  font-style: italic;
  color: #666;
}

.message-bubble a {
  color: #2563eb;
  text-decoration: none;
}

.message-bubble a:hover {
  text-decoration: underline;
}

.message-bubble img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5em 0;
  font-size: 0.9em;
}

.message-bubble th,
.message-bubble td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.message-bubble th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

/* Dark theme adjustments for user messages */
.message.user .message-bubble code {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.message.user .message-bubble pre {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.message.user .message-bubble blockquote {
  border-left-color: #666;
  color: #ccc;
}

.message.user .message-bubble a {
  color: #66b3ff;
}

.message.user .message-bubble th {
  background: rgba(255, 255, 255, 0.1);
}

.message.user .message-bubble th,
.message.user .message-bubble td {
  border-color: #555;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.bot-avatar-small {
  background: white;
  color: #2d2d2d;
  border: 1px solid #ddd;
  overflow: hidden;
}

.bot-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar-small {
  background: #2d2d2d;
  color: white;
}

.quick-actions {
  padding: 15px 20px;
  border-top: 1px solid #e2e8f0;
  gap: 8px;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  justify-content: center;
}

.quick-actions.hidden {
  display: none;
}

.quick-action-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: white;
  border: 1px solid #404040;
  border-radius: 18px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chat-input {
  padding: 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-field {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  resize: none;
  min-height: 45px;
  max-height: 120px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
}

.send-btn {
  width: 45px;
  height: 45px;
  background: #2d2d2d;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 18px;
}

.send-btn:hover {
  background: #1a1a1a;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(45, 45, 45, 0.4);
}

.send-btn:active {
  transform: scale(0.95);
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 80px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Order tracking container */
.order-tracking {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  background: #f9f9f9;
}

/* Order tracking paragraph spacing */
.order-tracking p {
  margin: 8px 0;
}

/* First paragraph (Order number) - no top margin */
.order-tracking p:first-child {
  margin-top: 0;
}

/* Order status (green color) */
.order-status {
  color: #28a745;
}

/* Track package button */
.order-tracking-button {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #2d2d2d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.order-tracking-button:hover {
  background: #1a1a1a;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.welcome-message {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #2d2d2d;
  border-radius: 15px;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  color: #2d2d2d;
}

.welcome-emoji {
  font-size: 24px;
  margin-bottom: 8px;
}

/* Tab bar for FAQs */
.tab-bar {
  display: flex;
  background: white;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  gap: 5px;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  padding: 10px 5px;
  border: none;
  background: transparent;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  max-width: 200px;
}

.tab-btn.active {
  background: #2d2d2d;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 2px;
}

.tab-btn:hover:not(.active) {
  background: #f1f5f9;
  margin: 2px;
}

.content-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.chat-content,
.faqs-content,
.history-content {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  width: 100%;
  min-width: 0;
}

.chat-content.active,
.faqs-content.active,
.history-content.active {
  display: flex;
}

/* Ensure inactive tabs are completely hidden */
.chat-content:not(.active),
.faqs-content:not(.active),
.history-content:not(.active) {
  display: none !important;
}

/* History specific styles */
.history-content {
  padding: 15px;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.history-header {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}

.history-search-bar {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.history-search-bar:focus {
  border-color: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(45, 45, 45, 0.1);
}

.new-conversation-btn {
  padding: 10px 16px;
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.new-conversation-btn:hover {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.conversation-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conversation-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.conversation-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.conversation-item.active {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: white;
  border-color: #2d2d2d;
  box-shadow: 0 4px 12px rgba(45, 45, 45, 0.2);
}

.conversation-item.active .conversation-title {
  color: white;
}

.conversation-item.active .conversation-snippet {
  color: rgba(255, 255, 255, 0.8);
}

.conversation-item.active .conversation-time {
  color: rgba(255, 255, 255, 0.7);
}

.conversation-preview {
  flex: 1;
  min-width: 0;
}

.conversation-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a202c;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-snippet {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.conversation-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.conversation-time {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.conversation-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conversation-status.active {
  background: #10b981;
  color: white;
}

.conversation-status.archived {
  background: #6b7280;
  color: white;
}

.conversation-status.completed {
  background: #3b82f6;
  color: white;
}

.conversation-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 4px;
}

.conversation-item:hover .conversation-actions {
  display: flex;
}

.conversation-action-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.1);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.conversation-action-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #374151;
}

.conversation-item.active .conversation-action-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.conversation-item.active .conversation-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Empty state for conversation history */
.conversation-list:empty::after {
  content: "No conversations yet. Start chatting to see your history here!";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

/* FAQ specific styles */
.faqs-content {
  padding: 15px;
  background: #f8f9fa;
}

/* FAQ list-detail layout */
.faq-detail.hidden {
  display: none;
}

.faq-back-btn {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #1f2937;
  cursor: pointer;
}

.faq-back-btn:hover {
  background: #f8fafc;
}

.faq-detail-title {
  font-size: 18px;
  color: #111827;
  margin-bottom: 10px;
}

.faq-detail-body {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Allow rich HTML content from FAQ body */
.faq-detail-body p {
  margin: 0.5em 0;
  line-height: 1.6;
}
.faq-detail-body ul,
.faq-detail-body ol {
  padding-left: 1.25rem;
}
.faq-detail-body h1,
.faq-detail-body h2,
.faq-detail-body h3 {
  margin: 0.6em 0;
}
.faq-detail-body a {
  color: #2563eb;
  text-decoration: underline;
}
.faq-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.faqs-search-bar {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  margin-bottom: 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.faq-section,
.faq-subsection,
.faq-question {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.faq-section:hover,
.faq-subsection:hover,
.faq-question:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.faq-header {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #1a202c;
  transition: background-color 0.2s ease;
}

.faq-header:hover {
  background: rgba(248, 250, 252, 0.5);
}

.faq-section-header {
  font-size: 16px;
  color: #2d2d2d;
}

.faq-subsection-header {
  font-size: 15px;
}

.faq-question-header {
  font-size: 14px;
  color: #334155;
}

.faq-header .arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
  color: #64748b;
}

.faq-content {
  padding: 0 15px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-question .faq-content {
  padding-bottom: 15px;
}

.faq-answer {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  padding-top: 10px;
}

.faq-section.open > .faq-header .arrow,
.faq-subsection.open > .faq-header .arrow,
.faq-question.open > .faq-header .arrow {
  transform: rotate(90deg);
}

.faq-section.open > .faq-content,
.faq-subsection.open > .faq-content,
.faq-question.open > .faq-content {
  max-height: 1000px;
  padding-bottom: 15px;
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Product card container */
.product-card {
  display: flex;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  margin: 8px 0;
  background: #fafafa;
}

/* Product image */
.product-card-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Content wrapper */
.product-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Product title */
.product-card-title {
  font-size: 14px;
  font-weight: bold;
  color: #2d2d2d;
}

/* Product description */
.product-card-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

/* Price and button row */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
}

/* Price */
.product-card-price {
  font-size: 14px;
  font-weight: bold;
  color: #2d2d2d;
}

/* View button */
.product-card-button {
  padding: 4px 10px;
  background: #2d2d2d;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.product-card-button:hover {
  background: #1a1a1a;
  color: white !important;
}

/* But keep the gap spacing in product-card-content */
.message-bubble .product-card-content {
  gap: 2px !important;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .chatbot-wrapper {
    bottom: 20px;
    right: 10px;
    left: 10px;
  }

  .chat-container {
    max-width: 100%;
    height: calc(100vh - 40px);
    border-radius: 15px;
    margin: 0;
  }

  .chat-mini {
    bottom: 20px;
  }

  .input-field {
    font-size: 16px;
  }

  .quick-actions {
    padding: 10px 15px;
  }

  .quick-action-btn {
    font-size: 11px;
    padding: 6px 10px;
  }

  .message-bubble {
    max-width: 90%;
    padding: 12px 16px;
  }
}
