/* Popup do calendário de posts (#jv-cal-popup). A caixa usa os estilos de ac-popup.css (.jv-exit-intent). */

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

.jv-cal-popup { z-index: 10060; }
.jv-cal-popup__dialog {
  width: min(100%, 460px);
  max-height: calc(100dvh - 2rem);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.jv-cal-popup__dialog:focus { outline: none; }
@media (max-width: 420px) {
  .jv-cal-popup { padding: 0.75rem; align-items: flex-start; }
  .jv-cal-popup__dialog { padding: 1.2rem 1rem 1rem; max-height: calc(100dvh - 1.5rem); }
}

.jv-cal-form__status {
  margin: 0.5rem 0 1rem;
  color: rgba(237, 235, 233, 0.7);
  font-size: 0.92rem;
}
.jv-cal-form__status[hidden],
.jv-cal-form__erro[hidden] { display: none; }
.jv-cal-form__erro p { margin: 0 0 0.75rem; color: #edebe9; font-size: 0.95rem; }
.jv-cal-form__erro-acoes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jv-cal-form__erro .btn-jv-outline { border-color: rgba(243, 239, 232, 0.28); color: #edebe9; }

/* Formulário do AC dentro do popup: fundo escuro, campos legíveis, botão dourado */
/* #jv-cal-popup na frente: o CSS do AC usa o id do formulário (#_form_..._._dark) e venceria. */
#jv-cal-popup .jv-cal-form form,
#jv-cal-popup .jv-cal-form ._form_593,
#jv-cal-popup .jv-cal-form [id^="_form_"],
#jv-cal-popup .jv-cal-form ._form-content,
#jv-cal-popup .jv-cal-form ._form-thank-you,
#jv-cal-popup .jv-cal-form ._form_element,
#jv-cal-popup .jv-cal-form ._html-code,
#jv-cal-popup .jv-cal-form ._form-title {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
#jv-cal-popup .jv-cal-form [id^="_form_"] {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  font-family: Inter, system-ui, sans-serif !important;
  color: #edebe9 !important;
}
#jv-cal-popup .jv-cal-form ._form_element {
  float: none !important;
  width: 100% !important;
  margin: 0 0 0.75rem !important;
}
#jv-cal-popup .jv-cal-form label,
#jv-cal-popup .jv-cal-form ._form-label {
  display: block !important;
  color: rgba(237, 235, 233, 0.78) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  margin-bottom: 0.35rem !important;
}
#jv-cal-popup .jv-cal-form input[type="text"],
#jv-cal-popup .jv-cal-form input[type="email"],
#jv-cal-popup .jv-cal-form input[type="tel"] {
  width: 100% !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  border: 1px solid rgba(237, 235, 233, 0.28) !important;
  border-radius: 10px !important;
  padding: 0.7rem 0.85rem !important;
  font-size: 1rem !important; /* 16px: evita o zoom automático no iPhone */
}
#jv-cal-popup .jv-cal-form input::placeholder { color: rgba(255, 255, 255, 0.42) !important; opacity: 1 !important; }
#jv-cal-popup .jv-cal-form input:focus {
  outline: none !important;
  border-color: #d9b04e !important;
  box-shadow: 0 0 0 3px rgba(217, 176, 78, 0.22) !important;
}
#jv-cal-popup .jv-cal-form input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #12161a inset !important;
  -webkit-text-fill-color: #fff !important;
}
#jv-cal-popup .jv-cal-form ._button-wrapper { float: none !important; width: 100% !important; margin: 0.25rem 0 0 !important; }
#jv-cal-popup .jv-cal-form ._submit,
#jv-cal-popup .jv-cal-form button[type="submit"] {
  width: 100% !important;
  background: #d9b04e !important;
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.85rem 1rem !important;
  cursor: pointer;
}
#jv-cal-popup .jv-cal-form ._submit:hover { background: #eccb7a !important; }
#jv-cal-popup .jv-cal-form ._submit:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; }
#jv-cal-popup .jv-cal-form ._error-inner,
#jv-cal-popup .jv-cal-form ._error { color: #ffb4a8 !important; font-size: 0.82rem !important; }
#jv-cal-popup .jv-cal-form ._form-thank-you {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(217, 176, 78, 0.35) !important;
  background: rgba(217, 176, 78, 0.12) !important;
  color: #edebe9 !important;
  font-size: 0.95rem;
}
#jv-cal-popup .jv-cal-form ._clear-element { display: none !important; }

/* Depois do envio: botões de download no próprio popup */
.jv-cal-liberado[hidden] { display: none; }
.jv-cal-liberado__titulo { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 0.35rem; }
.jv-cal-liberado__titulo:focus { outline: none; }
.jv-cal-liberado__texto { color: rgba(237, 235, 233, 0.78); font-size: 0.95rem; margin: 0 0 1rem; }
.jv-cal-liberado__botoes { display: grid; gap: 0.6rem; }
.jv-cal-liberado__botoes .btn { width: 100%; }
.jv-cal-liberado__botoes .btn-jv-outline { border-color: rgba(243, 239, 232, 0.28); color: #edebe9; }
.jv-cal-liberado__botoes .btn-jv-outline:hover { border-color: #d9b04e; color: #d9b04e; background: rgba(217, 176, 78, 0.12); }
.jv-cal-liberado__dica { color: rgba(237, 235, 233, 0.55); font-size: 0.8rem; margin: 0.75rem 0 0; }
.jv-cal-liberado__produto { margin: 1rem 0 0; padding-top: 0.85rem; border-top: 1px solid rgba(237, 235, 233, 0.12); font-weight: 700; }
.jv-cal-liberado__produto a { color: #d9b04e; }
/* Tela "Manage preferences" do AC (contato que já existe): o popup trata como sucesso e não mostra. */
#jv-cal-popup ._form-pc-confirmation { display: none !important; }
.jv-cal-form__aviso { margin: 0 0 0.6rem; padding: 0.55rem 0.75rem; border-radius: 8px; background: rgba(255, 120, 100, 0.12); color: #ffc2b8; font-size: 0.88rem; }
.jv-cal-form__aviso[hidden] { display: none; }
