html.hairchat-theme {
  --chat--font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --chat--border-radius: 18px;
  --chat--spacing: 14px;
  --chat--header--background: #075e54;
  --chat--header--color: #ffffff;
  --chat--body--background: #efeae2;
  --chat--message--font-size: 14px;
  --chat--message-line-height: 1.35;
  --chat--message--border-radius: 18px;
  --chat--message--bot--background: rgba(255, 255, 255, 0.98);
  --chat--message--bot--color: #111b21;
  --chat--message--user--background: #dcf8c6;
  --chat--message--user--color: #111b21;
  --chat--input--container--background: rgba(255, 255, 255, 0.9);
  --chat--input--background: transparent;
  --chat--input--text-color: #111b21;
  --chat--input--send--button--color: #075e54;
  --chat--toggle--background: #25d366;
  --chat--toggle--hover--background: #1fbe59;
  --chat--toggle--active--background: #1aa84e;
  --chat--toggle--color: #0b2e13;
}

html.hairchat-theme,
html.hairchat-theme body {
  height: 100%;
}

html.hairchat-theme body {
  margin: 0;
  font-family: var(--chat--font-family);
  background: var(--chat--body--background);
}

html.hairchat-theme #n8n-chat,
html.hairchat-theme .n8n-chat {
  width: 100%;
  height: 100%;
}

html.hairchat-theme .chat-window-wrapper {
  position: fixed;
  inset: 0;
  right: 0;
  bottom: 0;
  max-width: 100%;
  max-height: 100%;
}

html.hairchat-theme .chat-window-wrapper .chat-window {
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
}

html.hairchat-theme .chat-window-wrapper .chat-window-toggle {
  display: none !important;
}

html.hairchat-theme .chat-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
}

html.hairchat-theme .chat-messages-list {
  margin-top: 0 !important;
  flex: 1 1 auto;
  overflow: auto;
  background: var(--chat--body--background);
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 0),
    radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 0);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}

html.hairchat-theme .chat-message {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

html.hairchat-theme .chat-message.chat-message-from-user {
  border-bottom-right-radius: 6px;
}

html.hairchat-theme .chat-message.chat-message-from-bot {
  border-bottom-left-radius: 6px;
}

html.hairchat-theme .chat-inputs textarea,
html.hairchat-theme .chat-inputs input {
  border-radius: 9999px;
}

html.hairchat-theme .chat-input-send-button {
  border-radius: 9999px;
}

html.hairchat-theme .hairchat-voice-button {
  border: 0;
  border-radius: 9999px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1;
  background: rgba(255, 255, 255, 0.85);
  color: #075e54;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html.hairchat-theme .hairchat-voice-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

html.hairchat-theme .hairchat-voice-button[aria-pressed="true"] {
  background: rgba(37, 211, 102, 0.25);
}

html.hairchat-theme .hairchat-voice-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

html.hairchat-theme ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html.hairchat-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 9999px;
}

html.hairchat-theme ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}
