

.chatbox {
  position: fixed;
  top: 0px;
  right: 0px;
  height: 100%;
  width: 100%;
  max-width: 500px;
  /* border-radius: 10px; */
  box-shadow: 5px 5px 15px rgb(119 119 119 / 19%);
  background-color: white;
  z-index: 100000;
}

.chatbox .top-bar {
  width: 100%;
  height: 60px;
  background: #daf0ff;
  border-radius: 10px 10px 0 0;
}



.chatbox .menu {display: flex;justify-content: center;list-style: none;font-size: 18px;cursor: pointer;padding-inline-start: 0px;margin-top: 1px;}
.chatbox .menu li:hover {
  /* transform: scale(1.05); */
  /* transition: all 0.3s ease-in; */
  background-color: #edf7ff38;
}


.chatbox .bubble {
  /* position: relative; */
  display: inline-block;
  margin: 5px;
  color: #363636;
  background-color: #ffffff6b;
  font-size: 18px;
  line-height: 31px;
  padding: 10px 10px 10px 12px;
  border-radius: 20px;
  animation: fadeUp 1s ease-out;
}

.chats a {
  color: #2196F3 !important;
  font-weight: bold;
  display: block;
}



.chatbox .bottom-bar {
  position: relative;
  width: 100%;
  /* height: 55px; */
  height: 1px;
  bottom: 0;
  border-radius: 0 0 10px 10px;
}


.chatbox input {
  padding: 7px;
  width: 100%;
  padding-left: 10%;
  margin: 10px 9px;
  /* position: absolute; */
  font-family: vazirmatn,tahoma !important;!i;!;
  border: 0;
  top: -15px;
  background: #ffffff;
  border-radius: 10px;
  /* border: 1px solid #cdcdcd; */
  font-size: 18px;
  /* color: #29b6f6; */
  border: 3px solid #ffffff00;
  font-family: vazir;
}


.chatbox input:focus {
  /* color: #222222; */
  outline: 0;
  /* border: 3px solid #ffffff63; */
}

.chatbox button {
  position: absolute;
  border: 0;
  font-size: 1em;
  color: #A1E2D9;
  top: 25px;
  left: -5px;
  cursor: pointer;
  outline: 0;
  background-color: unset;
}
.chatbox button:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-in-out;
  color: #79C7C5;
}


.bubble.me {
  background-color: #03A9F4;
  color: white;
}

.chatbox .menu li {
  /* transition: all 0.5s ease-in; */
  padding: 5px;
  border-radius: 10px;
  margin: 10px;
  font-weight: bold;
}

.chatbox li.selected {
  background-color: #d6edff6e;
  border: 2px solid #42a6f5;
}

.chatbox .chats,.chatbox .faq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 87%;
  overflow-y: auto;
  padding: 20px 5px;
}
.chatbox .bubble.suggestions {
    display: flex;
    background-color: unset;
    flex-wrap: wrap;
}

.bubble.suggestions .suggest {
    margin: 2px 1px;
    cursor: pointer;
    background-color: #ebf6ffd6;
    padding: 5px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
}

.openChatBox {
  width: 95px;
  position: fixed;
  bottom: 1px;
  right: 1px;
  /* display: none; */
  cursor: pointer;
  z-index: 100000;
}

