.nova-pwa-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	padding: env(safe-area-inset-top, 0) 0 0 0;
	transform: translateY(-100%);
	transition: transform .25s ease;
}
.nova-pwa-banner.is-visible {
	transform: translateY(0);
}
.nova-pwa-banner__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	max-width: 640px;
	margin: 0 auto;
}
.nova-pwa-banner__close {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-color: #e5e5e5 !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	outline: none !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 20px !important;
	line-height: 1 !important;
	color: #999999 !important;
	font-weight: 400 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 4px 0 0 !important;
	flex-shrink: 0;
}
.nova-pwa-banner__logo {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}
.nova-pwa-banner__text {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nova-pwa-banner__text strong {
	font-size: .98rem;
	font-weight: 700;
	color: #111;
}
.nova-pwa-banner__text span {
	font-size: .82rem;
	color: #777;
}
.nova-pwa-banner__install {
	appearance: none;
	-webkit-appearance: none;
	background-color: var(--nova-pwa-accent, #2563eb) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	border-radius: 999px !important;
	padding: 10px 20px;
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	flex-shrink: 0;
	white-space: nowrap;
}

/* Popup */
.nova-pwa-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.nova-pwa-popup[hidden],
.nova-pwa-banner[hidden] {
	display: none !important;
}
.nova-pwa-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}
.nova-pwa-popup__box {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 480px;
	border-radius: 16px 16px 0 0;
	padding: 28px 24px calc(20px + env(safe-area-inset-bottom, 0));
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	animation: nova-pwa-slideup .25s ease;
	max-height: 85vh;
	overflow-y: auto;
}
@media (min-width: 600px) {
	.nova-pwa-popup { align-items: center; }
	.nova-pwa-popup__box { border-radius: 16px; }
}
@keyframes nova-pwa-slideup {
	from { transform: translateY(30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}
.nova-pwa-popup__logo {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	object-fit: cover;
	margin-bottom: 14px;
}
.nova-pwa-popup__title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: #111;
}
.nova-pwa-popup__tagline {
	font-size: .95rem;
	color: #555;
	margin: 0 0 20px;
}
.nova-pwa-popup__steps {
	text-align: left;
	list-style: decimal;
	padding-left: 20px;
	margin: 0 0 18px;
	color: #222;
	font-size: .95rem;
	line-height: 1.5;
}
.nova-pwa-popup__steps li { margin-bottom: 12px; }
.nova-pwa-popup__footer {
	font-size: .88rem;
	color: #666;
	margin: 0 0 22px;
}
.nova-pwa-popup__close {
	background: none;
	border: none;
	color: var(--nova-pwa-accent, #2563eb);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	padding: 6px;
}

/* ------------------------------------------------------------------ */
/* Décalage « push » — v1.2.5                                          */
/* Élément de flux remplaçant le padding-top sur <body>, qui cassait   */
/* le défilement des pages à sections pleine hauteur (WoodMart).       */
/* ------------------------------------------------------------------ */
.nova-pwa-push-spacer {
	display: block;
	width: 100%;
	height: 0;
	flex: 0 0 auto;
	transition: height .25s ease;
}

/* Sécurité : un calque fixe masqué ne doit jamais capter les clics ni  */
/* recouvrir la page, même si l'attribut hidden est retiré par un tiers.*/
.nova-pwa-popup[hidden] {
	pointer-events: none !important;
	visibility: hidden !important;
}

/* ------------------------------------------------------------------ */
/* Blocage du défilement de l'arrière-plan quand la popup est ouverte.  */
/* ------------------------------------------------------------------ */
html.nova-pwa-noscroll,
html.nova-pwa-noscroll body {
	overflow: hidden !important;
	overscroll-behavior: contain;
}

/* Respect des préférences d'accessibilité. */
@media (prefers-reduced-motion: reduce) {
	.nova-pwa-banner,
	.nova-pwa-push-spacer {
		transition: none !important;
	}
	.nova-pwa-popup__box {
		animation: none !important;
	}
}
