/* PWA by 24siteshop — install popup styles */
:root {
	--pwa24ss-theme: #0b5fff;
	--pwa24ss-bg: #ffffff;
}

#pwa24ss-popup,
#pwa24ss-popup * {
	box-sizing: border-box;
}

#pwa24ss-popup {
	position: fixed;
	z-index: 2147483000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Bottom bar */
#pwa24ss-popup.pwa24ss-bottom {
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	padding: 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	transform: translateY(120%);
	transition: transform .35s cubic-bezier(.16, 1, .3, 1);
	pointer-events: none;
}
#pwa24ss-popup.pwa24ss-bottom.pwa24ss-show {
	transform: translateY(0);
}

/* Center modal */
#pwa24ss-popup.pwa24ss-center {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
#pwa24ss-popup.pwa24ss-center.pwa24ss-has-backdrop {
	background: rgba(15, 23, 42, .45);
}
#pwa24ss-popup.pwa24ss-center.pwa24ss-show {
	opacity: 1;
	pointer-events: auto;
}

/* Card */
.pwa24ss-card-ui {
	position: relative;
	background: #fff;
	color: #1b1b1b;
	width: 100%;
	max-width: 440px;
	border-radius: 16px;
	padding: 18px 18px 16px;
	box-shadow: 0 18px 50px rgba(2, 6, 23, .22), 0 2px 8px rgba(2, 6, 23, .08);
	pointer-events: auto;
}
.pwa24ss-center .pwa24ss-card-ui {
	transform: scale(.96);
	transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.pwa24ss-center.pwa24ss-show .pwa24ss-card-ui {
	transform: scale(1);
}

.pwa24ss-x {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	color: #9aa3b2;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 8px;
}
.pwa24ss-x:hover { color: #4b5563; background: rgba(0,0,0,.04); }

.pwa24ss-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-right: 26px;
}
.pwa24ss-app-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	flex: 0 0 auto;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pwa24ss-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}
.pwa24ss-msg {
	font-size: 13.5px;
	color: #5b6472;
	line-height: 1.45;
	margin-top: 3px;
}

.pwa24ss-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}
.pwa24ss-actions button {
	border: 0;
	border-radius: 10px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}
.pwa24ss-later {
	background: transparent;
	color: #6b7280;
}
.pwa24ss-later:hover { background: rgba(0,0,0,.05); }
.pwa24ss-install {
	color: #fff;
	background: var(--pwa24ss-theme);
}
.pwa24ss-install:hover { filter: brightness(.94); }

/* iOS steps */
.pwa24ss-ios-steps {
	list-style: none;
	counter-reset: s;
	margin: 16px 0 4px;
	padding: 0;
}
.pwa24ss-ios-steps li {
	counter-increment: s;
	position: relative;
	padding: 9px 10px 9px 40px;
	font-size: 14px;
	color: #374151;
	border-radius: 10px;
	background: #f5f7fa;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pwa24ss-ios-steps li::before {
	content: counter(s);
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--pwa24ss-theme);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pwa24ss-share-ico {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	/* iOS share glyph */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='M8 8l4-4 4 4'/%3E%3Cpath d='M4 12v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-6'/%3E%3C/svg%3E");
}

@media (max-width: 480px) {
	.pwa24ss-card-ui { border-radius: 14px; }
	.pwa24ss-title { font-size: 15px; }
}

@media (prefers-color-scheme: dark) {
	.pwa24ss-card-ui { background: #1f2430; color: #f1f5f9; }
	.pwa24ss-msg { color: #aab2c0; }
	.pwa24ss-ios-steps li { background: #2a313f; color: #e2e8f0; }
	.pwa24ss-later { color: #cbd5e1; }
	.pwa24ss-later:hover { background: rgba(255,255,255,.08); }
}

.pwa24ss-allow {
	color: #fff;
	background: var(--pwa24ss-theme);
}
.pwa24ss-allow:hover { filter: brightness(.94); }
