/* Chat Widget Styles */
:root {
  --canvas: #f7f2e8;
  --panel: rgba(255, 252, 247, 0.92);
  --ink: #102a2b;
  --muted: #5c6f70;
  --brand: #0f766e;
  --brand-strong: #0a4f4a;
  --sand: #d9c8a9;
  --line: rgba(16, 42, 43, 0.12);
  --shadow: 0 24px 60px rgba(16, 42, 43, 0.18);
}

.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: white;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
  transition: transform 120ms ease, box-shadow 120ms ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chat-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.4);
}

.chat-launcher:active {
  transform: scale(0.96);
}

.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: min(500px, calc(100vw - 32px));
  height: 600px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  backdrop-filter: blur(18px);
}

.chat-panel[hidden] {
  display: none;
}

.chat-header {
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.chat-kicker {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.ghost-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.ghost-button:hover {
  background: rgba(15, 118, 110, 0.08);
  border-color: var(--brand);
  color: var(--brand);
}

.chat-status {
  flex-shrink: 0;
  padding: 12px 20px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(15, 118, 110, 0.04);
  border-bottom: 1px solid var(--line);
}

.webchat-host {
  flex: 1;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .chat-launcher {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .chat-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
    bottom: 64px;
    right: 16px;
    left: 16px;
  }
}
