/* Convite para receber notificações no navegador (cores do tema do site)
   Computador: faixa larga e baixa, centralizada no rodapé. Celular: cartão compacto acima do menu. */
.pw-convite { --pw-cor: var(--primary, #2438B3); --pw-cor2: var(--menu-gradient-end, var(--secondary, #6d28d9)); position: fixed; left: 50%; bottom: 20px; z-index: 1040; width: min(860px, calc(100vw - 32px)); display: flex; align-items: stretch; background: #fff; color: #1f2937; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 48px rgba(15, 23, 42, .26), 0 3px 10px rgba(15, 23, 42, .1); opacity: 0; transform: translate(-50%, 24px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.2); font-family: inherit; }
.pw-convite.ativo { opacity: 1; transform: translate(-50%, 0); }
.pw-topo { position: relative; flex: none; width: 104px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--pw-cor), var(--pw-cor2)); }
.pw-topo::before { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); left: -50px; top: -60px; }
.pw-logo { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 16px; background: #fff; padding: 5px; box-shadow: 0 6px 16px rgba(15, 23, 42, .25); display: flex; align-items: center; justify-content: center; color: var(--pw-cor); }
.pw-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; display: block; }
.pw-logo.sem-img svg { width: 30px; height: 30px; }
.pw-sino { position: absolute; z-index: 2; left: 64px; top: calc(50% - 40px); width: 26px; height: 26px; border-radius: 8px; background: var(--accent, #f59e0b); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .22); animation: pw-balanca 2.4s ease-in-out infinite; }
.pw-sino svg { width: 15px; height: 15px; }
@keyframes pw-balanca { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 82% { transform: rotate(-12deg); } 89% { transform: rotate(8deg); } }
.pw-corpo { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "titulo botoes" "texto botoes" "lista botoes"; column-gap: 20px; align-items: center; padding: 14px 52px 14px 20px; }
.pw-corpo strong { grid-area: titulo; display: block; font-size: 17px; line-height: 1.25; font-weight: 800; color: #111827; }
.pw-corpo p { grid-area: texto; margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: #4b5563; }
.pw-lista { grid-area: lista; list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pw-lista li { font-size: 12px; font-weight: 600; padding: 4px 9px 4px 22px; border-radius: 7px; position: relative; color: var(--pw-cor); background: color-mix(in srgb, var(--pw-cor) 10%, #fff); }
.pw-lista li::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 4px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pw-botoes { grid-area: botoes; display: flex; flex-direction: column; gap: 6px; }
.pw-botoes button { min-height: 44px; padding: 0 18px; border-radius: 12px; font: 700 14px/1 inherit; cursor: pointer; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.pw-sim { background: linear-gradient(135deg, var(--pw-cor), var(--pw-cor2)); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--pw-cor) 32%, transparent); }
.pw-sim svg { width: 17px; height: 17px; }
.pw-sim:hover { filter: brightness(1.06); }
.pw-nao { background: #f3f4f6; color: #4b5563; }
.pw-fechar { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #6b7280; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-fechar:hover { background: #f3f4f6; color: #111827; }
.pw-botoes button:focus-visible, .pw-fechar:focus-visible { outline: 3px solid color-mix(in srgb, var(--pw-cor) 45%, transparent); outline-offset: 2px; }

/* Celular e tablet: cartão compacto, sem a lista, botões lado a lado */
@media (max-width: 767px) {
  .pw-convite { left: 12px; right: 12px; width: auto; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; transform: translateY(24px); }
  .pw-convite.ativo { transform: none; }
  .pw-topo { width: 72px; align-items: flex-start; padding-top: 14px; }
  .pw-logo { width: 48px; height: 48px; border-radius: 13px; padding: 4px; }
  .pw-logo img { border-radius: 9px; }
  .pw-sino { left: 46px; top: 6px; width: 22px; height: 22px; border-radius: 7px; }
  .pw-sino svg { width: 13px; height: 13px; }
  .pw-corpo { display: block; padding: 12px 40px 12px 14px; }
  .pw-corpo strong { font-size: 15.5px; }
  .pw-corpo p { font-size: 13px; margin-bottom: 10px; }
  .pw-lista { display: none; }
  .pw-botoes { flex-direction: row; }
  .pw-botoes button { min-height: 42px; padding: 0 12px; font-size: 13.5px; }
  .pw-sim { flex: 1; }
  .pw-fechar { right: 4px; top: 4px; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .pw-convite { transition: none; } .pw-sino { animation: none; } }
