/* ── Installable app + phone notifications ────────────────────────────────
   Kept out of app.css on purpose (separate concern, separate file). Reads the app's
   own tokens (--surface, --ink, --line, --brand-*) so it follows the light/dark
   theme without dark-mode twins of its own. */

/* Install prompt: one quiet pill, bottom-right on desktop, bottom-centre on phones,
   clear of the iPhone home indicator. */
#cc-pwa-root { position: fixed; z-index: 1040; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.cc-install {
    pointer-events: auto;
    display: flex; align-items: center; gap: 4px;
    background: var(--glass-pop, #fff); color: var(--ink, #0F172A);
    border: 1px solid var(--line, #E2E8F0); border-radius: 999px;
    box-shadow: 0 10px 28px -12px rgba(13, 71, 161, .45);
    -webkit-backdrop-filter: var(--glass-blur, none); backdrop-filter: var(--glass-blur, none);
    padding: 4px 4px 4px 6px;
    font-size: .9rem;
    animation: cc-install-in .25s ease-out;
}
.cc-install[data-kind="ios"] { border-radius: 14px; padding: 12px 6px 12px 14px; align-items: flex-start; max-width: 340px; }
.cc-install-go {
    display: inline-flex; align-items: center; gap: 8px;
    border: 0; background: none; color: var(--brand-700, #1976D2); font-weight: 600;
    padding: 6px 10px 6px 4px; border-radius: 999px; cursor: pointer;
}
.cc-install-go img { border-radius: 6px; }
.cc-install-go:hover { background: var(--brand-50, #E3F2FD); }
.cc-install-x {
    border: 0; background: none; color: var(--muted, #64748B);
    width: 30px; height: 30px; border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer; flex: none;
}
.cc-install-x:hover { background: var(--surface-2, #F1F5FB); color: var(--ink, #0F172A); }
.cc-install-tip { line-height: 1.45; }
.cc-install-tip strong { display: block; margin-bottom: 2px; color: var(--brand-800, #1565C0); }
.cc-share { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--brand-700, #1976D2); white-space: nowrap; }
.cc-share svg { vertical-align: -2px; }
@keyframes cc-install-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) {
    #cc-pwa-root { left: 16px; right: 16px; display: flex; justify-content: center; }
    .cc-install[data-kind="ios"] { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cc-install { animation: none; } }
@media print { #cc-pwa-root { display: none !important; } }

/* Notifications card */
.cc-push-card { max-width: 620px; }
.cc-push-status { margin: 0 0 14px; color: var(--muted, #64748B); }
.cc-push-status.is-ok { color: #15803D; font-weight: 600; }
.cc-push-status.is-warn { color: #B45309; }
:root[data-theme="dark"] .cc-push-status.is-ok { color: #34D399; }
:root[data-theme="dark"] .cc-push-status.is-warn { color: #FBBF24; }
.cc-push-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-push-msg { margin-top: 12px; font-size: .92rem; }
.cc-push-msg.is-ok { color: #15803D; }
.cc-push-msg.is-err { color: #B91C1C; }
:root[data-theme="dark"] .cc-push-msg.is-ok { color: #34D399; }
:root[data-theme="dark"] .cc-push-msg.is-err { color: #FB7185; }
.cc-push-devices { list-style: none; margin: 0; padding: 0; }
.cc-push-devices li {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-top: 1px solid var(--line, #E2E8F0);
}
.cc-push-devices li:first-child { border-top: 0; }
.cc-push-dev { font-weight: 600; color: var(--ink, #0F172A); }
.cc-push-when { color: var(--muted, #64748B); font-size: .85rem; margin-right: auto; }
.cc-push-none { color: var(--muted, #64748B); }
.cc-push-help ol { padding-left: 1.2rem; margin: .4rem 0 0; }
.cc-push-help li { margin-bottom: .25rem; }

/* ── Inside the ClickCompliance phone app (pwa.js adds .cc-native-app to <html>) ──────
   The "add to Home Screen" help is for browsers; the app has its own notifications. And no
   checkout inside the store apps: Apple (3.1.1) and Google Play (Payments policy) both refuse
   apps that sell a digital subscription through anything but their own in-app purchase, so the
   price card, the Paddle note under it and the Paddle billing-portal link are not shown in
   the app; people subscribe and manage billing on the website. */
.cc-native-app .cc-push-help,
.cc-native-app .card:has(#pd-subscribe),
.cc-native-app .card:has(#pd-subscribe) + p,
.cc-native-app a[href*="paddle.com"],
.cc-native-app p:has(> a[href*="paddle.com"]) + p { display: none !important; }
