.text-msg, .btn-option {
  padding: 0;
  border: solid 2px #ffffff;
  border-radius: 7px;
  color: #ffffff;  
  text-decoration: none;
}
.btn-option {
  text-transform:uppercase;
  font-weight: 700;
}
.btn-option:hover {
  background-color: #ffffff;
  color: #7c8380;
}
.chat-story {
  min-height: 41px;
  width: 100%;
  margin-top: -11px;
  max-width: 100vw;
  padding: 0 10px;
  position: relative;
  /*overflow: hidden;*/
}
.chat-story * {
  box-sizing: border-box;
    -webkit-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
}
.chat-story .message * {
    -webkit-transition: all 0.45s ease-in-out;
    -moz-transition: all 0.45s ease-in-out;
    -o-transition: all 0.45s ease-in-out;
    transition: all 0.45s ease-in-out;
  }
.chat-story .buttons {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
   display: -webkit-box;
  -webkit-box-pack: center; /* justify-content */
  -webkit-box-align: center; /* align-items */
  margin-top: 15px;
  width: 100%;
  opacity: 1.0;
}
.chat-story .buttons .btn-option {
  margin: 0 7px;
  padding: 7px 15px;
  font-size: 14px;
}
.chat-story .message {
  position: relative;
  max-width: 100%;
  height: auto;
  padding: 14px 0;
  opacity: 0.0;
  left: -100px;
  overflow: hidden;
}
.chat-story .message:first-child {
  padding-top: 10px;
}
.chat-story .message.client {
  left: auto;
  right: -100px;
}
.chat-story .message.client.slide-in {
  right: 0;
  left: auto;
}
.chat-story .message.slide-in {
  left: 0;
  opacity: 1.0;
}
.chat-story .message p {
  font-size: 1.6rem;
  line-height: 1.6; 
  margin: 0;
  display: inline-block;
}
.chat-story .message p a {
  color:#ffffff;
  cursor:pointer;
}
.chat-story .message p img {
  display: inline;
  height: 20px;
  vertical-align: middle; 
}
.chat-story .message p:first-child {
  position: absolute;
}
.chat-story .message p:last-child {
  opacity: 0.0;
  height: 0px;
}
.chat-story .message.ready p:last-child {
  opacity: 1.0;
  height: auto;
}
.chat-story .message.ready p:first-child {
  display: none;
}
.chat-story .hide, .chat-story .message.hideIt {
  opacity: 0.0; 
}
.chat-story .message > img {
  display: block;
  height: 51px;
  width: 51px;
  border: solid 2px #ffffff;
  border-radius: 50%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  float: left;
  margin:7px 10px 0 0;
  vertical-align: middle;
}
.chat-story .message .text-msg {
  position: relative;
  width: 100%;
  max-width: 50.6%;
  padding:15px;
  float: left;
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-story .message.ready .text-msg {
  border-color: rgba(255, 255, 255, 1.0);

}
.chat-story .message.client {
  padding: 15px 0 14px;
}
.chat-story .message.client p {
  margin: 5px 7px;
  font-weight:400;
}
.chat-story .message.client .text-msg {
  position: relative;
  background-color: #ffffff;
  color: #7c8380;
  padding: 0 14px 0 6px;
  float: right;
}
.chat-story .message.client .text-msg::after {
  display:block;
  position:absolute;
  content:'';
  width: 0;
  height: 0;
  border-left: 2px solid transparent;
  border-right: 12px solid transparent;
  border-top: 13px solid #ffffff;
  bottom: -14px;
  left:16px;
  /* border-radius: 33px;1. */
  }
@media (max-width: 1910px) {
  .chat-story {
    box-sizing: border-box;
  }
  .chat-story .text-msg {
    max-width: 65%;
  }
} 

@media (max-width: 860px) {
  .chat-story {
    padding: 0 !important;
  }
}
@media (max-width: 660px) {
  .chat-story .buttons {   
    display: block;
  }
  .chat-story .buttons .btn-option {
    display: block;
    width: 100%;
    text-align: center;
    margin: 14px 0 0 0;
    background-color: #ffffff;
    color: #7c8380;
    clear: both;
  }
  .chat-story .message > * {
    display: inline-block;
    float: left;
  }
  .chat-story .message > img {
    height: auto;
    width: 9%;
    margin-right: 0;
  }
  .chat-story .message .text-msg {
    max-width:89%;
    height: fit-content;
    float: right;
  }
  .chat-story .message.client .text-msg {
    max-width:100%;
  }
  .chat-story .message.client .text-msg::after {
    left: auto;
    right: 16px;
  }
  .chat-story .buttons .btn-option {
    font-size: 13px;
  }
}
@media (max-width: 390px){
  .chat-story .message > img {
    width: 13%;
  }
  .chat-story .message .text-msg {
    max-width:84%;
  }
}