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

.tik-pwa-layer {
	position: fixed;
	z-index: 100020;
	inset: 0;
	display: flex;
	padding: 18px;
	align-items: flex-end;
	justify-content: flex-end;
}

body.tik-pwa-open {
	overflow: hidden;
}

.tik-pwa-backdrop,
.tik-pwa-backdrop:hover,
.tik-pwa-backdrop:focus,
.tik-pwa-backdrop:active {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0 !important;
	background: rgba(24, 19, 19, 0.38) !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1 !important;
	transform: none !important;
}

.tik-pwa-prompt {
	position: relative;
	z-index: 1;
	display: grid;
	width: min(440px, 100%);
	padding: 24px;
	border: 1px solid #ead5d5;
	border-radius: 8px;
	background: #fff9ed;
	box-shadow: 0 18px 50px rgba(35, 26, 26, 0.24);
	color: #272323;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 16px;
}

.tik-pwa-prompt > img {
	width: 64px;
	height: 64px;
	border: 1px solid #ead5d5;
	border-radius: 8px;
	background: #f7c4cc;
	object-fit: cover;
}

.tik-pwa-content p {
	margin: 0 34px 5px 0;
	color: #b44361;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.tik-pwa-content h2 {
	margin: 0 34px 7px 0;
	color: #272323;
	font-size: 22px;
	line-height: 1.16;
	letter-spacing: 0;
}

.tik-pwa-device-copy {
	display: block;
	color: #6e6868;
	font-size: 14px;
	line-height: 1.45;
}

.tik-pwa-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	width: 36px;
	min-width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fde7e9;
	color: #272323;
	font-size: 26px;
	cursor: pointer;
	place-items: center;
}

.tik-pwa-actions,
.tik-pwa-shortcuts {
	display: flex;
	grid-column: 1 / -1;
	gap: 10px;
}

.tik-pwa-actions {
	margin-top: 4px;
}

.tik-pwa-actions button,
.tik-pwa-shortcuts a {
	display: inline-flex;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 800;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.tik-pwa-install {
	border: 2px solid #272323;
	background: #e76f8d;
	color: #272323;
	cursor: pointer;
	flex: 1;
}

.tik-pwa-later {
	border: 2px solid #272323;
	background: transparent;
	color: #272323;
	cursor: pointer;
}

.tik-pwa-shortcuts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-top: 12px;
	border-top: 1px solid #ead5d5;
}

.tik-pwa-shortcuts a {
	padding: 6px 0;
	color: #9f3651;
	line-height: 1.3;
	text-align: center;
	flex: 1;
}

@media (max-width: 600px) {
	.tik-pwa-layer {
		padding: 0;
	}

	.tik-pwa-prompt {
		width: 100%;
		padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 8px 8px 0 0;
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 13px;
	}

	.tik-pwa-prompt > img {
		width: 56px;
		height: 56px;
	}

	.tik-pwa-content h2 {
		font-size: 19px;
	}

	.tik-pwa-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.tik-pwa-later {
		min-height: 40px !important;
		border-color: transparent !important;
	}
}
