/* ============================================================
   ROLLIT — PWA BARS  (css/pwa.0736964a.css)
   The install prompt and the "new version ready" prompt. One shape,
   two uses. Sits above the phone tab bar, never over it.
   ============================================================ */

.pwa-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 140%);
  z-index: 400;                      /* over content, under modals (1000) */
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(460px, calc(100vw - 24px));
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: var(--surface, #1a1b28);
  border: 0.5px solid var(--border2, rgba(255,255,255,.11));
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  font-size: 13px;
  color: var(--text, #eeecf5);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.pwa-bar.show { transform: translate(-50%, 0); opacity: 1; }

.pwa-bar > i { font-size: 18px; color: var(--gold, #e8c96b); flex-shrink: 0; }
.pwa-bar-text { flex: 1; min-width: 0; line-height: 1.35; }

.pwa-bar-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: var(--gold, #e8c96b);
  color: #1a1000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.pwa-bar-btn:hover { background: #f0d57a; }

.pwa-bar-x {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--muted, #7a788e);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.pwa-bar-x:hover { color: var(--text, #eeecf5); background: rgba(255,255,255,.06); }

/* Clear the phone bottom tab bar (js/mobilenav.397a2ebd.js) rather than covering it. */
@media (max-width: 860px) {
  .pwa-bar {
    bottom: calc(var(--tabbar-h, 56px) + 12px + env(safe-area-inset-bottom, 0px));
    left: 12px; right: 12px;
    max-width: none;
    transform: translateY(140%);
  }
  .pwa-bar.show { transform: translateY(0); }
}

/* ---- SETTINGS: notification switch states ----
   The switch itself reuses .settings-switch; this is only the extra line
   Settings shows when the browser, not the user, is the blocker. */
.set-push-blocked {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 8px; padding: 8px 10px;
  border-radius: 9px;
  background: rgba(232,77,99,.08);
  border: 0.5px solid rgba(232,77,99,.22);
  font-size: 12px; line-height: 1.45;
  color: var(--muted, #7a788e);
}
.set-push-blocked i { color: var(--flop, #e84d63); font-size: 14px; margin-top: 1px; flex-shrink: 0; }
