/* Xnovix TezFiles UI. Page-scoped, upgrade-safe custom stylesheet. */
.pp4-tez-help[hidden],
.pp4-tez-status[hidden],
.pp4-redirect-toast[hidden] {
	display: none !important;
}

/*
 * A compact, non-modal redirect notice. It never locks scrolling, dims the
 * page or traps focus; on slow/error responses the purchase button is restored.
 */
.pp4-redirect-toast {
	position: fixed;
	z-index: 2147482000;
	inset-inline-start: 50%;
	bottom: max(20px, env(safe-area-inset-bottom));
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	width: min(420px, calc(100vw - 32px));
	padding: 13px 16px;
	border: 1px solid rgba(255, 255, 255, .13);
	border-inline-start: 3px solid #ffad16;
	border-radius: 11px;
	background: rgba(24, 24, 26, .97);
	box-shadow: 0 14px 42px rgba(0, 0, 0, .42);
	color: #f7f7f8;
	pointer-events: none;
	transform: translate(-50%, 18px);
	opacity: 0;
	transition: opacity .18s ease, transform .18s ease;
	-webkit-font-smoothing: antialiased;
}

[dir="rtl"] .pp4-redirect-toast {
	transform: translate(50%, 18px);
}

.pp4-redirect-toast.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
}

[dir="rtl"] .pp4-redirect-toast.is-visible {
	transform: translate(50%, 0);
}

.pp4-redirect-toast.is-error {
	border-inline-start-color: #ef6363;
}

.pp4-redirect-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 173, 22, .24);
	border-top-color: #ffad16;
	border-radius: 50%;
	animation: pp4-redirect-spin .7s linear infinite;
}

.pp4-redirect-toast.is-error .pp4-redirect-spinner {
	display: grid;
	place-items: center;
	border: 0;
	animation: none;
}

.pp4-redirect-toast.is-error .pp4-redirect-spinner::after {
	content: '!';
	color: #ef7777;
	font-size: 18px;
	font-weight: 800;
}

.pp4-redirect-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
	text-align: start;
}

.pp4-redirect-copy strong {
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pp4-redirect-copy small {
	overflow: hidden;
	color: #a8a8ae;
	font-size: 11px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@keyframes pp4-redirect-spin {
	to { transform: rotate(360deg); }
}

.pp4-tez-help {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 10px 0 16px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 166, 0, .42);
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(255, 166, 0, .1), rgba(255, 255, 255, .025));
	color: #d8d8dc;
	font-size: 13px;
	line-height: 1.5;
}

.pp4-tez-help strong {
	color: #ffb21c;
	font-size: 14px;
}

.pp4-pbox-dyn.pp4-pbox-active {
	border-color: #ffac12;
	box-shadow: inset 0 0 0 1px rgba(255, 172, 18, .25), 0 8px 28px rgba(0, 0, 0, .22);
}

.pp4-tez-status {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin: 18px 0 4px;
	padding: 16px;
	border: 1px solid #3b3425;
	border-radius: 12px;
	background: #15130f;
}

.pp4-tez-status-icon {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ffad16;
	color: #080808;
	font-size: 17px;
	font-weight: 900;
	letter-spacing: -.4px;
}

.pp4-tez-status-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

.pp4-tez-status-copy strong {
	color: #fff;
	font-size: 15px;
}

.pp4-tez-status-copy span {
	color: #aaaab1;
	font-size: 13px;
	line-height: 1.45;
}

.pp4-tez-verify {
	min-height: 42px;
	padding: 0 15px;
	border: 1px solid #ffad16;
	border-radius: 8px;
	background: transparent;
	color: #ffbd3c;
	cursor: pointer;
	font-size: 11px;
	font-weight: 800;
}

.pp4-tez-verify:hover,
.pp4-tez-verify:focus-visible {
	background: #ffad16;
	color: #090909;
}

.pp4-tez-verify:disabled {
	cursor: wait;
	opacity: .55;
}

.pp4-tez-status.pp4-tez-ok {
	border-color: rgba(44, 207, 112, .55);
	background: rgba(28, 105, 61, .15);
}

.pp4-tez-status.pp4-tez-ok .pp4-tez-status-icon {
	background: #2dcf70;
}

.pp4-tez-status.pp4-tez-error {
	border-color: rgba(237, 80, 80, .5);
	background: rgba(120, 28, 28, .14);
}

@media (max-width: 680px) {
	#pp_buy_btn {
		padding-inline: 10px;
		font-size: 12px;
		letter-spacing: 0;
		white-space: nowrap;
	}

	.pp4-redirect-toast {
		bottom: max(10px, env(safe-area-inset-bottom));
		width: calc(100vw - 20px);
		padding: 12px 14px;
		border-radius: 10px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, .38);
	}

	.pp4-tez-status {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 11px;
	}

	.pp4-tez-status-icon {
		width: 42px;
		height: 42px;
		font-size: 15px;
	}

	.pp4-tez-verify {
		grid-column: 1 / -1;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pp4-redirect-toast {
		transition: none;
	}

	.pp4-redirect-spinner {
		animation-duration: 1.2s;
	}
}
