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

.pwa-install-banner {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1045;
	max-width: min(24rem, calc(100vw - 2rem));
	padding: 1rem 1rem 0.95rem;
	border-radius: 1.25rem;
	background: rgba(19, 27, 48, 0.96);
	color: #fff;
	box-shadow: 0 1rem 2.5rem rgba(14, 26, 58, 0.28);
	backdrop-filter: blur(14px);
}

.pwa-install-banner[data-pwa-platform="ios"] {
	background:
		radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 34%),
		linear-gradient(160deg, rgba(18, 28, 52, 0.98) 0%, rgba(10, 18, 36, 0.98) 100%);
}

.pwa-install-banner__title {
	margin: 0 2rem 0.35rem 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.pwa-install-banner__text {
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
}

.pwa-install-banner__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.pwa-install-banner__button {
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1rem;
	background: linear-gradient(135deg, #4c7dff 0%, #3f6ad8 100%);
	color: #fff;
	font-weight: 600;
	line-height: 1;
}

.pwa-install-banner__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.2rem;
	line-height: 1;
}

.pwa-ios-modal[hidden] {
	display: none !important;
}

.pwa-ios-modal {
	position: fixed;
	inset: 0;
	z-index: 1060;
}

.pwa-ios-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 13, 27, 0.56);
	backdrop-filter: blur(8px);
}

.pwa-ios-modal__sheet {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: min(32rem, calc(100vw - 1rem));
	max-height: min(88vh, 52rem);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0.9rem 0.9rem calc(1rem + env(safe-area-inset-bottom));
	border-radius: 1.5rem 1.5rem 0 0;
	background:
		radial-gradient(circle at top right, rgba(120, 168, 255, 0.25), transparent 32%),
		linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
	box-shadow: 0 -1rem 3rem rgba(10, 27, 72, 0.18);
	color: #15213d;
}

.pwa-ios-modal__handle {
	width: 3rem;
	height: 0.3rem;
	margin: 0 auto 0.9rem;
	border-radius: 999px;
	background: rgba(21, 33, 61, 0.16);
}

.pwa-ios-modal__close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 999px;
	background: rgba(21, 33, 61, 0.07);
	color: #15213d;
	font-size: 1.2rem;
	line-height: 1;
}

.pwa-ios-modal__title {
	margin: 0 2.2rem 0.35rem 0;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.2;
}

.pwa-ios-modal__text {
	margin: 0 0 1rem;
	font-size: 0.96rem;
	line-height: 1.5;
	color: #4b587b;
}

.pwa-ios-modal__steps {
	display: grid;
	gap: 0.75rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.pwa-ios-modal__step {
	display: grid;
	grid-template-columns: 2rem 1fr;
	gap: 0.75rem;
	align-items: start;
	padding: 0.85rem 0.9rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.82);
}

.pwa-ios-modal__step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #3f6ad8;
	color: #fff;
	font-weight: 700;
}

.pwa-ios-modal__step-text {
	font-size: 0.95rem;
	line-height: 1.45;
	color: #15213d;
}

.pwa-ios-modal__share-icon,
.pwa-ios-modal__home-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.65rem;
	height: 1.65rem;
	margin: 0 0.15rem;
	border-radius: 0.55rem;
	background: rgba(63, 106, 216, 0.1);
	color: #3f6ad8;
	font-weight: 700;
	vertical-align: middle;
}

.pwa-ios-modal__image-slot {
	display: grid;
	place-items: center;
	gap: 0.85rem;
	min-height: 11rem;
	padding: 1rem;
	border: 2px dashed rgba(63, 106, 216, 0.28);
	border-radius: 1.2rem;
	background:
		linear-gradient(180deg, rgba(244, 248, 255, 0.95) 0%, rgba(234, 241, 255, 0.95) 100%);
	text-align: center;
}

.pwa-ios-modal__image {
	display: block;
	width: min(100%, 26rem);
	height: auto;
	margin: 0 auto;
	border-radius: 1rem;
	box-shadow: 0 0.8rem 2rem rgba(34, 63, 128, 0.16);
}

.pwa-ios-modal__image[hidden] {
	display: none !important;
}

.pwa-ios-modal__image-title {
	margin: 0 0 0.3rem;
	font-size: 1rem;
	font-weight: 700;
	color: #15213d;
}

.pwa-ios-modal__image-text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #556483;
}

.pwa-ios-modal__image-caption {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #425170;
}

body.pwa-ios-modal-open {
	overflow: hidden;
}

@media (min-width: 992px) {
	.pwa-install-banner {
		bottom: 1.5rem;
	}
}

@media (max-width: 767.98px) {
	.pwa-install-banner {
		right: 0.75rem;
		left: 0.75rem;
		bottom: calc(0.75rem + env(safe-area-inset-bottom));
		max-width: none;
	}

	.pwa-ios-modal__sheet {
		width: calc(100vw - 0.5rem);
		max-height: calc(100vh - 0.75rem);
		padding: 0.75rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom));
		border-radius: 1.3rem 1.3rem 0 0;
	}

	.pwa-ios-modal__title {
		font-size: 1.05rem;
	}

	.pwa-ios-modal__text {
		margin-bottom: 0.85rem;
		font-size: 0.9rem;
	}

	.pwa-ios-modal__steps {
		gap: 0.6rem;
		margin-bottom: 0.85rem;
	}

	.pwa-ios-modal__step {
		padding: 0.75rem 0.8rem;
	}

	.pwa-ios-modal__step-text {
		font-size: 0.9rem;
	}

	.pwa-ios-modal__image-slot {
		gap: 0.7rem;
		padding: 0.75rem;
	}

	.pwa-ios-modal__image {
		width: min(100%, 21.5rem);
		border-radius: 0.85rem;
	}

	.pwa-ios-modal__image-title {
		font-size: 0.95rem;
	}

	.pwa-ios-modal__image-caption {
		font-size: 0.84rem;
	}
}

@media (max-width: 390px), (max-height: 760px) {
	.pwa-ios-modal__sheet {
		max-height: calc(100vh - 0.35rem);
		padding: 0.65rem 0.65rem calc(0.8rem + env(safe-area-inset-bottom));
	}

	.pwa-ios-modal__handle {
		margin-bottom: 0.65rem;
	}

	.pwa-ios-modal__title {
		font-size: 0.98rem;
		margin-bottom: 0.25rem;
	}

	.pwa-ios-modal__text {
		font-size: 0.86rem;
		line-height: 1.4;
	}

	.pwa-ios-modal__image {
		width: min(100%, 19rem);
	}
}

@media (display-mode: standalone) {
	.pwa-install-banner {
		display: none !important;
	}

	.pwa-ios-modal {
		display: none !important;
	}
}
