/**
 * PWA install prompt — fixed bottom-right (papermag theme).
 */

.papermag-pwa-install-banner {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 999980;
	display: flex;
	align-items: stretch;
	gap: 0;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.papermag-pwa-install-banner--hidden {
	display: none !important;
}

.papermag-pwa-install-banner:focus-within {
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14), 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.papermag-pwa-install-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1rem 0.65rem 1.1rem;
	border: 0;
	background: #111;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	font-family: inherit;
}

.papermag-pwa-install-trigger:hover {
	background: #222;
	color: #fff;
}

.papermag-pwa-install-trigger:active {
	background: #000;
}

.papermag-pwa-install-trigger svg {
	flex-shrink: 0;
	opacity: 0.95;
}

.papermag-pwa-install-dismiss {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	padding: 0;
	border: 0;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	background: #f8f8f8;
	color: #444;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	font-family: inherit;
}

.papermag-pwa-install-dismiss:hover {
	background: #eee;
	color: #111;
}

@media (max-width: 480px) {
	.papermag-pwa-install-banner {
		bottom: 1rem;
		right: 1rem;
		left: auto;
		max-width: calc(100vw - 2rem);
	}

	.papermag-pwa-install-trigger {
		padding-left: 0.85rem;
		padding-right: 0.85rem;
		font-size: 0.875rem;
	}
}
