:root {
  --chakra-theme: #4B0082; /* Deep Indigo (chakra color) */
  --chakra-accent: #FFB300; /* Golden accent */
  --chakra-bg-light: #f8f5f1;
  --chakra-bot-msg: #e8eaf6;
}

body, button, input {
  font-family: 'Segoe UI', sans-serif;
}

#chakra-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--chakra-theme);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 9999;
}

#chakra-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 380px;
  height: 520px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

#chakra-window.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#chakra-header {
  background: var(--chakra-theme);
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

#chakra-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: var(--chakra-bg-light);
}

#chakra-body .user {
  text-align: right;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

#chakra-body .bot {
  text-align: left;
  margin-bottom: 8px;
  background: var(--chakra-bot-msg);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  color: var(--chakra-theme);
  font-style: italic;
}

#chakra-error {
  color: red;
  font-size: 12px;
  padding: 4px;
  margin-top: 4px;
  display: none;
}

#chakra-input-container {
  display: flex;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ccc;
  background: white;
  gap: 8px;
}

#chakra-input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  outline: none;
}

#chakra-send-btn {
  background-color: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--chakra-theme); /* now uses theme color */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#chakra-send-btn:hover {
  background-color: rgba(75, 0, 130, 0.1); /* Light Indigo */
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  #chakra-window {
    width: 95vw;
    height: 70vh;
    bottom: 80px;
    right: 5vw;
    border-radius: 12px;
  }

  #chakra-btn {
    bottom: 10px;
    right: 5vw;
    padding: 8px 14px;
    font-size: 14px;
    z-index: 99999;
  }

  #chakra-header {
    font-size: 16px;
    padding: 12px;
  }

  #chakra-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
  }

  #chakra-input {
    font-size: 16px;
    padding: 12px;
  }

  #chakra-input:focus,
  #chakra-btn:focus {
    outline: 2px solid var(--chakra-theme);
    outline-offset: 2px;
  }

  #chat-legal-footer a:hover {
    color: #666;
  }

.chakra-faq-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chakra-faq-btn {
  display: inline-block;
  max-width: 80%;
  background-color: var(--chakra-primary, #0066cc); /* Greeting color */
  color: #fff; /* White text like greeting */
  border: none;
  border-radius: 18px 18px 18px 0; /* Rounded like bot bubble */
  padding: 10px 16px;
  margin: 6px 0;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.chakra-faq-btn:hover {
  background-color: rgba(0, 102, 204, 0.85); /* Slightly darker */
  transform: scale(1.02); /* Subtle lift */
}

.chakra-faq-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
}

.chakra-faq-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-top: 8px;
  padding-bottom: 4px;
  scrollbar-width: none; /* Firefox */
}

.chakra-faq-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.chakra-faq-pill {
  flex: 0 0 auto;
  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease;
}

.chakra-faq-pill:hover {
  background-color: rgba(255, 255, 255, 0.4);
}


}
