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

/* These CSS rules set 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: #1e242b; /* Dark greyish blue */
}

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

/* Styling for the chat header container */
.bpw-header-container {
  margin: 10px;
  background: #1e242b; /* Dark greyish blue */
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* Header name color */
.bpw-header-name {
  color: #ffffff;
}

/* Styling for the typing bubble */
.bpw-typing-bubble {
  background: #1e242b; /* Dark greyish blue */
}

/* Styling for the chat bubble content */
.bpw-chat-bubble-content {
  background-color: #f5f5f5;
  border-radius: 3px;
  border: 1px transparent;
}

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

/* Layout for the chat bubble */
.bpw-layout {
  width: 360px !important;
  height: 60vh;
  border-radius: 10px;
  right: 10px;
  bottom: 5px;
  border: 1px;
}

/* Responsive design for devices with width less than or equal to 767px */
@media screen and (max-device-width: 767px) {
  .bpw-layout {
    width: 100% !important;
    height: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}

/* Header icons fill color */
.bpw-header-icon,
.bpw-header-icon svg,
.bpw-header-icon svg path {
  fill: #ffffff !important;
}

/* Placeholder text color */
#input-message::placeholder {
  color: rgba(0,0,0,.30);
}

/* Composer section styling */
.bpw-composer textarea {
  outline: none !important;
  border: 1px solid rgba(0,0,0,.15);
}

.bpw-composer textarea:focus {
  outline: none !important;
  border: 1px solid rgba(0,0,0,.30);
}

/* Keyboard single choice button styling */
.bpw-keyboard-single-choice {
  background-color: #ffffff;
  border: none;
}

/* Button styling */
.bpw-button,
.bpw-button-alt {
  background-color: #2cd87f; /* Green */
  color: #ffffff;
  border-radius: 10px;
  border: none;
}

/* Button hover effect */
.bpw-button:hover,
.bpw-button-alt:hover {
  background-color: #1e242b; /* Dark greyish blue */
}

/* Hyperlink color */
a {
  color: #2cd87f; /* Green */
  text-decoration: underline;
}

/* Chat container styling */
.bpw-chat-container {
  background-color: #ffffff;
  scrollbar-width: thin;
  scrollbar-color: #2cd87f #ffffff;
  border: none;
}

/* Bot message styling */
.bpw-from-bot .bpw-chat-bubble .bpw-chat-bubble-content {
  background-color: #f5f5f5;
  color: #1e242b; /* Dark greyish blue */
}

/* User message styling */
.bpw-from-user .bpw-chat-bubble .bpw-chat-bubble-content {
  background-color: #2cd87f; /* Green */
  color: #ffffff;
}

/* Composer section styling */
.bpw-composer {
  background-color: #ffffff;
  border-top: none;
}

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

.bpw-chat-container::-webkit-scrollbar-track,
.bpw-chat-container::-moz-scrollbar-track {
  background-color: transparent;
}

.bpw-chat-container::-webkit-scrollbar-thumb,
.bpw-chat-container::-moz-scrollbar-thumb {
  background-color: #2cd87f; /* Green */
  border-radius: 1rem;
  border: 0.5rem solid transparent;
}

/* Bot avatar styling */
.bpw-bot-avatar img,
.bpw-bot-avatar svg {
  background: #1e242b; /* Dark greyish blue */
  border: 3px solid #ffffff;
}

/* General scrollbar styling */
::-webkit-scrollbar {
  width: 0.5rem;
}

/* Floating button icon */
.bpw-floating-button i svg path {
  fill: #2cd87f; /* Green */
}

/* Powered by section styling */
.bpw-powered {
  text-align: center;
  padding: 10px;
  color: #1e242b; /* Dark greyish blue */
  background: #ffffff;
  font-size: 14px;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.bpw-powered a {
  color: #1e242b; /* Dark greyish blue */
  text-decoration: underline;
}

.bpw-powered a:hover {
  text-decoration: underline;
}

/* Send button styling */
.bpw-send-button {
  background: #2cd87f; /* Green */
}

/* Widget button styling */
.bpw-widget-btn {
  border-radius: 50%;
  background: #2cd87f; /* Green */
}

/* Floating button styling */
.bpw-floating-button::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='white' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 01-2.555-.337A5.972 5.972 0 015.41 20.97a5.969 5.969 0 01-.474-.065 4.48 4.48 0 00.978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25z' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Floating button styling */
.bpw-floating-button {
  box-shadow: none !important;
}

.bpw-floating-button:hover {
  box-shadow: none !important;
}
