html.pwa-install-open,
body.pwa-install-open {
	overflow: hidden !important;
}

.pwa-install-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 20px;
	background: rgba(7, 10, 14, .7);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

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

.pwa-install-dialog {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 410px);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 26px 22px 22px;
	border-radius: 22px;
	background: #fff;
	color: #16202b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: center;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
	-webkit-overflow-scrolling: touch;
}

.pwa-install-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f0f2f5;
	color: #4b5563;
	font-size: 25px;
	line-height: 34px;
	cursor: pointer;
}

.pwa-install-app-icon {
	display: block;
	width: 70px;
	height: 70px;
	margin: 0 auto 12px;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.pwa-install-browser {
	display: inline-block;
	margin-bottom: 9px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff1e8;
	color: #d95408;
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .01em;
}

.pwa-install-title {
	margin: 0 30px 9px;
	font-size: 21px;
	font-weight: 780;
	line-height: 1.25;
}

.pwa-install-description {
	margin: 0 0 16px;
	color: #5e6874;
	font-size: 14px;
	line-height: 1.5;
}

.pwa-install-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.pwa-install-step {
	box-sizing: border-box;
	margin-top: 10px;
	padding: 12px 13px;
	border: 1px solid #e9edf2;
	border-radius: 13px;
	background: #f7f8fa;
	font-size: 14px;
	line-height: 1.42;
}

.pwa-install-step-heading {
	display: flex;
	align-items: flex-start;
	gap: 11px;
}

.pwa-install-step-text {
	flex: 1 1 auto;
	padding-top: 3px;
}

.pwa-install-step-number {
	display: inline-flex;
	flex: 0 0 27px;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	background: #f97316;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.pwa-step-visual {
	display: flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 74px;
	margin: 11px 0 0 38px;
	padding: 12px;
	border-radius: 14px;
	background: #eef3fb;
	box-shadow: inset 0 0 0 1px rgba(33, 150, 243, .08);
}

.pwa-step-visual-browser-menu {
	gap: 9px;
}

.pwa-ui-address {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 13px 12px;
	border-radius: 11px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(31, 41, 55, .1);
}

.pwa-ui-page-mark {
	position: relative;
	width: 16px;
	height: 12px;
	border-top: 2px solid #7b8490;
	border-bottom: 2px solid #7b8490;
}

.pwa-ui-page-mark::after {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 10px;
	border-top: 2px solid #7b8490;
}

.pwa-ui-url {
	overflow: hidden;
	color: #1c2530;
	font-size: 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.pwa-ui-round-control {
	display: inline-flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid #168cf2;
	border-radius: 50%;
	background: #fff;
	color: #111;
	font-size: 19px;
	font-weight: 850;
	letter-spacing: 1px;
	box-shadow: 0 0 16px rgba(22, 140, 242, .34);
}

.pwa-step-visual-browser-menu-firefox {
	gap: 9px;
}

.pwa-step-visual-share,
.pwa-step-visual-add-home,
.pwa-step-visual-open-safari {
	padding: 10px;
}

.pwa-ui-action-row {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 9px;
	box-sizing: border-box;
	padding: 13px 14px;
	border: 2px solid #168cf2;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 16px rgba(22, 140, 242, .24);
	font-size: 15px;
	text-align: left;
}

.pwa-ui-action-row strong {
	display: block;
	flex: 0 1 auto;
	margin: 0;
	text-align: left;
}

.pwa-ui-share-icon,
.pwa-ui-add-icon,
.pwa-ui-safari-icon {
	display: inline-flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #111;
	font-size: 25px;
	font-weight: 500;
}

.pwa-step-visual-share .pwa-ui-action-row {
	display: grid;
	grid-template-columns: 28px max-content;
	align-items: center;
	justify-content: start;
	column-gap: 0;
	padding-left: 10px;
	text-align: left;
}

.pwa-step-visual-share .pwa-ui-action-row strong {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	justify-self: start;
	text-align: left !important;
	white-space: nowrap;
}

.pwa-ui-share-icon {
	display: block;
	flex: 0 0 28px;
	width: 28px;
	height: 33px;
	object-fit: contain;
}

.pwa-ui-add-icon {
	box-sizing: border-box;
	border: 2px solid #111;
	border-radius: 7px;
	font-size: 20px;
}

.pwa-ui-safari-icon {
	border: 2px solid #168cf2;
	border-radius: 50%;
	color: #168cf2;
	font-size: 18px;
}

.pwa-step-visual-view-more {
	justify-content: space-between;
	gap: 8px;
}

.pwa-ui-muted-actions {
	display: flex;
	flex: 1 1 auto;
	justify-content: space-around;
	gap: 7px;
	opacity: .38;
}

.pwa-ui-muted-actions > span,
.pwa-ui-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	font-size: 25px;
}

.pwa-ui-muted-actions small,
.pwa-ui-more small {
	margin-top: 2px;
	font-size: 9px;
	line-height: 1.1;
	text-align: center;
}

.pwa-ui-more > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border: 2px solid #168cf2;
	border-radius: 50%;
	background: #fff;
	color: #69717a;
	font-size: 28px;
	line-height: 1;
	box-shadow: 0 0 14px rgba(22, 140, 242, .3);
}

.pwa-install-actions {
	display: grid;
	gap: 9px;
	margin-top: 17px;
}

.pwa-install-action {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 12px 15px;
	border: 0;
	border-radius: 13px;
	background: #f97316;
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	cursor: pointer;
}

.pwa-install-action-secondary {
	background: #edf0f4;
	color: #26313d;
}

.pwa-install-status {
	min-height: 19px;
	margin: 9px 0 0;
	color: #268246;
	font-size: 13px;
	line-height: 1.4;
	word-break: break-word;
}

@media (max-height: 590px) {
	.pwa-install-overlay {
		align-items: flex-start;
		overflow-y: auto;
		padding: 10px;
	}

	.pwa-install-dialog {
		max-height: none;
		padding-top: 18px;
	}

	.pwa-install-app-icon {
		width: 54px;
		height: 54px;
		margin-bottom: 7px;
	}

	.pwa-step-visual {
		margin-left: 0;
	}
}

@media (max-width: 360px) {
	.pwa-install-overlay {
		padding: 10px;
	}

	.pwa-install-dialog {
		padding-left: 14px;
		padding-right: 14px;
	}

	.pwa-step-visual {
		margin-left: 0;
	}

	.pwa-ui-url,
	.pwa-ui-action-row {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.pwa-install-dialog {
		animation: pwa-install-enter .2s ease-out;
	}

	@keyframes pwa-install-enter {
		from { opacity: 0; transform: translateY(10px) scale(.98); }
		to { opacity: 1; transform: translateY(0) scale(1); }
	}
}
