/* Popup da newsletter (includes/newsletter-popup.php). Só tokens do tema: veste Sálvia, Bordô/clínica e Academy. */
@font-face {
  font-family: "Cormorant Garamond Popup";
  src: url("newsletter-popup/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.fm-nl-popup {
  padding: 0;
  border: 0;
  width: min(640px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 4px;
  background: var(--wp--preset--color--fundo);
  color: var(--wp--preset--color--texto);
  box-shadow: 0 30px 80px rgb(0 0 0 / .35);
}
.fm-nl-popup::backdrop { background: rgb(20 18 16 / .5); backdrop-filter: blur(2px); }
.fm-nl-popup__cartao { position: relative; display: grid; grid-template-columns: 40% 1fr; }
.fm-nl-popup__foto { display: block; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: center 18%; }
.fm-nl-popup__corpo { display: grid; gap: .75rem; align-content: start; padding: 2.1rem 1.9rem 1.4rem; }
.fm-nl-popup__sobrancelha {
  margin: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--destaque);
}
.fm-nl-popup__titulo {
  margin: 0;
  font: 600 2.05rem/1.08 "Cormorant Garamond Popup", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  letter-spacing: -.005em;
  text-transform: none; /* o tema põe os h2 em caixa alta */
  color: inherit;
  text-wrap: balance;
}
.fm-nl-popup__sobrancelha { padding-right: 1.75rem; } /* só a sobrancelha fica na altura do × */
.fm-nl-popup__texto { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--wp--preset--color--suave); }
.fm-nl-popup .wp-block-flora-newsletter.fm-newsletter { max-width: none; }
.fm-nl-popup .fm-newsletter__botao { width: 100%; min-height: 44px; text-transform: uppercase; letter-spacing: .12em; }
.fm-nl-popup__fechar {
  position: absolute;
  top: .25rem;
  right: .25rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.fm-nl-popup__depois {
  justify-self: center;
  min-height: 44px;
  padding: .5rem;
  border: 0;
  background: none;
  color: var(--wp--preset--color--suave);
  font: inherit;
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.fm-nl-popup :where(.fm-nl-popup__fechar, .fm-nl-popup__depois):focus-visible {
  outline: 2px solid var(--wp--preset--color--destaque);
  outline-offset: 2px;
}

/* Celular: gaveta presa ao pé da tela. */
@media (max-width: 600px) {
  .fm-nl-popup { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .fm-nl-popup__cartao { grid-template-columns: 1fr; }
  .fm-nl-popup__foto { height: clamp(120px, 36vw, 156px); min-height: 0; object-position: center 13%; }
  .fm-nl-popup__fechar { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
  .fm-nl-popup__corpo { gap: .6rem; padding: 1.1rem 1.1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .fm-nl-popup__sobrancelha { padding-right: 0; }
  .fm-nl-popup__titulo { font-size: 1.6rem; }
  .fm-nl-popup__texto, .fm-nl-popup__depois { display: none; }
  .fm-nl-popup .fm-newsletter__rotulo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fm-nl-popup[open] { animation: fm-nl-entra .45s cubic-bezier(.2, .7, .2, 1); }
  @keyframes fm-nl-entra { from { transform: translateY(12px); } }
}
