/* RH do not process */
.rh-chat-message-reply iframe {
  width: 100%;
  height: 100%;
}

.rh-chat-message-reply video {
  width: 100%;
  height: 100%;
}

.rh-chat-message-reply img {
  width: 100%;
  height: 100%;
}

.rh-chat-button {
  border: 0;
  width: 0.625rem;
  height: 0.625rem;
  margin: 0.187rem;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.rh-chat {
  max-width: 40rem;
  height: 100%;
  background-color: var(--chat-bg-color);
  border: 0.0625rem solid #e8e9eb;
  border-radius: 0.5rem;
}

.rh-chat-header {
  width: 100%;
  height: 3rem;
  line-height: 3rem;
  background-color: var(--chat-header-bg-color);
  background-color: #4996e8;
  border-radius: 0.5rem 0.5rem 0 0;
}
.rh-chat-content {
  display: block;
  height: calc(100% - 3rem);
  background-color: #ffffff;
}
.rh-chat-header-img {
  width: 1.5rem;
  float: left;
  margin: 0.75rem 0.5rem 0 1rem;
  height: 1.5rem;
  background-size: contain;
  background-image: url('./cbicons/logo.svg');
  background-repeat: no-repeat;
}
.rh-chat-header p {
  float: left;
}
.rh-chat p {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

.rh-chat .options {
  float: right;
  height: calc(100% - 0.5rem);
  margin: 0.5rem 0.75rem 0 0.5rem;
}

.rh-chat-messages-container {
  background-color: #ffffff;
  height: calc(100% - 2.5rem);
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  list-style: none;
  vertical-align: baseline;
  letter-spacing: 0.00625rem;
  color: var(--chat-messages-text-color);
  text-rendering: optimizeLegibility;
  text-shadow: 0.0625rem 0.0625rem 0.0625rem rgba(0, 0, 0, 0.004);
  -webkit-font-smoothing: antialiased;
}

.rh-chat-messages-container .rh-chat-message-list {
  list-style: none;
}

.rh-chat-messages-container .rh-chat-message-list .message-item {
  display: inline-block;
  clear: both;
  margin: 1rem 1rem 1rem 1rem;
  width: calc(100% - 1.5rem);
  font-size: 0.9rem;
}

.rh-chat-message-sent {
  margin: 0.5rem 1rem 0.5rem 1rem;
}

.rh-chat-message-reply {
  margin: 1rem 1rem;
}

.rh-chat-message-sent .rh-chat-userimg {
  margin: 0 0.5rem 0 0;
  width: 2rem;
  border-radius: 50%;
  float: right;
  max-width: 100%;
}

.rh-chat-message-reply .rh-chat-userimg {
  float: left;
  margin: 0.375rem 0.5rem 0 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0;
  max-width: 100%;
  background-size: contain;
  background-image: url('./cbicons/bot1.svg');
  background-repeat: no-repeat;
}

.rh-chat-message-reply img {
  max-width: 100%;
}

.rh-chat-message-sent p {
  background: var(--chat-message-sent-bg-color);
  color: var(--chat-message-sent-text-color);
  background: #4996e8;
  color: #ffffff;
  max-width: 16.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  margin: 0;
  font: inherit;
  line-height: 1.3rem;
  border: #eaeaea;
  float: right;
}

.message-item div {
  background: var(--chat-message-container-bg-color);
  color: var(--chat-message-sent-text-color);
  background: #e9ebee;
  color: #000000;
  float: left;
  max-width: 16.75rem;
  display: inline-block;
  padding: 0.625rem 1rem;
  border-radius: 1.25rem;
  line-height: 1.3rem;
  overflow-x: auto;
}

.rh-chat-messages-input {
  bottom: 0;
  width: 100%;
  z-index: 99;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  height: 2.5rem;
  background: white;
  border-radius: 0 0 0.5rem 0.5rem;
}

.rh-chat-messages-input .textfield {
  float: left;
  border: none;
  width: calc(100% - 3rem);
  padding: 5px 32px 5px 8px;
  font-size: 0.8rem;
  font: italic;
  background-image: none;
  outline: none;
  margin: 0;
  color: var(--chat-textfield-text-color);
  overflow: visible;
  box-sizing: border-box;
  height: 2rem;
  height: 2.5rem;
  border-radius: 0 0 0 0.5rem;
}

.rh-chat-messages-input .textfield::-webkit-input-placeholder {
  font-style: italic;
  color: #707070;
  font-size: 0.9375rem;
}

.rh-chat-messages-input .send-button {
  border: none;
  margin: 0.5rem 0.75rem 0 0.5rem;
  width: 1.5rem;
  padding: 0;
  cursor: pointer;
  background: var(--theme-bg-color);
  color: #f5f5f5;
  height: 1.5rem;
  background-image: url('./cbicons/send.svg');
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 0 0 0.5rem 0;
}

.rh-chat .hide-chat {
  float: right;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  color: #f5f5f5;
  outline: none;
  height: 2rem;
  width: 2rem;
  margin-top: 0.5rem;
  background-image: url('./cbicons/chat_collapse.svg');
  background-size: 1rem 1rem;
  background-repeat: no-repeat;
  background-position: center top;
}

.show-chat.rh-chat-button {
  right: 40px;
  bottom: 4rem;
  cursor: pointer;
  border-radius: 60px;
  background-color: #fff;
  border: 2px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  padding: 0;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  color: #34495e;
  vertical-align: middle;
  outline: none;
  background-image: url('./cbicons/cta.svg');
  background-size: 36px;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: 18px;
  overflow: visible;
  position: fixed;
  z-index: 9999999;
}

#rh_chatbot_container {
  width: 380px;
  height: 580px;
  display: block;
  right: 40px;
  bottom: 4rem;
  position: fixed;
}

.rh-chat-messages-container::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.rh-chat-messages-container::-webkit-scrollbar-thumb {
  background-color: var(--chat-message-container-bg-color);
}

.frameless-hide {
  display: none;
}
