/* BOTÃO FLOTANTE DO WHATSAPP */
.whatsapp-cro {
  width: 46px;
  height: 46px;
  background-color: #2fd74d;
  border: 0;
  padding: 0;
  cursor: pointer;
  margin-bottom: 25px;

  position: absolute;
  right: 0;
  bottom: 0;

  display: flex;
  justify-content: flex-end;

  border-radius: 50px;
}

.whatsapp-cro.cro-disabled:hover {
  border-radius: 0px 22px 22px 0px;
}

.whatsapp-cro.cro-disabled:hover span.whatsapp-label {
  display: flex;
}

.whatsapp-cro .whatsapp-label {
  min-width: 84px;
  max-width: 84px;

  display: none;
  align-items: center;
  justify-content: center;
  background-color: #2fd74d;
  border-radius: 5px 0px 0px 5px;

  color: #ffffff;

  font-family: 'Roboto';
  font-weight: 400;
  font-size: 12px;
  line-height: 135%;
}

button.whatsapp-cro.cro-disabled .whatsapp-notification {
  position: absolute;
  width: 15px;
  right: -0px;
  top: -15px;
}

button.whatsapp-cro.cro-disabled span.mdn-Icon-baixo {
  display: none;
}

button.whatsapp-cro.cro-active span.mdn-Icon-baixo {
  display: flex;
  z-index: 21;
  margin-top: 9px;
  margin-right: 7px;
  color: #ffffff;
}

button.whatsapp-cro.cro-active img {
  display: none;
}

.whatsapp-cro img {
  height: 46px;
}

.whatsapp-cro.cro-active::after {
  content: '';
  width: 46px;
  height: 46px;

  position: absolute;
  right: 0;
  top: 0;

  border-radius: 30px;
  background-color: #da291c;
  z-index: 20;
}

/* POPUP - ESTADOS */
#container-popup-cro.cro-disabled {
  display: none;
}

#container-popup-cro.cro-active {
  display: flex;
}

/* WHATSAPP SNIPPET (para sobrepor corretamente em mobile) */
#whatsapp-snippet {
  z-index: 6 !important;
}

/* BACKDROP DO POPUP */
#container-popup-cro {
  position: fixed;

  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  z-index: 5;
  background: rgba(0, 0, 0, 0.64);
}

/* CONTAINER DO POPUP */
#container-whatsapp-cro {
  position: fixed;

  margin-right: 4px;
  margin-bottom: 28px;

  background-color: #ffffff;
  display: flex;
  flex-direction: column;

  padding: 16px;
  border-radius: 5px;
}

/* POP-UP HEADER */
#container-whatsapp-cro header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#container-whatsapp-cro header h2 {
  font-family: 'Roboto';
  font-weight: 700;
  font-size: 16px;
}

#container-whatsapp-cro header button {
  display: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  border: 1px solid #1f1d1d;
  background-color: #ffffff;
  cursor: pointer;
}

#container-whatsapp-cro header button span {
  display: flex;
  align-items: center;
  justify-content: center;
}

#container-whatsapp-cro header button span::before {
  font-size: 0.9rem;
}

/* POP-UP CONTENT */
#container-whatsapp-cro > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#container-whatsapp-cro > div a {
  display: flex;
  text-decoration: none;

  border-radius: 6px;
  border: 1px solid #dbdbdb;
  padding: 13px 16px;
}

#container-whatsapp-cro > div a:hover strong,
#container-whatsapp-cro > div a:hover p {
  text-decoration: underline;
}

#container-whatsapp-cro > div a img {
  padding-right: 18px;
}

#container-whatsapp-cro > div a div {
  background-color: #ffffff;
}

#container-whatsapp-cro > div a div strong {
  color: #1f1d1d;
  font-family: 'Roboto';
  font-weight: 700;
  font-size: 14px !important;
  line-height: 160%;
}

#container-whatsapp-cro > div a div p {
  color: #1f1d1d;
  font-size: 12px;
  font-family: 'Roboto';
  font-weight: 400;
}

/* RESPONSIVIDADE */
@media (width <= 480px) {
  #container-whatsapp-cro {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;

    margin-bottom: 0;
    border-radius: 5px 5px 0 0;
  }

  #container-whatsapp-cro header button {
    display: flex;
  }

  #whatsapp-snippet {
    z-index: 5 !important;
  }
}

@media (width >= 481px) {
  #container-whatsapp-cro {
    width: 100%;
    max-width: 344px;

    right: 20px;
    bottom: 125px;
  }
}
