#mj-chat-widget {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #183b49;
}

#mj-chat-widget * {
  box-sizing: border-box;
}

#mj-chat-widget [hidden] {
  display: none !important;
}

#mj-chat-launcher {
  background: #075d79;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 15px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px #0003;
}

#mj-chat-launcher:hover {
  background: #06465c;
}

#mj-chat-launcher span {
  font-size: 20px;
  margin-right: 6px;
}

#mj-chat-panel {
  width: 365px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid #d3e2e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 35px #0003;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 44px);
}

#mj-chat-widget .mj-chat-header {
  background: #075d79;
  color: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mj-chat-widget .mj-chat-header strong {
  font-size: 17px;
  color: #ffffff;
}

#mj-chat-widget .mj-chat-header small {
  display: block;
  color: #d5eef5;
  font-size: 12px;
}

#mj-chat-close {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 0 6px;
}

#mj-chat-messages {
  height: 320px;
  min-height: 100px;
  overflow-y: auto;
  padding: 14px;
  background: #f5f8fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#mj-chat-widget .mj-chat-bot,
#mj-chat-widget .mj-chat-user {
  padding: 12px;
  border-radius: 12px;
  max-width: 92%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}

#mj-chat-widget .mj-chat-bot {
  background: #e5f0f5;
  color: #183b49;
  align-self: flex-start;
}

#mj-chat-widget .mj-chat-user {
  background: #075d79;
  color: #ffffff;
  align-self: flex-end;
}

#mj-chat-widget .mj-chat-bot a {
  color: #075d79;
  text-decoration: underline;
}

#mj-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  margin: 0;
  border-top: 1px solid #e1e8ec;
}

#mj-chat-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid #ccdce3;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  background: #ffffff;
  color: #183b49;
}

#mj-chat-send {
  background: #075d79;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}

#mj-chat-send:disabled {
  opacity: 0.5;
  cursor: wait;
}

#mj-chat-widget .mj-chat-notice {
  font-size: 11px;
  text-align: center;
  color: #526779;
  padding: 0 12px 8px;
}

#mj-chat-widget .mj-chat-footer {
  background: #f5f8fa;
  text-align: center;
  font-size: 11px;
  color: #526779;
  padding: 8px;
}

@media (max-width: 480px) {
  #mj-chat-widget {
    bottom: 12px;
    right: 12px;
  }

  #mj-chat-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  #mj-chat-messages {
    height: 280px;
  }
}
