#ft-chat-widget {
  --ft-primary: #1a7a4c;
  --ft-bg: #ffffff;
  --ft-text: #1a1a1a;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#ft-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--ft-primary);
  color: white;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#ft-chat-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 460px;
  max-height: 70vh;
  background: var(--ft-bg);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#ft-chat-window.ft-hidden {
  display: none;
}

#ft-chat-header {
  background: var(--ft-primary);
  color: white;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

#ft-chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#ft-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ft-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.ft-msg.ft-user {
  align-self: flex-end;
  background: var(--ft-primary);
  color: white;
}

.ft-msg.ft-bot {
  align-self: flex-start;
  background: #f0f0f0;
  color: var(--ft-text);
}

.ft-msg.ft-typing {
  align-self: flex-start;
  background: #f0f0f0;
  color: #888;
  font-style: italic;
}

#ft-chat-input-row {
  display: flex;
  border-top: 1px solid #eee;
  padding: 8px;
  gap: 6px;
}

#ft-chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

#ft-chat-send {
  background: var(--ft-primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}
