/* PYQ book sales page + buy box. Loaded only on page-pyq-book.php and /store/. Brand: #204181 royal, #C8262C red. */
.pb{--pb-blue:#204181;--pb-red:#C8262C}
.pb-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:40px;align-items:start;padding-top:28px;padding-bottom:48px}
.pb-eyebrow{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pb-red);margin-bottom:10px}
.pb h1{font-family:var(--serif);font-size:clamp(30px,4.2vw,48px);line-height:1.08;margin:0 0 16px;color:var(--text)}
.pb h1 em{font-style:normal;color:var(--pb-blue)}
[data-theme="dark"] .pb h1 em{color:#9db4ec}
.pb-lede{font-size:18px;line-height:1.6;color:var(--muted);max-width:60ch}
.pb-ticks{list-style:none;padding:0;margin:18px 0 22px;display:grid;gap:8px}
.pb-ticks li{padding-left:28px;position:relative;line-height:1.5}
.pb-ticks li::before{content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;background:var(--pb-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center/12px no-repeat}
.pb-covers{display:flex;gap:14px}
.pb-covers img{width:min(46%,240px);height:auto;border-radius:6px;box-shadow:0 18px 40px -18px rgba(18,26,46,.5)}
.pb-covers img+img{transform:translateY(18px)}
.pb-buy{position:sticky;top:84px;background:var(--surface);border:1px solid var(--border);border-top:4px solid var(--pb-blue);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.pb-buy-h{font-size:20px;margin:0 0 14px}
.bbx-opts{display:grid;gap:10px;margin-bottom:16px}
.bbx-opt{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"r h p" "r n n";gap:2px 10px;align-items:center;border:1.5px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;cursor:pointer;background:var(--surface)}
.bbx-opt input{grid-area:r;accent-color:#204181;width:18px;height:18px;margin:0}
.bbx-opt:has(input:checked){border-color:#204181;background:color-mix(in srgb,#204181 6%,var(--surface))}
.bbx-o-h{grid-area:h;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bbx-o-h em{font-style:normal;font-size:11px;font-weight:700;color:#fff;background:#C8262C;border-radius:99px;padding:2px 8px}
.bbx-o-h em.alt{background:#204181}
.bbx-price{grid-area:p;font-weight:800;font-size:20px;color:var(--text)}
.bbx-price s{color:#888;font-weight:400;font-size:.85rem;margin-right:4px}
.bbx-o-n{grid-area:n;font-size:13px;color:var(--muted);line-height:1.4}
.bbx-f{display:grid;gap:10px}
.bbx-f label{display:grid;gap:4px;font-size:13px;font-weight:600;color:var(--muted)}
.bbx-f input,.bbx-f textarea,.bbx-resend input{font:inherit;font-size:15px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text)}
.bbx-hp{position:absolute;left:-9999px;width:1px;height:1px}
.bbx-btn{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;margin-top:14px;padding:14px 18px;border:0;border-radius:12px;background:#C8262C;color:#fff;font:inherit;font-weight:700;font-size:16px;text-decoration:none;cursor:pointer;transition:filter .2s}
.bbx-btn:hover{filter:brightness(1.08)}
.bbx-btn[disabled],.bbx-btn[aria-disabled="true"]{opacity:.55;pointer-events:none}
.bbx-wa{background:#1f7a4d}
.bbx-ghost{background:#204181;width:auto}
.bbx-fine{font-size:12.5px;color:var(--faint);line-height:1.5;margin:10px 0 0}
.bbx-err{color:var(--bad);background:var(--bad-bg);border-radius:8px;padding:8px 10px;font-size:14px}
.bbx-done{border:1.5px solid var(--ok);background:var(--ok-bg);border-radius:var(--radius-sm);padding:16px;margin-bottom:16px}
.bbx-done h3{margin:6px 0;font-size:18px}
.bbx-tick{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--ok);color:#fff;font-weight:800}
.bbx-dls small{display:block;text-align:center;color:var(--muted);margin-top:4px}
.bbx-resend{margin-top:14px;font-size:14px}
.bbx-resend summary{cursor:pointer;color:#204181;font-weight:600}
[data-theme="dark"] .bbx-resend summary{color:#9db4ec}
.bbx-resend form{display:grid;gap:8px;margin-top:10px}
.bbx-resend label{display:grid;gap:4px}
.pb-band{background:#204181;color:#fff;padding:56px 0}
.pb-story{max-width:760px}
.pb-story h2{font-family:var(--serif);font-size:clamp(24px,3vw,34px);line-height:1.2;margin:0 0 16px;color:#fff}
.pb-story p{font-size:17px;line-height:1.7;color:rgba(255,255,255,.88)}
.pb-pull{border-left:4px solid #C8262C;padding-left:16px;font-size:20px!important;font-weight:600;color:#fff!important}
.pb-grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-top:48px;padding-bottom:24px}
.pb-num{font-weight:800;color:#C8262C;font-size:14px;letter-spacing:.1em}
.pb-grid3 h3{margin:6px 0 8px;font-size:20px}
.pb-grid3 p,.pb-books p,.pb-faq p{color:var(--muted);line-height:1.6}
.pb-inside,.pb-faq{padding-top:32px;padding-bottom:16px}
.pb-books{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.pb-books>div{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.pb-books h3{margin:0 0 6px;color:#204181}
[data-theme="dark"] .pb-books h3{color:#9db4ec}
.pb-sample a{font-weight:700;color:#C8262C}
.pb-faq details{border-bottom:1px solid var(--border);padding:12px 0}
.pb-faq summary{cursor:pointer;font-weight:600}
.pb-final{text-align:center;padding:56px 0;margin-top:32px;background:linear-gradient(135deg,#204181,#16306a)}
.pb-final h2{color:#fff;font-family:var(--serif);margin:0 0 18px}
.pb-cta{display:inline-block;background:#C8262C;color:#fff;font-weight:700;padding:14px 28px;border-radius:12px;text-decoration:none}
.store-pyq{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border:1px solid var(--border);border-left:5px solid #C8262C;border-radius:var(--radius);padding:16px 20px;margin:0 0 22px;background:var(--surface);text-decoration:none;color:var(--text)}
.store-pyq img{width:72px;height:auto;border-radius:4px}
.store-pyq b{display:block;font-size:18px}
.store-pyq span{color:var(--muted);font-size:14px}
.store-pyq i{font-style:normal;background:#204181;color:#fff;border-radius:10px;padding:10px 16px;font-weight:700;white-space:nowrap}
@media (max-width:900px){.pb-hero{grid-template-columns:1fr}.pb-buy{position:static}.pb-grid3,.pb-books{grid-template-columns:1fr}.store-pyq{grid-template-columns:auto 1fr}.store-pyq i{grid-column:1/-1;text-align:center}}
.bbx [hidden]{display:none!important}.bbx-opt.is-off{opacity:.55;cursor:not-allowed}.bbx-cta2{display:flex;gap:.5rem;flex-wrap:wrap;margin:.75rem 0}.bbx-cta2 .bbx-btn{flex:1 1 9rem;text-align:center}.bbx-help{display:block;font-size:.8rem;font-weight:400;color:#555;margin-top:.25rem}.bbx-pw{color:#C8262C}
.bbx-opt.is-off,.bbx-opt.is-off:hover{opacity:1;cursor:not-allowed;background:#f1f2f4;border-color:#d9dbe0;color:#8a8f98}.bbx-opt.is-off b,.bbx-opt.is-off .bbx-price,.bbx-opt.is-off .bbx-o-n{color:#8a8f98}.bbx-r-off{grid-area:r;width:18px;height:18px}.bbx-soon{font-style:normal;font-size:11px;font-weight:700;background:#e3e5e9;color:#6b7079;border-radius:999px;padding:2px 8px;margin-left:8px;white-space:nowrap}
.bbx a.bbx-btn,.bbx a.bbx-btn:link,.bbx a.bbx-btn:visited,.bbx a.bbx-btn:hover,.bbx a.bbx-btn:focus,.bbx a.bbx-btn:focus-visible,.bbx a.bbx-btn:active{color:#fff!important;text-decoration:none}

.bbx-btn.bbx-smp{flex-direction:column;gap:2px;line-height:1.2}.bbx-smp small{font-size:12px;font-weight:500;opacity:.9;color:#fff}

/* 14 Oct 2026: buybox CTAs — stacked full-width on mobile, outlined sample + solid buy */
@media (max-width:600px){
  .bbx-cta2{display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:12px;margin:.75rem 0}
  .bbx-cta2 .bbx-btn{flex:none;width:100%;margin-top:0;box-sizing:border-box}
  .bbx-cta2 .bbx-btn.bbx-smp,.bbx-cta2 .bbx-btn.bbx-ghost{background:#fff!important;color:#204181!important;border:2px solid #204181}
  .bbx-cta2 .bbx-btn.bbx-smp:hover,.bbx-cta2 .bbx-btn.bbx-ghost:hover{background:#204181!important;color:#fff!important}
  .bbx-cta2 .bbx-btn.bbx-go{background:#C8262C;color:#fff!important;border:0}
  .bbx-cta2 .bbx-smp small{color:inherit;opacity:.85}
}
