/* =========================
   Vertechx Chatbot (Creme + Olive)
   Scoped styles — only affects the chatbot widget
   ========================= */

:root {
  /* Creme */
  --creme-50: #fdfbf7;
  --creme-100: #faf6ef;
  --creme-200: #f3ede1;
  --creme-300: #e8dfd0;
  --creme-400: #d4cab5;
  --creme-500: #b8ac96;
  --creme-600: #96897a;
  --creme-700: #7a6e60;

  /* Olive */
  --olive-500: #5c6840;
  --olive-600: #4a5530;
  --olive-700: #3b4426;
  --olive-800: #2c331c;
  --olive-900: #1e2415;
  --olive-950: #141910;

  /* Chatbot tokens */
  --vx-bg: var(--creme-100);
  --vx-card: var(--creme-200);
  --vx-card-2: var(--creme-50);
  --vx-text: var(--olive-900);
  --vx-subtext: color-mix(in srgb, var(--olive-900) 72%, var(--creme-100));
  --vx-border: var(--creme-300);
  --vx-shadow: 0 18px 55px rgba(30, 36, 21, 0.20);
  --vx-radius: 16px;
  --vx-radius-lg: 18px;
  --vx-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;

  /* Accent / glow */
  --vx-accent: var(--olive-500);
  --vx-accent-strong: var(--olive-600);
  --vx-glow: rgba(92, 104, 64, 0.28);
}

/* --- IMPORTANT: these styles only target the chatbot UI --- */

/* Launcher button */
.vx-chatbot-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--vx-border);
  background: rgba(250, 246, 239, 0.92);
  /* creme-100 w/ glass */
  backdrop-filter: blur(10px);
  color: var(--vx-text);
  box-shadow: var(--vx-shadow);
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.vx-chatbot-launcher:hover {
  transform: translateY(-2px);
  background: rgba(253, 251, 247, 0.96);
  box-shadow: 0 20px 70px rgba(30, 36, 21, 0.22);
}

.vx-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--vx-accent);
  box-shadow:
    0 0 0 6px rgba(92, 104, 64, 0.14),
    0 0 18px rgba(92, 104, 64, 0.32);
}

.vx-launcher-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Chat window */
.vx-chatbot {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: min(380px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 120px));
  z-index: 999999;
  border: 1px solid var(--vx-border);
  border-radius: var(--vx-radius-lg);
  background: rgba(250, 246, 239, 0.92);
  /* creme-100 */
  backdrop-filter: blur(14px);
  box-shadow: var(--vx-shadow);
  overflow: hidden;
  display: none;
  font-family: var(--vx-font);
}

.vx-chatbot.vx-open {
  display: flex;
  flex-direction: column;
}

.vx-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 14px;
  border-bottom: 1px solid var(--vx-border);
  background:
    linear-gradient(90deg,
      rgba(253, 251, 247, 0.95),
      rgba(243, 237, 225, 0.92));
}

.vx-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vx-brand .vx-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--vx-text);
}

.vx-brand .vx-sub {
  font-size: 12px;
  color: rgba(30, 36, 21, 0.70);
}

.vx-close {
  border: 1px solid var(--vx-border);
  background: rgba(243, 237, 225, 0.9);
  color: var(--vx-text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.vx-close:hover {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 0 0 4px rgba(92, 104, 64, 0.10);
}

.vx-messages {
  flex: 1;
  padding: 14px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bubbles */
.vx-bubble {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--vx-border);
  line-height: 1.4;
  font-size: 13.5px;
  white-space: pre-wrap;
}

.vx-bot {
  align-self: flex-start;
  background: rgba(243, 237, 225, 0.92);
  /* creme-200 */
  color: var(--vx-text);
}

.vx-user {
  align-self: flex-end;
  background:
    linear-gradient(135deg,
      rgba(44, 51, 28, 0.92),
      rgba(92, 104, 64, 0.92));
  color: var(--creme-50);
  border-color: rgba(44, 51, 28, 0.25);
  box-shadow: 0 10px 24px rgba(30, 36, 21, 0.15);
}

/* Quick reply chips */
.vx-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.vx-chip {
  border: 1px solid var(--vx-border);
  background: rgba(253, 251, 247, 0.94);
  color: var(--vx-text);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 700;
}

.vx-chip:hover {
  border-color: rgba(92, 104, 64, 0.35);
  box-shadow: 0 0 0 4px rgba(92, 104, 64, 0.10);
}

/* Input bar */
.vx-inputbar {
  border-top: 1px solid var(--vx-border);
  padding: 10px;
  display: flex;
  gap: 10px;
  background: rgba(243, 237, 225, 0.88);
}

.vx-input {
  flex: 1;
  border: 1px solid var(--vx-border);
  background: rgba(253, 251, 247, 0.96);
  color: var(--vx-text);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.vx-input:focus {
  border-color: rgba(92, 104, 64, 0.45);
  box-shadow: 0 0 0 4px rgba(92, 104, 64, 0.14);
}

.vx-send {
  border: 1px solid rgba(92, 104, 64, 0.35);
  background: rgba(92, 104, 64, 0.12);
  color: var(--olive-900);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 900;
}

.vx-send:hover {
  background: rgba(92, 104, 64, 0.18);
  box-shadow: 0 0 0 4px rgba(92, 104, 64, 0.12);
}

/* Scrollbar (nice-to-have, still scoped via container) */
.vx-messages::-webkit-scrollbar {
  width: 10px;
}

.vx-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 202, 181, 0.9);
  /* creme-400 */
  border-radius: 999px;
  border: 2px solid rgba(250, 246, 239, 0.8);
  /* creme-100 */
}

/* Typing Animation */
.vx-typing {
  align-self: flex-start;
  background: rgba(243, 237, 225, 0.92);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--vx-border);
  display: flex;
  gap: 4px;
  align-items: center;
}

.vx-typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--olive-600);
  border-radius: 50%;
  animation: vx-typing-bounce 1.4s infinite ease-in-out both;
}

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

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

@keyframes vx-typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}