#mtsg-pwa-root {
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(8px + env(safe-area-inset-bottom));
	z-index: 999999;
	display: flex;
	justify-content: center;
	padding: 0 10px;
	pointer-events: none;
}

.mtsg-pwa-card {
	width: min(100%, 360px);
	pointer-events: auto;
	background: rgba(5, 5, 5, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 14px 14px 12px;
	color: #f7f7f7;
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(14px);
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.mtsg-pwa-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.mtsg-pwa-title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
}

.mtsg-pwa-body,
.mtsg-pwa-helper,
.mtsg-pwa-details p {
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	line-height: 1.45;
}

.mtsg-pwa-helper {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.7);
}

.mtsg-pwa-details {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mtsg-pwa-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
	gap: 8px;
	margin-top: 12px;
}

.mtsg-pwa-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
	padding: 0 14px;
}

#mtsg-pwa-root .mtsg-pwa-button--primary {
	background: #cf4c26;
	border-color: #cf4c26;
	color: #ffffff;
}

.mtsg-pwa-button--secondary {
	background: rgba(255, 255, 255, 0.04);
	color: #f7f7f7;
}

.mtsg-pwa-button--ghost {
	border-color: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
}

.mtsg-pwa-button:focus-visible {
	outline: 2px solid #f7f7f7;
	outline-offset: 2px;
}

html.mtsg-standalone body {
	padding-bottom: max(env(safe-area-inset-bottom), 0px);
}

@media (max-width: 520px) {
	.mtsg-pwa-card {
		width: min(100%, 340px);
	}
}
