.pwa-ask {
	position: fixed;
	z-index: 1001;
	left: 50%;
	transform: translateX(-50%);
	width: min(420px, calc(100% - 24px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border-radius: 16px;
	background: #141414;
	color: #f5f5f5;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pwa-ask[hidden],
.pwa-ask-go[hidden] { display: none !important; }

.pwa-ask-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	text-align: center;
}

.pwa-ask-actions {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.pwa-ask-go,
.pwa-ask-no {
	appearance: none;
	border-radius: 999px;
	padding: 10px 18px;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.pwa-ask-go {
	background: #8A0917;
	color: #fff;
	border: 0;
}

.pwa-ask-no {
	background: transparent;
	color: inherit;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

body.light-mode .pwa-ask {
	background: #fff;
	color: #141414;
	border-color: rgba(5, 5, 5, 0.12);
}

body.light-mode .pwa-ask-go { color: #fff; }

body.light-mode .pwa-ask-no { border-color: rgba(5, 5, 5, 0.22); }

@media (max-width: 780px) {
	body.has-mobile-bar .pwa-ask,
	body:has(.mobile-bar) .pwa-ask {
		bottom: calc(var(--mobile-bar-h, 76px) + 10px + env(safe-area-inset-bottom, 0px));
	}
}

.pwa-foot {
	display: inline-block;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--grey, #9ca3af);
	font: inherit;
	font-size: 0.88rem;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pwa-foot:hover { color: var(--bone, #f2f2f2); }

body.light-mode .pwa-foot { color: #3a3a3a; }
body.light-mode .pwa-foot:hover { color: #141414; }

@media print {
	.pwa-ask,
	.pwa-foot { display: none !important; }
}
