/* This CSS rule sets the default font size of the entire document */
html {
  font-size: 16px;
}

/* These CSS rules sets the text direction of the paragraph (RTL or LTR) */
p,
.bpw-from-bot > div,
#input-message {
  direction: ltr;
}

/* This rule changes the color of the text in the input message */
#input-message {
  color: #000000;
  background-color: white;
}

/* Changes the color of the new message indicator */
.bpw-new-messages-indicator {
  background-color: #3c9cd4;
  color: #ffffff;
}

/* Styling for the chat header container */
.bpw-header-container {
  margin: 10px;
  background: #11294a; /* Header Background Color */
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px;
  border-radius: 10px;
  color: #ffffff;
}

/* Styling for the typing bubble */
.bpw-typing-bubble {
  background: #ffffff;
}

/* Styling for the chat bubble content */
.bpw-chat-bubble-content {
  background-color: #3e98d6; /* User's Chat Bubble Color */
  border-radius: 3px;
  border: 1px transparent;
}

/* Styling for the date container, header name, and header subtitle */
.bpw-date-container {
  color: #000000; /* User Text Color */
}

.bpw-header-name,
.bpw-header-subtitle {
  color: #ffffff; /* User Text Color */
}

/* Styling for the layout of the chat bubble. Width, height, border, position and radius of the chat bubble */
.bpw-layout {
  width: 360px !important;
  height: 70vh;
  border-radius: 10px;
  right: 20%;
  bottom: 10%;
  border: 1px;
}
/* Responsive design rules for devices with width less than or equal to 767px */
@media screen and (max-device-width: 767px) {

  .bpw-layout {
    width: 100% !important;
    height: 80%;
    right: 0; 
    bottom: 0;
    border-radius: 0;
  }

}

/* Changes the fill color of the header icons to white */
.bpw-header-icon,
.bpw-header-icon svg,
.bpw-header-icon svg path {
  fill: #ffffff !important;
}

/* Changes the color of the placeholder text in the input message */
#input-message::placeholder {
  color: #000000;
}

/* Styling for the keyboard single choice option */
.bpw-keyboard-single-choice {
  background-color: #ffffff;
  border: none;
}

/* Styling for the buttons in the chat interface */
.bpw-button,
.bpw-button-alt {
  background-color: #3c9cd4;
  color: #ffffff;
  border-radius: 10px;
  border: none;
}

/* Styling for hover effect on the buttons in the chat interface */
.bpw-button:hover,
.bpw-button-alt:hover {
  background-color: #2c6a9a;
}

/* Styling for hyperlinks in the chat interface */
a {
  color: #3c9cd4;
  text-decoration: underline;
}

/* Styling for the chat container, including color, scrollbar width and color, and border */
.bpw-chat-container {
  background-color: #f8f8f8; /* Chat Container Color */
  scrollbar-width: thin;
  scrollbar-color: #4b4b4b #000000;
  border: none;
}

/* Styling for the chat bubble content when it's from the bot */
.bpw-from-bot .bpw-chat-bubble .bpw-chat-bubble-content {
  background-color: #e7e7e7; /* Bot's Chat Bubble Color */
  color: #000000; /* Bot Text Color */
}

/* Styling for the chat bubble content when it's from the user */
.bpw-from-user .bpw-chat-bubble .bpw-chat-bubble-content {
  background-color: #3e98d6; /* User's Chat Bubble Color */
  color: #ffffff; /* User Text Color */
}

/* Styling for the composer section of the chat interface */
.bpw-composer {
  background-color: white; /* Change to white */
  border-top: 1px solid #4b4b4b;
}

/* Styling for the scrollbar in the chat container */
.bpw-chat-container::-webkit-scrollbar,
.bpw-chat-container::-moz-scrollbar {
  width: 10px;
  background-color: #ffffff;
  border: none;
}

/* Styling for the avatar of the bot */
.bpw-bot-avatar img,
.bpw-bot-avatar svg {
  background: #11294a;
  border: 3px solid #ffffff;
}

/* Styling for the general scrollbar in the web page */
::-webkit-scrollbar {
  width: 0.5rem;
}

/* Styling for the track of the general scrollbar and the chat container scrollbar */
::-webkit-scrollbar-track,
.bpw-chat-container::-webkit-scrollbar-track,
.bpw-chat-container::-moz-scrollbar-track {
  background-color: transparent;
}

/* Styling for the thumb of the general scrollbar and the chat container scrollbar */
::-webkit-scrollbar-thumb,
.bpw-chat-container::-webkit-scrollbar-thumb,
.bpw-chat-container::-moz-scrollbar-thumb {
  background-color: #000000;
  border-radius: 1rem;
  border: 0.5rem solid transparent;
}

/* Styling for the floating button icon in the chat interface */
.bpw-floating-button i svg path {
  fill: #ffffff;
}

/* Styling for the floating button in the chat interface */
.bpw-floating-button {
  background: #3e98d6; /* Chat Widget Color */
  border-radius: 52px;
  bottom: 30% !important;
  right: 10%; /* Default position */
}

/* Styling for the 'powered by' section of the chat interface */
.bpw-powered {
  text-align: center;
  padding: 10px;
  color: #ffffff;
  background: #11294a;
  font-size: 16px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

/* Styling for the hyperlinks in the 'powered by' section of the chat interface */
.bpw-powered a {
  color: #ffffff;
  text-decoration: none;
}

/* Styling for hover effect on the hyperlinks in the 'powered by' section of the chat interface */
.bpw-powered a:hover {
  text-decoration: underline;
}

/* Styling for the send button when it's disabled */
.bpw-send-button:disabled,
.bpw-send-button:disabled:hover {
  opacity: 1;
  background-color: var(--theme-primary);
  cursor: default;
}

/* Styling for the send buttons */
.bpw-send-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: white; /* Change to white */
}

/* Styling for the individual send button */
.bpw-send-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--spacing-medium);
  background-color: var(--theme-primary);
  padding: 20px;
  width: 24px;
  height: 24px;
  color: black;
  cursor: pointer;
  background-image: url() !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  transition: background-color 0.2s;
}

.bpw-send-button:not(:disabled):hover {
  background-color: var(--theme-primary-hover);
}