.chat-toggle {
  align-items: flex-end;
  bottom: 0;
  display: flex;
  flex-direction: row-reverse;
  font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
  font-weight: 700;
  justify-content: center;
  max-width: 450px;
  padding-bottom: 20px;
  position: fixed;
  right: 80px;
  top: auto;
  transition: height 0.2s ease 0s, max-width 0.2s ease 0s,
    min-width 0.2s ease 0s, bottom 0.2s ease 0s, right 0.2s ease 0s,
    visibility 1s ease, opacity 0.4s ease;
  width: auto;
  z-index: 9999;
}
@keyframes dimensionChange {
  from {
      height: 100%;
      width: 100%;
  }
  to {
      height: 0;
      width: 0;
  }
}
.chat-toggle.minimized {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  width: 0;
  animation: dimensionChange 1.4s linear;
}
.chat-toggle .hovering-head {
  align-items: center;
  aspect-ratio: 1;
  background-color: #96368b;
  border: 0;
  border-radius: 50%;
  border-style: inherit;
  box-shadow: 4px 4px 25px -10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  height: 5.5rem;
  justify-content: center;
  margin: 4px;
  padding: 0.75rem;
  transition: height 0.4s ease 0s, width 0.4s ease 0s;
  width: 5.5rem;

  /* Fixing animation shift */
  margin-left: auto;
  flex-grow: 0;
}
.hovering-head:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.close-bubble {
  background-color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: block;
  fill: #fff;
  height: 30px;
  left: 0;
  padding: 2px;
  position: absolute;
  top: 0;
  -webkit-transform: translate(35px, -13px);
  transform: translate(35px, -13px);
  transition: background 0.2s ease 0s;
  transition: height 0.4s ease 0s, width 0.4s ease 0s, transfrom 0.4s ease 0s,
  opacity 0.4s ease 0s;
  width: 30px;
  z-index: 300;
}
.close-bubble:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}
.wrapper-bubble {
  position: relative;
  transition: visibility 1s ease 0s, opacity 0.4s ease 0s, padding 0.2s ease 0s;
}
.wrapper-bubble.minimized {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  width: 0;
  animation: dimensionChange 1.4s linear;
}
.wrapper-bubble > .bubble {
  align-items: flex-end;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  text-align: left;
  -webkit-transform: translateX(50px);
  transform: translateX(50px);
  transition: height 0.4s ease 0s, width 0.4s ease 0s;
  z-index: 10;
}
.bubble > .content {
  align-items: center;
  background: #96368b;
  border-radius: 10px;
  box-shadow: 4px 4px 25px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  min-height: 5.5rem;
  padding: 15px 20px;
  transition: min-height 0.4s ease 0s, width 0.4s ease 0s, padding 0.4s ease 0s;
}
.bubble > .tail {
  flex-shrink: 0;
  height: 68px;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  width: 68px;
}
.bubble > .tail:before {
  border-radius: 0 0 0 50%;
  box-shadow: 0 0 0 24px #96368b;
  content: "";
  display: block;
  height: 100%;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .chat-toggle {
    right: 20px;
  }
}

@media (max-width: 525px) {
  .bubble > .content {
    min-height: 5rem;
  }
  .wrapper-bubble > .bubble {
    align-items: flex-start;
    font-size: 14px;
    padding: 10px;
    -webkit-transform: translateX(70px);
    transform: translateX(70px);
  }
  .chat-toggle .hovering-head {
    height: 4rem;
    margin-bottom: 10px;
    width: 4rem;
  }
  .close-bubble {
    height: 25px;
    -webkit-transform: translateX(70px);
    transform: translateX(70px);
    width: 25px;
  }
  .chat-toggle {
    padding-bottom: 5px;
  }
  .bubble > .tail {
    margin-bottom: 0;
    margin-top: 15px;
  }
  .bubble > .tail:before {
    border-radius: 50% 0 0 0;
  }
}
@media (max-width: 400px) {
  .wrapper-bubble > .bubble {
    font-size: 12px;
  }
  .bubble > .content {
    padding: 10px;
  }
  .close-bubble {
    line-height: 1;
    height: 20px;
    width: 20px;
  }
}

/**
* Overrides for the chat bot.
*/
#chat-container .TitleBar,
#chat-container #boost-chat-panel-menu {
  background-color: #96368b !important;
}
#chat-container .sc-pjumZ > div {
  background: #96368b !important;
}
#chat-container .ieJzVd {
  max-width: 450px !important;
}
#boostai-chat-panel-title {
  font-size: 16px;
}
