/* Floating Popup Message on Homepage — estilos do pop-up */

html.vmp-popup-open,
html.vmp-popup-open body {
  overflow: hidden;
}

#custom-floating-popup.popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: rgba(10, 15, 25, 0.72);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  animation: vmp-popup-fade 0.25s ease both;
}

#custom-floating-popup.is-closing {
  animation: vmp-popup-fade-out 0.25s ease both;
}

#custom-floating-popup .popup-content {
  background: #fff;
  color: #222;
  padding: 34px 32px 30px;
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  font-family: Karla, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  animation: vmp-popup-in 0.32s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

#custom-floating-popup .popup-content h2 {
  color: #d0021b;
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 4.4vw, 27px);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}

#custom-floating-popup .popup-content p {
  margin: 0 0 12px;
  font-size: 16px;
}

#custom-floating-popup .popup-content p[style*="red"] {
  color: #d0021b !important;
  font-weight: 700;
}

#custom-floating-popup .popup-content p:last-of-type {
  margin-bottom: 0;
}

#custom-floating-popup #popup-close-btn {
  margin-top: 24px;
  background: #d0021b;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px 40px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(208, 2, 27, 0.3);
}

#custom-floating-popup #popup-close-btn:hover,
#custom-floating-popup #popup-close-btn:focus {
  background: #a80016;
  box-shadow: 0 6px 16px rgba(208, 2, 27, 0.4);
}

#custom-floating-popup #popup-close-btn:active {
  transform: translateY(1px);
}

#custom-floating-popup #popup-close-btn:focus-visible {
  outline: 3px solid #ffb3bd;
  outline-offset: 2px;
}

@keyframes vmp-popup-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes vmp-popup-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes vmp-popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  #custom-floating-popup.popup-overlay {
    padding: 12px;
  }
  #custom-floating-popup .popup-content {
    padding: 26px 20px 22px;
    max-height: calc(100vh - 24px);
    font-size: 15px;
  }
  #custom-floating-popup .popup-content p {
    font-size: 15px;
  }
  #custom-floating-popup #popup-close-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #custom-floating-popup.popup-overlay,
  #custom-floating-popup .popup-content,
  #custom-floating-popup.is-closing {
    animation: none;
  }
}
