/*
 * Premium designs: five A4 templates (794 x 1123 px at 96 dpi) plus the premium interface.
 * Template rules are scoped under .pcvb-pt; interface rules under .pcvb-app.
 * Sans text uses the bundled Inter. Serif headings use the system serif (Georgia, then
 * Times New Roman): no font was downloaded for this phase.
 *
 * Maintained by Wiselogix Technologies.
 */
.pcvb-pt,
.pcvb-pt *,
.pcvb-pt *::before,
.pcvb-pt *::after {
	box-sizing: border-box;
}

.pcvb-pt {
	--ink: #1f2a30;
	--muted: #6b7780;
	--accent: #e2613a;
	--bg: #ffffff;
	--line: #dde2e6;
	--serif: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
	position: relative;
	display: flex;
	flex-direction: column;
	width: 794px;
	min-height: 1122px;
	padding: 42px 43px 34px;
	background: var(--bg);
	color: var(--ink);
	font-family: 'Inter', Arial, Helvetica, sans-serif;
	font-size: 12.5px;
	line-height: 1.5;
	text-align: left;
	overflow: hidden;
}

:where(.pcvb-pt) :where(h1, h2, p, ul, li, div, span, section, table, thead, tbody, tr, th, td, a) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	list-style: none;
}

.pcvb-pt a,
.pcvb-pt a:visited,
.pcvb-pt a:hover { color: inherit; text-decoration: none; }

.pcvb-pt ul,
.pcvb-pt li { margin: 0; padding: 0; list-style: none; }

.pcvb-pt table { border: 0; border-collapse: collapse; }
.pcvb-pt th,
.pcvb-pt td { border: 0; background: none; }

