.chatbox {
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 1000;
  pointer-events: none;
}

.chatbox > * {
  pointer-events: auto;
}

.chatbox .text-black {
  color: black !important;
}

.chatbox .chaticon {
  display: inline-block;
  width: 16px;
  margin-right: 10px;
}

.chatbox .chat-modal {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 10px;
}

.chatbox .chat-modal-content {
  background-color: #fff;
  border-radius: 25px;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  padding-bottom: 5px;
}

.chatbox .close-btn {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.chatbox .close-btn:hover {
  color: #222;
}

.chatbox .modalbutton {
  padding: 10px 20px;
  z-index: 2147483648;
  border-radius: 25px;
  background-color: #ffc107;
  border: 0;
  vertical-align: top;
  float: right;
  margin-right: 10px;
}

.chatbox .chat-modal-header {
  background-color: #ffc107;
  color: black;
  padding: 15px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
}

.chatbox .chat-modal-header h2 {
  margin: 6px 0px 0px 0px;
  display: inline-block;
}

.chatbox .chatblock {
  height: 400px;
  background-color: white;
  overflow-y: scroll;
}

.chatbox .chat-chatbox {
  max-height: 400px;
  min-height: 260px;
  background-color: white;
  margin: 10px;
  position: relative;
  overflow-y: scroll;
  overscroll-behavior: none;
}

.chatbox .chat-chatbox .message {
  margin-top: 10px;
  padding: 5px 10px;
  display: inline-block;
  border-radius: 15px;
  word-wrap: break-word;
}

.chatbox .chat-chatbox .message.agent-chat-user {
  background-color: #ffc107;
  color: black;
  margin-right: 25%;
  width: 70%;
}

.chatbox .chat-chatbox .message.visitor-chat-user {
  background-color: #266ea1;
  color: white;
  margin-left: 25%;
  width: 70%;
}

.chatbox .chat-chatbox .message.system-chat-user {
  background-color: #e8e9ea;
}

.chatbox .chat-session .chat-date {
  text-align: center;
  background-color: white;
  border-bottom: 1px solid black;
  margin-top: 5px;
  margin-bottom: 5px;
}

.chatbox .chat-time {
  font-size: 12px;
  float: right;
  margin-left: 10px;
}

.chatbox .system-chat-user {
  background-color: #e8e9ea;
  border-radius: 15px;
  margin: 10px;
  padding: 5px 10px;
}

.chatbox .chat-istyping {
  position: relative;
  padding-left: 15px;
  font-style: italic;
  min-height: 24px;
}

.chatbox .chat-chatfooter {
  margin: 10px;
}

.chatbox .chat-input {
  border-radius: 15px;
  padding: 10px 15px;
  border: 1px solid black;
  width: 86%;
}

.chatbox .chat-send {
  background-color: #ffc107;
  color: black;
  border-radius: 15px;
  padding: 10px 15px;
  border: none;
}

.chatbox .hideonmobiletablet {
  display: inline-block;
}

@media screen and (max-width: 1024px) {
  .chatbox .hideonmobiletablet {
    display: none;
  }

  .chatbox .chaticon {
    margin-right: 0;
  }
}
@media screen and (max-height: 600px) {
  .chatbox .chat-chatbox{min-height:auto;}
}
@media screen and (max-height: 600px) {
  .chatbox{bottom:0;}
  .chatbox .chat-modal{
    padding-bottom:0;
  }
  .chatbox .chat-modal-header{padding:5px 15px;}
  .chatbox .chat-chatfooter{margin:5px 10px;}
  .chatbox .modalbutton{padding:5px 20px;}
  .chatbox .chat-send,.chatbox .chat-input{padding:5px 15px;}
}