@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Guides:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

*,::after,::before{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Inter" ,sans-serif;
}

:root{
  --primari : #5350c4;
  --secondary: #f2f2ff;
}

body{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(#EEEEFF, #C8C7FF);
}

.chatbot-popup{
  position: relative;
  width: 420px;
  background-color: #fff;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 120px 0 rgba(0,0,0,0.1),0 32px 64px -48px rgba(0,0,0,0.5);

  .chat-header{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primari);
    padding: 15px 22px;


    .header-info{
      display: flex;
      gap: 10px;
      align-items: center;
      width: 100%;
      svg{
        width: 35px;
        height: 35px;
        padding: 6px;
        fill: var(--primari);
        flex-shrink: 0;
        border-radius: 50%;
        background: #fff; 
      }
      h2{
        color: #fff;
        font-size: 1.31rem;
        font-weight: 600;
      }
    }
    button{
      border: none;
      color: #fff;
      height: 40px;
      width: 40px;
      border-radius: 50%;
      background: #6260da;
      font-size: 2rem;
      padding-top: 2px;
      cursor: pointer;
      font-weight: 700;
      transition: 0.3s ease;
      &:hover{
      background: #3e3cab;
      }
    }
  }
  @media (max-width:420px) {
    height: 100vh;    
  }
}

.chat-body{
  padding: 25px 22px;
  display: flex;
  gap: 20px;
  height: 60vh;
  margin-bottom: 82px;
  overflow-y: auto;
  flex-direction: column;

  .message{
    display: flex;
    align-items: flex-start;
    gap: 11px;

    .message-text{
      padding: 12px 16px;
      max-width: 75%;
      font-size: .95rem;
      background: var(--secondary);
      border-radius: 3px 12px 12px 12px;
    }

  }
  .bot-message{
    svg{
      width: 35px;
      height: 35px;
      padding: 6px;
      fill: #fff;
      flex-shrink: 0;
      border-radius: 50%;
      background: var(--primari); 
    }
    
  }
  .user-message{
    flex-direction: column;
    align-items: flex-end;
    border-radius: 13px 13px 13px 0;
    
    .message-text{
      border-radius: 12px 12px 3px 12px;
      background: var(--primari);
      color: var(--secondary);
    }
  }
  @media (max-width:420px) {
    height: 80vh;    
  }
}

.chat-footer{
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 15px 22px 20px;
  
  
  .chat-form{
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 32px;
    outline: 1px solid #cccce5;
    .message-input {
      border: none;
      outline: none;
      width: 100%;
      height: 47px;
      font-size: 1rem;
      padding: 14px 0 13px 18px;
      border-radius: inherit;
      resize: none;
      overflow-y: auto; 
      scrollbar-width: none;
      &::-webkit-scrollbar {
        display: none;
      }
    }
    
    .chat-controls{
      display: flex;
      height: 47px;
      align-items: center;
      align-self: flex-end;
      padding-right: 6px;

      button{
        height: 35px;width: 35px;
        cursor: pointer;
        color: var(--primari);
        background: white;
        outline: none;
        border-radius: 50%;
        border: none;
        transition: 0.3s ease;
        border: 1px solid var(--primari);
        &:hover{
          background: var(--primari);
          color: var(--secondary);

        }
      }
    }
  }
}

.loaderbox{
.loader {
  display: inline-block;
}

.loader > div {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  box-shadow: 0 0 10px #5250c3;
  background: #f2f2ff;
  float: left;
  margin: 5px;
  transform: scale(1.2);
}

.loader > div:nth-child(1) {
  animation: anm-BL-53-move1 1s infinite linear;
}

.loader > div:nth-child(2) {
  animation: anm-BL-53-move2 1s infinite linear;
  animation-delay: 0.2s;
}

.loader > div:nth-child(3) {
  animation: anm-BL-53-move3 1s infinite linear;
  animation-delay: 0.3s;
}
}

@keyframes anm-BL-53-move1 {
  50% {
    background: var(--secondary);
    transform: scale(.8);
  }
}

@keyframes anm-BL-53-move2 {
  50% {
    background: var(--secondary);
    transform: scale(.8);
  }
}

@keyframes anm-BL-53-move3 {
  50% {
    background: var(--secondary);
    transform: scale(.8);
  }
}

@keyframes anm-BL-53-move4 {
  50% {
    background: var(--secondary);
    transform: scale(.8);
  }
}

@keyframes anm-BL-53-move5 {
  50% {
    background: var(--secondary);
    transform: scale(.8);
  }
}

