:root {
  --wacdark: #111115;
  --waclight: #1a1a25;
  --waclightest: #272739;
  --wacorange: #ffaa57;
  --wactext: #e9e9f2;
  --wacmuted: #b7b7c9;
  --wacshadow: 0 12px 32px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1000px 500px at 20% 0%, rgba(255,170,87,0.15), transparent 60%),
    radial-gradient(1200px 600px at 100% 100%, rgba(255,170,87,0.22), transparent 55%),
    linear-gradient(180deg, var(--wacdark), var(--waclight));
  color: var(--wactext);
}

/* Floating toggle */
#wac-chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, var(--waclightest), var(--waclight));
  color: var(--wactext);
  padding: 12px 16px;
  border-radius: 28px;
  box-shadow: var(--wacshadow);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms;
}
#wac-chat-toggle:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.wac-toggle-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--wacorange);
  box-shadow: 0 0 0 4px rgba(255,170,87,0.2);
}
.wac-toggle-text { font-weight: 600; letter-spacing: 0.3px; }

/* Hyperlink styling - orange text, no underline (bold) */
.wac-bubble a {
  color: var(--wacorange) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-style: inherit !important;
  font-size: inherit !important;
  border: none !important;
  background: none !important;
  outline: none !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.wac-bubble a:hover {
  opacity: 0.85;
  color: var(--wacorange) !important;
  text-decoration: none !important;
}

.wac-bubble a:active {
  opacity: 0.7;
  color: var(--wacorange) !important;
  text-decoration: none !important;
}

.wac-bubble a:visited {
  color: var(--wacorange) !important;
  text-decoration: none !important;
}

.wac-bubble a:focus {
  color: var(--wacorange) !important;
  text-decoration: none !important;
  outline: none !important;
}

/* Chat window */
#wac-chat {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: linear-gradient(180deg, var(--waclight), var(--wacdark));
  box-shadow: none;
  animation: wac-pop 180ms ease;
}
@keyframes wac-pop { from { transform: scale(0.98); opacity: 0 } to { transform: scale(1); opacity: 1 } }

.wac-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  background: linear-gradient(180deg, rgba(255,170,87,0.20), var(--waclight));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wac-brand { display: flex; align-items: center; gap: 10px; }
.wac-logo { width: 28px; height: 28px; display: grid; place-items: center; background: rgba(255,170,87,0.35); color: var(--wacorange); border-radius: 8px; border: 1px solid var(--wacorange); }
.wac-title { font-weight: 700; letter-spacing: 0.3px; }
.wac-sub { font-size: 12px; color: var(--wacmuted); }
.wac-header-actions { display: flex; align-items: center; gap: 8px; }
/* Header action chips use the same style as bottom chips */
/* Header actions chips inherit global .wac-chip sizing */

/* Removed legacy Exit/Working button styles */

.wac-thread {
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,170,87,0.06), transparent);
}
.wac-msg { display: flex; gap: 10px; align-items: flex-end; }
.wac-msg .wac-avatar { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,170,87,0.12); color: var(--wacorange); font-size: 16px; }
.wac-msg .wac-bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.wac-msg.bot .wac-bubble { background: rgba(255,170,87,0.12); border: 1px solid rgba(255,170,87,0.35); }
.wac-msg.user { justify-content: flex-end; }
.wac-msg.user .wac-bubble { background: var(--wacorange); color: #1a1a1a; font-weight: 600; border: 1px solid rgba(255,170,87,0.45); }
.wac-msg.user .wac-avatar { display: none; }

/* Smooth bubble animation */
@keyframes wac-bubble-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wac-bubble.wac-enter { animation: wac-bubble-in 300ms ease both; }

.wac-quick {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 14px 16px 14px;
  justify-content: center; align-items: center; align-content: center;
  margin-bottom: 24px;
}
.wac-chip {
  background: rgba(255,170,87,0.12);
  border: 1px solid rgba(255,170,87,0.35);
  color: var(--wactext);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
}
.wac-chip:hover { border-color: rgba(255,170,87,0.55); }

/* input removed for FAQ-only mode */

/* Suggestions list under input */
.wac-suggest {
  display: grid; gap: 6px; margin-top: 6px;
}
.wac-suggest .wac-suggest-item { font-size: 12px; color: var(--wacmuted); }

/* Scrollbar aesthetics */
.wac-thread::-webkit-scrollbar { width: 10px; }
.wac-thread::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }

/* Responsive */
@media (max-width: 420px) {
  #wac-chat { right: 10px; left: 10px; width: auto; }
  #wac-chat-toggle { right: 10px; }
}