@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

* {
  font-family: "Lato", sans-serif;
}
*:focus {
  outline: none;
}

body,
html {
  padding: 0px;
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
P {
  margin: 0;
  padding: 0;
}
button:focus {
  outline: 0;
}

a.cta_btn {
  width: 100%;
  padding: 10px;
  display: inline-block;
  font-size: 15px;
  line-height: 12px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 0;
  margin-left: 0px;
  color: #000000;
  background-color: #00e6c0;
  background-image: none;
  text-shadow: none;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
}

#bubble {
  border: 0;
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-image: url(../images/speech-bubble.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 60px;
  height: 60px;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  color: #ffffff;
  font-size: 37px;
  line-height: 0px;
  padding-top: 12px;
  text-align: center;
  box-sizing: border-box;
  display: none;
  animation: scaleBubble 2s ease-out infinite;
}

@keyframes scaleBubble {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.05);
  }
  25% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

#bubble.left {
  right: auto;
  left: 0px;
}
#bubble.center {
  right: auto;
  left: 50%;
  transform: translate(-50%, 0);
}
#bubbleCounter {
  position: absolute;
  font-size: 10px;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  background: #ff0000;
  text-align: center;
  box-sizing: border-box;
  padding-top: 10;
  right: 0px;
  top: -2px;
  display: none;
}
#bubbleCounter.show {
  display: block;
}

#offline_message {
  width: 100%;
  z-index: 9;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  line-height: 2;
  height: calc(100% - 50px);
  box-sizing: border-box;
  display: none;
  top: 50px;
  border-radius: 0 0 10px 10px;
  text-align: center;
  padding-top: 100px;
}

#offline_message.active {
  display: block;
}
#offline_message img {
  width: 50px;
  display: block;
  margin: 0 auto;
}

#dialogWindow {
  width: 100%;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  border-radius: 10px;
  box-shadow: 0px 3px 10px -3px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform-origin: right bottom;
}
#dialogWindow.fullview {
  border: 0;
}

#dialogWindow.deactivate {
  /*pointer-events: none; */
}

#dialogWindow.left {
  float: right;
}
#dialogWindow.center {
  margin: 0 auto;
  display: block;
}
#dialogWindow.close {
  display: none;
}
#dialogWindow.show {
  visibility: visible;
  position: relative;
  z-index: 11;
}

#dialogHeader {
  width: 100%;
  display: block;
  box-sizing: border-box;
  font-weight: bold;
  color: #ffffff;
  padding: 12px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0px;
  font-size: 10px;
  height: 50px;
  background-image: linear-gradient(243deg, #00e6c0 51%, #2837be);
  position: relative;
  z-index: 10;
  box-shadow: -2px 6px 8px rgb(0 0 0 / 18%);
}

#dialogWindow.fullview #dialogHeader {
  border-radius: 0;
}

#closeWidget {
  border: 0;
  background: none;
  position: absolute;
  top: 15px;
  right: 11px;
  background-repeat: no-repeat;
  background-position: center;
  width: 20px;
  height: 20px;
  padding: 0;
  cursor: pointer;
}
#closeWidget::before {
  content: "";
  width: 14px;
  height: 2px;
  background-color: #ffffff;
  display: block;
}

#visitorOptions {
  border: 0;
  background: none;
  position: absolute;
  top: 11px;
  right: 26px;
  cursor: pointer;
}

#visitorOptions:after {
  content: "\2807";
  font-size: 20px;
  color: #ffffff;
}

#visitorOptionsMenu {
  display: none;
  list-style: none;
}

#visitorOptionsMenu.active {
  display: block;
}

#closeRoomButton {
  background-image: url("../images/logout.svg");
  box-shadow: 0px 3px 10px -3px rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  background-position: 9px center;
  background-color: #ffffff;
  border-radius: 0 0 10px 10px;
  padding: 10px 10px 10px 29px;
  border: 0;
  display: inline-block;
  width: auto;
  position: absolute;
  bottom: -36px;
  right: 12px;
  display: none;
  cursor: pointer;
  z-index: 2;
}

