/* public/css/chatbox.css */

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444 url("../images/chatbox.png") center center no-repeat;
  background-size: cover;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0; /* hide default emoji if any */
}


#chatbox {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: #fefefe;
  border: 2px solid #ccc;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  z-index: 998;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#chatbox.open {
  display: flex;
}

#chat-header {
  background: #222;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  font-weight: 600;
}

#chat-body {
  height: 220px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: #222;
}

.chat-message {
  background: #f0f0f0;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.chat-message strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #444;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  font-size: 0.9rem;
  border-right: 1px solid #ccc;
  outline: none;
}

#chat-form button {
  padding: 0.5rem 0.75rem;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

#chat-form button:hover {
  background: #222;
}

#chat-toggle .bubble {
  position: absolute;
  top: 6px;
  right: 6px; /* or use left: 6px to move to the left */
  font-size: 18px;
}


