/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #fff;
}
.header {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 10px;
  margin-left: 15px;
}
.header img{ padding:5px; background-color:#fff; border-radius:50%;}
.header h2{color:#fff;font-family: "Montserrat", Sans-serif;
    font-size: 15px;
    font-weight: 600;}
    
.logo {padding:0 0 10px 0;}
.logo img {
   width: 200px;
}
        .bold-text {
          font-weight: bold;
        }
.chatbot-toggler {
  position: fixed;
  bottom: 10px;
  right:10px;
  outline: none;
  border: none;
  height:38px;
  width:38px; font-size:20px !important; padding:10px !important;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FF9C00;
  transition: all 0.2s ease;
  box-shadow: rgb(37, 150, 190) 0px 25px 50px -12px;
}
    .chatbot-toggler:hover, .chatbot-toggler:active{ background: #FF9C00;}
body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
}
.chatbot-toggler span {
  color: #fff;
  position: absolute;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child {
  opacity: 0;
}
body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
}
.chatbot {
  position: fixed;
  right:10px;
  bottom:55px;
  width: 360px;
   min-height:460px;
  background: #fff;
  z-index:10000;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border-radius: 15px;
  overflow: hidden; 
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
     display: flex;
    flex-direction: column;
    justify-content: flex-start;
   
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chatbot header {
 padding: 10px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background:#3D79D1;
  
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
  margin:0;
}
.chatbot .chatbox {
  overflow-y: auto;
  height:320px;display: flex;
    flex-direction: column;
  padding: 30px 5px 20px !important; margin:0;    border-bottom: 1px solid #ddd;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
}

.chatbox .incoming span {

  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 36px;
  align-self: flex-end;
 background-image: url(/wp-content/themes/generatepress/chatbot/ava-icon.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    box-sizing: initial;
    height: 36px;
    width: 36px;
  margin: 0px 10px 15px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 12px 12px 0px 12px;
  max-width:88%; width: auto;min-width: 88%;
  color: #fff;
  font-size: 0.95rem;
  background: #3d79d1; font-family: "Montserrat", Sans-serif;
    font-size: 13px;
    font-weight:normal;    line-height: 1.5;
}
.greetmsg p{  font-weight:500 !important;  }
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}
li.chat.incoming {
    justify-content: flex-start;
    margin-right: 5px;
}
.chatbox .outgoing {
    margin: 0px 0 0px 80px;
    justify-content: flex-end;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
     color: #424242;
    background: #f8f8f8;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
.chatbox .outgoing p {
    min-width: 40%;
}

.chatbot .chat-input {
  display: flex;
  gap: 5px;
  width: 96%;
  background: #fff;
  padding: 0; border:1px solid #ddd; margin:6px; border-radius: 8px; 
  
}
.chatbot .chat-input:hover, .chatbot .chat-input:focus-within{border-color:#3D79D1; transition: all 0.2s ease;}





.chatbot .chat-input .home{color: #fff;
  cursor: default;
  text-align: center;
  line-height: 36px;
  align-self: center;
 background-image: url(/wp-content/themes/generatepress/chatbot/home-button.png);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    box-sizing: initial;
    height: 40px;
    width: 42px;
  margin: 0 10px 0px 0;
        visibility: visible;
}
  
.chat-input textarea {
  height: 45px !important;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 8px;
  font-size: 0.95rem;
  background:#fff; font-family: "Montserrat", Sans-serif;
    font-size: 13px;
    font-weight: 500;    line-height: 16px;
    border-radius: 8px;  color:#999;
}
.chat-input span {
  align-self: flex-end;
  color: #3D79D1;
  cursor: pointer;
  height: 35px;
  display: flex;
  align-items: center;
  visibility: hidden; flex-direction:column;
  font-size: 1.35rem;   justify-content: space-between;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}
.footer-msg{display:flex; flex-direction:column;align-items: center; bottom:0; font-family: "Montserrat", Sans-serif;
    font-size: 11px;
    font-weight: normal; margin:0 0 5px 0; color:#999;}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px; z-index: 1000;
  }
  .chatbot {
    right: 10px;
    bottom: 70px;
    height: 66vh;
    border-radius: 0;
    width: 96%;
  }
  .header h2{font-size:14px;}
  .chatbot .chatbox {
    height: 100vh;
    padding: 25px 15px 20px;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
}
