/* GomerAI Chat Widget – minimal production CSS */

#gomerai-chat-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

/* Launcher button */

.gomerai-chat-launcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #16a34a; /* green */
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  gap: 6px;
}

.gomerai-chat-launcher-btn:hover {
  filter: brightness(1.05);
}

.gomerai-chat-launcher-btn:active {
  transform: translateY(1px) scale(0.99);
}

/* Panel */

.gomerai-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 340px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  background: #0f172a; /* slate-900 */
  color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  overflow: hidden;
}

.gomerai-chat-hidden {
  display: none !important;
}

/* Header */

.gomerai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0f172a;
}

.gomerai-chat-title {
  font-size: 14px;
  font-weight: 700;
}

.gomerai-chat-subtitle {
  font-size: 11px;
  opacity: 0.85;
}

.gomerai-chat-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Messages */

.gomerai-chat-messages {
  padding: 10px 10px 6px;
  flex: 1;
  overflow-y: auto;
  background: radial-gradient(circle at top, #111827 0, #020617 60%);
}

.gomerai-chat-message-row {
  display: flex;
  margin-bottom: 6px;
}

.gomerai-chat-message-row.user {
  justify-content: flex-end;
}

.gomerai-chat-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.gomerai-chat-bubble.user {
  background: #22c55e;
  color: #022c22;
  border-bottom-right-radius: 2px;
}

.gomerai-chat-bubble.assistant {
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-bottom-left-radius: 2px;
}

/* Footer / input */

.gomerai-chat-form {
  display: flex;
  padding: 8px;
  gap: 6px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: #020617;
}

.gomerai-chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 7px 10px;
  font-size: 13px;
  background: #020617;
  color: #e5e7eb;
}

.gomerai-chat-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 1px #22c55e33;
}

.gomerai-chat-send-btn {
  border-radius: 999px;
  border: none;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #22c55e;
  color: #022c22;
}

.gomerai-chat-send-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Small screens */

@media (max-width: 480px) {
  .gomerai-chat-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 70px;
    max-height: 70vh;
  }

  #gomerai-chat-root {
    right: 8px;
  }
}