#newRoomButton {
  width: 80%;
  height: 40px;
  display: inline-block;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid #cccccc;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 5px;
  padding: 4px;
  margin-left: 0px;
  color: #000000;
  background-color: #00e6c0;
  background-image: none;
  text-shadow: none;
  display: none;
  margin: 0 auto;
}

#agentInfo {
  display: inline-block;
  vertical-align: middle;
  width: 240px;
}

#agentName {
  display: block;
  font-size: 16px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.19;
  letter-spacing: normal;
  text-align: left;
  color: #ffffff;
}

#agentEmail {
  text-decoration: none;
  font-size: 10px;
  font-weight: normal;
  font-style: normal;
  line-height: 1.25;
  color: #ffffff;
  display: inline-block;
  margin-left: 0;
}

#retryWindow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: center;
  font-size: 15px;
  z-index: 9999;
  background: #fbfbfb;
  border-radius: 9px;
  padding-top: 80px;
  display:none;
}
#retryWindow.active{
  display:block;
}
#retryWindow strong {
  padding: 20px 0;
  display: block;
  font-weight: 500;
  font-size: 20px;
}

#retryWindow button#retryMainActionBtn{
  width: 100%;
  padding: 10px;
  display: inline-block;
  font-size: 15px;
  line-height: 12px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 0;
  margin-left: 0px;
  color: #000000;
  background-color: #00e6c0;
  background-image: none;
  text-shadow: none;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
}

#offlineWindow {
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -64%);
  width: 300px;
  padding: 0 40px;
  box-sizing: border-box;
  text-align: center;
  font-size: 15px;
  background-image: url(../images/reloj.svg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 62px;
  padding-top: 62px;
}

#offlineWindow strong {
  padding: 20px 0;
  display: block;
  font-weight: 500;
  font-size: 20px;
}

#dialogChat {
  padding: 5px 20px;
  margin: 0;
  list-style: none;
  display: block;
  height: 0px;
  background-color: #ffffff;
  border-radius: 0;
  overflow-y: auto;
  /*transition: height 100ms ease-out;*/
}
#dialogChat > li {
  margin: 3px 0;
  display: block;
  color: #ffffff;
  width: 100%;
  position: relative;
  margin-bottom: 25px;
  font-size: 12px;
  opacity: 1;
}

#dialogChat > li span.letterName {
  border-radius: 100%;
  background: #dfdfdf;
  width: 30px;
  height: 30px;
  display: inline-block;
  box-sizing: border-box;
  padding-top: 7px;
  text-align: center;
  font-size: 13px;
  vertical-align: top;
  margin: 0 5px 0 0;
  color: #000000;
}
#dialogChat > li span.letterName.custom-avatar {
  padding: 0;
  background: 0;
}

#dialogChat > li span.letterName.visitor {
  background: #00e6c0;
  margin: 0 0 0 5px;
}

#dialogChat > li.visitor-message span.letterName {
  margin: 0 0 0 5px;
}

#dialogChat > li span.letterName > img {
  width: 100%;
  border-radius: 100%;
}

#dialogChat li.date-header {
  color: #bcbcbc;
  text-align: center;
  font-size: 12px;
  margin: 15px 0;
  padding: 5px;
  box-sizing: border-box;
}
#dialogChat li.date-header::after {
  content: "";
  width: 100%;
  height: 1px;
  background: #bcbcbc;
  display: block;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
}
#dialogChat li.date-header > p {
  background: #ffffff;
  color: #bcbcbc;
  display: inline-block;
  position: relative;
  z-index: 1;
  padding: 0 9px;
}

#dialogChat li.agent-message {
  text-align: left;
  left: 0;
  opacity: 1;
  animation: agent-message-anim 0.3s ease-out;
}
@keyframes agent-message-anim {
  0% {
    opacity: 0;
    left: -5;
  }
  100% {
    opacity: 1;
    left: 0;
  }
}
#dialogChat li.visitor-message {
  text-align: right;
  right: 0;
  opacity: 1;
  animation: visitor-message-anim 0.3s ease-out;
}

