.yp-optin {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e4ded3;
  background: #fff;
  color: #000;
}
.yp-optin .yp-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.yp-optin .yp-text { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.yp-optin .yp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.yp-optin .yp-btn {
  background: #000;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.yp-optin .yp-btn:disabled { opacity: .6; cursor: default; }
.yp-optin .yp-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}
.yp-optin .yp-msg { font-size: 13px; margin: 12px 0 0; min-height: 1em; }

/* convite flutuante: folha inferior no telemóvel, cartão no canto no computador */
.yp-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 20px 20px 24px;
  background: #fff;
  color: #000;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .12);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.yp-float.is-open { transform: translateY(0); }
.yp-float .yp-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.yp-float .yp-text { font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.yp-float .yp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.yp-float .yp-btn {
  background: #000;
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
}
.yp-float .yp-btn:disabled { opacity: .6; cursor: default; }
.yp-float .yp-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
}
.yp-float .yp-msg { font-size: 13px; margin: 12px 0 0; min-height: 1em; }
@media (min-width: 768px) {
  .yp-float {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
    padding: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    transform: translateY(calc(100% + 40px));
  }
  .yp-float.is-open { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .yp-float { transition: none; }
}

/* iPhone: instalar antes de ativar */
.yp-ios { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e4ded3; }
.yp-ios[hidden], .yp-steps[hidden] { display: none; }
.yp-steps { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.7; color: #232323; }
.yp-share-ico { width: 16px; height: 16px; vertical-align: -3px; }

/* confirmação ao desativar */
.yp-dialog {
  border: 0;
  padding: 24px;
  max-width: 420px;
  width: calc(100% - 32px);
  color: #000;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}
.yp-dialog::backdrop { background: rgba(29, 29, 27, .5); }
.yp-dialog-title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.yp-dialog .yp-text { font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.yp-dialog-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.yp-dialog .yp-btn { background: #000; color: #fff; border: 0; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.yp-dialog .yp-link { background: none; border: 0; padding: 0; font-size: 13px; color: #000; text-decoration: underline; cursor: pointer; }

/* pagina /notificacoes */
.yp-page { max-width: 640px; padding: 8px 0 40px; }
.yp-page h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 14px; color: #1D1D1B; }
.yp-page .yp-lead { font-size: 16px; line-height: 1.55; margin: 0 0 18px; color: #232323; }
.yp-page .yp-list { margin: 0 0 24px; padding: 0 0 0 18px; font-size: 15px; line-height: 1.7; color: #232323; }
.yp-page .yp-optin { margin: 0 0 24px; }
.yp-page .yp-help { font-size: 14px; line-height: 1.6; color: #7A7A7A; border-top: 1px solid #e4ded3; padding-top: 18px; }
.yp-page .yp-help p { margin: 0 0 10px; }
