/* Install-app helpers shared by the desktop and mobile portals. */

/* The [hidden] attribute must win over display rules of the host element
   (menu items are display:flex/block in both shells). */
[data-cms-pwa-install][hidden] {
	display: none !important;
}

.cms-pwa-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: #800080;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.cms-pwa-link:hover,
.cms-pwa-link:focus-visible {
	text-decoration: underline;
}

.cms-pwa-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom));
	background: rgba(17, 24, 39, 0.55);
}

.cms-pwa-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	color: #1f2937;
	border-radius: 16px;
	padding: 22px 20px 18px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	font-family: inherit;
}

.cms-pwa-card h2 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 700;
}

.cms-pwa-card ol {
	margin: 0 0 18px;
	padding-left: 20px;
	line-height: 1.55;
	font-size: 15px;
}

.cms-pwa-card li + li {
	margin-top: 6px;
}

.cms-pwa-close {
	width: 100%;
	min-height: 46px;
	border: 0;
	border-radius: 10px;
	background: #800080;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.cms-pwa-close:focus-visible {
	outline: 3px solid #d9a6d9;
	outline-offset: 2px;
}

@media (min-width: 640px) {
	.cms-pwa-overlay {
		align-items: center;
	}
}
