/* Card builder: fitting Website Design's mockup (card-builder.css, generated from cc.css) into the owner dashboard. Builder-only, .cb scope. */
.cb .cb-head h2{font-size:28px;letter-spacing:-.8px;line-height:1.15}
.cb .cb-head .muted{margin-top:4px;font-size:13px}
.cb .cb-steps{padding:0;margin:18px 0 14px}
.cb .cb-steps li{cursor:pointer}
.cb .cb-bd{padding:22px 0 24px}
.cb .cb-step>h2{font-size:23px;letter-spacing:-.6px;line-height:1.15}
.cb .cb-done{padding:22px 0 24px}
.cb .cb-done h2{font-size:23px;letter-spacing:-.6px}
/* every card preview is drawn 340px wide and scaled (zoom) to the space it has */
.cb .cb-zoomer{display:flex;justify-content:center;width:100%;overflow:visible}
.cb .cb-fix{width:340px;flex:none}
.cb .cb-pv .cb-pass-wrap{max-width:340px;margin:0 auto}
.cb .cb-pv .cb-tg{max-width:100%}
.cb .cb-pv .cb-tg button{padding:6px 12px}
/* Android (Google Wallet) look: the hero is the stamp strip of the same card */
.cb .cb-gp .cb-gh img{object-fit:cover;background:#fff}
.cb .cb-gp .cb-gh span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb .cb-gp .cb-gf i{overflow:hidden;text-overflow:ellipsis;max-width:180px}
.cb .cb-hero .pass{border-radius:0;box-shadow:none}
.cb .cb-hero .pass>.ph,.cb .cb-hero .pass .fl,.cb .cb-hero .pass .qr{display:none}
.cb .cb-bc .cb-qw svg{display:block;width:100%;height:auto}
.cb .cb-stage .pass .qr{width:118px;height:118px;padding:8px;margin:6px auto 18px}
/* step 1 */
.cb .cb-upl{cursor:pointer}
.cb .cb-upl img{object-fit:cover;background:#fff}
.cb .cb-upl .btn.sm{width:auto;padding:0 14px}
.cb .cb-lgph{width:64px;height:64px;border-radius:50%;flex:none;background:var(--bg);display:grid;place-items:center;color:var(--sub)}
.cb .cb-opt{width:100%;background:#fff;font:inherit;color:inherit;text-align:left;cursor:pointer}
.cb .cb-opt.sel{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.cb .cb-opt.sel .cb-radio{border:6px solid var(--ink)}
.cb .cb-info b{font-weight:650}
/* step 2 */
.cb .cb-inds{margin-top:16px}
.cb .cb-inds .chip{padding:7px 12px;font-size:13px}
.cb .cb-ph{margin-top:12px}
.cb .cb-ph button.busy{opacity:.55}
.cb .cb-ph.cb-own .cb-up{border-style:solid;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.cb .cb-plain{margin-top:12px;padding:10px 14px}
.cb .cb-plain .cb-lt{width:36px;height:36px;border-radius:11px;box-shadow:inset 0 1px 0 #fff3,0 3px 8px #0000002a}
/* Change colour = the existing 'Own colour' picker (bgedit.js picker: saturation square, hue slider, hex field) */
.cb .cb-pal{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.cb .cb-pal .lab2{font-size:12px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:var(--mut);margin-bottom:10px}
.cb .cb-icon{margin-top:18px;border:1px solid var(--line);border-radius:18px;padding:12px 14px}
.cb .cb-icon summary{cursor:pointer;font-weight:650;font-size:14.5px}
.cb .cb-icon #icons{margin-top:12px}
/* the background editor is only used for its crop screen (own photo) and its Wallet exports */
.cb .bge .bgtabs,.cb .bge [data-bp=colours],.cb .bge [data-bp=own],.cb .bge .wal,.cb .bge .pset,.cb .bge .up,.cb .bge [data-bp=photo]>.lab2,.cb .bge .plib{display:none!important}
.cb .bge .crop{margin-top:14px}
/* step 3 */
.cb .cb-segb.cb-segb4{grid-template-columns:repeat(4,1fr)}
.cb .cb-chips .chip{cursor:pointer}
.cb .cb-midbtn{display:block;margin-top:16px}
/* step 4 + done */
.cb .cb-count{margin-top:14px;font-size:13px;color:var(--sub);text-align:center}
.cb .cb-poster svg{display:block;width:100%;height:auto}
.cb .cb-poster img.cb-l{object-fit:cover;background:#fff}
.cb .cb-dl .btn{width:100%}
.cb .cb-link .btn.sm{width:auto;padding:0 14px}
/* bottom bar: sticky inside the page (above the phone menu bar), not fixed to the window */
.cb .cb-bar{position:sticky;left:auto;right:auto;bottom:0;margin:0 -34px;padding:14px 34px;align-items:center}
.cb .cb-bar .btn{width:auto}
.cb .cb-bar .cb-grow{flex:1;display:none;align-items:center;font-size:13px;color:var(--mut)}
/* More settings: the shop info fields, unchanged, below the builder */
.cb-more{margin-top:26px;border:1px solid var(--line);border-radius:18px;padding:0;max-width:720px}
.cb-more>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;flex-direction:column;gap:2px}
.cb-more>summary::-webkit-details-marker{display:none}
.cb-more>summary b{font-size:16px;display:flex;justify-content:space-between}
.cb-more>summary b:after{content:"+";font-weight:500;color:var(--mut)}
.cb-more[open]>summary b:after{content:"–"}
.cb-more>summary small{font-size:12.5px;color:var(--mut)}
.cb-more .cb-more-in{padding:0 14px 16px;display:grid;gap:12px}
section[data-s=card][data-part=info] .cb-more{margin-top:10px}
@media(max-width:860px){
 .cb .cb-bar{margin:0 -16px;padding:12px 16px;bottom:calc(61px + env(safe-area-inset-bottom))}
 .cb .cb-pv.prevbox{margin:0 -16px;padding:12px 16px 16px}
 /* 21.11 jitter fix: the stage is as tall as the taller (Google) card, so iPhone/Android tabs never change the height; no mini/zoom toggle any more: the preview keeps one size (Huy 21.11) */
 .cb .cb-pv #prev{min-height:calc(min(340px,100vw - 32px)*1.16)}
 .cb .cb-head h2{font-size:24px}
}
@media(min-width:1024px){
 .cb .cb-dcols{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:36px;align-items:start}
 .cb .cb-pv{order:2;position:sticky;top:24px;border-radius:24px;padding:18px 20px 22px}
 .cb .cb-bd,.cb .cb-done{order:1;padding-top:6px}
 .cb[data-step="4"] .cb-dcols,.cb[data-step="5"] .cb-dcols{grid-template-columns:minmax(0,720px)}
 .cb .cb-ph{grid-template-columns:1fr 1fr 1fr}
 .cb .cb-ph .cb-up{grid-column:auto;height:auto;aspect-ratio:375/144}
 .cb .cb-bar{justify-content:flex-end}
 .cb .cb-bar .cb-grow{display:flex}
 .cb .cb-bar .btn.cb-pri{flex:none;min-width:200px}.cb .cb-bar .btn.ghost{min-width:120px}
}
.cb .cb-bar .btn,.cb .cb-upl .btn,.cb .cb-link .btn,.cb .cb-dl .btn{margin-top:0}
/* 21.11 Huy 20:35: compact-on-scroll preview (cbcompact.js). Shrinks from scroll 0; reserved height shrinks with it (negative margin), .pvspace gives it back at the end; its look moves to .pvbg */
@media(max-width:1023.98px){
 .cb .pvspace{height:0;margin:0;padding:0;pointer-events:none}
 html:has(.cb-pv.pvc),body:has(.cb-pv.pvc){overflow-anchor:none}
 .cb .cb-pv.pvc{background:transparent!important;box-shadow:none!important;overflow-anchor:none}
 .cb .cb-pv.pvc>.pvbg{position:absolute;left:0;right:0;top:0;height:100%;z-index:0;background:var(--bg,#fff);border-radius:0 0 22px 22px;box-shadow:0 10px 24px #0000000f;pointer-events:auto}
 .cb .cb-pv.pvc>:not(.pvbg){position:relative;z-index:1}
 .cb .cb-pv.pvc>.cb-pass-wrap,.cb .cb-pv.pvc>#prev{transform-origin:top center;will-change:transform}
 .cb .cb-pv.pvc.pvsm{pointer-events:none}
 .cb .cb-pv.pvc.pvsm>.pvbg{pointer-events:auto}
}
/* 21.11 Huy 21:13: step 3 '+' after 10 stamps; above 10 a selected chip with '−' (same look as the selected segment) */
.cb .cb-segb.cb-segbp .cb-sinc{font-size:22px;font-weight:600;color:var(--ink);padding:8px 4px}
.cb .cb-segb.cb-segbp .cb-sinc:disabled{opacity:.35}
.cb .cb-segb .cb-sbig{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:11px;box-shadow:0 1px 3px #0000001f;padding:0 2px;min-width:0}
.cb .cb-segb .cb-sbig b{font-weight:650;font-size:15px;color:var(--ink)}
.cb .cb-segb .cb-sbig button{padding:10px 8px;font-size:20px;color:var(--ink);font-weight:600;min-width:36px}
/* 21.11 Huy 21:14: the 3 discount chips (10% / 20% / 30%) as even pills, tick inline */
.cb #cbsugg .chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:76px;padding:9px 16px;font:inherit;font-size:15px;font-weight:650;white-space:nowrap;color:var(--ink)}
.cb #cbsugg .chip svg{width:15px;height:15px;flex:none}
.cb #cbsugg .chip.on{background:var(--ink,#0F172A);color:#fff;border-color:transparent}
