/* ShailiCraft PWA banner + update toast. Colours follow --pwa-brand. */
:root { --pwa-brand: #9252BA; }

.pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 9999; display: flex; align-items: center; gap: 12px;
  max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 14px;
  background: #fff; color: #222; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transform: translateY(140%); opacity: 0; transition: transform .25s ease, opacity .25s ease;
}
.pwa-banner.is-visible { transform: none; opacity: 1; }
.pwa-banner[hidden] { display: none; }
.pwa-banner__icon { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.pwa-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pwa-banner__text strong { font-size: 15px; }
.pwa-banner__sub { color: #555; font-size: 13px; }
.pwa-share { width: 16px; height: 16px; vertical-align: -3px; color: #007aff; }
.pwa-banner__install {
  flex: none; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer;
  background: var(--pwa-brand); color: #fff; font-weight: 600; font-size: 14px;
}
.pwa-banner__close {
  flex: none; width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: #888; border-radius: 50%;
}
.pwa-banner__close:hover { background: #f2f2f2; }

.pwa-toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 10000; background: #222; color: #fff; padding: 10px 14px; border-radius: 10px;
  font: 14px system-ui, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.pwa-toast[hidden] { display: none; }
.pwa-toast button { margin-left: 10px; background: none; border: 0; color: #ffd27a; font-weight: 600; cursor: pointer; }

/* Installed app: hide things that make no sense inside the app window. */
@media (display-mode: standalone) {
  .pwa-hide-in-app { display: none !important; }
}
