.chat-bubble-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
}

.chat-toggle {
  background: #3F51B5;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  font-size: 26px;
}

.chat-window {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  overflow: hidden;
  flex-direction: column;
  font-family: system-ui, sans-serif;
}

.chat-window.open { display: flex; }

.chat-header {
  background: #3F51B5;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.msg_history {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f8f8;
  font-size:12px !important;
}

.incoming_msg_img img {
  width: 40px;
  border-radius: 50%;
}

.incoming_msg, .outgoing_msg {
  margin: 10px 0;
  display: flex;
}

.incoming_msg .received_withd_msg p {
  background: #e4e8fb;
  border-radius: 8px;
  padding: 8px 12px;
  color: #333;
}

.outgoing_msg .sent_msg p {
  background: #3F51B5;
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  margin-left: auto;
  max-width: 80%;
}

.time_date {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.type_msg {
  border-top: 1px solid #ddd;
  background: #fff;
  padding: 10px;
}

.input_msg_write {
  display: flex;
  align-items: center;
}

.write_msg {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 14px;
  outline: none;
}

.msg_send_btn {
  background: #3F51B5;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 18px;
}

.msg_send_btn:hover {
  background: #5C6BC0;
}
