/* =========================================================
   PWA install-prompt banner ("Add to Home Screen"), Theme 0.15.0 (M10g).

   Fixed banner above the bottom tab bar, hidden by default via the native
   [hidden] attribute - assets/js/pwa-install.js decides whether/which
   variant to reveal. Layout mirrors .tt-tabbar (fixed, centered, capped at
   --tt-max-width, respecting the safe-area inset) so it lines up with the
   app shell instead of stretching edge-to-edge on wide viewports.
   ========================================================= */
.tt-pwa-install-banner {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(var(--tt-tabbar-height) + var(--tt-safe-bottom) + 10px);
	width: calc(100% - 24px);
	max-width: calc(var(--tt-max-width) - 24px);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	background: var(--tt-white);
	border-radius: var(--tt-radius-md);
	box-shadow: var(--tt-shadow-hero);
	z-index: 60;
}
.tt-pwa-install-banner[hidden] { display: none; }

.tt-pwa-install-banner__icon {
	width: 44px;
	height: 44px;
	border-radius: var(--tt-radius-sm);
	flex-shrink: 0;
}
.tt-pwa-install-banner__body { flex: 1; min-width: 0; }
.tt-pwa-install-banner__title {
	margin: 0 0 2px;
	font-family: var(--tt-font-heading);
	font-size: 14px;
	font-weight: 700;
	color: var(--tt-dark);
}
.tt-pwa-install-banner__text {
	margin: 0;
	font-size: 12.5px;
	color: var(--tt-text-muted);
	line-height: 1.4;
}
.tt-pwa-install-banner__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}
.tt-pwa-install-banner__action {
	padding: 8px 14px;
	font-size: 12.5px;
	white-space: nowrap;
}
.tt-pwa-install-banner__action[hidden] { display: none; }
.tt-pwa-install-banner__close {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--tt-text-muted);
	padding: 0;
}
.tt-pwa-install-banner__close .tt-icon { width: 16px; height: 16px; }

/* Manual "Add to Home Screen" menu link (custom link ending in
   #tt-pwa-install, Theme 0.22.0): pointless once the app runs from the home
   screen, so hide it in standalone mode (body class set by app.js). */
.tt-is-standalone a[href$="#tt-pwa-install"] { display: none !important; }
