.blog-chat-wrap {
  display: block;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1002;
}

/* ============================================== CHAT STYLES =============================================== */

.blog-chat-chat-container {
  width: 376px;
  height: 530px;
  max-height: 65vh;
  background: rgb(255, 255, 255);
  border-radius: 8px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
  display: none;
  flex-direction: column;
}

.blog-chat-chat-container.active {
  display: flex; 
}

.blog-chat-chat-banner {
  background-color: rgb(48, 135, 227);
  height: 68px;
  border-radius: 6px 6px 0px 0px;
}

.blog-chat-chat-banner > div {
  -webkit-box-align: center;
  align-items: center;
  color: rgb(255, 255, 255);
  display: flex;
  height: 100%;
  padding: 16px; 
}

.blog-chat-chat-banner-image {
  border: 2px solid rgb(255, 255, 255);
  background: rgb(255, 255, 255);
  border-radius: 50%; 
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  box-sizing: content-box;
  font-size: initial;
  overflow: hidden;
  position: relative;
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.blog-chat-chat-banner-image > div {
  background-image: url(https://cdn2.hubspot.net/hub/38093/hubfs/logo-2.png?width=108&height=108);
  background-position: center center;
  background-size: cover;
  height: 100%;
  width: 100%; 
}

.blog-chat-chat-banner-title {
  padding-left: 12px!important;
  padding-right: 12px!important;
  display: flex;
  flex-direction: column;
  height: 100%;
  -webkit-box-pack: center;
  justify-content: center;
  min-width: 0px;
}

.blog-chat-chat-banner-title > span {
  font-size: 16px;
  font-family: Helvetica, Arial, sans-serif !important;
}

.blog-chat-chat-main {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
}

.blog-chat-chat-convo {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden scroll;
}

.blog-chat-chat-convo-message {
  padding: 4px 10px 4px 18px;
  width: 100%;
  z-index: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog-chat-chat-convo-message.user {
  align-items: flex-end; 
}

.blog-chat-chat-convo-message-icon {
  display: flex;
  height: 16px;
  -webkit-box-align: center;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 4px;
  width: 100%; 
}

.blog-chat-chat-convo-message.user > .blog-chat-chat-convo-message-icon {
  display: none;
}

.blog-chat-chat-convo-message-icon > div {
  margin-left: 0px;
  margin-right: 8px;
  margin-top: 28px;
  overflow: hidden;
  position: relative;
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.blog-chat-chat-convo-message-icon > div > div{
  background-image: url(https://cdn2.hubspot.net/hub/38093/hubfs/logo-2.png?width=108&height=108);
  background-position: center center;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.blog-chat-chat-convo-message-text {
  margin-left: 38px;
  position: relative;
  min-height: 32px;
  word-break: break-word;
  box-sizing: border-box;
  border-style: solid;
  border-width: 0px;
  border-color: rgb(203, 214, 226);
  background-color: rgb(234, 240, 246);
  color: rgb(66, 91, 118);
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  flex-direction: column;
  border-radius: 0px 8px 8px;
  max-width: 284px;
  padding: 8px 16px;
}

.blog-chat-chat-convo-message.user > .blog-chat-chat-convo-message-text {
  border-radius: 8px 0px 8px 8px;
  background-color: rgb(48, 135, 227);
  margin-right: 8px;
}

.blog-chat-chat-convo-message-text > div {
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  width: 100%; 
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: rgb(66, 91, 118);
}

.blog-chat-chat-convo-message-text a {
  font-weight: 400;
  font-size: 14px;
  line-height: 24px; 
}

.blog-chat-chat-convo-message.user > .blog-chat-chat-convo-message-text > div {
  color: #fff;
}

/* ----------- INPUT ----------- */

.blog-chat-chat-input {
  display: flex;
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
  max-width: 100%;
  background-color: #fff;
  border-top: 2px solid #f2f5f8;
  flex-shrink: 0;
  margin-bottom: 8px!important; 
}

.blog-chat-chat-input-input {
  border-radius: 3px;
  font-size: 16px;
  line-height: 22px;
  min-height: 40px;
  max-height: 100px;
  overflow: hidden auto;
  padding: 8px;
  position: relative;
  width: 100%;
  flex-basis: 100%;
  word-break: break-word;
  cursor: text;
  border: none;
  background-color: transparent; 
}

.blog-chat-chat-input-input > input {
  padding: 0;
  border: none;
  width: 100%;
  position: relative;
  background-color: transparent;
  cursor: text;
  user-select: none;
  font-size: 16px;
  line-height: 22px;
  height: 22px;
}

.blog-chat-chat-input-input > input:focus {
  outline-width: 0;
}

.blog-chat-chat-input-input > input::placeholder {
  color: rgb(123, 152, 182);
}

.blog-chat-chat-input-enter {
  margin-left: 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-chat-chat-input-enter-button {
  flex-shrink: 0;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  padding: 0px;
  text-align: center;
  text-overflow: clip;
  font-size: 18px;
  line-height: 18px;
  outline: none;
  transition: background-color 150ms ease-out 0s;
  color: rgb(48, 135, 227);
  border: none;
  background-color: transparent;
  cursor: pointer !important; 
}

.blog-chat-chat-input-enter-button.enabled {

}

.blog-chat-chat-input-enter-button.enabled:hover {
  background-color: rgba(48,135,227,.1) !important;
}

/* ============================================= BUTTON STYLES ============================================== */

.blog-chat-button-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 20px;
}

.blog-chat-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  background-color: rgb(48, 135, 227);
  box-shadow: rgb(0 0 0 / 10%) 0px 1px 6px, rgb(0 0 0 / 20%) 0px 2px 24px;
  border: none;
  transition: box-shadow 150ms ease-in-out 0s;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
}

.blog-chat-button > svg {
  display: none; 
}

.blog-chat-button-open.active, .blog-chat-button-close.active {
  display: block; 
}

.blog-chat-button:hover {
  box-shadow: rgb(0 0 0 / 20%) 0px 2px 10px, rgb(0 0 0 / 30%) 0px 4px 28px; 
}


/* ============================================= FORM STYLES ============================================== */
.blog-chat-subscription-button > button {
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 16px;
  outline: none;
  transition: background-color 150ms ease-out 0s;
  border-style: solid;
  border-width: 1px;
  cursor: pointer;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
  color: rgb(48, 135, 227);
  background-color: transparent;
  border-color: rgb(48, 135, 227); 
}

.blog-chat-subscription-form-container {
  
}

.blog-chat-subscription-form-container form label {
  font-size: 12px;
  line-height: 16px;
}

.blog-chat-subscription-form-container form input {
  font-size: 12px;
  padding: 10px;
}