@keyframes visitor-message-anim {
  0% {
    opacity: 0;
    right: -5;
  }
  100% {
    opacity: 1;
    right: 0;
  }
}

#dialogChat > li > .bubble-msg {
  transition: opacity 100ms ease-out;
  display: inline-block;
  width: 83%;
  opacity: 0;
  box-sizing: border-box;
  padding: 16px;
  position: relative;
  color: #0c0c0c;
  overflow-wrap: break-word;
  background-repeat: no-repeat;
  background-position: right bottom;
}
#dialogChat > li.attached > .bubble-msg {
  padding: 0;
}

#dialogChat > li > .bubble-msg.show {
  opacity: 1;
}

#dialogChat > li > .bubble-msg > span.date {
  background-image: url(../images/message_check.svg);
  background-size: 8px;
  background-repeat: no-repeat;
  padding-right: 24px;
  background-position: 36px 3px;
}

#dialogChat > li > .bubble-msg.waiting > span.date {
  background-image: url(../images/animat-clock.gif);
  background-size: 25px;
  background-repeat: no-repeat;
  padding-right: 24px;
  padding-bottom: 10px;
  background-position: 29px -5px;
  bottom: -25px;
}

#dialogChat > li > .bubble-msg.ready > span.date {
  background-image: url(../images/message_check.svg),
    url(../images/message_check.svg);
  background-size: 8px, 8px;
  background-repeat: no-repeat, no-repeat;
  padding-right: 24px;
  background-position: 36px 3px, 44px 3px;
}

#dialogChat > li > .bubble-msg > p {
  text-align: left;
}

#dialogChat > li.attached .msgtxt {
  padding: 0px 10px 10px 10px;
}

#dialogChat > li > .bubble-msg > span.date {
  font-size: 10px;
  position: absolute;
  bottom: -15px;
  right: 0;
  color: #bcbcbc;
}

#dialogChat li.agent-message > .bubble-msg > span.date {
  right: auto;
  left: 0;
}

#dialogChat li.agent-message > .bubble-msg {
  background-color: #f6f6fa;
  font-size: 14px;
  border-radius: 0 15px 15px 15px;
}
#dialogChat li.visitor-message > .bubble-msg {
  background-color: rgba(0, 230, 192);
  font-size: 14px;
  border-radius: 15px 0 15px 15px;
}

#inputVisitorCreeds {
  display: none;
  position: absolute;
  top: calc(50% + 40px);
  left: 0px;
  right: 0;
  width: 100%;
  padding: 20px 35px;
  text-align: center;
  box-sizing: border-box;
  transform: translate(0, -60%);
}

#inputVisitorCreeds.left {
  left: auto;
  right: 0;
}

#inputVisitorCreeds.center {
  left: 50%;
  transform: translate(-50%, 0);
  right: auto;
}

#inputVisitorCreeds label {
  margin-bottom: 30px;
  display: block;
}
#inputVisitorCreeds label > p {
  font-size: 16px;
  color: #0c0c0c;
  margin-bottom: 10px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.19;
  letter-spacing: normal;
  text-align: left;
}

#inputVisitorCreeds label > input[type="text"] {
  color: #616161;
  padding: 11px;
  width: 100%;
  border-radius: 5px;
  border: solid 1px #d3d0d0;
  background-color: #ffffff;
  font-size: 16px;
  font-weight: normal;
}
#inputVisitorCreeds label > input[type="checkbox"] {
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  border: solid 1px #d1d1d1;
}
#inputVisitorCreeds label#privacyCheckBlock > p {
  font-size: 12px;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 0px;
  text-align: left;
  width: calc(100% - 26px);
  font-weight: normal;
}
#sendVisitorCreedsButton {
  width: auto;
  height: 40px;
  display: inline-block;
  font-size: 15px;
  line-height: 15px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 5px;
  padding: 4px 20px;
  margin-bottom: 0;
  margin-left: 0px;
  color: #000000;
  background-color: #00e6c0;
  background-image: none;
  text-shadow: none;
  border: 0px;
  cursor: pointer;
}

