html,
body,
body > #app {
  width: 1px;
  min-width: 100%;
  *width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
}

.main-chat-box {
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.history-log-chat {
  width: 100%;
  height: calc(100% - 50px);
  padding: 5px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fff;
  scroll-behavior: smooth;
  /* scrollbar-width: thin; */
  scrollbar-width: thin;
}

.history-log-chat a {
  font-weight: bold;
  text-decoration: none;
  color: #FFFFFF;
}

.history-log-chat::-webkit-scrollbar-track
{
  background-color: #F5F5F5;
}

.history-log-chat::-webkit-scrollbar
{
  width: 7px;
  background-color: #F5F5F5;
}

.history-log-chat::-webkit-scrollbar-thumb
{
  background-color: #b5b5b5;
}

.control-chat {
  width: 100%;
  position: absolute;
  height: 49px;
  border-top: 1px solid #d3d3d3; 
  bottom: 0;
  /* left: 0; */
  background-color: #fff;
  display: flex;
  flex-wrap: nowrap;
}

.box-msg {
  float: left;
  width: 100%;
  height: auto;
  padding: 1px 0;
  margin-bottom: 10px;
}

.first-box-msg {
  padding-top: 10px; 
}

.last-box-msg {
  padding-bottom: 5px;
}

.msg-1 {
  max-width: 87%;
  width: fit-content;
  width: -moz-fit-content;
  display: table;
  padding: 15px;
  /* background-color: #64C8CC; */
  position: relative;
  /* border-radius: 3px; */
  color: white;
  background: #6D9CCB;
  box-shadow: 0px 0px 6px rgba(109, 156, 203, 0.4);
  border-radius: 4px 20px 20px 20px;
  white-space: pre-line;
}

/* .msg-1-lst-msg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  margin: 5px 0 0 -10px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #64C8CC;
} */

.msg-2 {
  float: right;
  text-align: left;
  max-width: 85%;
  width: fit-content;
  width: -moz-fit-content;
  display: table;
  padding: 15px;
  position: relative;
  background: #ECECEC;
  border-radius: 20px;
}

/* .msg-2-lst-msg::after {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  margin: 5px 0 0 -10px;
  width: 0;
  height: 0;
  border-top: 0px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid gainsboro;
} */

.persistent-menu {
  height: 100%;
  width: 45px;
  /* float: left; */
  text-align: center;
  line-height: 3;
}

.chat-text-field {
  /* 80px */
  /* width: calc(100% - 80px); */
  height: 100%;
  /* float: right; */
  padding: 7px 5px 7px 0;
  flex-grow: 4;
}

.chat-text-field_container {
  width: 100%;
  height: 100%;
  /* border: 1px solid #F2F2F2;
  background-color: #F2F2F2; */
  border-radius: 20px;
}

.chat-text-field_container input {
  border: none;
  border-radius: 3px;
  padding: 6px 0px 6px 0px;
  width: calc(100% - 37px);
  float: left;
  background-color: transparent;
  color: #000000;
}

.chat-text-field_container input:focus {
  outline: none;
}

.chat-text-field_container button {
  margin-top: 2px; 
}

/* .chat-text-field_container button:hover, .chat-text-field_container button:focus,
.chat-text-field_container button:hover::before, .chat-text-field_container button:focus::before {
  background-color: transparent !important;
} */

/* .btn-send i { #2196F3 !important; }*/


/* image box content */
.img-message-content {
  width: 100%;
  padding: 10px 10px;
  color: white;
  /* background-color: #64C8CC; */
  border-top: 2px solid white;
  /* border-bottom: 2px solid white; */
  border-radius: 4px;
  background: #6D9CCB;
  box-shadow: 0px 0px 6px rgba(109, 156, 203, 0.4);
  border-radius: 4px 20px 2px 2px;
  white-space: pre-line;
  position: relative;
}

.img-button-display {
  width: 100%;
  position: relative;
}

.img-button-display button {
  width: 100%;
  height: 40px;
  padding: 5px 20px;
  border-top: 1px solid white;
  background-color: #B4B4B4;
  color: white;
  border-radius: 0 0 4px 4px;
  opacity: 1;
}

.img-button-display button:last-child {
  border-radius: 0 0 20px 20px;
}

.img-button-display button:hover {
  opacity: 0.7;
}

.img-button-display button:focus {
  outline: none;
}

/* quick reply content */
.quick-reply-button-display {
  padding: 5px 0px 10px;
  text-align: center;
}

.quick-reply-button-display button {
  /* border: 1px solid #64C8CC; */
  border-radius: 100px;
  border: 1px solid #FF5F5F;
  background: #FF5F5F;
  padding: 2px 10px;
  margin-right: 10px;
  margin-bottom: 5px;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 14px;
}

.quick-reply-button-display button:hover {
  border: 1px solid #D63838;
  background: #FF7C7C;
}

.quick-reply-button-display button:last-child {
  margin-right: 0px;
}

.image-box-content {
  position: relative;
}

/* Button react */
.history-log-chat .clearfix .btn-react {
  display: none;
  position: absolute;
  /* background-color: #F5F5F5 !important; */
  opacity: .8 !important;
  right: 12px;
  bottom: -10px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  z-index: 4;
  width: 26px;
  height: 26px;
  background-color: #FFFFFF;
  border: 1px dashed #ccc;

  /* border-style: dashed; */
}

.history-log-chat .clearfix .btn-react-ed {
  display: block;
  position: absolute;
  background-color: #F5F5F5 !important;
  /* opacity: .5 !important; */
  right: 12px;
  bottom: -10px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 1px solid #ccc;
}

.history-log-chat .clearfix .btn-react-ed:hover {
  opacity: 1 !important;
}

.history-log-chat .clearfix:hover .btn-react, .history-log-chat .clearfix:focus .btn-react {
  display: block;
}

.history-log-chat .clearfix .d-select-react {
  position: absolute;
  right: 12px;
  bottom: -10px;
  padding: 0 2px;
  background-color: #FFFFFF;
  border: 1px solid #ccc;
  border-radius: 15px;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  z-index: 1;
}

.history-log-chat .clearfix .d-select-react button {
  width: 26px;
  height: 26px;
  padding: 0;
  background-color: transparent;
}

.history-log-chat .clearfix .d-select-react span.s-icon {
  position: relative;
  top: -2px;
  font-size: 16px;
}
/* .history-log-chat .clearfix .btn-react:hover::before {

} */