/* Full screen chat support container for mobile devices */
.chat_support {
  display: none; /* Will be shown via screen_manager("chat_support") */
  flex-direction: column;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* Header bar styled like Swal.fire's title area */
.chat_support .chat_support_head {
  width: 100%;
  padding: 16px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

/* Chat body with padding and auto-scroll */
.chat_support_body {
  flex: 1;
  width: 100%;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.chat_support_body_subcontainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Chat message styling */
.chat_message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 16px;
  word-wrap: break-word;
}

.chat_message.bot {
  background-color: #f0f0f0;
  align-self: flex-start;
}

.chat_message.user {
  background-color: #e0f7ff;
  align-self: flex-end;
}

/* Container for user input and send button */
.chat_input_container {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #eee;
  background-color: #f7f7f7;
}

.chat_input_container input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

.chat_input_container button {
  background-color: #3085d6;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.chat_input_container button:hover {
  background-color: #2874b9;
}

/* Typewriter effect: blinking cursor */
.typewriter {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #000;
  animation: cursor-blink 0.75s step-end infinite;
}

@keyframes cursor-blink {
  50% {
    border-color: transparent;
  }
}
 