
:root {
  --zurface-brand-color: #44546a;
}

.zurface-chat-bubble {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 9999px;
  background: var(--zurface-brand-color);
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zurface-chat-bubble:hover {
  transform: scale(1.05);
}

.zurface-chat-panel {
  position: fixed;
  bottom: 180px;
  right: 20px;
  width: 360px;
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  font-family: Arial, sans-serif;
}

.zurface-chat-open {
  display: flex;
}

.zurface-chat-header {
  background: var(--zurface-brand-color);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.zurface-chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.zurface-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zurface-chat-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.zurface-chat-message-bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.zurface-chat-message-bot {
  align-self: flex-start;
}

.zurface-chat-message-bot .zurface-chat-message-bubble {
  background: white;
  color: #111111;
  border: 1px solid #e6e6e6;
}

.zurface-chat-message-user {
  align-self: flex-end;
}

.zurface-chat-message-user .zurface-chat-message-bubble {
  background: var(--zurface-brand-color);
  color: white;
}

.zurface-chat-sources {
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}

.zurface-chat-sources-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #333333;
}

.zurface-chat-sources-list {
  margin: 0;
  padding-left: 18px;
}

.zurface-chat-sources-list li {
  margin-bottom: 4px;
}

.zurface-chat-sources-list a {
  color: var(--zurface-brand-color);
  text-decoration: underline;
}

.zurface-chat-input {
  display: flex;
  gap: 8px;
  border-top: 1px solid #eee;
  background: white;
  padding: 10px;
}

.zurface-chat-input input {
  flex: 1;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

.zurface-chat-input input:disabled {
  background: #f3f3f3;
}

.zurface-chat-input button {
  background: var(--zurface-brand-color);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  min-width: 78px;
}

.zurface-chat-input button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
