/*--------------------
Mixins
--------------------*/
/*--------------------
Body
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: auto;
    height: auto;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    word-break: break-word;
}

body {
  background: #FFF;
  background-size: cover;
  font-family: 'Roboto','Kanit', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  /* overflow: hidden; */
}
#center-text {
  display: flex;
  flex: 1;
  flex-direction:column;
  justify-content: center;
  align-items: center;
  height:100%;

}
.vc-msg-text br:nth-child(1), .vc-msg-text br:nth-child(2) {
    display: none;
}
#chat-circle {
    position: fixed;
    bottom: 50px;
    right: 35px;
    background: #5A5EB9;
    background-image: linear-gradient(270deg, #0b2131 -12%, #12344d 100%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    padding: 5px;
    cursor: pointer;
    -webkit-box-shadow: 0px 2px 5px rgb(0 0 0 / 20%);
    box-shadow: 0px 2px 5px rgb(0 0 0 / 20%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.v-input {
    font-size: 16px;
    position: relative;
    outline: none;
    min-height: 50px;
    height: 50px;
    padding: 15px;
    padding-right: 80px;
    overflow: hidden;
    -webkit-appearance: none;
    -appearance: none;
    -moz-appearance: none;
}
/* .v-input br {display:none;} */
.v-input p {
    margin: 0;
    height: 100%;
    display: flex;
    position: relative;
    min-height: 50px;
    max-height: 50px;
    align-items: center;
    padding: 0;
}

[contenteditable] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.v-input::before {
    color: #ccc;
    content: attr(placeholder) !important;
    display: block;
    pointer-events: none;
    position: absolute;
    top: 14px;
        left: 15px;
}
.v-input:focus-within:before,
.v-input:focus-visible:before,
.v-input.has-text:before {
    display: none;
}
.btn#my-btn {
     background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}
#chat-overlay {
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}


.chat-box {
  display:block;
  background: #FFF;
  position:fixed;
  right:30px;
  bottom:50px;
  width:350px;
  max-width: 85vw;
  height: 490px;
  max-height:100vh;
  border-radius:5px;
  box-shadow: 0px 5px 35px 9px #ccc;
  overflow: hidden;
}
.chat-box.active{
  display: block;
}
.chat-box-toggle {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}
.chat-box-header {
  background-image: linear-gradient(270deg, #0b2131 -12%, #12344d 100%);
  height: 70px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  color: #fff;
  text-align: center;
  font-size: 22px;
  padding-left: 16px;
  padding-top: 11px;
  border-radius: 0;
}
.chat-box-header .head-desc {
    color: #ededed;
    font-size: 14px;
}
.chat-box-body {
    position: relative;
    height: calc(100% - 120px);
    border: 1px solid #ccc;
    background: #f4f5f7;
}
.chat-box-body:after {
  content: "";
  background-image: url('img/bg.svg');
  opacity: 0.1;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height:100%;
  position: absolute;
  z-index: -1;
}
/* #chat-input {
  background: #FFF;
  width:100%;
  position:relative;
  height:47px;
  padding-top:10px;
  padding-right:50px;
  padding-bottom:10px;
  padding-left:15px;
  border:none;
  resize:none;
  outline:none;
  border:1px solid #ccc;
  color:#888;
  font-size: 14px;
  border-top:none;
  border-bottom-right-radius:5px;
  border-bottom-left-radius:5px;
  overflow:hidden;
} */
#chat-input {
  display: none;
}
.chat-input > form {
    margin-bottom: 0;
    height: 100%;
}
#chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ccc;
}
#chat-input::-moz-placeholder { /* Firefox 19+ */
  color: #ccc;
}
#chat-input:-ms-input-placeholder { /* IE 10+ */
  color: #ccc;
}
#chat-input:-moz-placeholder { /* Firefox 18- */
  color: #ccc;
}
.chat-submit,.add_file,#yp_voice_search{
  position: absolute;
  bottom: 8px;
  cursor: pointer;
  right: 10px;
  background: #0000;
  box-shadow: none;
  border: none;
  border-radius: 50%;
  color: #58616f;
  width: 30px;
  height: 30px;
  outline: none;
  -o-transition: all .2s;
  -webkit-transition: all .2s;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-submit:hover, .add_file:hover {
    background: #e8e8e8;
}
.chat-submit svg,.add_file svg{
  width: 100%;
  height: 100%;
  display: block;
}
.add_file{
  right: 45px;
}
.file_attach{
  display: none;
}
.warp-user-item {
    display: inline-flex;
    flex-direction: column;
}
.chat-logs {
    padding: 10px;
      height: calc(100% - 20px);
    overflow-x: auto;
    background: #FFF;
    margin: 15px;
    border-radius: 5px;
    position: relative;
    padding-top: 0;
    margin-top: -20px;
    z-index: 1;
}
.chat-with img {
    width: 35px;
    height: 35px;
    border-radius: 50px;
    object-fit: cover;
}
.chat-with{
  position: sticky;
  left: 0;
  top: 0;
  width: calc(100% + 20px);
  border-bottom: solid 1px #ddd;
  padding: 8px;
  z-index: 1;
  margin: 0 -10px;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
  background-color: #ffffffc7;
}
.chat-msg.user {
    justify-content: end;
}
.chat-with .with-in {
    color: #071b3b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

/* width */
.chat-logs::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.chat-logs::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.chat-logs::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
.chat-logs::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.chat-msg.user > .msg-avatar img {
  float:right;
}
.chat-msg.bot > .msg-avatar img {
    border-radius: 50%;
    object-fit: cover;
    margin-top: 2px;
}
.chat-msg .msg-avatar img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 2px;
}
.vc-msg-text {
  background: #f1f1f1;
  padding: 8px 15px;
  color:#222;
  width: auto;
  position:relative;
  margin-top: 0;
  border-radius: 4px 15px 15px;
  display: inline-block;
  font-size: 14px;
}
.vc-msg-text img {
  width: 100%;
  max-width: 100px;
}
.vc-msg-text.file{
padding: 10px;
min-width: 100px;
}
.vc-msg-text.file a{
  cursor: pointer;
}
.chat-msg {
  margin-bottom: 30px;
  display: flex;
  align-items: start;
  gap: 10px;
  padding-left: 10px;
}
.chat-msg::after{
    clear:both;
    content: '';
    display: block;
}
.chat-msg.user > .vc-msg-text {
  float:right;
  margin-right:10px;
  background: #5A5EB9;
  color:white;
  border-radius: 20px 20px 4px;
}
.vc-msg-button>ul>li {
  list-style:none;
  float:left;
  width:50%;
}
.vc-msg-button {
    clear: both;
    margin-bottom: 70px;
}
.chat-msg .name {
    color: #3a4b67;
    font-size: .89em;
}