#inputDialogText {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 0px;
  border-radius: 0 0 10px 10px;
  margin-top: 0px;
  height: 105px;
  position: relative;
  background-color: #ffffff;
  border: 0;
}
#inputDialogText.nobrand {
  height: 80px;
}
#dialogWindow.fullview #inputDialogText {
  border-radius: 0;
}

#inputMessage {
  display: none;
  position: relative;
  width: 100%;
  min-height: 71px;
  padding: 0px;
  box-sizing: border-box;
}
#inputMessage #agentMessage {
  width: 100%;
  font-size: 12px;
  color: #000000;
  min-height: 15px;
}

#inputMessage #agentMessage[placeholder]:empty::before {
  content: attr(placeholder);
  color: #8f8993;
}
#inputMessage #agentMessage[placeholder]:empty:focus::before {
  content: "";
}

#inputMessage #sendMessageButton {
  height: 32px;
  max-width: 120px;
  display: inline-block;
  font-size: 12px;
  line-height: 12px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 0px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 5px;
  padding: 4px 35px;
  margin-bottom: 0;
  margin-left: 0px;
  color: #2c2e39;
  background-color: #00e6c0;
  background-image: none;
  border-color: none;
  text-shadow: none;
}
#inputMessage #sendMessageButton:hover {
  color: #000000;
  background-color: #ffffff;
}

#inputMessage #sendMessageButton:hover {
  background-color: #00b69d;
}
#inputMessage #sendMessageButton.show {
  opacity: 1;
}

#inputMessage #actionButtons button {
  background-repeat: no-repeat;
  background-position: center center;
  background-color: rgba(0, 0, 0, 0);
  width: 25px;
  height: 25px;
  border: 0;
  cursor: pointer;
  display: inline-block;
  /*
        border: 1px solid #a3a3a3;
        border-radius: 5px;
        */
}
#inputMessaget #actionButtons {
  display: none;
}
#inputMessage #actionButtons.show {
  display: block;
}

#inputMessage #attachButton {
  background-image: url(../images/attach.svg);
  display: inline-block;
  background-size: 8px;
}
#inputMessage #attachButton:hover,
#inputMessage #attachButton.activated {
  background-image: url(../images/attach_hover.svg);
}

#footerLogo {
  text-align: center;
  width: 100%;
  height: 20px;
  box-sizing: border-box;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translate(-50%, 0);
}
#footerLogo.center {
  text-align: right;
  padding: 11px 0px;
}
#footerLogo p {
  display: inline-block;
  vertical-align: middle;
  color: #d4d4d4;
  font-size: 11px;
  margin-right: 5px;
}
#footerLogo.center p {
  font-size: 9px;
}
#footerLogo img {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/* Attach Preview */

#attachMessagePreview {
  width: 240px; /*260px;*/
  height: 170px; /*180px;*/
  display: none;
  border-radius: 15px 0 15px 15px;
  background: none;
  margin-top: 10px;
  border: 1px solid #cacaca;
  position: relative;
  overflow: hidden;
}
.attachMessagePreview .preview-container {
  width: 240px;
  height: 135px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px 0 0 0;
  background-size: cover;
  background-position: top center;
}
.agent-message .attachMessagePreview .preview-container {
  border-radius: 0 15px 0 0;
}

#attachMessagePreview .delete-preview {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background-color: f6f6f7;
  border: 0;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  z-index: 2;
  font-size: 9px;
  text-align: center;
  padding: 0;
  color: #a3a3a3;
}

.attachPreviewImage {
  border-radius: 15px 0 0 0;
  height: 0;
  background-size: cover;
  background-position: center center;
}
.attachPreviewImage.show {
  height: 150px;
}

.attachMessagePreview {
}

#dialogChat li.attached .bubble-msg {
  width: 240px;
}

#attachMessagePreview.show,
.attachMessagePreview.show {
  display: block;
}

.attachImage {
  height: auto;
  width: 100%;
  border-radius: 0 15px 0 0;
}
#attachMessagePreview .attachImage {
  width: 50px;
}

