/*
 * PWA install affordances: the menu entry and the first-visit prompt.
 * Kept separate from the CDN stylesheets so it ships with this repo.
 */

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

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

.pwa-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.pwa-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, 0.72);
}

.pwa-modal__card {
	position: relative;
	width: 100%;
	max-width: 340px;
	box-sizing: border-box;
	padding: 28px 22px 18px;
	border-radius: 18px;
	background: #15151c;
	color: #f2f2f5;
	text-align: center;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	animation: pwa-modal-pop 0.2s ease-out;
}

@keyframes pwa-modal-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.pwa-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #8d8d9c;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.pwa-modal__icon {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 16px;
}

.pwa-modal__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: #f2f2f5;
}

.pwa-modal__text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #a0a0ad;
}

.pwa-modal__steps {
	display: none;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	text-align: left;
	font-size: 13.5px;
	line-height: 1.45;
	color: #c9c9d3;
}

.pwa-modal--ios .pwa-modal__steps {
	display: block;
}

.pwa-modal--ios .pwa-modal__text {
	margin-bottom: 14px;
}

.pwa-modal__steps li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 26px;
}

.pwa-modal__steps li:last-child {
	margin-bottom: 0;
}

.pwa-modal__steps li::before {
	content: attr(data-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2a2a36;
	color: #f2f2f5;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.pwa-modal__install {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 999px;
	background: #f2f2f5;
	color: #0b0b0f;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.pwa-modal--ios .pwa-modal__install {
	display: none;
}

.pwa-modal__install:disabled {
	opacity: 0.6;
	cursor: default;
}

.pwa-modal__later {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 11px 20px;
	border: 0;
	background: transparent;
	color: #8d8d9c;
	font-size: 14px;
	cursor: pointer;
}

.pwa-modal__install:active,
.pwa-modal__later:active,
.pwa-modal__close:active {
	opacity: 0.75;
}

.pwa-modal__install:focus-visible,
.pwa-modal__later:focus-visible,
.pwa-modal__close:focus-visible {
	outline: 2px solid #8d8d9c;
	outline-offset: 3px;
}
