/* T-Shirts & Banners print preview 1.0.0. Clean white, thin brand frames, no pop-ups. Phone 280 px to TV 4K. */
.tspp {
	--ink: #0d0d0f; --muted: #5d616b; --line: #e3e5ea; --soft: #f4f5f7; --card: #fff;
	--a: #00a3e0; --b: #e6007e; --c: #ffd400; --ok: #0f8a4b; --mid: #9a6a00; --low: #c0262d;
	--r: 14px; --focus: 0 0 0 3px #fff, 0 0 0 6px #00a3e0;
	box-sizing: border-box; max-width: 1480px; margin: 0 auto; padding: clamp(16px, 3vw, 40px) clamp(12px, 3vw, 32px);
	color: var(--ink); font: 400 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #fff;
}
.tspp *, .tspp *::before, .tspp *::after { box-sizing: border-box; }
.tspp-sec { background: #fff; border-top: 1px solid #eceef2; }
.tspp-sec { scroll-margin-top: 96px; }
/* inside a page that already has side gutters and a dark background (DCG home): a white rounded card */
.wrap > .tspp-sec { border-top: 0; margin: 16px 0 24px; background: transparent; }
.wrap > .tspp-sec .tspp { border-radius: 20px; padding: 20px clamp(14px, 3vw, 32px) 24px; }
.tspp [hidden] { display: none !important; }
.tspp button, .tspp a, .tspp label, .tspp input { font: inherit; }
.tspp :focus-visible { outline: none; box-shadow: var(--focus); }
.tspp-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b); }
.tspp-h2 { margin: 0 0 14px; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.tspp-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--soft); border-radius: 16px; margin-bottom: 16px; width: 100%; max-width: 560px; }
.tspp-tab { border: 0; background: transparent; color: var(--ink); padding: 10px 8px; border-radius: 12px; font-weight: 700; cursor: pointer; min-height: 48px; font-size: 15px; line-height: 1.2; text-align: center; }
.tspp-tab.on { background: var(--ink); color: #fff; }

/* upload */
.tspp-up { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "drop drop" "thumb keep" "msg msg"; gap: 10px 14px; align-items: center; }
.tspp-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tspp-drop { grid-area: drop; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 88px; padding: 16px;
	border-radius: var(--r); cursor: pointer; text-align: center; background: #fff;
	border: 2px dashed transparent; background-image: linear-gradient(#fff, #fff), linear-gradient(90deg, var(--a), var(--b), var(--c));
	background-origin: border-box; background-clip: padding-box, border-box; }
.tspp-drop.over { background-image: linear-gradient(#fff8d6, #fff8d6), linear-gradient(90deg, var(--a), var(--b), var(--c)); }
.tspp-file:focus-visible + .tspp-drop { box-shadow: var(--focus); }
.tspp-drop-big { font-size: 19px; font-weight: 800; }
.tspp-drop-small { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.has-logo .tspp-drop { min-height: 56px; flex-direction: row; gap: 10px; flex-wrap: wrap; }
.has-logo .tspp-drop-big { font-size: 16px; }
/* wide screens, logo in: drop, thumbnail and switch on one line, so the products / backdrop start higher */
@media (min-width: 900px) {
	.has-logo .tspp-up { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "drop thumb keep" "msg msg msg"; }
	.has-logo .tspp-thumb { width: 56px; height: 56px; }
}
@media (min-width: 900px) and (max-height: 700px) { .tspp { padding-top: 14px; } .tspp-h2 { margin-bottom: 8px; } .tspp-tabs { margin-bottom: 10px; } .tspp-note { margin-bottom: 10px; } }
.tspp-thumb { grid-area: thumb; width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px;
	background: repeating-conic-gradient(#eef0f3 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.tspp-thumb canvas { max-width: 100%; max-height: 100%; }
.tspp-keep, .tspp-tog { grid-area: keep; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 15px; }
.tspp-keep input, .tspp-tog input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.tspp-msg { grid-area: msg; margin: 0; font-size: 15px; min-height: 1.45em; color: var(--muted); }
.tspp-msg.ok { color: var(--ok); } .tspp-msg.mid { color: var(--mid); } .tspp-msg.low { color: var(--low); font-weight: 600; }
.tspp-note { margin: 4px 0 18px; font-size: 13px; color: var(--muted); }

/* show-all row */
.tspp-all { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tspp-all-label { font-weight: 700; font-size: 15px; margin-right: 2px; }
.tspp-chip, .tspp-pill { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; cursor: pointer; font-weight: 650; }
.tspp-chip { padding: 9px 14px; min-height: 44px; font-size: 15px; }
.tspp-chip.on, .tspp-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* product grid: 2 across on phones, up to 5-6 on wide screens */
.tspp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: clamp(8px, 1.4vw, 18px); }
@media (min-width: 700px) { .tspp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 1900px) { .tspp-grid { grid-template-columns: repeat(5, 1fr); } .tspp { max-width: 1800px; font-size: 18px; } }
@media (min-width: 280px) and (max-width: 339px) { .tspp-grid { grid-template-columns: 1fr 1fr; gap: 6px; } }
.tspp-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.tspp-fig { background: linear-gradient(180deg, #f6f7f9, #eceef2); aspect-ratio: 600 / 660; position: relative; }
.tspp-cv { width: 100%; height: 100%; display: block; }
.tspp-body { padding: 10px clamp(8px, 1.2vw, 14px) 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tspp-name { margin: 0; font-size: 16px; font-weight: 800; }
.tspp-spots { display: flex; flex-wrap: wrap; gap: 5px; }
.tspp-pill { padding: 6px 10px; min-height: 36px; font-size: 13.5px; }
.tspp-dots { display: flex; flex-wrap: wrap; gap: 8px; }
.tspp-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.18); background: var(--c); cursor: pointer; padding: 0; position: relative; }
.tspp-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.tspp-dot.on:focus-visible { box-shadow: var(--focus); }
.tspp-q { margin: 0; font-size: 13px; color: var(--muted); min-height: 1.45em; }
.tspp-q.ok { color: var(--ok); font-weight: 650; } .tspp-q.ok::before { content: "● "; }
.tspp-q.mid { color: var(--mid); font-weight: 650; } .tspp-q.mid::before { content: "● "; }
.tspp-q.low { color: var(--low); font-weight: 650; } .tspp-q.low::before { content: "● "; }
.tspp-go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border-radius: 999px;
	background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; text-align: center; }
.tspp-go[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (max-width: 339px) { .tspp-pill { padding: 5px 8px; font-size: 12.5px; } .tspp-dot { width: 26px; height: 26px; } .tspp-go { font-size: 14px; padding: 8px 10px; } .tspp-name { font-size: 15px; } }

/* step-and-repeat */
.tspp-ban { display: grid; gap: 14px 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tspp-ban { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); grid-template-areas: "fig ctl" "cap ctl" "q ctl" "act ctl"; align-items: start; }
	.tspp-srfig { grid-area: fig; } .tspp-srcap { grid-area: cap; } .tspp-ban > .tspp-q { grid-area: q; } .tspp-act { grid-area: act; } .tspp-ctl { grid-area: ctl; } }
.tspp-srfig { background: linear-gradient(180deg, #f6f7f9, #e9ebef); border-radius: var(--r); padding: 12px; min-width: 0; }
.tspp-srcv { width: 100%; display: block; }
.tspp-srcap { margin: 0; font-weight: 700; font-size: 15px; }
.tspp-ctl { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tspp-field { display: flex; flex-direction: column; gap: 6px; }
.tspp-flabel { font-weight: 800; font-size: 14px; }
.tspp-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.tspp-range { display: flex; align-items: center; gap: 10px; }
.tspp-range input { flex: 1; min-width: 0; height: 44px; accent-color: var(--b); }
.tspp-out { min-width: 3.4em; font-weight: 800; text-align: right; }
.tspp-togs { display: flex; flex-direction: column; gap: 0; }
.tspp-two { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tspp-add2 { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px dashed var(--b); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.tspp-file:focus-visible + .tspp-add2 { box-shadow: var(--focus); }
.tspp-link { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 4px; }
.tspp-act { display: flex; flex-wrap: wrap; gap: 10px; }
.tspp-act .tspp-go { margin-top: 0; }
.tspp-ghost { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; }
.tspp-ghost:disabled { opacity: .45; cursor: default; }

/* short, wide windows (Chromebook / laptop with the shelf open): keep the backdrop in view */
@media (min-width: 900px) and (max-height: 620px) { .tspp-srcv { max-height: 52vh; width: auto; max-width: 100%; margin: 0 auto; } .tspp-h2 { font-size: 30px; } }
/* TV and console browsers: bigger targets, strong focus */
@media (min-width: 2400px) { .tspp { max-width: 2400px; font-size: 24px; } .tspp-chip, .tspp-tab, .tspp-go, .tspp-ghost { min-height: 64px; font-size: 24px; } .tspp-pill { min-height: 52px; font-size: 20px; } .tspp-dot { width: 46px; height: 46px; } .tspp-name { font-size: 24px; } .tspp-q { font-size: 19px; } .tspp-grid { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .tspp-card { transition: transform .18s ease; } .tspp-go:active { transform: scale(.98); } }

/* ---- 1.1.0 ---- */
/* left / right and print-size choices on a card */
.tspp-opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tspp-opts[hidden] { display: none; }
.tspp-opt { min-height: 32px; padding: 4px 10px; font-size: 12.5px; border-style: dashed; }
.tspp-opt.on { border-style: solid; }
/* step-and-repeat: style chips, words box, size from the order form, jump link in the form */
.tspp-styles .tspp-chip { font-size: 14px; }
.tspp-text { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff; }
.tspp-text:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--a); }
.tspp-from { margin: 0 0 4px; font-weight: 700; }
.tspp-field[hidden], .tspp-tog[hidden] { display: none; }
.tspp-jump { display: inline-block; margin-top: 10px; font-weight: 750; color: var(--b); text-decoration: underline; text-underline-offset: 3px; }
.tspp[data-mode="banner"] .tspp-note { margin-bottom: 14px; }
/* the first logo: products pop in one after another, top to bottom */
@media (prefers-reduced-motion: no-preference) {
	.tspp-pop .tspp-card { animation: tspp-in .55s cubic-bezier(.2, .9, .25, 1.2) both; animation-delay: calc(var(--i, 0) * 95ms); }
	.tspp-pop .tspp-card .tspp-fig { animation: tspp-glow 1.1s ease both; animation-delay: calc(var(--i, 0) * 95ms + 180ms); }
	@keyframes tspp-in { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
	@keyframes tspp-glow { 0% { box-shadow: inset 0 0 0 0 rgba(0,0,0,0); } 35% { box-shadow: inset 0 0 0 3px var(--b); } 100% { box-shadow: inset 0 0 0 0 rgba(0,0,0,0); } }
}
.tspp-ban > .tspp-msg, .tspp-ban > .tspp-from { grid-column: 1 / -1; }
@media (min-width: 900px) { .tspp-ban > .tspp-msg { grid-column: 1; } }
button.tspp-go { border: 0; cursor: pointer; font: inherit; font-weight: 800; }
button.tspp-go:disabled, .tspp-ghost:disabled { opacity: .45; cursor: default; }
/* size and side choices: one quiet row, labelled */
.tspp-opts { gap: 4px; align-items: center; }
.tspp-opts::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.tspp-opt { min-height: 30px; padding: 3px 9px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (min-width: 2400px) { .tspp-opt { min-height: 44px; font-size: 18px; } .tspp-opts::before { font-size: 17px; } }