.attachPreviewVideo {
  display: none;
  margin: 0 auto;
  width: 100%;
  border-radius: 15px 0 0 0;
}
.attachPreviewAudio {
  display: none;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
}
.attachPreviewVideo.show,
.attachPreviewAudio.show {
  display: block;
}

.attachCanvas {
  width: 100%;
  border-radius: 15px 0 0 0;
}

.attachPreviewName,
.attachment-download-button {
  padding: 10px 10px 10px 35px;
  width: 100%;
  display: block;
  height: auto;
  box-sizing: border-box;
  border-radius: 0px 0 15px 15px;
  font-size: 12px;
  background-image: url(../images/download-cloud.svg);
  background-position: 8px center;
  background-repeat: no-repeat;
  color: #2c2e39;
  background-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

li.visitor-message .attachImage,
li.visitor-message .attachPreviewVideo,
li.visitor-message .attachCanvas {
  border-radius: 15px 0 0 0;
}

.attachMessagePreview img.preload-image,
.attachMessagePreview img.pdf-loading-image {
  display: block;
  width: 36%;
  margin: 0 auto;
  padding: 10px;
}

.inputDialogActions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #ffffff;
  position: absolute;
  bottom: 0px;
  padding-bottom: 0px;
  box-sizing: border-box;
  border-radius: 10px;
  align-items: center;
  padding: 0 10px;
  padding-left: 5px;
}

.inputDialogContent {
  display: inline-block;
  box-sizing: border-box;
  height: auto;
  min-height: 36px;
  border: 0;
  padding: 10px;
  vertical-align: middle;
  border-radius: 0px;
  background-color: #ffffff;
  position: absolute;
  bottom: 35px;
  top: auto;
  width: 100%;
  opacity: 1;
  z-index: 1;
  border-top: 1px solid #cacaca;
}

/* Dots typing */

#typingDots {
  position: relative;
  margin-top: 50vh;
  text-align: center;
  width: 100px;
  height: 10px;
  margin-left: auto;
  margin-right: auto;
  display: none;
}
#typingDots.show {
  display: block;
}
#dialogChat > li#typingDots .bubble-msg {
  width: 50px;
  padding: 10px;
  opacity: 1;
}

#typingDots .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 3px;
  background: #9d9d9d;
  animation: typingDots 1.3s linear infinite;
}
#typingDots .dot:nth-child(2) {
  animation-delay: -1.1s;
}

#typingDots .dot:nth-child(3) {
  animation-delay: -0.9s;
}
@keyframes typingDots {
  0%,
  60%,
  100% {
    transform: initial;
  }
  30% {
    transform: translateY(-10px);
  }
}

#privacyCheckBlock a {
  color: #00e6c0;
  text-decoration: none;
  cursor: pointer;
}

/* Scrollbar */

*::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

*::-webkit-scrollbar {
  width: 6px;
  background-color: #f5f5f5;
}

*::-webkit-scrollbar-thumb {
  background-color: #505050;
}

/*
  @media only screen and (min-width: 370px){

    #dialogHeader {
      border-radius: 0px;
    }
    #inputDialogText {
      border-radius: 0;
    }

  }
  */

/*** iPhone and iOS Form Input Zoom Fixes ***/
/* Fix Input Zoom on devices older than iPhone 5: */
@media screen and (device-aspect-ratio: 2/3) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"] {
    font-size: 16px;
  }
}

/* Fix Input Zoom on iPhone 5, 5C, 5S, iPod Touch 5g */
@media screen and (device-aspect-ratio: 40/71) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"] {
    font-size: 16px;
  }
}

/* Fix Input Zoom on iPhone 6, iPhone 6s, iPhone 7  */
@media screen and (device-aspect-ratio: 375/667) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="url"] {
    font-size: 16px;
  }
}

/* Fix Input Zoom on iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus, iPhone 8, iPhone X, XS, XS Max  */
@media screen and (device-aspect-ratio: 9/16) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="url"] {
    font-size: 16px;
  }
}
