/**
 * Onderbalken van de NJGT web-app: de uitnodiging om de site op het beginscherm
 * te zetten (pwa.js) en de vraag om meldingen aan te zetten (push.js).
 * Beide gebruiken dezelfde opmaak, vandaar één gedeeld bestand.
 */

.njgt-pwa {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 99999;
	max-width: 460px;
	margin: 0 auto;
	padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1d2b21;
	transform: translateY(140%);
	transition: transform .35s ease;
}
.njgt-pwa.is-open {
	transform: translateY(0);
}
.njgt-pwa__top {
	display: flex;
	align-items: center;
	gap: 12px;
}
.njgt-pwa__logo {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 10px;
	object-fit: contain;
	background: #f2f7f2;
	border: 1px solid #e3ece3;
}
.njgt-pwa__tekst {
	flex: 1;
	min-width: 0;
}
.njgt-pwa__titel {
	margin: 0;
	font-weight: 800;
	font-size: 15px;
	line-height: 1.25;
}
.njgt-pwa__sub {
	margin: 2px 0 0;
	font-size: 13px;
	color: #5a6b5f;
	line-height: 1.35;
}
.njgt-pwa__x {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: #8a9a8f;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 2px;
}
.njgt-pwa__stappen {
	margin: 12px 0 0;
	padding: 10px 12px;
	background: #f4f8f3;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #2c4433;
}
.njgt-pwa__stappen ol {
	margin: 0;
	padding-left: 18px;
}
.njgt-pwa__stappen li {
	margin: 3px 0;
}
.njgt-pwa__deel {
	display: inline-block;
	vertical-align: -4px;
	width: 16px;
	height: 18px;
}
.njgt-pwa__knoppen {
	margin-top: 12px;
	display: flex;
	gap: 8px;
}
.njgt-pwa__btn {
	flex: 1;
	border: 0;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}
.njgt-pwa__btn--ja {
	background: #1b5e20;
	color: #fff;
}
.njgt-pwa__btn--nee {
	background: #eef2ee;
	color: #455a4b;
}
.njgt-pwa__btn[disabled] {
	opacity: .6;
	cursor: default;
}

/* Terug-knop: alleen in de geïnstalleerde app, want daar ontbreekt de
   browserbalk (op iOS is er anders geen enkele manier om terug te gaan). */
.njgt-terug {
	position: fixed;
	left: 14px;
	bottom: calc(14px + env(safe-area-inset-bottom));
	z-index: 9990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #e0e8e0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: #1b5e20;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .16);
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.njgt-terug svg {
	width: 24px;
	height: 24px;
}
.njgt-terug:active {
	transform: scale(.94);
}
@media print {
	.njgt-terug { display: none; }
}
