/* Ghost preview: a real rendered screen of the add-on, non-interactive, with a
   purchase overlay — the viewer sees exactly what the feature looks like before buying. */

.pl-ghost-preview {
	position: relative;
	margin: 0 0 20px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.pl-ghost-preview iframe {
	display: block;
	width: 100%;
	height: 360px;
	border: 0;
	pointer-events: none;
	background: #fff;
}

.pl-ghost-tag {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(29, 35, 39, 0.85);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	pointer-events: none;
}

.pl-ghost-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 20px;
	text-decoration: none;
	cursor: pointer;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.94) 100%);
	transition: background 0.15s ease;
}

.pl-ghost-overlay:hover,
.pl-ghost-overlay:focus-visible {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.97) 100%);
}

.pl-ghost-cta {
	display: inline-block;
	background: #1d2327;
	color: #fff;
	font-weight: 600;
	font-size: 13px;
	padding: 9px 20px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.pl-ghost-preview.pl-ghost-flash .pl-shop-buybox,
.pl-shop-buybox.pl-ghost-flash {
	animation: pl-ghost-flash 1.1s ease;
}

@keyframes pl-ghost-flash {
	0%, 100% { box-shadow: none; }
	25% { box-shadow: 0 0 0 4px rgba(11, 94, 90, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
	.pl-shop-buybox.pl-ghost-flash { animation: none; }
}
