/* AFAM — faixa e botão "Instalar app" */
.afam-pwa-bar {
	position: fixed; z-index: 99998;
	left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	max-width: 520px; margin: 0 auto;
	display: flex; align-items: center; gap: 12px;
	padding: 12px 12px 12px 14px;
	background: #001e40; color: #fff;
	border-radius: 16px; box-shadow: 0 10px 32px rgba(0, 20, 50, .35);
	font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	transform: translateY(140%); opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}
.afam-pwa-bar.is-on { transform: none; opacity: 1; }
.afam-pwa-bar__icon { width: 42px; height: 42px; border-radius: 10px; flex: none; background: #fff; }
.afam-pwa-bar__text { flex: 1; min-width: 0; }
.afam-pwa-bar__text b { font-weight: 700; }
.afam-pwa-share { display: inline-block; padding: 0 4px; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; font-size: 12px; }
.afam-pwa-bar__btn {
	flex: none; font: inherit; font-weight: 700; cursor: pointer;
	border: 0; border-radius: 999px; padding: 9px 18px;
	background: #fff; color: #001e40;
}
.afam-pwa-bar__close {
	flex: none; font: 400 22px/1 system-ui, sans-serif; cursor: pointer;
	width: 32px; height: 32px; border: 0; border-radius: 50%;
	background: transparent; color: rgba(255,255,255,.75);
}
.afam-pwa-bar__btn:focus-visible, .afam-pwa-bar__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Botão do shortcode [afam_instalar_app] */
.afam-pwa-install-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font: 700 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	padding: 14px 24px; border: 0; border-radius: 999px; cursor: pointer;
	background: #001e40; color: #fff; text-decoration: none;
}
.afam-pwa-install-btn[hidden] { display: none !important; }
.afam-pwa-install-btn:hover { filter: brightness(1.15); }

/* Não cobrir o banner de cookies */
body:has(.cookieadmin_law_container:not([style*="display: none"])) .afam-pwa-bar { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }

@media (prefers-reduced-motion: reduce) { .afam-pwa-bar { transition: none; } }
