/* Botão flutuante */
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-button:hover {
  background-color: #1887d1;
  transform: scale(1.1);
}

.floating-button:active {
  transform: scale(0.95);
}

/* Ícone dentro do botão */
.floating-button img {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Ocultar suavemente o ícone antigo */
.floating-button img.hidden {
  opacity: 0;
  transform: scale(0.8) rotate(-20deg);
}

/* Exibir suavemente o novo ícone */
.floating-button img.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

iframe {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Container do iframe */
.iframe-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 90%;
  max-width: 400px;
  height: 70vh;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  z-index: 999;
  background: white;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
}

.iframe-container.visible {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Ajustes para telas menores */
@media (max-width: 480px) {
  .iframe-container {
    bottom: 70px;
    right: 10px;
    width: 95%;
    height: 60vh;
  }

  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}