/**
 * ZENOS -- Preview Gate (overlay pembelian di atas pemutar saat Preview Gratis selesai).
 * Prefix .zsd-pg-*. Warna aksen = token storefront aktif (--zsd-pg-aksen dipasang JS dari zsdCourse.tema);
 * yang hardcoded hanya netral gelap untuk overlay di atas video. Ukuran memakai container query pada
 * overlay itu sendiri (mengikuti lebar pemutar, bukan lebar layar).
 */
.zsd-pg {
	--zsd-pg-aksen: #6b5744;
	--zsd-pg-on-aksen: #ffffff;
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(14, 11, 8, 0.9);
	color: #ffffff;
	font-family: inherit;
	container-type: size;
	container-name: zsd-pg;
	overflow-y: auto;
	box-sizing: border-box;
}
.zsd-pg *, .zsd-pg *::before, .zsd-pg *::after { box-sizing: border-box; }
.zsd-pg-kartu {
	width: 100%;
	max-width: 620px;
	max-height: 100%;
	margin: auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.zsd-pg-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zsd-pg-pil {
	display: inline-flex; align-items: center; gap: 8px; min-width: 0;
	padding: 5px 12px 5px 9px; border-radius: 999px;
	background: rgba(255, 255, 255, 0.12); font-size: 13px; line-height: 1.2;
}
.zsd-pg-pil svg { color: var(--zsd-pg-aksen); filter: brightness(1.6); flex: none; }
.zsd-pg-pil strong { font-weight: 700; }
.zsd-pg-rentang { color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zsd-pg-tutup {
	width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
}
.zsd-pg-tutup:hover, .zsd-pg-tutup:focus-visible { background: rgba(255, 255, 255, 0.16); }
.zsd-pg-badan { display: flex; gap: 16px; align-items: flex-start; }
.zsd-pg-thumb { position: relative; flex: 0 0 168px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.zsd-pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zsd-pg-thumb-dur {
	position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px;
	background: rgba(0, 0, 0, 0.8); font-size: 12px; font-variant-numeric: tabular-nums;
}
.zsd-pg-isi { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.zsd-pg-judul { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.zsd-pg-kunci { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.zsd-pg-kunci svg { flex: none; margin-top: 2px; }
.zsd-pg-manfaat { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.zsd-pg-manfaat li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.zsd-pg-manfaat svg { flex: none; margin-top: 2px; color: #7ee2a8; }
.zsd-pg-aksi { display: flex; flex-direction: column; gap: 8px; }
.zsd-pg-beli {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	width: 100%; min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--zsd-pg-aksen); color: var(--zsd-pg-on-aksen);
	font: inherit; font-size: 15px; font-weight: 700;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.zsd-pg-beli:hover, .zsd-pg-beli:focus-visible { filter: brightness(1.08); outline: 2px solid #fff; outline-offset: 2px; }
.zsd-pg-harga { font-weight: 600; opacity: 0.9; padding-left: 10px; border-left: 1px solid currentColor; }
.zsd-pg-sekunder { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.zsd-pg-tautan {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px;
	background: none; border: 0; color: rgba(255, 255, 255, 0.82); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.zsd-pg-tautan:hover, .zsd-pg-tautan:focus-visible { color: #fff; }

/* Pemutar sempit (mobile / dialog kecil): thumbnail dan daftar manfaat diringkas supaya tidak terpotong. */
@container zsd-pg (max-width: 520px) {
	.zsd-pg-badan { flex-direction: column; gap: 10px; }
	.zsd-pg-thumb { display: none; }
	.zsd-pg-judul { font-size: 15px; }
	.zsd-pg-kunci, .zsd-pg-manfaat { font-size: 12.5px; }
	.zsd-pg-manfaat li:nth-child(n+3) { display: none; }
	.zsd-pg-kartu { gap: 10px; }
}
@container zsd-pg (max-height: 260px) {
	.zsd-pg-manfaat { display: none; }
	.zsd-pg { padding: 8px 12px; }
	.zsd-pg-kartu { gap: 6px; }
	.zsd-pg-badan { gap: 6px; }
	.zsd-pg-isi { gap: 4px; }
	.zsd-pg-judul { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; }
	.zsd-pg-kunci { font-size: 12px; }
	.zsd-pg-aksi { gap: 2px; }
	.zsd-pg-beli { min-height: 44px; }
	.zsd-pg-tautan { min-height: 30px; }
}
@container zsd-pg (max-height: 215px) {
	.zsd-pg-kunci { display: none; }
	.zsd-pg-pil { font-size: 12px; padding: 3px 10px 3px 8px; }
	.zsd-pg-tutup { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
	.zsd-pg { animation: zsd-pg-masuk .18s ease-out; }
}
@keyframes zsd-pg-masuk { from { opacity: 0; } to { opacity: 1; } }

/* Tampilan besar untuk simulasi di dashboard seller */
.zsd-pg-lapis { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 8, 6, 0.72); box-sizing: border-box; }
.zsd-pg-bingkai { position: relative; width: min(960px, 100%, calc((100vh - 40px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #14100c; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.zsd-pg-bingkai-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(14px) brightness(.55); transform: scale(1.08); }
.zsd-pg-bingkai .zsd-pg { background: rgba(14, 11, 8, 0.78); padding: 24px 28px; }
.zsd-pg-bingkai .zsd-pg-kartu { max-width: 760px; gap: 18px; }
.zsd-pg-bingkai .zsd-pg-judul { font-size: 20px; }
.zsd-pg-bingkai .zsd-pg-thumb { flex-basis: 220px; }
@media (max-width: 640px) {
	.zsd-pg-lapis { padding: 12px; }
	.zsd-pg-bingkai { aspect-ratio: auto; height: min(560px, calc(100vh - 24px)); }
}
