.ptbb{--pt-blue:#2387ff;--pt-blue2:#59b1ff;--pt-bg:#071019;--pt-card:#0d1823;--pt-border:#213141;--pt-text:#f4f8fb;--pt-muted:#9eb0bf;color:var(--pt-text);background:linear-gradient(145deg,#050b10,#0b1721);border:1px solid var(--pt-border);border-radius:22px;padding:clamp(18px,3vw,36px);box-shadow:0 24px 70px rgba(0,0,0,.28);margin:24px 0}.ptbb *{box-sizing:border-box}.ptbb button,.ptbb select,.ptbb input{font:inherit}.ptbb-hero{text-align:center;max-width:820px;margin:0 auto 28px}.ptbb-kicker{display:inline-block;color:var(--pt-blue2);font-size:12px;font-weight:800;letter-spacing:.18em;margin-bottom:8px}.ptbb-hero h1{color:#fff;font-size:clamp(32px,5vw,52px);line-height:1;margin:0 0 12px}.ptbb-hero p{color:var(--pt-muted);font-size:17px;margin:0 auto 18px}.ptbb-tiers{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.ptbb-tiers span{border:1px solid var(--pt-border);background:#0c1721;color:#b9c7d2;border-radius:999px;padding:7px 11px;font-size:12px}.ptbb-tiers strong{color:#fff}.ptbb-progress{display:grid;grid-template-columns:repeat(var(--ptbb-step-count,5),minmax(0,1fr));gap:8px;margin:0 0 24px}.ptbb-progress-step{display:flex;align-items:center;gap:8px;justify-content:center;background:#0b151e;border:1px solid var(--pt-border);color:#8fa4b3;border-radius:12px;padding:10px 8px;cursor:pointer;font-size:13px}.ptbb-progress-step span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#152331;color:#bcd0de;font-weight:800}.ptbb-progress-step.is-active{border-color:var(--pt-blue);color:#fff;box-shadow:0 0 0 1px rgba(35,135,255,.15) inset}.ptbb-progress-step.is-active span{background:var(--pt-blue);color:#fff}.ptbb-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}.ptbb-step{display:none}.ptbb-step.is-active{display:block}.ptbb-step-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:16px}.ptbb-step-heading span{color:var(--pt-blue2);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.ptbb-step-heading h2{color:#fff;font-size:28px;margin:2px 0 0}.ptbb-skip{border:0;background:transparent;color:#9eb0bf;text-decoration:underline;cursor:pointer}.ptbb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ptbb-card{position:relative;display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;background:var(--pt-card);border:1px solid var(--pt-border);border-radius:16px;padding:14px;transition:.18s ease}.ptbb-card:hover{border-color:#36536d;transform:translateY(-1px)}.ptbb-card.is-selected{border-color:var(--pt-blue);box-shadow:0 0 0 1px rgba(35,135,255,.2),0 12px 34px rgba(0,0,0,.22)}.ptbb-card.is-unavailable{opacity:.55}.ptbb-card-select{position:absolute;top:12px;right:12px;z-index:2}.ptbb-card-select input{position:absolute;opacity:0;pointer-events:none}.ptbb-check{display:block;width:25px;height:25px;border:1px solid #415669;border-radius:8px;background:#0b141c;cursor:pointer}.ptbb-card.is-selected .ptbb-check{background:var(--pt-blue);border-color:var(--pt-blue)}.ptbb-card.is-selected .ptbb-check:after{content:'✓';display:grid;place-items:center;color:#fff;font-weight:900;height:100%}.ptbb-image{background:#071019;border-radius:12px;overflow:hidden;aspect-ratio:1/1;display:grid;place-items:center}.ptbb-image img{width:100%;height:100%;object-fit:contain;margin:0}.ptbb-card-body{min-width:0;padding-right:25px}.ptbb-card h3{color:#fff;font-size:15px;line-height:1.3;margin:0 0 8px}.ptbb-full-price{display:inline-block;color:#a9c8df;background:#102535;border-radius:7px;padding:3px 6px;font-size:10px;margin-bottom:8px}.ptbb-price{color:#fff;font-weight:800;margin-bottom:8px}.ptbb-field-label{display:block;color:#879cab;font-size:11px;text-transform:uppercase;letter-spacing:.05em;margin:8px 0 4px}.ptbb select,.ptbb input[type=number]{width:100%;background:#08121b!important;color:#eaf3f9!important;border:1px solid #2a3c4b!important;border-radius:9px!important;padding:8px!important;min-height:38px}.ptbb-qty{max-width:80px}.ptbb-unavailable{display:block;color:#d8a4a4;font-size:12px;margin-top:8px}.ptbb-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.ptbb-nav button,.ptbb-add{border:1px solid #2b4154;border-radius:11px;padding:11px 18px;background:#101d28;color:#fff;cursor:pointer;font-weight:750}.ptbb-next,.ptbb-review,.ptbb-add{background:linear-gradient(135deg,var(--pt-blue),#1568cf)!important;border-color:transparent!important}.ptbb-nav button:disabled,.ptbb-add:disabled{opacity:.4;cursor:not-allowed}.ptbb-summary{position:sticky;top:24px}.ptbb-summary-card{background:#08121b;border:1px solid var(--pt-border);border-radius:18px;padding:18px;box-shadow:0 16px 40px rgba(0,0,0,.2)}.ptbb-summary h2{color:#fff;margin:0 0 14px;font-size:22px}.ptbb-empty{color:#7f93a3;font-size:13px}.ptbb-summary-item{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #172735;font-size:12px}.ptbb-summary-item strong{display:block;color:#eaf2f8;line-height:1.3}.ptbb-summary-item small{display:block;color:#7f96a7;margin-top:3px}.ptbb-summary-item>span{white-space:nowrap;color:#d6e4ee}.ptbb-summary-totals{padding:12px 0}.ptbb-summary-totals>div{display:flex;justify-content:space-between;gap:12px;color:#a4b5c2;padding:4px 0;font-size:13px}.ptbb-saving-row strong{color:#8cc7ff}.ptbb-total-row{border-top:1px solid #223442;margin-top:7px;padding-top:11px!important;font-size:17px!important;color:#fff!important}.ptbb-total-row strong{color:#fff}.ptbb-unlock{background:#0d1a24;border:1px solid #22394c;color:#9eb0bf;border-radius:10px;padding:10px;font-size:12px;margin-bottom:12px}.ptbb-unlock.is-unlocked{border-color:#1e5890;color:#bfe0ff}.ptbb-add{width:100%;font-size:15px}.ptbb-message{font-size:12px;color:#a8e3ba;margin-top:10px}.ptbb-message.is-error{color:#ffb6b6}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:1020px){.ptbb-layout{grid-template-columns:1fr}.ptbb-summary{position:static}.ptbb-summary-card{max-width:none}.ptbb-progress{grid-template-columns:repeat(3,1fr)}}@media(max-width:680px){.ptbb{padding:16px;border-radius:15px}.ptbb-progress{display:flex;overflow:auto;padding-bottom:4px}.ptbb-progress-step{min-width:125px}.ptbb-grid{grid-template-columns:1fr}.ptbb-card{grid-template-columns:88px minmax(0,1fr)}.ptbb-step-heading{align-items:flex-start}.ptbb-tiers{display:grid;grid-template-columns:1fr 1fr}.ptbb-nav button{flex:1}}

/* v0.1.2 — give the builder more room on desktop, even when the theme uses a narrow page-content column. */
@media (min-width:1100px){
  .ptbb{
    width:min(1320px,calc(100vw - 56px));
    max-width:none;
    position:relative;
    left:50%;
    transform:translateX(-50%);
    padding:38px 42px;
  }
  .ptbb-layout{
    grid-template-columns:minmax(0,1fr) 350px;
    gap:32px;
  }
  .ptbb-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .ptbb-card{
    grid-template-columns:126px minmax(0,1fr);
    gap:18px;
    padding:18px;
    min-height:190px;
  }
  .ptbb-card h3{
    font-size:16px;
    line-height:1.35;
  }
  .ptbb-image{
    border-radius:14px;
  }
  .ptbb-summary-card{
    padding:22px;
  }
}

/* v0.1.3 — live WooCommerce stock limits in the builder. */
.ptbb-stock-note{display:block;color:#7fa6c3;font-size:11px;margin-top:5px}
.ptbb-qty:disabled{opacity:.55;cursor:not-allowed}

/* v0.1.4 — clearer category progress, stock visibility and review screen. */
.ptbb-progress-status{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:-10px 0 24px;padding:10px 14px;border:1px solid #1d3447;border-radius:12px;background:#09151f;color:#91a8b8;font-size:12px}.ptbb-progress-status strong{color:#dcebf5}.ptbb-progress-step.is-complete{border-color:#285f8c;color:#cfe8fb}.ptbb-progress-step.is-complete span{background:#174b75;color:#fff}.ptbb-progress-step.is-complete:not(.is-active) span:after{content:'✓';font-size:12px}.ptbb-progress-step.is-complete:not(.is-active) span{font-size:0}.ptbb-stock-note{color:#7fa6c3}.ptbb-review-panel[hidden]{display:none!important}.ptbb-review-panel{display:block}.ptbb-review-list{display:grid;gap:14px}.ptbb-review-group{background:#0b1721;border:1px solid var(--pt-border);border-radius:15px;padding:15px 17px}.ptbb-review-group h3{color:var(--pt-blue2);font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 5px}.ptbb-review-item{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #182a38}.ptbb-review-item:last-child{border-bottom:0}.ptbb-review-item strong{display:block;color:#edf5fa}.ptbb-review-item small{display:block;color:#8198a9;margin-top:3px}.ptbb-review-item>span{white-space:nowrap;color:#e7f2f8;font-weight:700}.ptbb-review-totals{margin-top:16px;background:#08121b;border:1px solid var(--pt-border);border-radius:15px;padding:15px 17px}.ptbb-review-totals>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;color:#a9bbc8}.ptbb-review-totals strong{color:#eaf4fa}.ptbb-review-grand{border-top:1px solid #263947;margin-top:7px;padding-top:12px!important;font-size:18px;color:#fff!important}.ptbb-review-grand strong{color:#fff}.ptbb-review-add{width:auto;min-width:190px}.ptbb-review-message{margin-top:10px}
@media(max-width:680px){.ptbb-progress-status{justify-content:flex-start}.ptbb-review-item{font-size:12px}.ptbb-review-add{min-width:0}}

/* v0.2.0 — Research Kit Builders hub and guided-builder navigation. */
.ptbb-hub{--pt-blue:#2387ff;--pt-blue2:#59b1ff;--pt-bg:#071019;--pt-card:#0d1823;--pt-border:#213141;--pt-text:#f4f8fb;--pt-muted:#9eb0bf;box-sizing:border-box;color:var(--pt-text);background:linear-gradient(145deg,#050b10,#0b1721);border:1px solid var(--pt-border);border-radius:22px;padding:clamp(22px,4vw,44px);box-shadow:0 24px 70px rgba(0,0,0,.28);margin:24px 0}.ptbb-hub *{box-sizing:border-box}.ptbb-hub-hero{text-align:center;max-width:800px;margin:0 auto 32px}.ptbb-hub-hero h1{color:#fff;font-size:clamp(34px,5vw,54px);line-height:1.02;margin:0 0 12px}.ptbb-hub-hero p{color:var(--pt-muted);font-size:17px;margin:0}.ptbb-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ptbb-hub-card{position:relative;display:flex;flex-direction:column;min-height:310px;padding:24px;border:1px solid var(--pt-border);border-radius:18px;background:linear-gradient(155deg,#0d1924,#09131d);overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.ptbb-hub-card:before{content:'';position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#2387ff,#59b1ff);opacity:.9}.ptbb-hub-card:hover{transform:translateY(-3px);border-color:#315676;box-shadow:0 18px 42px rgba(0,0,0,.24)}.ptbb-hub-card__eyebrow{color:var(--pt-blue2);font-size:11px;font-weight:900;letter-spacing:.12em;margin-bottom:15px}.ptbb-hub-card h2{color:#fff!important;font-size:24px!important;line-height:1.15!important;margin:0 0 13px!important}.ptbb-hub-card p{color:#9db0bf!important;font-size:14px!important;line-height:1.65!important;margin:0 0 22px!important}.ptbb-hub-card__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:auto;align-self:flex-start;padding:10px 15px;border:1px solid #2b80d0;border-radius:10px;background:#0d2133;color:#69b5ff!important;text-decoration:none!important;font-weight:800;font-size:13px}.ptbb-hub-card__button:hover{background:#2387ff;color:#fff!important}.ptbb-hub-note{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px;padding:13px 16px;border:1px solid #1d3447;border-radius:12px;background:#09151f;color:#91a8b8;font-size:12px}.ptbb-hub-note strong{color:#dcebf5}.ptbb-hub-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;color:#72baff!important;text-decoration:none!important;font-size:13px;font-weight:750}.ptbb-hub-back:hover{text-decoration:underline!important}
@media(min-width:1100px){.ptbb-hub{width:min(1320px,calc(100vw - 56px));max-width:none;position:relative;left:50%;transform:translateX(-50%)}}
@media(max-width:900px){.ptbb-hub-grid{grid-template-columns:1fr}.ptbb-hub-card{min-height:0}.ptbb-hub-card__button{align-self:stretch}}
@media(max-width:680px){.ptbb-hub{padding:18px;border-radius:15px}.ptbb-hub-hero{margin-bottom:22px}.ptbb-hub-hero p{font-size:15px}.ptbb-hub-card{padding:20px}.ptbb-hub-card h2{font-size:21px!important}}
.ptbb-hub-card.is-disabled{opacity:.72}.ptbb-hub-card.is-disabled:hover{transform:none;border-color:var(--pt-border);box-shadow:none}.ptbb-hub-card__button--disabled{cursor:default;opacity:.7;border-color:#334454;color:#8da0af!important;background:#0b151e}.ptbb-hub-card__button--disabled:hover{background:#0b151e;color:#8da0af!important}


/* v0.2.2 — live next-discount progress. */
.ptbb-tiers span{transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;position:relative}.ptbb-tiers span.is-earned{border-color:#2877b7;background:#0d2940;color:#d9efff}.ptbb-tiers span.is-earned strong{color:#67baff}.ptbb-tiers span.is-earned:after{content:'✓';margin-left:6px;color:#75c5ff;font-weight:900}.ptbb-tiers span.is-next{border-color:#3d91d8;background:#0c2132;color:#fff;box-shadow:0 0 0 1px rgba(61,145,216,.15),0 8px 22px rgba(0,0,0,.12);transform:translateY(-1px)}.ptbb-tiers span.is-next:before{content:'NEXT';display:inline-block;margin-right:6px;padding:2px 5px;border-radius:999px;background:#2387ff;color:#fff;font-size:8px;font-weight:900;letter-spacing:.06em;vertical-align:1px}.ptbb-progress-status{border-color:#23445e}.ptbb-progress-copy{color:#a9c4d8}
