body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

* {
  box-sizing: border-box;
}

.open-button {
  background-color: #1a7ac6;
  border-color: #1a7ac6;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.open-button i {
  font-size: 25px;
}

.chat-popup {
  display: none;
  position: fixed;
  background-color: #ffffff;
}

@media only screen and (min-width: 900px) {
  .chat-popup {
    max-height: 575px;
    max-width: 358px;
    bottom: 5px;
    right: 15px;
    border: 2px solid #1a7ac6;
    border-radius: 2px;
  }
}
@media only screen and (max-width: 900px) {
  .chat-popup {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
  }
}
#chat-conversation {
  padding: 5px;
  overflow-y: scroll;
}

@media only screen and (min-width: 900px) {
  #chat-conversation {
    max-width: 348px;
    max-height: 287.5px;
  }
}
@media only screen and (min-width: 900px) {
  #chat-conversation {
    top: 0;
    width: 100%;
    height: 50%;
  }
}
.chat-header {
  padding-right: 5px;
  padding-left: 5px;
  width: 100%;
  height: 25px;
  background-color: #1a7ac6;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-left {
  flex-grow: 1;
}

.chat-header-right {
  flex-grow: 1;
  text-align: right;
}

.chat-header-right i {
  margin-right: 5px;
  margin-left: 5px;
}

.chat-hist {
  display: inline-block;
  height: 50%;
  width: 100%;
}

/* Chat containers */
.chat-container {
  border: 2px solid #f1f1f1;
  background-color: #f1f1f1;
  border-radius: 5px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-right: 25%;
  margin-left: 0;
}

/* Darker chat container */
.chat-right {
  border-color: #ccc;
  background-color: #ddd;
  margin-right: 0;
  margin-left: 25%;
}

.chat-container i {
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-sizing: border-box;
  background-color: white;
  color: #00008b;
  font-size: 25px;
  float: left;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
}

/* Style the right image */
.chat-container i.right {
  float: right;
  margin-left: 20px;
  margin-right: 0;
}

/* Clear floats */
.chat-container::after {
  content: "";
  clear: both;
  display: table;
}

/* Style time text */
.time-right {
  float: right;
  color: #aaa;
}

/* Style time text */
.time-left {
  float: left;
  color: #999;
}

.form-container {
  padding: 5px;
  width: 100%;
}

.chat-body {
  display: none;
}

.chat-settings {
  width: 348px;
  height: 515px;
}