
#qa-bot-container {
  position: fixed;
  bottom: 150px;
  right: 20px;
/*  width: 400px;*/
  max-width: 90%;
  display: none;
  z-index: 2;
/*  overflow: hidden;*/
  font-family: 'Cerebri Sans', sans-serif;
  border-radius: 10px;
/*  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
}

#qa-bot-header {
    background-color: #314ddb;
    font-weight: 550;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: 'Cerebri Sans', sans-serif;
    line-height: 1.4;
    position: relative;
    max-width: 400px;
}

#qa-bot-header.closed {
  justify-content: flex-end;
}


#qa-bot-close {
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    background: #f1f1f1;
    color: #3f3f3f;
    position: absolute;
    top: -52px;
    right: 0;
    font-family: 'Arial', sans-serif;
    border-radius: 15px;
    font-weight: 300;
    padding: 7px 10px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2);
}

#qa-bot-conversation {
  max-height: 400px;
  overflow-y: auto;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
}

#qa-bot-content {
    background: white;
    max-width: 400px;
}

.qa-bot-user-message,
.qa-bot-coach-message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.4;
  position: relative;
  margin-top:20px;
}

.qa-bot-user-message {
  /*background-color: #e1e1e1;
  color: #333;*/

  /*background-color: #f1f1f1;
color: #333;*/
background-color: #e3ecff;
    color: #314ddb;
  align-self: flex-end;
  margin-top:0px;
}

.qa-bot-coach-message {
  background-color: #007bff;
  color: #fff;
  align-self: flex-start;
}

.qa-bot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}


.qa-bot-timestamp {
      color: #999;
    margin-top: 5px;
    align-self: flex-end;
    font-size: 14px;
    text-align: right;
    position: absolute;
    bottom: -30px;
    left: 50px;
}

#qa-bot-questions {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-bottom: 20px;
}

.qa-bot-question-button {
background-color: #f1f1f1;
color: #333;
border: 1px solid #ccc;
padding: 10px 20px;
border-radius: 20px;
margin: 5px;
cursor: pointer;
/*transition: background-color 0.3s ease, transform 0.2s ease;*/
/*box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);*/

    background: rgba(0, 87, 255, 0.1);
    color: rgb(0, 87, 255);
    line-height: 1.4;
}

.qa-bot-question-button:hover {
/*background: #e2e9ff;;*/
/*transform: translateY(-1px);*/
/*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);*/

background-color: #334af4;
  color: #fff;
}
.qa-bot-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.qa-bot-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0px;
  border-radius: 10px;
  max-width: 1000px;
  width: 90%;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

#qa-bot-modal-header {
  background-color: #314ddb;
  padding: 20px;
  color: #fff;
  display: flex;
  align-items: center;


}

#qa-bot-modal-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}



#qa-bot-modal-conversation {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

#qa-bot-email-form {
  display: none;
}

#qa-bot-email-input {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
}

#qa-bot-email-form button {
  width: 100%;
  background-color: #007bff;
  color: #fff;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#qa-bot-email-form button:hover {
  background-color: #0056b3;
}

.qa-bot-email-message {
  display: none;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
}

.qa-bot-loading {
  text-align: center;
  font-size: 20px;
  margin: 10px 0;
}
#perma-toggle-btn-avatar {
    position: relative;
    height: 95px;
    width: 70px;
    margin-left: auto;
    margin-right: 0;
}
#qa-bot-header-avatar, #qa-bot-toggle-icon {
    position: absolute;
    right:0;
    bottom:8px;
}
#qa-bot-content {
    background: white;
    border: 2px solid #314ddb;
    border-top: 0px;
}

#qa-bot-header-avatar {
    width: 70px;
    height: 70px;
    margin-right: 0px;
    cursor: pointer;
}

