/* TG-STUDIOFLOW-1103 quantity sheet + Done summary (flat 2D, #f4f4f4 / #e6e6e6) */
.tsf-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
.tsf-ov[hidden]{display:none!important}
html.ts-lock body>#tsf-ov.tsf-ov:not([hidden]),#tsf-ov.tsf-ov:not([hidden]){display:flex!important}
.tsf-sheet{background:#fff;width:100%;max-width:520px;max-height:92vh;overflow:auto;border-radius:10px 10px 0 0;padding:10px;box-sizing:border-box;font:14px/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#111}
@media (min-width:768px){.tsf-ov{align-items:center}.tsf-sheet{border-radius:8px}}
.tsf-h{display:flex;justify-content:space-between;align-items:center;padding:5px}
.tsf-h b{font-size:17px}
.tsf-x{background:#f4f4f4;border:1px solid #e6e6e6;border-radius:6px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;padding:5px}
.tsf-x svg{width:16px;height:16px}
.tsf-min,.tsf-lab{margin:5px;color:#555;font-size:13px}
.tsf-chips{display:flex;flex-wrap:wrap;gap:5px;padding:5px}
.tsf-chip{background:#f4f4f4;border:1px solid #e6e6e6;border-radius:18px;padding:5px 14px;font-weight:600;min-width:52px;color:#111}
.tsf-chip.is-on{background:#111;color:#fff;border-color:#111}
.tsf-rows{display:flex;gap:5px;padding:5px;overflow-x:auto}
.tsf-r{display:flex;flex-direction:column;align-items:center;gap:3px;background:#f4f4f4;border:1px solid #e6e6e6;border-radius:6px;padding:5px;min-width:58px;flex:1}
.tsf-r b{font-size:12px}
.tsf-r button{width:100%;height:28px;background:#fff;border:1px solid #e6e6e6;border-radius:4px;font-size:16px;line-height:1;color:#111}
.tsf-r input{width:100%;min-width:44px;height:30px;text-align:center;border:1px solid #e6e6e6;border-radius:4px;font-weight:700;font-size:15px;-moz-appearance:textfield}
.tsf-r input::-webkit-inner-spin-button{-webkit-appearance:none}
.tsf-tot{display:flex;justify-content:space-between;align-items:center;margin:5px;padding:8px;background:#f4f4f4;border:1px solid #e6e6e6;border-radius:6px}
.tsf-tot b{font-size:16px}
.tsf-nudge{margin:5px;font-size:13px;color:#1b6e2d}
.tsf-err{margin:5px;color:#c8202f;font-weight:600}
.tsf-warn{margin:5px;padding:5px;background:#fff6db;border:1px solid #f0dc9a;border-radius:4px;font-size:13px}
.tsf-wa{display:block;margin:5px;padding:9px;text-align:center;background:#f4f4f4;border:1px solid #25d366;color:#128c3e;border-radius:6px;font-weight:700;text-decoration:none}
.tsf-go{display:block;width:calc(100% - 10px);margin:5px;padding:12px;background:#111;color:#fff;border:0;border-radius:6px;font-weight:700;font-size:15px}
.tsf-go[disabled]{background:#bbb}
#tees-studio.tsf .tsf-qc{list-style:none}
#tees-studio.tsf .tsf-qbtn{background:#f4f4f4;border:1px solid #e6e6e6;border-radius:16px;padding:5px 10px;font-weight:600;font-size:13px;color:#111;white-space:nowrap}
#tees-studio .tsf-th{display:flex;gap:5px;flex-wrap:wrap;padding:5px}
#tees-studio .tsf-th figure{margin:0;width:110px;text-align:center;font-size:12px}
#tees-studio .tsf-th img{width:110px;height:110px;object-fit:contain;background:#f4f4f4;border:1px solid #e6e6e6;border-radius:4px}
.tsf-x svg path{stroke:#111;stroke-width:2;fill:none;stroke-linecap:round}
.tsf-one .tsf-r{flex-direction:row;justify-content:space-between}
.tsf-one .tsf-r b{flex:1;font-size:14px}
.tsf-one .tsf-r button{width:44px;height:40px}
.tsf-one .tsf-r input{width:90px;flex:0 0 90px;height:40px}

/* TG-STUDIOFLOW-1103 round3: compact size grid, all sizes fit at 360px, >5 sizes wrap to 2 rows */
#tsf-ov .tsf-rows{display:grid;grid-template-columns:repeat(var(--c,4),minmax(0,1fr));gap:5px;padding:5px 0;overflow:visible}
#tsf-ov .tsf-r{min-width:0;padding:5px 3px;gap:3px}
#tsf-ov .tsf-r b{font-size:12px;white-space:nowrap}
#tsf-ov .tsf-r button{height:30px;padding:0;min-width:0}
#tsf-ov .tsf-r input{min-width:0;width:100%;height:30px;padding:0;font-size:15px;box-sizing:border-box}
#tsf-ov.tsf-one .tsf-r input{width:90px}

/* TG-SIZEBTN-1103 START — one compact row per size: [−] [qty] [+]; #111 steppers, white qty, #f4f4f4 card */
#tsf-ov:not(.tsf-one) .tsf-r{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto 36px;align-items:center;gap:4px 3px;background:#f4f4f4;border:1px solid #e6e6e6;border-radius:6px;padding:5px;min-width:0}
#tsf-ov:not(.tsf-one) .tsf-r>b{grid-column:1/-1;text-align:center;font-size:12px;font-weight:700;color:#111;white-space:nowrap}
#tsf-ov .tsf-r button{background:#111;color:#fff;border:0;border-radius:6px;font-weight:700;font-size:18px;line-height:1;height:36px;width:100%;min-width:0;padding:0;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation}
#tsf-ov .tsf-r button:active{background:#333}
#tsf-ov .tsf-r input{background:#fff;border:1px solid #e6e6e6;border-radius:6px;font-weight:700;font-size:15px;color:#111;height:36px;width:100%;min-width:0;padding:0;text-align:center;box-sizing:border-box}
#tsf-ov .tsf-r:has(input:not([value="0"]):not([value=""])){border-color:#111}
#tsf-ov.tsf-one .tsf-r button{width:44px;height:40px}
#tsf-ov.tsf-one .tsf-r input{width:90px;height:40px}
/* TG-SIZEBTN-1103 END */

/* TG-MUGSTUDIO-1103 START — mug 1234 has no colour options: hide the garment-colour dots in the Studio */
body.product-id-1234 #tees-studio .ts-colors{display:none!important}
/* TG-MUGSTUDIO-1103 END */

/* TG-R4-1103 START — size pills + single stepper, eraser row, one Customise button (mobile first, #111/#ccc, no pink) */
#tsf-ov .tsf-pills{display:flex;flex-wrap:wrap;gap:8px;padding:10px 5px 4px}
#tsf-ov .tsf-pill{position:relative;min-width:48px;height:38px;padding:0 14px;border-radius:19px;background:#fff;border:1px solid #ccc;color:#111;font-weight:600;font-size:14px;line-height:1;cursor:pointer;touch-action:manipulation}
#tsf-ov .tsf-pill.is-on{background:#111;border-color:#111;color:#fff}
#tsf-ov .tsf-pill.has-q:not(.is-on){border-color:#111}
#tsf-ov .tsf-badge{position:absolute;top:-8px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#111;color:#fff;border:2px solid #fff;font:700 11px/14px system-ui,sans-serif;font-style:normal;box-sizing:border-box;text-align:center}
#tsf-ov .tsf-pill.is-on .tsf-badge{background:#fff;color:#111;border-color:#111}
#tsf-ov .tsf-step{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 5px;flex-wrap:wrap}
#tsf-ov .tsf-stl{font-size:13px;color:#555}
#tsf-ov .tsf-sp{display:inline-flex;align-items:center;border:1px solid #ccc;border-radius:6px;background:#fff;overflow:hidden}
#tsf-ov .tsf-sp button{width:44px;height:42px;border:0;background:#fff;color:#111;font-size:20px;font-weight:700;line-height:1;padding:0;cursor:pointer;touch-action:manipulation}
#tsf-ov .tsf-sp button:active{background:#f4f4f4}
#tsf-ov .tsf-sp input{width:64px;height:42px;border:0;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6;text-align:center;font-weight:700;font-size:16px;color:#111;padding:0;-moz-appearance:textfield;background:#fff}
#tsf-ov .tsf-sp input::-webkit-inner-spin-button,#tsf-ov .tsf-sp input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#tsf-ov .tsf-sumline{margin:2px 5px 4px;font-size:13px;color:#555}
#tsf-ov .tsf-sumline b{color:#111}
#tees-studio .ts-errow{display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:6px}
#tees-studio .ts-errow[hidden]{display:none}
#tees-studio .ts-errow .ts-sl{flex:1;min-width:160px}
#tees-studio .ts-mcv.is-erasing{cursor:crosshair;touch-action:none}
#tees-studio .ts-mrow{flex-wrap:wrap}
#tees-studio .ts-tabs{overflow-x:auto;scrollbar-width:none}
.tsx-one{display:block;width:100%;margin:10px 0;clear:both}
.tsx-one .tsx-cta{width:100%;margin:0}
/* TG-R4-1103 END */

/* TG-R4-1103b: image tools rows never collapse on mobile */
#tees-studio .ts-tools{height:auto;min-height:112px;max-height:42vh;overflow-y:auto;justify-content:flex-start}
#tees-studio .ts-tools>*{flex-shrink:0}
