.chat-box {
    height: 90%;
    width: 400px;
    position: fixed;
    margin: 0 auto;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    z-index: 15;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.005);
    right: 0;
    bottom: 0;
    margin: 15px;
    background: #fff;
    border-radius: 15px;
    visibility: hidden;
}
.chat-box-header {
  height: 50px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  font-size: 14px;
  padding: 0.5em 0;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 -1px 10px rgba(172, 54, 195, 0.3);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.025);
}
.chat-box-header h3 {
  font-weight: 400;
  float: left;
  position: absolute;
  left: 25px;
}
.chat-box-header p {
  float: right;
  position: absolute;
  right: 16px;
  cursor: pointer;
  height: 50px;
  width: 50px;
  text-align: center;
  line-height: 3.25;
  margin: 0;
}
.chat-box-body {
  height: 75%;
  background: #f8f8f8;
  overflow-y: scroll;
  padding: 12px;
}
.chat-box-body-send {
  width: 250px;
  float: right;
  background: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  margin-bottom: 14px;
}
.chat-box-body-send p {
  margin: 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 0.25rem;
}
.chat-box-body-send span {
  float: right;
  color: #777;
  font-size: 10px;
}
.chat-box-body-receive {
  width: 250px;
  float: left;
  background: white;
  padding: 10px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.015);
  margin-bottom: 14px;
}
.chat-box-body-receive p {
  margin: 0;
  color: #444;
  font-size: 14px;
  margin-bottom: 0.25rem;
}
.chat-box-body-receive span {
  float: right;
  color: #777;
  font-size: 10px;
}
.chat-box-body::-webkit-scrollbar {
  width: 5px;
  opacity: 0;
}
.chat-box-footer {
  position: relative;
  display: flex;
}
.chat-box-footer button {
  border: none;
  padding: 16px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}
.chat-box-footer button:focus {
  outline: none;
}
.chat-box-footer input {
  padding: 10px;
  border: none;
  -webkit-appearance: none;
  border-radius: 50px;
  background: whitesmoke;
  margin: 10px;
  font-family: ubuntu;
  font-weight: 600;
  color: #444;
  width: 280px;
}
.chat-box-footer input:focus {
  outline: none;
}

.chat-box-footer textarea {
    padding: 10px;
    border: none;
    -webkit-appearance: none;
    border-radius: 20px;
    background: whitesmoke;
    margin: 10px;
    font-family: ubuntu;
    font-weight: 600;
    color: #444;
    width: 330px;
    height: 135px;
}

.chat-box-footer textarea:focus {
    outline: none;
}


    .chat-box-footer .send {
        vertical-align: middle;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        display: grid;
        transform: scale(1.5);
        margin-left: 9px;
    }

    .chat-box-footer .reset {
        margin-top: 9px;
        height: 10%;
    }

.chat-button {
  padding: 25px 16px;
  background: #2C50EF;
  width: 150px;
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 15px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  border-bottom-left-radius: 25px;
  box-shadow: 0 2px 15px rgba(44, 80, 239, 0.21);
  cursor: pointer;
}
.chat-button span::before {
  content: "";
  height: 15px;
  width: 15px;
  background: #47cf73;
  position: absolute;
  transform: translate(0, -7px);
  border-radius: 15px;
}
.chat-button span::after {
  font-size: 14px;
  color: white;
  position: absolute;
  left: 50px;
  top: 15px;
}

.resetbutton {
    background-color: lightgrey; /* Green */
    border: none;
    color: white;
    border-radius: 20px;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1rem 1.5rem;
  width: 24rem;
  border-radius: 0.5rem;
}
.modal-close-button {
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: lightgray;
}
.close-button:hover {
  background-color: darkgray;
}
.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
  z-index: 30;
}

.info-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z'/%3E%3C/svg%3E");
}

.popover {
    white-space: pre-wrap;
    max-width: 50%; /* Max Width of the popover (depending on the container!) */
}

@media only screen and (max-width: 490px) {
    .chat-box {
        min-width: 100% !important;
        height: 100% !important;
        visibility: visible !important;
        margin: 0px;
        width:40px;
    }
    
    table {
        display:none;
    }

    .header {
        display: none !important;
    }

    .chat-button {
        display: none !important;
    }

    .chat-box-body {
        height: 80%;
    }

    #bot_reset_button {
        display: none !important;
    }

    .chat-box-footer textarea {
        width: 290px !important;
    }

    .chat-box-header {
        display: none !important;
    }
}
