/* Phone app on the page: install strip, iPhone guide, bottom tab bar, alerts card. */

.pt-app-i {
	width: 16px;
	height: 16px;
	flex: none;
}

.pt-app-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	flex: none;
}

.pt-app-btn--p {
	background: #2563eb;
	color: #fff;
}

.pt-app-btn--p:hover {
	background: #1d4ed8;
}

.pt-app-btn--link {
	background: transparent;
	color: #475569;
}

.pt-app-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.pt-app-x {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	flex: none;
}

.pt-app-x .pt-app-i {
	width: 18px;
	height: 18px;
}

.pt-app-btn:focus-visible,
.pt-app-x:focus-visible,
.pt-app-tabs a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* A3 light strip */
.pt-app-strip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	background: #eff6ff;
	border-bottom: 1px solid #bfdbfe;
	color: #0f172a;
	font-size: 14px;
	line-height: 1.3;
}

.pt-app-strip img {
	width: 36px;
	height: 36px;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
	flex: none;
}

.pt-app-strip__text {
	flex: 1;
	min-width: 0;
}

.pt-app-strip__text b,
.pt-app-strip__text small {
	overflow-wrap: anywhere;
}

.pt-app-strip__text small {
	display: block;
	color: #475569;
	font-size: 12.5px;
}

@media (min-width: 768px) {
	.pt-app-strip {
		justify-content: center;
	}

	.pt-app-strip__text {
		flex: 0 1 auto;
	}
}

/* Bottom bar version, chosen on Website › App & Alerts */
.pt-app-strip--bottom {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 980;
	padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
	background: #fff;
	border-top: 1px solid #e2e8f0;
	border-bottom: 0;
	box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.08);
}

body.pt-app-has-strip {
	padding-bottom: var(--pt-app-strip-h, 64px);
}

/* The product page's Buy bar and the back-to-top button sit above it. */
body.pt-app-has-strip .pt-product-detail-wrap.pt-pp .pt-pp-bar {
	bottom: var(--pt-app-strip-h, 64px);
	padding-bottom: 10px;
}

body.pt-app-has-strip .pt-scroll-top {
	bottom: calc(var(--pt-app-strip-h, 64px) + 16px);
}

/* iPhone guide */
.pt-app-guide {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px 12px 96px;
	background: rgba(15, 23, 42, 0.35);
}

.pt-app-guide__box {
	width: 100%;
	max-width: 400px;
	display: grid;
	gap: 12px;
	padding: 14px 16px 16px;
	border-radius: 16px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.pt-app-guide__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pt-app-guide__head img {
	width: 40px;
	height: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	object-fit: contain;
}

.pt-app-guide__head b {
	flex: 1;
	font-size: 16px;
}

.pt-app-guide ol {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-app-guide li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
}

.pt-app-guide li > b {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-size: 13px;
	flex: none;
}

.pt-app-k {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 8px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: #1a73e8;
	font-weight: 600;
	white-space: nowrap;
}

/* Bottom tab bar, inside the installed app on phone and tablet */
.pt-app-tabs {
	display: none;
}

@media (max-width: 1023px) {
	.pt-app-tabs {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		/* Under the site's pop-ups (z-index 1000+), over the page. */
		z-index: 990;
		display: grid;
		padding: 6px 0 calc(4px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #e2e8f0;
		box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
	}

	.pt-app-tabs a {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		min-height: 44px;
		justify-content: center;
		color: #64748b;
		font-size: 11.5px;
		font-weight: 600;
		text-decoration: none;
	}

	.pt-app-tabs a.is-on {
		color: #2563eb;
	}

	.pt-app-tabs .pt-app-i {
		width: 22px;
		height: 22px;
	}

	body.pt-app-has-tabs {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	/* The product page's Buy bar and the back-to-top button sit above the tabs. */
	body.pt-app-has-tabs .pt-product-detail-wrap.pt-pp .pt-pp-bar {
		bottom: calc(58px + env(safe-area-inset-bottom));
		padding-bottom: 10px;
	}

	body.pt-app-has-tabs .pt-scroll-top {
		bottom: calc(80px + env(safe-area-inset-bottom));
	}
}

/* Alerts card on My Library */
.pt-app-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	background: #eff6ff;
	color: #0f172a;
}

.pt-app-card__bell {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: #2563eb;
	flex: none;
}

.pt-app-card__bell .pt-app-i {
	width: 20px;
	height: 20px;
}

.pt-app-card__text {
	flex: 1 1 220px;
	min-width: 0;
	line-height: 1.4;
}

.pt-app-card__text b {
	display: block;
	font-size: 15px;
}

.pt-app-card__text span {
	color: #475569;
	font-size: 13.5px;
}

.pt-app-card__acts {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Short message */
.pt-app-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 100001;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	font-size: 14px;
	transform: translateX(-50%);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

body.pt-app-has-tabs .pt-app-toast {
	bottom: calc(80px + env(safe-area-inset-bottom));
}

@media print {
	.pt-app-strip,
	.pt-app-tabs,
	.pt-app-card,
	.pt-app-guide,
	.pt-app-toast {
		display: none !important;
	}
}
