/* PNS Popup — v1.0.0 */

.pns-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background 350ms ease, backdrop-filter 350ms ease;
  pointer-events: none;
}
.pns-popup-overlay.is-visible {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  pointer-events: all;
}
.pns-popup-overlay[aria-hidden="true"] { display: none; }

/* Box */
.pns-popup-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  padding: 40px 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  transform: translateY(20px) scale(.97);
  transition: transform 350ms cubic-bezier(.34, 1.56, .64, 1), opacity 350ms ease;
  opacity: 0;
}
.pns-popup-overlay.is-visible .pns-popup-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 520px) {
  .pns-popup-box { padding: 32px 20px 24px; }
}

/* Close */
.pns-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  color: #999;
  border-radius: 4px;
  transition: color 150ms ease, background 150ms ease;
}
.pns-popup-close:hover { color: #333; background: #f0f0f0; }

/* Body */
.pns-popup-body { text-align: center; }
.pns-popup-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.pns-popup-title {
  font-family: inherit;
  font-size: 1.4em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px;
  line-height: 1.3;
}
.pns-popup-text {
  font-family: inherit;
  font-size: .95em;
  color: #555;
  line-height: 1.6;
  margin: 0 0 22px;
}

/* Form */
.pns-popup-form { text-align: left; }
.pns-popup-email-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pns-popup-email-row .pns-input {
  flex: 1;
  min-width: 0;
}
.pns-popup-fname {
  width: 100%;
  margin-bottom: 10px;
}

/* Popup button — usa color de acento del plugin via CSS var o fallback */
.pns-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  font-size: .9em;
  font-weight: 700;
  padding: .55em 1.1em;
  border-radius: 4px;
  border: none;
  background: var(--pns-popup-accent, #e94560);
  color: #fff;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
  flex-shrink: 0;
}
.pns-popup-btn:hover   { opacity: .88; }
.pns-popup-btn:active  { transform: scale(.97); }
.pns-popup-btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }
.pns-popup-btn.is-loading .pns-btn-text    { opacity: 0; width: 0; overflow: hidden; }
.pns-popup-btn.is-loading .pns-btn-loading { display: inline-block; }
.pns-btn-loading {
  display: none;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pns-spin .7s linear infinite;
}

/* GDPR */
.pns-popup-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .8em;
  color: #777;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
  margin-top: 4px;
}
.pns-popup-gdpr input { margin-top: 3px; flex-shrink: 0; }

/* Response */
.pns-popup-response:empty { display: none; }
.pns-popup-response { margin-bottom: 10px; }

/* Success state */
.pns-popup-success {
  text-align: center;
  padding: 16px 0;
}
.pns-popup-success-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.pns-popup-success-msg  { font-size: 1em; font-weight: 600; color: #1a1a1a; font-family: inherit; }
