/* Floating button styles */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.floating-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Popup styles */
.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 500px;
  max-width: 90%;
  height: 600px;
  max-height: calc(100vh - 40px);
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0;
  z-index: 99999;
  display: none;
  flex-direction: column;
}

.popup-close {
  position: absolute;
  top: -3px;
  right: 10px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 36px;
  z-index: 99999;
}

.popup-header {
  display: none;
}

.popup-body {
  flex: 1 1 auto;
  overflow: hidden;
}

.popup-footer {
  padding: 10px;
  background-color: #f1f1f1;
  text-align: center;
  font-size: 12px;
  color: #333;
}

.popup-footer a {
  color: #007BFF;
  text-decoration: none;
}

.popup-footer a:hover {
  text-decoration: underline;
}

@media (max-height: 540px) {
  .popup {
    height: calc(100vh - 40px);
  }
}

@media (max-width: 600px) {
  .popup {
    bottom: 20px;
    right: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 40px);
    max-width: none;
    max-height: none;
  }
  .popup iframe {
    width: 100%;
    height: 100%;
  }
}

/* Main container that holds your chatbot content */
#chat-container {
  height: 100vh;
  max-height: 450px;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
  border: none; /* Remove borders for a cleaner mobile look */
  overflow: hidden; /* Prevents double scrollbars */
  text-align: left; 
  margin-top: 50px;

}

/* Adjust for smaller screens */
@media (max-width: 300px) {
  #chat-container {
    max-height: 337px;

  }
}


/* Styling for banner */
#chat-banner {
  width: 100%; /* Ensures the banner takes the full width */
  background-color: rgb(11, 85, 106);
    color: #FFF;
    font-weight: 600;
    height: 48px;
    padding: 0px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
	position: absolute;
	top: 0px;
}

#chat-banner h1 {
  margin: 0; /* Remove default margin from h1 */
  font-size: 1rem;
  color: #FFF;
}


#chat-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 30px;
}


/* Webchat styling */
#webchat {
  font-size: 14px;
  height: 445px;
  overflow: hidden;
  padding-top: 46px;
  padding-bottom: 10px;

}

/* Microphone button container styling */
#microphone-button-container {
  margin-top: 20px;
}

#webchat img {
  display: inline;
}
#webchat p {
    font-size: 14px;
	margin: 0px 0px 10px;
}

#webchat form {
	padding: 0px 0px 0px 10px;
}

/* Ensure the WebChat input box height is increased */
.webchat__composer {
  height: 80px !important;
  font-size: 16px !important;
}

/* Style the message bubbles (bot's response containers) */
.webchat__bubble__content {
  border-radius: 15px;  /* Curved corners for the message bubble */
  padding: 0px;        /* Optional: padding inside the bubble */
  background-color: #f4f4f4;  /* Optional: background color for the bubble */
  border: 1px solid #ccc;  /* Optional: border for the bubble */
  width: 97%;

}

.webchat__bubble__content a {
  display: inline-block;
  max-width: 300px;       /* adjust as needed */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* Override message container width/alignment */
.webchat__basic-transcript__activity {
  /*display: flex;*/
}

/*anchor input box */
.webchat__send-box__main {
    position: absolute;
    bottom: 74px;
    left: 0px;
    width: 100%;
    padding-right: 5px;
    padding-left: 5px;
}

/* Adjust for smaller screens */
@media (max-width: 300px) {
  .webchat__send-box__main {
    bottom: 100px;
	}
}



/* Optional: tighter spacing between message bubbles */
.webchat__basic-transcript__activity + .webchat__basic-transcript__activity {
  margin-top: 8px;
}

/* Ensure user messages align right */
.webchat__stacked-layout--from-user {
  align-items: flex-end !important;
}

.webchat__stacked-layout--from-user .webchat__bubble__content {
  text-align: right !important;
}

.webchat__send-box-text-box__input {
	background: white;           /* Or any solid color you want */
  box-shadow: none;
  border: 1px solid #ccc;      /* Optional: redefine border if needed */
  appearance: none;            /* Removes default styles on WebKit/Blink */
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0px;
}