.closeChatBox {
  padding: 5px 15px;
  position: absolute;
  left: 1px;
  top: -10px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

.chatbotButton,  .chatbox .menu li, .chatbox .suggest {
  transform: scale(0.9);
  transition: transform .25s !important;
 
}

.chatbox .menu li:hover, .chatbox .suggest:hover,.chatbotButton:hover{
transform: scale(1.05);
  animation-play-state: paused;
  
}
.chatbox .chat {
    position: relative;
}

.chatbox button img {
    width: 30px;
    margin-top: -7px;
    margin-left: 1px;
    opacity: .5;
}
.chatbox .label {
    font-size: 14px;
    background-color: #FFEB3B;
    height: 15px;
    color: black;
    line-height: 10px;
    margin-top: 16px;
    font-weight: bold;
}

@keyframes popout {
  
    from{transform:scale(.8)}
    80%{transform:scale(1.02)}
    to{transform:scale(1)}
}

.openChatBox img {
    animation: popout .4s ease-in-out 1;
}


.chatbox .stage {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 50px;
  /* margin: 0 -5%; */
  overflow: hidden;
}
.filter-contrast {
  /* filter: contrast(5); */
  background-color: white;
}
/**
* ==============================================
* Dot Typing
* ==============================================
*/
.dot-typing {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: #03A9F4;
  color: #03a9f4;
  box-shadow: 9984px 0 0 0 #03a9f4, 9999px 0 0 0 #03a9f4, 10014px 0 0 0 #03a9f4;
  animation: dot-typing 1.2s infinite linear;
}

@keyframes dot-typing {
0% {
  box-shadow: 9984px 0 0 0 #03a9f4, 9999px 0 0 0 #03a9f4, 10014px 0 0 0 #03a9f4;
}
16.667% {
  box-shadow: 9984px -10px 0 0 #03a9f4, 9999px 0 0 0 #03a9f4, 10014px 0 0 0 #03a9f4;
}
33.333% {
  box-shadow: 9984px 0 0 0 #03a9f4, 9999px 0 0 0 #9880ff, 10014px 0 0 0 #9880ff;
}
50% {
  box-shadow: 9984px 0 0 0 #9880ff, 9999px -10px 0 0 #9880ff, 10014px 0 0 0 #9880ff;
}
66.667% {
  box-shadow: 9984px 0 0 0 #03a9f4, 9999px 0 0 0 #03a9f4, 10014px 0 0 0 #03a9f4;
}
83.333% {
  box-shadow: 9984px 0 0 0 #03a9f4, 9999px 0 0 0 #03a9f4, 10014px -10px 0 0 #03a9f4;
}
100% {
  box-shadow: 9984px 0 0 0 #9880ff, 9999px 0 0 0 #9880ff, 10014px 0 0 0 #9880ff;
}
}

.chatbox .chat{
    bottom: 0px;
    position: fixed;
    /* background-color: white; */
    z-index: 2;
    width: 465px;
}

@media screen and (max-width: 390px) {

  
.chatbox .menu{
  zoom:.8
}

  .chatbox .chat{

    width:360px !important;
  }
  
}

@media screen and (max-width: 500px) {

  .chatbox .chat{

    width:95% !important;
  }
  
}

canvas#chatbotbackground {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: .2;
  z-index: -1;
  object-fit: cover;
}


.fade-up {
  animation: fadeUp 2s ease-in-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.innerShadow{
    background-color: rgba(255, 255, 255, 0);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(rgba(255, 255, 255, 0)),color-stop(50%,rgba(255, 255, 255, 0.5)),to(white));
    background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0),rgba(255, 255, 255, 0.5) 50%,white);
    background-image: -moz-linear-gradient(top,rgba(255, 255, 255, 0),rgba(255, 255, 255, 0.5) 50%,white);
    background-image: -o-linear-gradient(rgba(255, 255, 255, 0),rgba(255, 255, 255, 0.5) 50%,white);
    background-image: linear-gradient(rgba(255, 255, 255, 0),rgba(255, 255, 255, 0.5) 50%,white);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00ffffff', endColorstr='#00ffffff', GradientType=0);
    min-height: 250px;
    position: relative;
    /* right: -10px; */
    /* margin-left:-20px; */
    /* padding-left:20px; */
    pointer-events: none;
    margin-top: -50px;
    z-index: 1;
}

.chatbox span.openSupport {
  padding: 1px 5px;
  background-color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block;
}

.chatbotButton .newMessage {
  width: 15px;
  height: 15px;
  position: absolute;
  background-color: #ff963c;
  border-radius: 50%;
  margin-top: 15px;
  margin-left: 15px;
  border: 3px solid white;
  animation: blink 1s ease;
  animation-iteration-count: infinite;
}

.chatbox span.newMessage {
  width: 15px;
  height: 15px;
  display: inline-block;
  background-color: orange;
  border-radius: 50%;
  border: 2px solid white;
  animation: blink .5s ease infinite;
}