@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

#whats-tela {
  font-family: "Roboto", sans-serif;
  position: fixed;
  bottom: 50px;
  left: 400px;
  z-index: 999;
  transition: 0.5s;
}

#whats-tela-objeto {
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("https://agenciasilver.com.br/projetos/imgs-studio/wpp.svg");
  background-size: 50% auto;
  background-color: #0cbc55;
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  -webkit-border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

#whats-tela-icon {
  position: absolute;
  display: table-cell;
  vertical-align: middle;
  max-width: 30x;
  max-height: 30px;
  top: 25%;
  left: 25%;
}

#whats-tela-objeto:hover {
  background-color: #0cbc55;
  /* Cor do fundo ao passar o mouse */
}

#whats-tela-objeto:after,
#whats-tela-objeto:before {
  content: "";
  position: absolute;
  opacity: 0;
  border: 4px solid #31de79;
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  -webkit-border-radius: 50%;
  animation: Animacao_whats 1.5s ease infinite;
}

#whats-tela-objeto:after {
  animation-delay: 0.5s;
}

#whats-tela-objeto:hover:after {
  border: 4px solid #0cbc55;
}

#whats-tela-objeto:hover:before {
  border: 4px solid #0cbc55;
}

@keyframes Animacao_whats {
  0% {
    transform: scale(0.5);
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}


#whats-tela-conversa {
  position: absolute;
  display: flex;
  visibility: hidden;
  opacity: 0;
  flex-direction: column;
  width: 320px;
  right: 60px;
  z-index: 99999;
  bottom: 260px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 12px 24px 0px;
  transition: opacity 0.3s ease 0s, margin 0.3s ease 0s,
    visibility 0.3s ease 0s;
}

@media (min-width: 768px) {
  #whats-tela-conversa {
    right: 50px;
  }
}

#whats-tela-conversa-cabecalho {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#whats-tela-conversa-cabecalho .whatshelp {
  font-size: 14px;
  color: #39434e;
  font-weight: 500;
  width: 300px;
  display: flex;
  text-align: center;
  justify-content: center;
  margin: -30px 0 -30px 0;
}

#whats-tela-conversa-cabecalho .whatshelp #logo-whats {
  width: 170px;
  margin-top: -20px;
  margin-left: 8px;
}

#whats-tela-conversa-cabecalho .fechar {
  display: flex;
  color: #fff;
  cursor: pointer;
  top: 10px;
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  right: 8px;
  width: 20px;
  height: 20px;
  justify-content: center;
  align-items: center;
}

#whats-tela-conversa-cabecalho .fechar:hover {
  transition: all ease-in-out 0.3s;
  color: #cecece;
}

#whats-tela-conversa-cabecalho .bot {
  padding: 24px 20px;
  display: flex;
  align-items: center;
}

#whats-tela-conversa-cabecalho .bot-img {
  width: 54px;
  height: 50px;
  display: block;
  position: relative;
  border-radius: 50%;
}

#whats-tela-conversa-cabecalho .bot-img #robot-image {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  object-fit: contain;
}

#whats-tela-conversa-cabecalho .nomeCampo {
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
}

#whats-tela-conversa-cabecalho .status {
  font-size: 12px;
  margin-top: 4px;
  line-height: 18px;
  color: #fff;
}

#whats-tela-conversa-conversa {
  position: absolute;
  max-height: 700px;
  height: 180px;
  width: 100%;
  top: 100px;
  z-index: 0;
  background-color: rgb(230, 221, 212);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#whats-tela-conversa-conversa:before {
  position: absolute;
  background-image: url("https://agenciasilver.com.br/form-especial/upload_img/background-whats.jpg");
  background-size: contain;
  background-color: #e6ddd4;
  width: 100%;
  height: 100%;
  display: block;
  left: 0px;
  top: 0px;
  content: "";
  z-index: 0;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

#whats-tela-conversa-conversa .mensagemCampo {
  display: none;
  margin-top: 15px;
  position: relative;
  padding: 13px 15px 15px;
  border-radius: 0px 8px 8px;
  margin-left: 13px;
  margin-right: 13px;
  background-color: #fff;
  max-width: max-content;
}

#whats-tela-conversa-conversa .campo-header {
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: rgba(71, 71, 71, 0.4);
}

#whats-tela-conversa-conversa .msgWhats {
  font-size: 14px;
  font-weight: 400;
  margin-top: 4px;
  line-height: 19px;
  color: #1b2021;
}

#whats-tela-conversa-conversa .dataWhats {
  position: absolute;
  font-size: 11px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.4);
  right: 15px;
  bottom: 0;
}

#whats-tela-conversa-rodape {
  position: absolute;
  bottom: -30px;
  height: 80px;
  width: 100%;
  box-shadow: 0px 1px 2px #6b7267;
  background: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

#whats-tela-conversa-rodape #whats-tela-open-modal {
  padding: 10px;
  display: flex;
  color: #fff;
  text-decoration: none;
  background: #0cbc55;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  font-weight: 500;
  margin: 12px auto;
  width: 250px;
  border-radius: 5px;
}

#whats-tela-conversa-rodape #whats-tela-open-modal:hover {
  transition: all ease-in-out 0.3s;
  background: #18a558;
}

.fa-whatsapp {
  margin-left: 8px;
}

#whats-tela-conversa-campo:focus {
  outline: none;
}

#whats-tela-conversa-campo {
  font-size: 13px;
  border: none;
  height: 56px;
  border-radius: 5px;
  resize: none;
  margin-bottom: 0px;
}

#whats-tela-conversa-campo-back-principal {
  padding: 8px 10px;
  background: #dddddd;
}
