/* Native Web Push - visitor UI. Self-contained card styling so it reads on any theme. */
.nwp-prompt, .nwp-pop, .nwp-toast {
  --nwp-bg: #ffffff;
  --nwp-fg: #14171f;
  --nwp-muted: #566070;
  --nwp-line: rgba(20, 23, 31, .12);
  --nwp-accent: #d9163f;
  --nwp-accent-fg: #ffffff;
  box-sizing: border-box;
  position: fixed;
  z-index: 2147483000;
  background: var(--nwp-bg);
  color: var(--nwp-fg);
  border: 1px solid var(--nwp-line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(10, 14, 25, .22);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] .nwp-prompt, [data-theme="dark"] .nwp-pop, [data-theme="dark"] .nwp-toast,
.dark .nwp-prompt, .dark-mode .nwp-prompt, .dark-mode .nwp-pop, .dark-mode .nwp-toast {
  --nwp-bg: #1d2230;
  --nwp-fg: #f1f3f8;
  --nwp-muted: #a9b1c3;
  --nwp-line: rgba(255, 255, 255, .14);
}

.nwp-prompt { width: min(380px, calc(100vw - 24px)); padding: 16px; display: flex; gap: 14px; animation: nwp-rise .28s ease-out; }
.nwp-pos-bottom-left { left: 16px; bottom: 16px; }
.nwp-pos-bottom-right { right: 16px; bottom: 16px; }
.nwp-pos-top-center { top: 16px; left: 50%; transform: translateX(-50%); animation-name: nwp-drop; }
.nwp-pos-bottom-left.nwp-has-bell, .nwp-pos-bottom-right.nwp-has-bell { bottom: 76px; }

.nwp-prompt-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--nwp-accent); color: var(--nwp-accent-fg); }
.nwp-prompt-body strong { display: block; font-size: 15px; margin: 0 0 2px; }
.nwp-prompt-body p { margin: 0 0 12px; color: var(--nwp-muted); }
.nwp-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.nwp-btn { font: inherit; font-weight: 600; border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; line-height: 1.2; }
.nwp-btn:disabled { opacity: .6; cursor: default; }
.nwp-btn-primary { background: var(--nwp-accent, #d9163f); color: #fff; }
.nwp-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.nwp-btn-ghost { background: transparent; color: var(--nwp-muted, #566070); }
.nwp-btn-ghost:hover { color: var(--nwp-fg, #14171f); }

.nwp-bell { position: fixed; bottom: 16px; z-index: 2147482999; width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: #ffffff; color: #566070; border: 1px solid rgba(20, 23, 31, .14); box-shadow: 0 6px 20px rgba(10, 14, 25, .18); }
.nwp-bell.is-on { background: #d9163f; color: #fff; border-color: transparent; }
.nwp-bell:hover { transform: scale(1.06); }
.nwp-bell-left { left: 16px; }
.nwp-bell-right { right: 16px; }
[data-theme="dark"] .nwp-bell:not(.is-on) { background: #1d2230; color: #cdd3e1; border-color: rgba(255, 255, 255, .18); }

.nwp-pop { bottom: 72px; padding: 12px 14px; min-width: 210px; }
.nwp-pop.nwp-bell-left { left: 16px; }
.nwp-pop.nwp-bell-right { right: 16px; }
.nwp-pop p { margin: 0 0 6px; font-weight: 600; }

.nwp-toast { left: 50%; bottom: 24px; transform: translateX(-50%); padding: 11px 16px; max-width: min(460px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 2px; text-decoration: none; animation: nwp-rise .22s ease-out; }
.nwp-toast span { color: var(--nwp-muted); font-size: 13px; }

@keyframes nwp-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes nwp-drop { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .nwp-prompt, .nwp-toast { animation: none; } .nwp-bell:hover { transform: none; } }

@media (max-width: 520px) {
  .nwp-pos-bottom-left, .nwp-pos-bottom-right { left: 12px; right: 12px; width: auto; }
  .nwp-pos-bottom-left.nwp-has-bell, .nwp-pos-bottom-right.nwp-has-bell { bottom: 72px; }
}