.pcvb-pt img {
	display: block;
	max-width: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.pcvb-pt-ph { color: #b9c4d2 !important; }

/* ---------- shared parts ---------- */
.pcvb-pt-brand {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.pcvb-pt-name {
	font-weight: 700;
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.pcvb-pt-role {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.pcvb-pt-secondary { color: var(--muted); }

.pcvb-pt-rule { height: 1px; margin: 22px 0; background: var(--line); }

.pcvb-pt-photo { overflow: hidden; background: #e9edf1; }
.pcvb-pt-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pcvb-pt-photo-empty { object-fit: none; width: 44%; height: 44%; margin: auto; }
.pcvb-pt-photo { display: flex; align-items: center; justify-content: center; }
.pcvb-pt-photo:has(.pcvb-pt-photo-empty) .pcvb-pt-photo-empty { width: 40%; height: 40%; }

.pcvb-pt-h2 {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.pcvb-pt-section { margin-top: 26px; }
.pcvb-pt-section:first-child { margin-top: 0; }

.pcvb-pt-text { overflow-wrap: anywhere; white-space: pre-line; line-height: 1.6; }

.pcvb-pt-list li { position: relative; margin-bottom: 5px; padding-left: 12px; overflow-wrap: anywhere; color: #3f4b54; }
.pcvb-pt-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.pcvb-pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
.pcvb-pt-stat-value { font-family: var(--serif); font-size: 38px; line-height: 1.1; color: var(--accent); }
.pcvb-pt-stat-label { margin-top: 6px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pcvb-pt-scope { margin-top: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

.pcvb-pt-entry-season { font-size: 10.5px; font-weight: 700; color: var(--accent); }
.pcvb-pt-entry-club { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pcvb-pt-entry-comp { color: var(--muted); overflow-wrap: anywhere; }
.pcvb-pt-entry-stats { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--accent); }

.pcvb-pt-contact-main { display: block; font-weight: 700; overflow-wrap: anywhere; }
.pcvb-pt-contact-line { margin-top: 3px; color: #3f4b54; }
.pcvb-pt-muted { margin-top: 8px; color: var(--muted); }

.pcvb-pt-ref { margin-bottom: 10px; }
.pcvb-pt-ref-name { font-weight: 700; }
.pcvb-pt-ref-who,
.pcvb-pt-ref-contact { color: var(--muted); overflow-wrap: anywhere; }

.pcvb-pt-qrbox { text-align: center; }
.pcvb-pt-qr { display: block; width: 84px; padding: 5px; background: #fff; }
.pcvb-pt-qr-img { width: 74px; height: 74px; image-rendering: pixelated; }
.pcvb-pt-qr-label { margin-top: 5px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.pcvb-pt-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.pcvb-pt-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.pcvb-pt-foot + .pcvb-pt-footer { margin-top: auto; }
.pcvb-pt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 4px; }
.pcvb-pt-col { min-width: 0; }

/* ---------- watermark (preview only) ---------- */
.pcvb-pt-wm { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.pcvb-pt-wm-inner { position: absolute; left: -30%; top: -12%; width: 160%; height: 135%; display: flex; flex-direction: column; justify-content: space-around; transform: rotate(-28deg); }
.pcvb-pt-wm-line { white-space: nowrap; font-size: 34px; font-weight: 700; letter-spacing: 0.14em; text-align: center; color: rgba(20, 35, 55, 0.07); }

/* ====================== 1. EDITORIAL ====================== */
.pcvb-pt--editorial { --bg: #faf9f6; --accent: #e2613a; --ink: #1f2a30; --line: #dfe2e4; }
.pcvb-pt--editorial .pcvb-pt-bar { display: flex; align-items: center; gap: 12px; }
.pcvb-pt--editorial .pcvb-pt-dash { width: 30px; height: 4px; background: var(--accent); }
.pcvb-pt--editorial .pcvb-pt-hero { display: flex; justify-content: space-between; gap: 24px; margin-top: 18px; }
.pcvb-pt--editorial .pcvb-pt-hero-text { flex: 1 1 auto; min-width: 0; padding-top: 18px; }
.pcvb-pt--editorial .pcvb-pt-name { text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; color: #1d282e; }
.pcvb-pt--editorial .pcvb-pt-role { margin-top: 20px; }
.pcvb-pt--editorial .pcvb-pt-secondary { margin-top: 6px; font-size: 12.5px; color: var(--ink); }
.pcvb-pt--editorial .pcvb-pt-facts { margin-top: 26px; line-height: 2.1; font-size: 11.5px; }
.pcvb-pt--editorial .pcvb-pt-photo { flex: 0 0 190px; width: 190px; height: 240px; }
.pcvb-pt--editorial .pcvb-pt-stat { padding-right: 12px; }
.pcvb-pt--editorial .pcvb-pt-cols { margin-top: 30px; }
.pcvb-pt--editorial .pcvb-pt-career .pcvb-pt-entry { padding: 14px 0 14px; border-bottom: 1px solid var(--line); }
.pcvb-pt--editorial .pcvb-pt-career .pcvb-pt-entry:first-of-type { padding-top: 2px; }
.pcvb-pt--editorial .pcvb-pt-entry-club { margin-top: 3px; font-size: 17px; }
.pcvb-pt--editorial .pcvb-pt-entry-stats { margin-top: 6px; font-weight: 700; }

/* ====================== 2. PRECISION ====================== */
.pcvb-pt--precision { --bg: #ffffff; --accent: #1f5aa6; --ink: #14304d; --line: #e1e6ee; display: grid; grid-template-columns: 1fr 238px; padding: 0; }
.pcvb-pt--precision .pcvb-pt-main { display: flex; flex-direction: column; padding: 42px 30px 34px 43px; min-width: 0; }
.pcvb-pt--precision .pcvb-pt-name { margin-top: 30px; text-transform: uppercase; color: #14304d; }
.pcvb-pt--precision .pcvb-pt-role { margin-top: 16px; }
.pcvb-pt--precision .pcvb-pt-secondary { margin-top: 5px; }
.pcvb-pt--precision .pcvb-pt-lead { margin-top: 26px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.pcvb-pt--precision .pcvb-pt-stats-wrap { margin-top: 22px; }
.pcvb-pt--precision .pcvb-pt-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
.pcvb-pt--precision .pcvb-pt-stat { padding: 12px 16px; border-radius: 8px; background: #eaf0fa; }
.pcvb-pt--precision .pcvb-pt-stat-value { font-family: 'Inter', Arial, sans-serif; font-size: 30px; font-weight: 700; }
.pcvb-pt--precision .pcvb-pt-career { margin-top: 28px; }
.pcvb-pt--precision .pcvb-pt-h2 { color: var(--accent); }
.pcvb-pt--precision .pcvb-pt-entry { display: grid; grid-template-columns: 62px 1fr; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pcvb-pt--precision .pcvb-pt-entry-season { padding-top: 2px; font-size: 10px; }
.pcvb-pt--precision .pcvb-pt-entry-club { font-size: 14px; }
.pcvb-pt--precision .pcvb-pt-strengths { margin-top: 24px; }
.pcvb-pt--precision .pcvb-pt-contact { margin-top: 20px; }
.pcvb-pt--precision .pcvb-pt-side { display: flex; flex-direction: column; padding: 42px 20px 34px; background: #e9eff9; }
.pcvb-pt--precision .pcvb-pt-photo { width: 174px; height: 208px; margin: 38px auto 0; }
.pcvb-pt--precision .pcvb-pt-dl { margin-top: 30px; }
.pcvb-pt--precision .pcvb-pt-pair { margin-bottom: 18px; }
.pcvb-pt--precision .pcvb-pt-pair-k { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6c7fa0; }
.pcvb-pt--precision .pcvb-pt-pair-v { margin-top: 4px; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.pcvb-pt--precision .pcvb-pt-qrbox { margin-top: auto; padding-top: 20px; text-align: left; }
.pcvb-pt--precision .pcvb-pt-footer { margin-top: 22px; }

/* ====================== 3. ATELIER ====================== */
.pcvb-pt--atelier { --bg: #f6f3ec; --accent: #66744f; --ink: #34342b; --muted: #7a7a6e; --line: #d4d1c6; }
.pcvb-pt--atelier .pcvb-pt-hero { display: flex; justify-content: space-between; gap: 24px; margin-top: 22px; }
.pcvb-pt--atelier .pcvb-pt-hero-text { flex: 1 1 auto; min-width: 0; padding-top: 22px; }
.pcvb-pt--atelier .pcvb-pt-name { font-family: var(--serif); font-weight: 400; color: #34342b; }
.pcvb-pt--atelier .pcvb-pt-role { margin-top: 16px; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #6f6f60; }
.pcvb-pt--atelier .pcvb-pt-secondary { margin-top: 8px; }
.pcvb-pt--atelier .pcvb-pt-photo { flex: 0 0 150px; width: 150px; height: 176px; }
.pcvb-pt--atelier .pcvb-pt-detailline { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #6f6f60; }
.pcvb-pt--atelier .pcvb-pt-lead { margin: 20px 0 0; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.pcvb-pt--atelier .pcvb-pt-stats-wrap { margin-top: 0; }
.pcvb-pt--atelier .pcvb-pt-career { margin-top: 30px; }
.pcvb-pt--atelier .pcvb-pt-h2 { color: var(--accent); }
.pcvb-pt--atelier .pcvb-pt-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pcvb-pt--atelier .pcvb-pt-th-main,
.pcvb-pt--atelier .pcvb-pt-th-num { padding: 8px 0 10px; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; color: var(--muted); text-align: left; }
.pcvb-pt--atelier .pcvb-pt-th-num { width: 70px; text-align: left; }
.pcvb-pt--atelier .pcvb-pt-table td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.pcvb-pt--atelier .pcvb-pt-table-head th { text-transform: uppercase; }
.pcvb-pt--atelier .pcvb-pt-td-main { overflow-wrap: anywhere; }
.pcvb-pt--atelier .pcvb-pt-td-num { font-weight: 700; }
.pcvb-pt--atelier .pcvb-pt-entry-season { display: inline-block; width: 74px; vertical-align: top; }
.pcvb-pt--atelier .pcvb-pt-entry-club { display: inline-block; max-width: calc(100% - 82px); font-size: 12.5px; vertical-align: top; }
.pcvb-pt--atelier .pcvb-pt-entry-comp { margin-left: 74px; font-size: 11px; }
.pcvb-pt--atelier .pcvb-pt-cols { grid-template-columns: 1fr 1.25fr 1fr; gap: 0 28px; margin-top: 30px; }
.pcvb-pt--atelier .pcvb-pt-qrbox { margin-top: 16px; align-self: auto; }

/* ====================== 4. CONTINUUM ====================== */
.pcvb-pt--continuum { --bg: #f5f9f8; --accent: #1f7a6d; --ink: #1e2b30; --line: #cfe3df; }
.pcvb-pt--continuum .pcvb-pt-name { margin-top: 24px; font-family: var(--serif); font-weight: 400; }
.pcvb-pt--continuum .pcvb-pt-role { margin-top: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pcvb-pt--continuum .pcvb-pt-rule { margin: 22px 0 26px; }
.pcvb-pt--continuum .pcvb-pt-grid { display: grid; grid-template-columns: 200px 1fr; gap: 0 40px; }
.pcvb-pt--continuum .pcvb-pt-leftcol,
.pcvb-pt--continuum .pcvb-pt-rightcol { min-width: 0; }
.pcvb-pt--continuum .pcvb-pt-photo { width: 200px; height: 240px; }
.pcvb-pt--continuum .pcvb-pt-h2 { color: var(--accent); font-size: 10px; }
.pcvb-pt--continuum .pcvb-pt-details { margin-top: 28px; }
.pcvb-pt--continuum .pcvb-pt-detail { margin-bottom: 10px; font-size: 13px; overflow-wrap: anywhere; }
.pcvb-pt--continuum .pcvb-pt-stats { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 28px; margin-top: 4px; }
.pcvb-pt--continuum .pcvb-pt-stats-wrap { margin-top: 22px; }
.pcvb-pt--continuum .pcvb-pt-career { margin-top: 28px; }
.pcvb-pt--continuum .pcvb-pt-timeline { position: relative; padding-left: 32px; }
.pcvb-pt--continuum .pcvb-pt-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: #b5d3cd; }
.pcvb-pt--continuum .pcvb-pt-entry { position: relative; margin-bottom: 18px; }
.pcvb-pt--continuum .pcvb-pt-dot { position: absolute; left: -32px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.pcvb-pt--continuum .pcvb-pt-entry-club { margin-top: 3px; font-size: 16px; }
.pcvb-pt--continuum .pcvb-pt-entry-stats { color: var(--ink); font-weight: 500; }

/* ====================== 5. FORMA ====================== */
.pcvb-pt--forma { --bg: #fffdfa; --accent: #8c5e4e; --ink: #3a2e2a; --muted: #8a7c76; --line: #e7d9d1; padding-top: 0; }
.pcvb-pt--forma .pcvb-pt-band { margin: 0 -43px; padding: 34px 43px 26px; text-align: center; background: #f0e4dc; }
.pcvb-pt--forma .pcvb-pt-photo--round { width: 128px; height: 128px; margin: 18px auto 16px; border-radius: 50%; }
.pcvb-pt--forma .pcvb-pt-name { font-family: var(--serif); font-weight: 400; color: #3a2e2a; }
.pcvb-pt--forma .pcvb-pt-role { margin-top: 14px; font-size: 10.5px; color: #3a2e2a; }
.pcvb-pt--forma .pcvb-pt-detailline { margin-top: 20px; color: var(--accent); }
.pcvb-pt--forma .pcvb-pt-detailline--contract { margin-top: 4px; }
.pcvb-pt--forma .pcvb-pt-stats-wrap { margin-top: 22px; }
.pcvb-pt--forma .pcvb-pt-rule { margin: 18px 0; }
.pcvb-pt--forma .pcvb-pt-h2 { color: var(--accent); }
.pcvb-pt--forma .pcvb-pt-career .pcvb-pt-entry { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.pcvb-pt--forma .pcvb-pt-career .pcvb-pt-entry:first-of-type { padding-top: 0; }
.pcvb-pt--forma .pcvb-pt-entry-season { font-size: 9.5px; letter-spacing: 0.06em; }
.pcvb-pt--forma .pcvb-pt-entry-club { margin-top: 3px; font-size: 16px; }
.pcvb-pt--forma .pcvb-pt-entry-stats { color: var(--ink); font-weight: 500; }
.pcvb-pt--forma .pcvb-pt-list li::before { background: var(--accent); }

/* ====================== premium interface ====================== */

/*
 * Right column, top to bottom: heading, sticky picker bar, large A4 preview, PDF label with Full page preview, order
 * summary and checkout. Everything is in normal page flow: nothing here limits the height, so the A4 page is scaled by
 * width only (see makeZoom in pcvb-premium-ui.js) and the page simply scrolls. Only the slim picker bar is sticky.
 */
.pcvb-app[data-mode='premium'] .pcvb-previewpane { position: static; }
.pcvb-app[data-mode='premium'] .pcvb-preview-card { max-height: none; min-height: 0; }

.pcvb-premium { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pcvb-premium h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--pcvb-navy); }
.pcvb-premium-step { margin: 0; }
.pcvb-premium-hint { margin: 0 0 10px; font-size: 13px; color: var(--pcvb-muted); }
.pcvb-app .pcvb-btn-solid { background: var(--pcvb-navy); border-color: var(--pcvb-navy); color: #fff; }
.pcvb-app .pcvb-btn-solid:hover { background: #0a1f36; }

/* Header band */
.pcvb-prem-head {
	display: flex; align-items: center; gap: 12px; padding: 12px 18px;
	border: 1px solid #d9e6fb; border-radius: 8px; background: #eaf2ff;
}
.pcvb-prem-head-icon { flex: none; }
.pcvb-prem-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--pcvb-navy); }
.pcvb-prem-sub { margin: 2px 0 0; font-size: 13.5px; color: var(--pcvb-muted); }

/* Sticky picker bar: it stays at the top of the column while the page scrolls; the preview scrolls beneath it. */
.pcvb-prem-bar {
	position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px); z-index: 30;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px;
	border: 1px solid var(--pcvb-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(15, 42, 71, .1);
}
.pcvb-app .pcvb-prem-pick {
	flex: 1 1 230px; min-width: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 12px 4px 6px;
	border: 1px solid var(--pcvb-line); border-radius: 8px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pcvb-app .pcvb-prem-pick:hover { border-color: #a9bfe3; }
.pcvb-app .pcvb-prem-pick[aria-expanded='true'] { border-color: #2f6fd0; background: #eef4ff; }
.pcvb-app .pcvb-prem-pick:focus-visible { outline: 3px solid #7fb4ff; outline-offset: 2px; }
.pcvb-prem-pick-thumb { flex: none; width: 32px; }
.pcvb-prem-pick-thumb .pcvb-design-thumb { margin: 0; }
.pcvb-prem-pick-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pcvb-prem-pick-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--pcvb-muted); }
.pcvb-prem-pick-text strong { font-size: 15px; font-weight: 700; color: var(--pcvb-navy); }
.pcvb-prem-pick-change { flex: none; font-size: 13px; font-weight: 600; color: #2f6fd0; white-space: nowrap; }
.pcvb-prem-live {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 10px; border: 1px solid #bfe6c9;
	border-radius: 999px; background: #ecf8ef; color: #1d6b34; font-size: 13px; font-weight: 600;
}
.pcvb-prem-live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2f9e4f; }

/* Popover with every design (built from the designs list). A long list scrolls inside the popover only. */
.pcvb-prem-pop {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(70vh, 560px); overflow-y: auto;
	padding: 8px; border: 1px solid var(--pcvb-line); border-radius: 10px; background: #fff; box-shadow: 0 14px 34px rgba(15, 42, 71, .22);
}
.pcvb-prem-pop[hidden] { display: none; }
.pcvb-gallery { display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.pcvb-design {
	position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start;
	padding: 8px 40px 8px 8px; border: 2px solid var(--pcvb-line); border-radius: 8px; background: #fff;
	cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.pcvb-design:hover { border-color: #a9bfe3; }
.pcvb-design[data-selected='true'] { border-color: #2f6fd0; background: #eef4ff; box-shadow: 0 0 0 1px #2f6fd0 inset; }
.pcvb-design-thumb { position: relative; overflow: hidden; aspect-ratio: 210 / 297; border: 1px solid var(--pcvb-line); background: #f4f6f8; }
.pcvb-design-thumb svg { display: block; width: 100%; height: 100%; }
.pcvb-design-text { min-width: 0; }
.pcvb-design-name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--pcvb-navy); }
.pcvb-design-desc { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--pcvb-muted); }
/* Radio indicator (decorative: the stretched button below carries role=radio and the checked state). */
.pcvb-design-radio {
	position: absolute; top: 12px; right: 12px; box-sizing: border-box; width: 20px; height: 20px; border: 2px solid #9aa9bf;
	border-radius: 50%; background: #fff; pointer-events: none;
}
.pcvb-design[data-selected='true'] .pcvb-design-radio { border-color: #2f6fd0; background: radial-gradient(circle, #2f6fd0 0 4px, #fff 5px); }
.pcvb-app .pcvb-design-hit {
	position: absolute; inset: 0; z-index: 2; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 6px;
	background: transparent; cursor: pointer; font-size: 0; box-shadow: none;
}
.pcvb-app .pcvb-design-hit:focus-visible { outline: 3px solid #7fb4ff; outline-offset: 2px; }

/* The preview: the actual A4 page on a light panel, as wide as the column allows. */
.pcvb-premium-preview { padding: 8px; border-radius: 6px; background: #e6e8eb; }
.pcvb-premium-preview .pcvb-preview-viewport { max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px; }
@media (min-width: 768px) {
	.pcvb-premium-preview .pcvb-preview-viewport { padding: 0; background: transparent; }
}

/* Bottom actions: visually separated from the CV itself. */
.pcvb-prem-actions {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px;
	border: 1px solid var(--pcvb-line); border-radius: 8px; background: #fff;
}
.pcvb-prem-pdficon { flex: none; }
.pcvb-prem-actions-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pcvb-prem-actions-text strong { font-size: 14px; color: var(--pcvb-navy); }
.pcvb-prem-actions-text span { font-size: 12.5px; color: var(--pcvb-muted); }

/* Order summary and checkout (same elements as before). */
.pcvb-buy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 20px; padding: 14px; border: 1px solid var(--pcvb-line); border-radius: 8px; background: #fff; }
.pcvb-buy-note { margin: 0 0 8px; font-size: 12.5px; color: var(--pcvb-muted); }
.pcvb-buy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pcvb-app .pcvb-buy-actions .pcvb-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.pcvb-buy-status { grid-column: 1 / -1; margin: 0; padding: 8px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.pcvb-buy-status[data-kind='ok'] { background: var(--pcvb-green-soft); color: #1d6b34; }
.pcvb-buy-status[data-kind='error'] { background: var(--pcvb-red-soft); color: var(--pcvb-red); }
.pcvb-buy-status[data-kind='info'] { background: #eef3f8; color: var(--pcvb-navy); }
.pcvb-buy-status[hidden] { display: none; }
@media (min-width: 768px) {
	.pcvb-buy { grid-template-columns: minmax(0, 1fr) 250px; }
}

/* Phones: the bar wraps (design button on its own row, then Live and the view/zoom controls). */
@media (max-width: 767px) {
	.pcvb-prem-head { padding: 10px 12px; }
	.pcvb-prem-title { font-size: 17px; }
	.pcvb-prem-head-icon { width: 26px; height: 26px; }
	/* The two-row bar would cover too much of a phone screen, so on phones it scrolls with the page. */
	.pcvb-prem-bar { position: relative; top: auto; }
	.pcvb-prem-pick { flex-basis: 100%; }
	.pcvb-prem-pop { max-height: min(65vh, 480px); }
	.pcvb-design { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
}

/* A wide page layout: the form column stays a little narrower so the A4 page fits the right column at 100%. */
@media (min-width: 1280px) {
	.pcvb-app[data-mode='premium'] .pcvb-layout { grid-template-columns: minmax(440px, 5fr) minmax(0, 8fr); }
}

.pcvb-pt-cols--one { grid-template-columns: 1fr; }
.pcvb-pt--atelier .pcvb-pt-qrbox { text-align: left; }
.pcvb-pt--atelier .pcvb-pt-qr-label { text-align: left; }

/* A button with the hidden attribute must stay hidden (the shared button style sets display). */
.pcvb-app .pcvb-btn[hidden] { display: none; }


/* ====================== gallery with live thumbnails ====================== */
.pcvb-design-thumb { position: relative; overflow: hidden; }
.pcvb-thumb-skel[hidden],
.pcvb-thumb-live[hidden] { display: none; }
.pcvb-thumb-live { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.pcvb-thumb-live > div { position: absolute; left: 0; top: 0; width: 794px; transform-origin: 0 0; pointer-events: none; }

/* ====================== order summary and development panel ====================== */
.pcvb-order { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 10px; font-size: 14px; }
.pcvb-order dt { color: var(--pcvb-muted); }
.pcvb-order dd { margin: 0; font-weight: 600; color: var(--pcvb-navy); }
.pcvb-app .pcvb-btn-wide { width: 100%; min-height: 48px; font-size: 15px; }
.pcvb-download-box { margin-top: 12px; }
.pcvb-download-box[hidden] { display: none; }
.pcvb-buy-note { margin: 0 0 12px; }

.pcvb-devpanel { margin-top: 14px; padding: 12px 14px; border: 1px dashed #c9a24a; border-radius: 4px; background: #fffbf0; }
.pcvb-devpanel[hidden] { display: none; }
.pcvb-devpanel-title { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6a4a00; }
.pcvb-devpanel-note { margin: 0 0 10px; font-size: 12.5px; color: #6a4a00; }
.pcvb-devpanel .pcvb-linkbtn { color: #6a4a00; }

/* ====================== phone reading view for the premium preview ====================== */
.pcvb-premium-viewnote { display: none; }

@media (max-width: 767px) {
	.pcvb-premium[data-view='read'] .pcvb-zoom { display: none; }
	.pcvb-premium[data-view='read'] .pcvb-premium-viewnote { display: block; margin: 8px 0 0; }
	.pcvb-premium-preview .pcvb-preview-viewport.pcvb-reading { max-height: none; overflow: visible; padding: 0; background: transparent; }

	/* One-column reflow of the same template, at readable sizes (preview only; the PDF is the A4 design). */
	.pcvb-pt.pcvb-pt--m { width: 100%; min-height: 0; padding: 20px 16px 24px; display: block; font-size: 14px; }
	.pcvb-pt--m .pcvb-pt-name { font-size: clamp(26px, 9vw, 38px) !important; }
	.pcvb-pt--m .pcvb-pt-hero { display: flex; flex-direction: column-reverse; gap: 14px; margin-top: 14px; }
	.pcvb-pt--m .pcvb-pt-hero-text { padding-top: 0; }
	.pcvb-pt--m .pcvb-pt-hero .pcvb-pt-photo,
	.pcvb-pt--m .pcvb-pt-photo { width: 150px; height: 190px; flex: none; }
	.pcvb-pt--m .pcvb-pt-photo--round { width: 120px; height: 120px; }
	.pcvb-pt--m .pcvb-pt-cols,
	.pcvb-pt--m .pcvb-pt-grid { display: block; }
	.pcvb-pt--m .pcvb-pt-col + .pcvb-pt-col,
	.pcvb-pt--m .pcvb-pt-rightcol { margin-top: 22px; }
	.pcvb-pt--m .pcvb-pt-leftcol { margin-bottom: 8px; }
	.pcvb-pt--m .pcvb-pt-stats,
	.pcvb-pt--continuum.pcvb-pt--m .pcvb-pt-stats { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.pcvb-pt--m .pcvb-pt-foot { flex-direction: column; align-items: flex-start; }
	.pcvb-pt--m .pcvb-pt-facts { margin-top: 14px; line-height: 1.8; }
	.pcvb-pt--m .pcvb-pt-entry-club { font-size: 15px; }

	.pcvb-pt--precision.pcvb-pt--m { display: block; padding: 0; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-main { padding: 20px 16px 8px; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-side { padding: 18px 16px 24px; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-photo { margin: 0 0 18px; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-stats { grid-template-columns: 1fr 1fr; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-entry { grid-template-columns: 70px 1fr; }
	.pcvb-pt--precision.pcvb-pt--m .pcvb-pt-qrbox { margin-top: 12px; padding-top: 0; }

	.pcvb-pt--forma.pcvb-pt--m { padding-top: 0; }
	.pcvb-pt--forma.pcvb-pt--m .pcvb-pt-band { margin: 0 -16px; padding: 24px 16px 22px; }

	.pcvb-pt--continuum.pcvb-pt--m .pcvb-pt-name { margin-top: 14px; }
	.pcvb-pt--continuum.pcvb-pt--m .pcvb-pt-details { margin-top: 18px; }

	/* Atelier table: one block per season */
	.pcvb-pt--m .pcvb-pt-table thead { display: none; }
	.pcvb-pt--m .pcvb-pt-table,
	.pcvb-pt--m .pcvb-pt-table tbody,
	.pcvb-pt--m .pcvb-pt-table tr { display: block; width: 100%; }
	.pcvb-pt--m .pcvb-pt-table tr { padding: 10px 0; border-top: 1px solid var(--line); }
	.pcvb-pt--m .pcvb-pt-table td { display: inline-block; padding: 0; border: 0; }
	.pcvb-pt--m .pcvb-pt-table td.pcvb-pt-td-main { display: block; }
	.pcvb-pt--m .pcvb-pt-table .pcvb-pt-td-num { margin: 4px 14px 0 0; font-weight: 700; }
	.pcvb-pt--m .pcvb-pt-table .pcvb-pt-td-num:empty { display: none; }
	.pcvb-pt--m .pcvb-pt-table .pcvb-pt-td-num::before { content: attr(data-label) ' '; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; }
	.pcvb-pt--atelier.pcvb-pt--m .pcvb-pt-entry-season { display: block; width: auto; }
	.pcvb-pt--atelier.pcvb-pt--m .pcvb-pt-entry-club { display: block; max-width: none; }
	.pcvb-pt--atelier.pcvb-pt--m .pcvb-pt-entry-comp { margin-left: 0; }
}

/* ====================== CV preview on the WooCommerce pages (checkout, thank-you, My Account) ====================== */
.pcvb-cvprev { margin: 0 0 24px; max-width: 100%; }
.pcvb-cvprev-title { margin: 0 0 8px; font-size: 18px; }
.pcvb-cvprev-frame { position: relative; overflow: hidden; width: 100%; max-width: 992px; border: 1px solid #d5dde8; border-radius: 6px; background: #e6e8eb; }
.pcvb-cvprev-host { position: absolute; left: 0; top: 0; width: 794px; transform-origin: 0 0; pointer-events: none; background: #fff; }
.pcvb-cvprev-note { margin: 6px 0 0; font-size: 13px; color: #52627a; }
.pcvb-account-cvs { margin: 28px 0; }
.pcvb-account-cv { margin: 0 0 22px; }
.pcvb-account-cv .pcvb-cvprev { max-width: 420px; margin-bottom: 8px; }
/* Compact (checkout): a small thumbnail of the first page; "View larger" opens it up. */
.pcvb-cvprev--compact { max-width: 200px; margin: 0 0 18px; }
.pcvb-cvprev--compact .pcvb-cvprev-title { margin-bottom: 6px; font-size: 14px; }
.pcvb-cvprev--compact .pcvb-cvprev-note { font-size: 12px; }
.pcvb-cvprev--compact.pcvb-cvprev--open { max-width: 520px; }
.pcvb-cvprev-toggle { display: inline-block; margin: 6px 0 0; padding: 0; border: 0; background: none; color: #2f6fd0; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
/* Checkout: the small CV previews sit in a row above the form, outside the theme's checkout columns. */
.pcvb-checkout-cvs { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 24px; margin: 0 0 24px; }
.pcvb-checkout-cvs .pcvb-cvprev--compact { margin: 0; max-width: 160px; }
.pcvb-checkout-cvs .pcvb-cvprev--compact.pcvb-cvprev--open { max-width: 520px; }
.pcvb-checkout-cvs .pcvb-cvprev-note { display: none; }
.pcvb-checkout-cvs-note { flex: 1 1 100%; margin: 0; font-size: 13px; color: #52627a; }
