/* ChatPET chat widget – matches petsitting template styling */
.chatpet-chat-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.chatpet-chat-card .chat-messages {
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  padding: 1.5rem;
}
.chatpet-chat-card .chat-message {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.chatpet-chat-card .chat-message.user {
  flex-direction: row-reverse;
}
.chatpet-chat-card .chat-message .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f4fc;
  color: #00bd56;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.chatpet-chat-card .chat-message.user .avatar {
  background: #00bd56;
  color: #fff;
}
.chatpet-chat-card .chat-message .bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.chatpet-chat-card .chat-message .bubble p { margin: 0 0 0.5rem; }
.chatpet-chat-card .chat-message .bubble p:last-child { margin-bottom: 0; }
.chatpet-chat-card .chat-message.assistant .bubble {
  background: #f8f9fa;
  color: #1a1a1a;
  border-bottom-left-radius: 4px;
}
.chatpet-chat-card .chat-message.user .bubble {
  background: #00bd56;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatpet-chat-card .chat-message .label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00bd56;
  margin-bottom: 0.25rem;
}
.chatpet-chat-card .chat-message.user .label { color: rgba(255,255,255,0.9); }
.chatpet-chat-card .chat-message.typing .bubble { padding: 1rem; }
.chatpet-chat-card .chat-input-wrap {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #f8f9fa;
}
.chatpet-chat-card .chat-input-wrap .form-control {
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
.chatpet-chat-card .chat-input-wrap .form-control:focus {
  border-color: #00bd56;
  box-shadow: 0 0 0 3px rgba(0,189,86,0.15);
}
.chatpet-chat-card .chat-input-wrap .btn-primary {
  background: #00bd56;
  border-color: #00bd56;
  color: #fff;
  border-radius: 4px;
  padding: 0.75rem 1.25rem;
}
.chatpet-chat-card .chat-input-wrap .btn-primary:hover {
  background: #009e47;
  border-color: #009e47;
  color: #fff;
}
.chatpet-chat-card .chat-input-wrap .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
