#rm-chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0F6E5B;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 999998;
  transition: transform 0.15s ease;
}
#rm-chat-bubble:hover { transform: scale(1.06); }

#rm-chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  z-index: 999999;
}

#rm-chat-header {
  background: #0F6E5B;
  color: white;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#rm-chat-close {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  opacity: 0.85;
}
#rm-chat-close:hover { opacity: 1; }

#rm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #F7F9F8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rm-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.rm-msg-bot {
  background: #EAF2EF;
  color: #1a1a1a;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.rm-msg-user {
  background: #0F6E5B;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.rm-thinking { opacity: 0.6; font-style: italic; }

.rm-whatsapp-btn {
  align-self: flex-start;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-top: -2px;
}
.rm-whatsapp-btn:hover { opacity: 0.9; }

#rm-chat-inputrow {
  display: flex;
  border-top: 1px solid #eee;
  padding: 8px;
  gap: 8px;
  background: white;
}
#rm-chat-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13.5px;
  outline: none;
}
#rm-chat-input:focus { border-color: #0F6E5B; }
#rm-chat-send {
  background: #0F6E5B;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  cursor: pointer;
}
#rm-chat-send:hover { background: #0c5c4c; }

@media (max-width: 400px) {
  #rm-chat-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); }
  #rm-chat-bubble { right: 16px; bottom: 16px; }
}