.pwa-install-prompt[hidden] {
	display: none !important;
}

.pwa-install-prompt {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	left: max(16px, env(safe-area-inset-left));
	z-index: 1200;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.pwa-install-card {
	width: min(100%, 620px);
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border: 1px solid rgba(26, 35, 126, 0.14);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 44px rgba(23, 32, 51, 0.22);
	color: #172033;
	pointer-events: auto;
}

.pwa-install-mark {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: #1a237e;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 900;
	letter-spacing: 0;
}

.pwa-install-copy {
	min-width: 0;
}

.pwa-install-copy h2 {
	margin: 0 0 4px;
	color: #172033;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: 0;
}

.pwa-install-copy p {
	margin: 0;
	color: #5f6b7a;
	font-size: 0.92rem;
	line-height: 1.35;
}

.pwa-install-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.pwa-install-actions button {
	min-height: 44px;
	border-radius: 6px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0;
	cursor: pointer;
}

.pwa-install-primary {
	border: 0;
	padding: 0 16px;
	background: #00a6b2;
	color: #ffffff;
}

.pwa-install-close {
	border: 1px solid #d9e0ea;
	padding: 0 12px;
	background: #ffffff;
	color: #1a237e;
}

.pwa-install-actions button:focus-visible {
	outline: 3px solid rgba(0, 166, 178, 0.42);
	outline-offset: 2px;
}

@media (max-width: 620px) {
	.pwa-install-card {
		grid-template-columns: 42px minmax(0, 1fr);
		align-items: start;
	}

	.pwa-install-mark {
		width: 42px;
		height: 42px;
	}

	.pwa-install-actions {
		grid-column: 1 / -1;
	}

	.pwa-install-actions button {
		flex: 1 1 0;
	}
}

/* ── iOS bottom-sheet ───────────────────────────────────────── */
.pwa-ios-prompt[hidden] {
	display: none !important;
}

.pwa-ios-prompt {
	position: fixed;
	inset: 0;
	z-index: 1300;
	display: flex;
	align-items: flex-end;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: pwa-ios-fade-in 0.22s ease;
}

@keyframes pwa-ios-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.pwa-ios-card {
	width: 100%;
	background: #0d1117;
	border-radius: 20px 20px 0 0;
	border-top: 1px solid #1e2a3a;
	padding-bottom: env(safe-area-inset-bottom, 16px);
	animation: pwa-ios-slide-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
	position: relative;
}

@keyframes pwa-ios-slide-up {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

/* Seta apontando para baixo — indica a barra do Safari */
.pwa-ios-arrow {
	width: 36px;
	height: 4px;
	background: #2d3f52;
	border-radius: 2px;
	margin: 12px auto 0;
}

.pwa-ios-body {
	padding: 20px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pwa-ios-header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pwa-ios-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #1a237e, #3d5afe);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pwa-ios-header > div {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pwa-ios-header strong {
	font-size: 16px;
	font-weight: 700;
	color: #f1f5f9;
	line-height: 1.2;
}

.pwa-ios-header span {
	font-size: 12px;
	color: #64748b;
}

.pwa-ios-close {
	background: #1e2a3a;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #94a3b8;
	flex-shrink: 0;
	padding: 0;
}

.pwa-ios-close:hover {
	background: #2d3f52;
	color: #f1f5f9;
}

/* Passos */
.pwa-ios-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pwa-ios-steps li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #cbd5e1;
	line-height: 1.4;
}

.pwa-ios-steps li strong {
	color: #f1f5f9;
}

.pwa-ios-step-num {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #1e2a3a;
	border: 1px solid #2d3f52;
	color: #7986cb;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Ícone de compartilhar inline */
.pwa-ios-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: #1e2a3a;
	border: 1px solid #2d3f52;
	color: #3d5afe;
	flex-shrink: 0;
	margin-left: auto;
}

