.pwaip {
	position: fixed;
	z-index: 999999;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .3s ease, transform .3s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pwaip--bottom {
	bottom: 0;
	transform: translateY(100%);
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.pwaip--center {
	top: 0;
	bottom: 0;
	align-items: center;
	background: rgba(0, 0, 0, .45);
}

.pwaip--visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.pwaip__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 20px;
	background: #fff;
	color: #1d2327;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
	border-top: 4px solid var(--pwaip-color);
}

.pwaip__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: #8c8f94;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pwaip__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	padding-right: 24px;
}

.pwaip__icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	flex-shrink: 0;
}

.pwaip__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.pwaip__text,
.pwaip__ios-hint {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
}

.pwaip__ios-hint {
	padding: 8px 12px;
	background: #f0f0f1;
	border-radius: 8px;
	font-weight: 600;
}

.pwaip__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.pwaip__btn {
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
}

.pwaip__btn--later {
	white-space: nowrap;
	background: transparent;
	color: #50575e;
	border-color: #dcdcde;
}

.pwaip__btn--install {
	background: var(--pwaip-color);
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.pwaip__btn:hover {
	filter: brightness(.95);
}

@media (prefers-color-scheme: dark) {
	.pwaip__box { background: #1d2327; color: #f0f0f1; }
	.pwaip__ios-hint { background: #2c3338; }
	.pwaip__btn--later { color: #dcdcde; border-color: #50575e; }
}
