.nuance-chat-button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: absolute;
  transition: transform 250ms ease-out, opacity 250ms ease-out,
    box-shadow 250ms ease-out, padding-right 250ms ease-out;
  border-radius: 5px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
  z-index: -1;
  outline: none;
  border: 0 solid transparent;
}

.nuance-chat-button .badge {
  display: none !important;
}

.nuance-chat-button:focus {
  border: 1px solid black;
}

.nuance-chat-button.ready,
.nuance-chat-button.disabled,
.nuance-chat-button.minimized {
  background: #79c7c5;
}

.nuance-chat-button.animate {
  transform: translateY(70px);
  opacity: 0;
}

.nuance-chat-button.animate.enter {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14);
}

.nuance-chat-button .chat-minimize,
.nuance-chat-button .chat-icon {
  display: inline-block;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin: 2px 2px 2px 2px;
  position: relative;
}

.nuance-chat-button[title='Start Chat'] {
  padding-right: 0;
  padding-left: 0;
  overflow: hidden;
  transition: padding-right 250ms ease-out, padding-left 250ms ease-out;
}

.nuance-chat-button[title='Start Chat']:hover {
  padding-right: 95px;
  padding-left: 27px;
}
.nuance-chat-button[title='Start Chat'] .chat-icon::after {
  content: 'Ask Us';
  position: absolute;
  left: 38px;
  width: 0;
  opacity: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 250ms ease-out, width 250ms ease-out;
}
.nuance-chat-button[title='Start Chat']:hover .chat-icon::after {
  width: 64px;
  opacity: 1;
}

.nuance-chat-button .chat-close {
  width: 30px;
  height: 30px;
  margin: 2px;
  transform: rotate(45deg);
  display: inline-block;
  position: relative;

}

@media (max-width: 991px) {
  .nuance-chat-button {
    right: 30px !important;
  }
}

.aria-reader {
  position: absolute;
  left: -9999px;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
}

@keyframes chatstater {
  from {
    opacity: 0;
    transform: rotate(90deg);
  }

  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes chatstated {
  from {
    opacity: 0;
    transform: rotate(135deg);
  }

  to {
    opacity: 1;
    transform: rotate(45deg);
  }
}

.nuance-chat-button[title]:not([title='Start Chat']):not([title='Resume Chat']) {
  display: none !important;
}

.nuance-chat-button .chat-icon,
.nuance-chat-button .chat-minimize {
  background-image: url('chat_icon.svg');
}

.nuance-chat-button .chat-close:after,
.nuance-chat-button .chat-close:before,
.nuance-chat-button .chat-minimize:after,
.nuance-chat-button .chat-minimize:before {
  content: '';
  pointer-events: none;
}

.nuance-chat-button .chat-close:before {
  width: 20px;
  height: 2px;
}

.nuance-chat-button .chat-close:after {
  width: 2px;
  height: 20px;
}

.nuance-chat-button .chat-close:before,
.nuance-chat-button .chat-close:after {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 0 32px;
}

.nuan-flyin-opener {
  background-color: #fff;
  border-radius: 12px;
  bottom: 0;
  box-shadow: 0 1pt 12pt rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  font-family: Helvetica, Arial, sans-serif;
  position: fixed;
  width: 360px;
  transition: all 1s linear;
  opacity: 0;
}

@media (min-width: 320px) and (max-width: 480px) {
  .nuan-flyin-opener {
    width: 300px;
  }
}

.nuan-flyin-opener .flyinOpenerContainer {
  box-shadow: 0 -5px 20px 1px rgba(0, 0, 0, 0.03) inset;
  display: flex;
  align-items: center;
  padding-top: 12px;
  transition: opacity 1s linear;
}

.flyinOpenerContainer:last-child {
  padding-bottom: 12px;
}

.flyinOpenerContainer.animate {
  opacity: 0;
}

.nuan-flyin-opener.enter,
.flyinOpenerContainer.enter {
  opacity: 1;
}

.nuan-flyin-opener .flyInMsgAwatarCont {
  padding-left: 14px;
}

.nuan-flyin-opener .flyInMsgAwatar {
  position: relative;
  border: 0.5pt solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.flyin-bubble-msg-container {
  margin-right: 10px;
  flex-grow: 2;
  margin-left: 10px;
}
.flyInHeader {
  color: rgba(0, 0, 0, 0.5);
  font-size: 8pt;
  margin-bottom: 4px;
  margin-left: 12px;
  margin-top: 10px;
  max-width: 260px;
}

.flyin-bubble-text {
  background-color: #79c7c5;
  border-radius: 1.3em;
  color: rgba(0, 0, 0, 1);
  display: inline-block;
  font-size: 11pt;
  padding: 8px 12px;
  text-align: left;
  word-wrap: break-word;
  height: 100%;
}
.nuan-flyin-opener .closeBtnCont {
  position: absolute;
  right: 12px;
  top: 6px;
}

.flyin-close-btn {
  align-items: center;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 18pt;
  justify-content: center;
  outline: none;
  width: 18pt;
}

.flyin-widget {
  border-top: 1px solid #80808026;
}

.nuance-chat-button .message-count {
  position: relative;
  display: block;
  font: bold 14px/13px Helvetica, Verdana, Tahoma;
  text-align: center;
  margin: 0;
  top: 2px;
}

.nuance-chat-button .badge.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100%,
  20%,
  53%,
  80% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    -webkit-transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    -webkit-transform: translate3d(0, -30px, 0);
    -ms-transform: translate3d(0, -30px, 0);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    -webkit-transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transition-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    -webkit-transform: translate3d(0, -15px, 0);
    -ms-transform: translate3d(0, -15px, 0);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    -webkit-transform: translate3d(0, -4px, 0);
    -ms-transform: translate3d(0, -4px, 0);
    transform: translate3d(0, -4px, 0);
  }
}