/*--------------------
Bounce
--------------------*/
@-webkit-keyframes bounce {
  0% {
    -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    -webkit-transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    -webkit-transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    -webkit-transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    -webkit-transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    -webkit-transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    -webkit-transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    -webkit-transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    -webkit-transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    -webkit-transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    -webkit-transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    -webkit-transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@keyframes bounce {
  0% {
    -webkit-transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    -webkit-transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    -webkit-transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    -webkit-transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    -webkit-transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    -webkit-transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    -webkit-transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    -webkit-transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    -webkit-transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    -webkit-transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    -webkit-transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    -webkit-transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
            transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@-webkit-keyframes ball {
  from {
    -webkit-transform: translateY(0) scaleY(0.8);
            transform: translateY(0) scaleY(0.8);
  }
  to {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}
@keyframes ball {
  from {
    -webkit-transform: translateY(0) scaleY(0.8);
            transform: translateY(0) scaleY(0.8);
  }
  to {
    -webkit-transform: translateY(-10px);
            transform: translateY(-10px);
  }
}

.v-reply-wrapper{
  bottom: 0;
  position: absolute;
  width: 100%;
  border-top: solid 1px #ddd;
  z-index: 1;
  background: #FFF;
  overflow: hidden;
}
.v-reply-wrapper .v-reply-in {
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0;
}
.v-reply-wrapper .chat-input {
    position: absolute;
    resize: none;
    -webkit-transform: translate3d(0, 0, 0);
    transition: .4s;
    bottom: 0;
    right: 0;
}
.in-preview{
  height: 60px;
  width: 60px;
  border-radius: 8px;
  border: 1px solid #eee;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.v-preview {
    position: relative;
    padding: 15px;
    display: none;
    padding-bottom: 0;
    overflow-x: auto;
    max-width: -webkit-fit-content;
    max-width: fit-content;
}
#close_preview {
    position: absolute;
    right: 8px;
    top: 12px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    background: #000000a8;
    border: 0;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.alert_msg.error {
    color: #e20400;
    background-color: #f2dede;
    display: block;
    width: 100%;
    padding: 7px 15px;
    border-radius: 5px;
    font-size: 13px;
}
#close_preview svg{
  color: #FFF;
  width: 100%;
  height: 100%;
}
#v_preview{
  display: none;
}
#v_preview.show{
  display: block;
}



.chat-box {
  right: 0;
  max-width: 100%;
  bottom: 0;
  left: 0;
  border-radius: 0;
  max-height: 100%;
  height: 100%;
  width: 100%;
}



.typing {
  align-items: center;
  display: flex;
  height: 17px;
}
.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  background-color: #c1c1c1;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}
.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}
.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}
.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}
.typing .dot:last-child {
  margin-right: 0;
}

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color:#c1c1c1;
  }
  28% {
    transform: translateY(-7px);
    background-color:#ccc;
  }
  44% {
    transform: translateY(0px);
    background-color: #ddd;
  }
}
.hide{
  display: none!important;
}
/*for Mobile*/
@media (max-width: 767px) {
	
  #chat-input {
    font-size: 16px;
  }
  .add_file {
    right: 50px;
  }

  /* .chat-logs {
      height: calc(100vh - 250px);
  } */
  /* .chat-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: solid 1px #bababa;
    z-index: 1;
} */
  #chat-circle {
    bottom: 30px;
    right: 20px;
}
  .vc-msg-text {
    font-size: 16px;
  }


  .chat-box {
    right: 0;
    max-width: 100%;
    bottom: 0;
    left: 0;
    border-radius: 0;
    max-height: 100%;
    height: 100%;
    width: 100%;
  }


    .chat-box-header {
      height: 70px;
      border-radius: 0;
    }
    .chat-submit, .add_file {
        width: 40px;
        height: 40px;
        bottom: 4px;
    }
}

/*for tabletV*/
@media (min-width: 768px) and (max-width: 991px) {
}
/* end for tabletV */

/*for tabletH*/
@media (min-width: 992px) and (max-width: 1199px) {
}
/* end for tabletH */
