/* MOVORÇA R19: avisos (flash/toast) no estilo das notificações do iOS. Só visual; regras de layout R17 mantidas. */
.toasts, .toasts.is-live {
  position: fixed; z-index: 60; display: grid; gap: 8px;
  top: calc(env(safe-area-inset-top, 0px) + 10px); bottom: auto; left: 10px; right: 10px;
  width: auto; margin: 0; pointer-events: none;
}
body.has-review-bar .toasts { bottom: auto; }
@media (min-width: 761px) {
  .toasts, .toasts.is-live { top: 88px; right: 16px; left: auto; width: 360px; margin: 0; }
}
.toast, .toasts.is-live .toast {
  pointer-events: auto; position: relative;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 40px 12px 12px; border: 0; border-radius: 20px;
  background: rgba(250, 250, 250, .96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 1px 3px rgba(0, 0, 0, .08);
  color: #111; max-width: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px; line-height: 1.3; cursor: pointer; touch-action: none; user-select: none;
  animation: toast-ios-in .55s cubic-bezier(.34, 1.56, .64, 1) both;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .toast, .toasts.is-live .toast {
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  }
}
.toast-success, .toast-error, .toast-warning, .toast-info { border: 0; }
.toast-icon {
  --tc: #3b82f6; position: relative; flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: var(--tc); color: #fff;
}
.toast-icon b { font: 800 19px/1 var(--sans); letter-spacing: -.5px; }
.toast-icon i {
  position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px/1 -apple-system, system-ui, sans-serif; font-style: normal;
  background: #fff; color: var(--tc); box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.toast-success .toast-icon { --tc: #22a447; }
.toast-error .toast-icon { --tc: #e5372b; }
.toast-warning .toast-icon { --tc: #f59e0b; }
.toast-info .toast-icon { --tc: #2f7cf6; }
.toast-body { flex: 1; min-width: 0; }
.toast-head {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px;
  font-size: 12.5px; letter-spacing: .02em; color: rgba(60, 60, 67, .62); text-transform: uppercase;
}
.toast-head span + span { text-transform: none; letter-spacing: 0; }
.toast-msg { font-weight: 500; overflow-wrap: anywhere; }
.toast-msg a { color: inherit; }
.toast-close {
  top: 4px; right: 2px; min-width: 36px; min-height: 36px; font-size: 18px; color: rgba(60,60,67,.55); opacity: .8;
}
.toast-close:focus-visible { outline: 2px solid #2f7cf6; outline-offset: -4px; border-radius: 12px; }
/* Mobile, R17: com 'Próximos passos' o aviso fica no fluxo (não cobre o conteúdo). */
@media (max-width: 760px) {
  body:has(.next-steps) .toasts:not(.is-live) { position: static; margin: 12px 10px 0; z-index: auto; }
}
@media (min-width: 761px) { .toast { animation-name: toast-ios-in; } }
@keyframes toast-ios-in {
  from { transform: translateY(-120%) scale(.96); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .toasts.is-live .toast { animation: toast-fade .2s ease both; }
  @keyframes toast-fade { from { opacity: 0; } to { opacity: 1; } }
}
