.chat-wrapper {
  position: absolute;
  right: 10px;
  bottom: 20px;
  width: 300px;
  height: 500px;
  background-color: #ececff55;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0px 0px 30px 5px #ccc;
  display: none;
}
.header {
  position: relative;
  top: 0;
  height: 80px;
  width: 100%;
  background-color: #030b3ef5;
}

.tabs {
  width: 100%;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.tabs span {
  position: relative;
  bottom: 0;
  flex: 1;
  padding: 10px;
  color: #fff;
  text-align: center;
  border: none;
}

.header span:hover {
  /* background-color: #ffffff44; */
  color: #fff;
}
.tabs .active {
  border-bottom: 3px solid #fff;
}
.msg-input {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 50px;
  border: 1px solid #ccc;
  background-color: #ccc;
  padding: 5px;

  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}
textarea {
  border: none;
  outline: none;
  flex: 1;
  justify-self: flex-start;
  align-self: flex-start;
  padding: 8px 5px;
  border-radius: 5px;
}

.button {
  width: 50px;
  text-align: center;
  background-color: #030b3ef5;
  color: orange;
  padding: 7px 10px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  cursor: pointer;
}

.message-wrapper {
  width: 100%;
  height: 100%;
}

.back-icon {
  padding: 0 15px;
  cursor: pointer;
}

.back-icon:active {
  opacity: 0.5;
  background-color: #ffffff99;
}

.message-list {
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(220, 226, 253, 0.897);  */
}

.sender {
  padding: 10px;
  padding-left: 0;
  margin: 2px 0;
  cursor: pointer;
}
.sender .detail {
  flex: 1;
}
.sender .name .caption {
  justify-self: flex-start;
  align-self: flex-start;
}
.name {
  font-weight: bold;
}
.caption {
  font-size: 14px;
}

.message {
  display: none;
  position: absolute;
  width: 100%;
  top: 0;
  height: 100%;
  background-color: #f7f7f7;
  color: #000;
}
.show {
  display: block;
  transition: 4s;
  width: 100%;
}

.msg-header {
  background-color: #030b3ef5;
  color: #fff;
  width: 100%;
  padding: 15px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.msg-header .name {
  flex: 1;
  font-weight: bold;
  text-align: left;
  padding-left: 10px;
}

.chats {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-card {
  padding: 10px 15px;
  color: #000;
}
.left {
  position: relative;
  justify-self: flex-start;
  align-self: flex-start;
  margin-top: 5px;
  max-width: 70%;
  text-align: left;
  background-color: #e4e6e7d7;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-left: 10px;
}

.right {
  position: relative;
  justify-self: flex-end;
  align-self: flex-end;
  margin-right: 10px;
  margin-top: 5px;
  max-width: 70%;
  text-align: left;
  background-color: rgba(163, 218, 255, 0.842);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;

}
img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: fill;
  padding: 0px 10px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}

.col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

.chat-icon {
  width: 50px;
  height: 50px;
  color: #030b3ef5;
  /* color: #fff; */
  border-radius: 100% 100% 100% 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 60px;
  right: 40px;
  font-weight: bold;
  font-size: 70px;
}

.slide-left {
  -webkit-animation: slide-left 0.5s ease-out both;
  animation: slide-left 0.5s ease-out both;
}

/* ----------------------------------------------
* Generated by Animista on 2022-12-23 9:30:55
* Licensed under FreeBSD License.
* See http://animista.net/license for more info. 
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

/**
* ----------------------------------------
* animation slide-left
* ----------------------------------------
*/
@-webkit-keyframes slide-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}
@keyframes slide-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
  }
  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

.bounce-in-bottom {
  -webkit-animation: bounce-in-bottom 2s
    cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
  animation: bounce-in-bottom 2s cubic-bezier(0.55, 0.085, 0.68, 0.53)
    both;
}
/* ----------------------------------------------
* Generated by Animista on 2022-12-23 9:40:0
* Licensed under FreeBSD License.
* See http://animista.net/license for more info. 
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */

/**
* ----------------------------------------
* animation bounce-in-bottom
* ----------------------------------------
*/
@-webkit-keyframes bounce-in-bottom {
  0% {
    -webkit-transform: translateY(500px);
    transform: translateY(500px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    -webkit-transform: translateY(65px);
    transform: translateY(65px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  72% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  81% {
    -webkit-transform: translateY(28px);
    transform: translateY(28px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  90% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  95% {
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}
@keyframes bounce-in-bottom {
  0% {
    -webkit-transform: translateY(500px);
    transform: translateY(500px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }
  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
  }
  55% {
    -webkit-transform: translateY(65px);
    transform: translateY(65px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  72% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  81% {
    -webkit-transform: translateY(28px);
    transform: translateY(28px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  90% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
  95% {
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}
