/* Exibicao contextual da pesquisa, separada do CSS principal. */
.floating-survey[hidden] {
  display: none !important;
}

.floating-survey.is-available {
  animation: sfy-survey-arrive .24s ease-out;
}

@keyframes sfy-survey-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  body.has-floating-survey:not(.floating-survey-open) {
    padding-bottom: 1rem;
  }

  .floating-survey.is-collapsed {
    right: 14px;
    bottom: 14px;
    left: auto;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    overflow: visible;
    border-radius: 50%;
  }

  .floating-survey.is-collapsed .floating-survey-header {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .floating-survey.is-collapsed .floating-survey-title,
  .floating-survey.is-collapsed .floating-survey-close {
    display: none;
  }

  .floating-survey.is-collapsed .floating-survey-toggle {
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0da7d8, #1dd7a8);
    color: #06233b;
    box-shadow: 0 12px 30px rgba(8, 38, 66, .22);
  }

  .floating-survey:not(.is-collapsed) {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: min(72vh, 560px);
    overflow: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-survey.is-available {
    animation: none;
  }
}
