/**
 * Extension detail – PX Content animated hero (html/com_content/article/ext-hero/px-content.php, js/px-ext-content.js).
 * A browser window with a page built from real PX Base block captures and the PX Content block library on top.
 * Drawn on a fixed 772×560 stage that scales with the hero column (container query units); scoped under .pxcb.
 */
.tp-ext-detail .txd-hero .visual.pxt { background: none; padding: 0; border-radius: 0; display: block; overflow: visible; }

.pxcb {
	--pxcb-g: #22c55e;
	--pxcb-g-soft: #e6f8ec;
	--pxcb-g-ink: #0f6b31;
	--pxcb-ink: #050038;
	--pxcb-mute: #8a93a6;
	--pxcb-line: #eef1f5;
	position: relative; width: 100%; aspect-ratio: 772 / 560; container-type: inline-size;
	font-family: Inter, "SF Pro Text", system-ui, -apple-system, sans-serif; color: var(--pxcb-ink); text-align: left; line-height: 1.3;
}
.pxcb *, .pxcb *::before, .pxcb *::after { box-sizing: border-box; }
.pxcb-in { position: absolute; left: 0; top: 0; width: 772px; height: 560px; transform-origin: 0 0; transform: scale(calc(100cqw / 772px)); }

/* page window */
.pxcb-win { position: absolute; left: 0; top: 0; width: 520px; height: 512px; background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 8px 22px rgba(5,0,56,.10); }
.pxcb-bar { position: relative; z-index: 3; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid var(--pxcb-line);
	background: #fff; font-weight: 800; font-size: 15px; }
.pxcb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e7ee; }
.pxcb-bar b { margin-left: 6px; }
.pxcb-page { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; overflow: hidden; background: #141412; }
.pxcb-stack { position: absolute; left: 0; right: 0; top: 0; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.pxcb-blk { position: relative; display: block; width: 100%; }
.pxcb-blk img { display: block; width: 100%; height: auto; transition: opacity .35s; }
.pxcb-blk .pxcb-alt { position: absolute; left: 0; top: 0; opacity: 0; }
.pxcb-blk.is-edit .pxcb-alt { opacity: 1; }
.pxcb-slot { margin: 14px; height: 96px; display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(255,255,255,.22); border-radius: 10px;
	color: rgba(255,255,255,.55); font-size: 14px; font-weight: 700; }
.pxcb-blk.is-new { animation: pxcbIn .6s cubic-bezier(.3,.7,.2,1) both; }
.pxcb-blk.is-on::after { content: ""; position: absolute; inset: 6px; border: 2px dashed var(--pxcb-g); border-radius: 6px; pointer-events: none; }
.pxcb-tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 9px; border-radius: 7px; background: var(--pxcb-g); color: #fff;
	font-weight: 800; font-size: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.25); opacity: 0; transform: translateY(-4px); transition: .3s; }
.pxcb-blk.is-on .pxcb-tag { opacity: 1; transform: none; }
.pxcb-tag em { font-style: normal; font-weight: 700; opacity: .85; margin-left: 4px; }
@keyframes pxcbIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* block library */
.pxcb-lib { position: absolute; left: 472px; top: 40px; z-index: 4; width: 300px; height: 420px; background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 12px 30px rgba(5,0,56,.16); }
.pxcb-lh { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--pxcb-line); font-weight: 800; font-size: 14px; }
.pxcb-lh span { font-weight: 600; font-size: 12px; color: var(--pxcb-mute); }
.pxcb-src { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--pxcb-line); background: #fafbfc; }
.pxcb-src span { padding: 5px 10px; border: 1px solid #e3e7ee; border-radius: 999px; background: #fff; color: #3b4256; font-size: 11.5px; font-weight: 700; transition: .25s; }
.pxcb-src span.is-on { border-color: var(--pxcb-g); background: var(--pxcb-g-soft); color: var(--pxcb-g-ink); }
.pxcb-body { display: grid; grid-template-columns: 112px 1fr; height: calc(100% - 92px); }
.pxcb-types { padding: 8px 6px; border-right: 1px solid var(--pxcb-line); background: #fafbfc; }
.pxcb-types span { display: block; padding: 6px 8px; border-radius: 7px; color: #3b4256; font-size: 12px; font-weight: 600; transition: .2s; }
.pxcb-types span.is-on { background: var(--pxcb-g-soft); color: var(--pxcb-g-ink); font-weight: 800; }
.pxcb-types span.is-tpl, .pxcb-lib.is-tpl .pxcb-types span { display: none; }
.pxcb-lib.is-tpl .pxcb-types span.is-tpl { display: block; }
.pxcb-cards { display: grid; gap: 10px; align-content: start; padding: 10px; }
.pxcb-card { padding: 6px; border: 1px solid #e3e7ee; border-radius: 9px; background: #fff; transition: .2s; }
.pxcb-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 5px; background: #eef1f5; }
.pxcb-card b { display: block; margin: 6px 2px 0; font-size: 11.5px; }
.pxcb-card small { display: block; margin: 0 2px 2px; color: var(--pxcb-mute); font-size: 10.5px; }
.pxcb-card.is-on { border-color: var(--pxcb-g); box-shadow: 0 0 0 2px var(--pxcb-g-soft); }

/* edit hint, cursor, selling points */
.pxcb-tip { position: absolute; z-index: 5; left: 230px; top: 64px; padding: 6px 10px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800;
	box-shadow: 0 4px 12px rgba(5,0,56,.18); opacity: 0; transform: translateY(6px); transition: .3s; }
.pxcb-tip.is-on { opacity: 1; transform: none; }
.pxcb-tip em { font-style: normal; color: var(--pxcb-g-ink); }
.pxcb-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 22px; height: 22px; opacity: 0; pointer-events: none;
	transition: transform .55s cubic-bezier(.4,.1,.2,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.pxcb.is-playing .pxcb-cur { opacity: 1; }
.pxcb-cur svg { display: block; width: 100%; height: 100%; transform-origin: 20% 10%; }
.pxcb-cur.is-click svg { animation: pxcbClick .3s ease-out; }
.pxcb-cur.is-click::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border: 2px solid var(--pxcb-g); border-radius: 50%; animation: pxcbRing .45s ease-out forwards; }
@keyframes pxcbClick { 50% { transform: scale(.8); } }
@keyframes pxcbRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pxcb-pts { position: absolute; left: 0; top: 526px; z-index: 6; display: flex; gap: 6px; }
.pxcb-pts span { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; background: #fff; color: #3b4256;
	font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 1px rgba(5,0,56,.07), 0 3px 8px rgba(5,0,56,.06); transition: .3s; }
.pxcb-pts span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: #cfd5df; transition: .3s; }
.pxcb-pts span.is-on { background: var(--pxcb-g-soft); color: var(--pxcb-g-ink); }
.pxcb-pts span.is-on::before { background: var(--pxcb-g); }

/* phones: the chips would be too small to read */
@container (max-width: 480px) {
	.pxcb-pts { display: none; }
}
@supports not (width: 1cqw) {
	.pxcb { aspect-ratio: auto; height: 560px; overflow: hidden; }
	.pxcb-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pxcb *, .pxcb *::before, .pxcb *::after { animation: none !important; transition: none !important; }
}
