/**
 * Layout mínimo scoped — sin tipografía ni colores del design system MRCH.
 * El tema Saren aporta .saren--popup, inputs y .button.alt
 */

#mrch-newsletter-modal.mrch-newsletter-modal.is-open {
  pointer-events: auto;
}

#mrch-newsletter-modal.mrch-newsletter-modal .mrch-newsletter-modal__panel,
#mrch-newsletter-modal.mrch-newsletter-modal .mrch-newsletter-modal__shell,
#mrch-newsletter-modal.mrch-newsletter-modal .mrch-newsletter-modal__content {
  pointer-events: auto;
}

#mrch-newsletter-modal.mrch-newsletter-modal {
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#mrch-newsletter-modal.mrch-newsletter-modal .mrch-newsletter-modal__panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  pointer-events: none;
}

#mrch-newsletter-modal .mrch-newsletter-modal__content {
  pointer-events: all;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: var(--mainBackground, #fff);
  color: var(--mainColor, #000);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

#mrch-newsletter-modal .mrch-newsletter-modal__brand {
  margin-bottom: 1rem;
}

#mrch-newsletter-modal .mrch-newsletter-modal__brand img {
  display: inline-block;
  max-width: 140px;
  height: auto;
}

#mrch-newsletter-modal .mrch-newsletter-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
}

#mrch-newsletter-modal .mrch-newsletter-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.85;
}

#mrch-newsletter-modal .mrch-newsletter-modal__form {
  text-align: left;
}

#mrch-newsletter-modal .mrch-newsletter-modal__form input[type="email"] {
  margin-bottom: 1rem;
}

#mrch-newsletter-modal .mrch-newsletter-modal__consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  cursor: pointer;
}

#mrch-newsletter-modal .mrch-newsletter-modal__consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

#mrch-newsletter-modal .mrch-newsletter-modal__error {
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
}

#mrch-newsletter-modal .mrch-newsletter-modal__error.is-hidden,
#mrch-newsletter-modal .is-hidden {
  display: none !important;
}

#mrch-newsletter-modal .mrch-newsletter-modal__form .button.alt:not(:disabled),
#mrch-newsletter-modal .mrch-newsletter-modal__cta {
  width: 100%;
  margin-top: 0.25rem;
  cursor: pointer;
  pointer-events: auto;
}

#mrch-newsletter-modal .mrch-newsletter-modal__dismiss {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.75;
}

#mrch-newsletter-modal .mrch-newsletter-modal__dismiss:hover,
#mrch-newsletter-modal .mrch-newsletter-modal__dismiss:focus {
  opacity: 1;
}

#mrch-newsletter-modal .mrch-newsletter-modal__form .button.alt:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#mrch-newsletter-modal .mrch-newsletter-modal__cta {
  border: 0;
}

#mrch-newsletter-modal .mrch-newsletter-modal__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 5;
  cursor: pointer;
}

body.mrch-newsletter-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  #mrch-newsletter-modal .mrch-newsletter-modal__content {
    padding: 1.5rem 1.25rem;
  }

  #mrch-newsletter-modal .mrch-newsletter-modal__close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
