/* Chat widget styles */
.chat-widget {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 560px;
}

.chat-header {
  background: #2563eb;
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.chat-message.user {
  align-self: flex-end;
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  align-self: flex-start;
  background: #e5e5e5;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}

.chat-message.status {
  align-self: center;
  background: transparent;
  color: #6a6a6a;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
}

.chat-message .live-url {
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
}

.chat-message .live-url:hover {
  color: #1d4ed8;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.chat-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.chat-send-btn {
  padding: 10px 20px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-send-btn:hover {
  background: #1d4ed8;
}

.chat-send-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