#qa-bot-toggle-icon {
    display: block;      /* Display as block */
    width: 70px;         /* Fixed width */
    height: 70px;        /* Fixed height */
    line-height: 70px;   /* Set line-height equal to height for vertical alignment */
    border-radius: 50%;  /* Circle shape */
    background: #314ddb; /* Background color */
    font-size: 50px;     /* Font size for 'x' */
    color: white;        /* Font color */
    cursor: pointer;     /* Cursor to pointer */
    text-align: center;  /* Center the text horizontally */
}

.qa-bot-message {
  display: flex;
  margin-bottom: 10px;
  position: relative;
}

.qa-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.qa-bot-message-content {
/*  background-color: #007bff;*/
/*  color: #fff;*/
  padding: 10px;
  border-radius: 10px;
  border-bottom-left-radius: 0;
  max-width: 80%;

    background-color: #e9e9e9;
    color: #151515;
}

.qa-bot-message-text {
  line-height: 1.4;
}


#qa-bot-conversation .qa-bot-avatar {
    position: absolute;
    bottom: 0;
}

#qa-bot-conversation .qa-bot-message-content {
    margin-left: 50px;
}


#qa-bot-modal .qa-bot-modal-content {
  border-radius: 10px;
  overflow: hidden;
}


#qa-bot-modal-header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

#qa-bot-modal-header .qa-bot-header-main-header {
  font-size: 28px;
  color: white;

}

#qa-bot-modal-header .qa-bot-header-subtitle {
  font-size: 14px;
  color: white;
  opacity: 0.8;
}

.qa-bot-close {
font-size: 38px;
    cursor: pointer;
    padding: 8px;
    background: #283daa;
    color: #e5e5e5;
    font-family: 'Arial', sans-serif;
    border-radius: 50%;
    font-weight: 300;
    padding: 8px 14px;
    /* box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.2); */
    position: absolute;
    right: 20px;
}
   

#qa-bot-modal .qa-bot-coach-message {
  background-color: #F1F0F0;
  color: #333;
  padding: 15px;
  margin-bottom: 10px;
}
.qa-bot-cta-buttons {
    text-align: right;
    margin-top: 20px;
    padding-bottom: 10px;
}

.qa-bot-cta-button {
    display: inline-block;
    border-radius: 5px;
    line-height: 1.4;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
}

.qa-bot-cta-yes {
    background: rgb(232,238,255);
    color: rgb(0, 87, 255);
    border: 1px solid transparent;
    padding: 10px 15px;
}


.qa-bot-cta-yes:hover {
    background-color: #334af4;
  color: #fff;
}

.qa-bot-cta-no {
    letter-spacing: -0.5px;
    margin-left: 10px;
    border: 1px solid #e8eefe;
}

.qa-bot-cta-no:hover {
    color:red;
    border: 1px solid red;
}

.qa-bot-upload-button {
  align-self: center;
  margin-top: 0px;
  display: inline-block;
  margin-left: 50px;
  line-height: 50px;
  font-weight: 550;
  border-radius: 5px;
  border: 2px solid #5040ff;
  background: #5040ff;
  font-weight: 550;
  letter-spacing: -0.4px;
  color: #fff !important;
  padding: 0px 25px;
  animation: pulse 1.5s infinite;
      margin-top: 20px;
    margin-bottom: 20px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(80, 64, 255, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(80, 64, 255, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(80, 64, 255, 0);
    transform: scale(1);
  }
}

.qa-bot-upload-button:hover {
  background: #4030dd;
}


@media (max-width: 750px) {
  .qa-bot-message-content {
    font-size: 14px;
  }
  #qa-bot-conversation {
    padding:10px;
  }

  #qa-bot-container {
   z-index: 0;
   right: 15px;
  }
  #qa-bot-header {
    z-index: 2;
  }

  #qa-bot-toggle-icon {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 40px;
  }
  #qa-bot-header-avatar {
    width: 50px;
    height: 50px;
  }
  #perma-toggle-btn-avatar {
    height: 65px;
  }

}