/* Avisos pop-up configuráveis (site público) */

.sn-popup-root { position: relative; z-index: 99990; }

.sn-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  z-index: 99991;
  animation: snPopupFade 0.22s ease-out;
}

@keyframes snPopupFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sn-popup-dialog {
  width: 100%;
  max-width: min(440px, 100vw - 24px);
  max-height: min(86vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #0f172a;
  color: #e2e8f0;
  font-family: inherit;
  position: relative;
  animation: snPopupPop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes snPopupPop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sn-popup-banner {
  min-height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.sn-popup-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.05), #0f172a);
}

.sn-popup-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px 12px;
}

.sn-popup-dialog--nobanner .sn-popup-head {
  padding-top: 22px;
}

.sn-popup-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sn-popup-accent, #38bdf8);
}

.sn-popup-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sn-popup-title {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.sn-popup-body {
  padding: 4px 22px 20px;
  overflow-y: auto;
  flex: 1;
  font-size: clamp(0.94rem, 2.8vw, 1rem);
  line-height: 1.55;
  color: #cbd5e1;
}

.sn-popup-body p { margin: 0 0 0.75em; }
.sn-popup-body p:last-child { margin-bottom: 0; }
.sn-popup-body a {
  color: var(--sn-popup-accent, #38bdf8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sn-popup-body ul, .sn-popup-body ol { margin: 0.5em 0 0.75em 1.1em; padding: 0; }

.sn-popup-foot {
  padding: 0 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.sn-popup-btn {
  min-height: 44px;
  min-width: 120px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--sn-popup-accent, #0ea5e9);
  color: #020617;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.sn-popup-btn:hover { filter: brightness(1.06); }
.sn-popup-btn:active { transform: scale(0.98); }

.sn-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.sn-popup-close:hover { background: rgba(30, 41, 59, 0.85); }

@media (min-width: 1920px) {
  .sn-popup-dialog { max-width: 480px; }
  .sn-popup-title { font-size: 1.25rem; }
  .sn-popup-body { font-size: 1.05rem; }
}
