/* 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: #000000;
}

/* Changes the color of the new message indicator */
.bpw-new-messages-indicator {
  background-color: #019DDC; /* You may want to keep this */
  color: #000000; /* Change this to a contrasting color like black */
}

/* Styling for the chat header container */
.bpw-header-container {
  margin: 10px;
  background: #FF9000;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent; /* Added "solid" */
  color: #FF9000;
}

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

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

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

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

.bpw-header-subtitle {
  color: #000000; /* Black color */
}


/* Styling for the layout of the chat bubble. Width, height, border, position, and radius of the chat bubble */
.bpw-layout {
  width: 400px !important;
  height: 90%;
  border-radius: 10px;
  right: 10px;
  bottom: 5px;
  border: 1px solid transparent; /* Added "solid" */
  padding: 0 1%;
  z-index: 999999 !important;
}

/* Responsive design rules for devices with a 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;
  }
}

/* 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: rgba(0, 0, 0, 0.30);
}

.bpw-composer textarea {
  outline: none !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  width: 100%; /* reduce width to avoid overlap */
}

.bpw-composer textarea:focus {
  outline: none !important;
  border: 1px solid rgba(0, 0, 0, 0.30);
  border-radius: 15px;
  width: 85%; /* reduce width to avoid overlap */
}


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


/* Styling for the buttons in the chat interface */
.bpw-button,
.bpw-button-alt {
  background-color: #019DDC;
  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: #000000;
}

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

/* Styling for the chat container, including color, scrollbar width and color, and border */
.bpw-chat-container {
  background-color: #f2f2f2;
  scrollbar-width: thin;
  scrollbar-color: #000000 #f2f2f2;
  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: #d8d8d8;
  color: #000000;
}

/* Styling for the chat bubble content when it's from the user */
.bpw-from-user .bpw-chat-bubble .bpw-chat-bubble-content {
  background-color: #019DDC;
  color: #ffffff;
}

/* Styling for the composer section of the chat interface */
.bpw-composer {
  background-color: #ffffff;
  border-top: none;
}

/* 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: #000000;
  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: #ffffff;
  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: #6675fa;
}

/* Styling for the 'powered by' section of the chat interface */
.bpw-powered {
  display: none;
}

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

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

.bpw-send-button {
  background-color: transparent;
  background-image: url('https://kcsroofingandpatios.com.au/wp-content/uploads/2023/09/icons8-enviado-30.png');
  background-size: cover;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer; 
  color: transparent;
  font-size: 0; 
  transition: opacity 0.2s; /* transition effect for smoother opacity change */
}

.bpw-send-button:hover {
  background-color: transparent;
  background-image: url('https://kcsroofingandpatios.com.au/wp-content/uploads/2023/09/icons8-enviado-30.png');
  background-size: cover;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer; 
  color: transparent;
  font-size: 0; 
  transition: opacity 0.2s;
  opacity: 0.7; /* reduce opacity on hover */
}   


.bpw-widget-btn{
  border-radius: 50%;
  background:#FF9000;
}

.bpw-floating-button {
  float: right;
  fill: rgb(255, 255, 255);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999999;
  width: 52px;
  height: 52px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
  padding: 0;
  border: none;
  background-clip: padding-box;
  transition: width 1s, height 1s;
  background: url("https://kcsroofingandpatios.com.au/wp-content/uploads/2023/09/Before.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin:0;
}

.bpw-floating-button::before {
  content: none !important;
}

.bpw-floating-button i {
  transition: opacity 0.3s ease;
  opacity: 1;
  fill: inherit;
  stroke: inherit;
  width: 100%;
  padding: 0;
  line-height: 0;
  display:none;
}

.bpw-floating-button .bpw-floating-button-unread {
  display: block;
  position: absolute;
  right: 2px;
  bottom: 54px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 20px;
  color: #fff;
  background-color: #019DDC;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4);
}

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