/* T-shirt Mockup Designer */
.tsm-designer{
  --tsm-ink:#1b1c1e; --tsm-muted:#6c6f75; --tsm-line:#e3e3de; --tsm-panel:#fff; --tsm-soft:#f4f4f1; --tsm-sel:#2f6bff;
  container-type:inline-size; width:100%; flex:1 1 100%; min-width:0; max-width:100%; margin:0 0 1.25em; color:var(--tsm-ink); font-size:14px; line-height:1.4; text-align:left;
}
form.cart:has(.tsm-designer){flex-wrap:wrap}
.tsm-designer *,.tsm-designer *::before,.tsm-designer *::after{box-sizing:border-box}
.tsm-designer .tsm-grid{display:grid;grid-template-columns:1fr;gap:14px}
@container (min-width:760px){ .tsm-designer .tsm-grid{grid-template-columns:minmax(0,1fr) 300px} }

.tsm-designer .tsm-stagewrap{background:var(--tsm-panel);border:1px solid var(--tsm-line);border-radius:12px;padding:10px}
.tsm-designer .tsm-stage{position:relative;width:100%;aspect-ratio:1/1}
.tsm-designer canvas{width:100%;height:100%;display:block;border-radius:8px;touch-action:none;outline:none;
  background:repeating-conic-gradient(#e9e9e6 0% 25%,#f6f6f4 0% 50%) 50%/24px 24px}
.tsm-designer canvas:focus-visible{box-shadow:0 0 0 2px var(--tsm-sel)}
.tsm-designer .tsm-stage.tsm-drag::after{content:"Laat los om te uploaden";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(47,107,255,.08);border:2px dashed var(--tsm-sel);border-radius:8px;color:var(--tsm-sel);font-weight:600;font-size:16px}
.tsm-designer .tsm-hint{text-align:center;color:var(--tsm-muted);font-size:12px;margin-top:8px}

.tsm-designer .tsm-side{display:flex;flex-direction:column;gap:12px}
@container (min-width:480px) and (max-width:759px){ .tsm-designer .tsm-side{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start} }
.tsm-designer .tsm-card{background:var(--tsm-panel);border:1px solid var(--tsm-line);border-radius:12px;padding:12px 12px 14px}
.tsm-designer .tsm-card h4{font-size:11px!important;text-transform:uppercase;letter-spacing:.08em;color:var(--tsm-muted)!important;margin:0 0 9px!important;font-weight:600;line-height:1.3;padding:0;border:0}

.tsm-designer .tsm-seg{display:grid;grid-template-columns:1fr 1fr;background:#efefeb;border-radius:9px;padding:3px}
.tsm-designer .tsm-btn,.tsm-designer .tsm-seg button,.tsm-designer .tsm-sw{
  font:inherit;text-transform:none;letter-spacing:normal;text-shadow:none;box-shadow:none;margin:0;min-height:0;line-height:1.3;width:auto;height:auto}
.tsm-designer .tsm-seg button{border:0;background:transparent;padding:7px;border-radius:7px;font-weight:500;color:var(--tsm-muted);cursor:pointer}
.tsm-designer .tsm-seg button.tsm-on{background:#fff;color:var(--tsm-ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.tsm-designer .tsm-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--tsm-line);background:#fff;color:var(--tsm-ink);
  padding:8px 12px;border-radius:9px;font-weight:500;cursor:pointer;flex:1}
.tsm-designer .tsm-btn:hover{background:#f7f7f4}
.tsm-designer .tsm-btn.tsm-primary{background:var(--tsm-ink);border-color:var(--tsm-ink);color:#fff}
.tsm-designer .tsm-btn.tsm-primary:hover{background:#000}
.tsm-designer .tsm-row{display:flex;gap:8px;flex-wrap:wrap}

.tsm-designer .tsm-field{margin-top:10px}
.tsm-designer .tsm-field label{display:flex;justify-content:space-between;font-size:12.5px;color:var(--tsm-muted);margin:0 0 3px;font-weight:400}
.tsm-designer .tsm-field label b{color:var(--tsm-ink);font-weight:500;font-variant-numeric:tabular-nums}
.tsm-designer input[type=range]{width:100%;accent-color:var(--tsm-ink);margin:0;padding:0;border:0;background:transparent;height:auto;box-shadow:none}
.tsm-designer .tsm-check{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;cursor:pointer;font-weight:400}
.tsm-designer .tsm-check input{accent-color:var(--tsm-ink);width:16px;height:16px;margin:0}

.tsm-designer .tsm-swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.tsm-designer .tsm-sw{aspect-ratio:1;border-radius:50%;border:1px solid rgba(0,0,0,.15);cursor:pointer;padding:0;min-width:0}
.tsm-designer .tsm-sw.tsm-on{outline:2px solid var(--tsm-ink);outline-offset:2px}
.tsm-designer .tsm-colorname{margin-top:9px;font-size:12.5px;color:var(--tsm-muted)}
.tsm-designer .tsm-colorrow{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13px;color:var(--tsm-muted)}
.tsm-designer input[type=color]{width:38px;height:30px;border:1px solid var(--tsm-line);border-radius:7px;padding:2px;background:#fff;cursor:pointer;margin:0}

.tsm-designer .tsm-thumb{display:flex;align-items:center;gap:10px;margin-top:9px;font-size:12.5px;color:var(--tsm-muted);min-height:20px;word-break:break-all}
.tsm-designer .tsm-thumb img{width:42px;height:42px;object-fit:contain;border-radius:6px;border:1px solid var(--tsm-line);flex:none;
  background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50%/10px 10px}
.tsm-designer .tsm-off{opacity:.45;pointer-events:none}
.tsm-designer .tsm-msg{display:none;margin-top:10px;padding:9px 12px;border-radius:9px;font-size:13px}
.tsm-designer .tsm-msg.tsm-show{display:block}
.tsm-designer .tsm-msg.tsm-err{background:#fdecec;color:#9b1c1c}
.tsm-designer .tsm-msg.tsm-info{background:#eef3ff;color:#1d3f99}
