:root {
  --primary: #006B92; /* teal */
  --primary-600: #006B92;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--bg); color: var(--text); }

/* Floating button */
.chat-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;
  background: var(--primary); color: var(--white); border: none; cursor: pointer;
  width: 64px; height: 64px; border-radius: 999px; display: grid; place-items: center;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--primary-600); box-shadow: 0 14px 40px rgba(2, 6, 23, 0.16); }

/* Chat window */
.chat-window {
  position: fixed; right: 24px; bottom: 100px; width: 380px; max-width: calc(100% - 32px);
  height: 540px; max-height: calc(100% - 120px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
  z-index: 9999;
}

.chat-header { padding: 16px; background: linear-gradient(120deg, var(--primary), #006B92); color: var(--white); }
.chat-title { font-weight: 700; font-size: 16px; }
.chat-subtitle { font-size: 12px; opacity: .9; }

.chat-body { flex: 1; padding: 16px; overflow-y: auto; background: #f9fafb; }

.msg { display: flex; margin-bottom: 12px; gap: 8px; }
.msg.agent { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }

.bubble { max-width: 80%; padding: 10px 12px; border-radius: 14px; line-height: 1.35; font-size: 14px; box-shadow: 0 2px 6px rgba(2, 6, 23, 0.05); }
.agent .bubble { background: #ffffff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.user .bubble { background: #0ea5e9; color: #fff; border-bottom-right-radius: 4px; }

.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { border: 1px solid var(--border); background: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; cursor: pointer; }
.chip:hover { background: #f1f5f9; }

.chat-footer { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 8px; background: #fff; }
.chat-input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.send-btn { background: var(--primary); color: #fff; border: none; padding: 10px 14px; border-radius: 10px; cursor: pointer; }

.small { color: var(--muted); font-size: 12px; }

/* Cards */
.card { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 12px; margin: 8px 0; }
.card h4 { margin: 0 0 6px; font-size: 14px; }
.card p { margin: 0; font-size: 13px; color: #334155; }

/* Hide on very small height */
@media (max-height: 620px) {
  .chat-window { height: 70vh; }
}
