#chat-toggle-btn {
  position: fixed;
  bottom: 60px;
  right: 15px;
  background: #b53a3a;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
}

#chat-popup {


  display: none;
  position: fixed;
  bottom: 124px;
  right: 15px;
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#chat-popup-header {
  background: #b53a3a;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close-btn {
  cursor: pointer;
  font-weight: bold;
}

#chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  font-size: 14px;
}

#chat-form {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ccc;
}

#chat-message {
  flex: 1;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
}

#send-msg {
  margin-left: 5px;
  padding: 6px 10px;
  background: #b53a3a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 600px) {
  #chat-popup {
    bottom: 70px;
    right: 10px;
    width: 95%;
    height: 70vh;
  }
}