{"id":2165,"date":"2026-03-20T13:50:54","date_gmt":"2026-03-20T11:50:54","guid":{"rendered":"https:\/\/t-print.fi\/?page_id=2165"},"modified":"2026-03-23T15:10:36","modified_gmt":"2026-03-23T13:10:36","slug":"t-print-tilaus","status":"publish","type":"page","link":"https:\/\/t-print.fi\/en\/t-print-tilaus\/","title":{"rendered":"Calculate the price and place an order"},"content":{"rendered":"<script>window.tprintCfg = {\"ajaxUrl\":\"https:\\\/\\\/t-print.fi\\\/wp-admin\\\/admin-ajax.php\",\"nonce\":\"349824a49b\",\"accentColor\":\"#e8451a\",\"setupCost\":40,\"margin\":0.21710000000000002,\"clickCost\":0.17,\"laborCost\":0.06,\"tpaitaImage\":\"https:\\\/\\\/t-print.fi\\\/wp-content\\\/plugins\\\/tprint-configurator\\\/assets\\\/tpaita-front.png\",\"kassiImage\":\"https:\\\/\\\/t-print.fi\\\/wp-content\\\/plugins\\\/tprint-configurator\\\/assets\\\/kassi-front.png\"};<\/script><style>@import url('https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@600;700&display=swap');\n\n:root {\n  --tp-accent: #e8451a;\n  --tp-accent-mid: #c73a14;\n  --tp-accent-light: #fdf0ec;\n  --tp-border: #e2e5ea;\n  --tp-bg: #f8f9fb;\n  --tp-card: #ffffff;\n  --tp-text: #111827;\n  --tp-muted: #6b7280;\n  --tp-success: #15803d;\n  --tp-error: #b91c1c;\n  --tp-radius: 10px;\n  --tp-font: 'Inter', -apple-system, sans-serif;\n  --tp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);\n  --tp-shadow: 0 4px 20px rgba(0,0,0,0.10);\n  --tp-shadow-lg: 0 12px 48px rgba(0,0,0,0.15);\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.tprint-root {\n  font-family: var(--tp-font);\n  color: var(--tp-text);\n  font-size: 14px;\n  line-height: 1.5;\n  -webkit-font-smoothing: antialiased;\n}\n\n\/* \u2500\u2500 Layout \u2500\u2500 *\/\n.tprint-layout {\n  display: grid;\n  grid-template-columns: 1fr 340px;\n  gap: 28px;\n  align-items: start;\n}\n\n\/* \u2500\u2500 Options Panel \u2500\u2500 *\/\n.tprint-options-panel {\n  background: var(--tp-card);\n  border: 1px solid var(--tp-border);\n  border-radius: var(--tp-radius);\n  overflow: hidden;\n}\n\n.tprint-section {\n  padding: 20px 24px;\n  border-bottom: 1px solid var(--tp-border);\n}\n.tprint-section:last-child { border-bottom: none; }\n\n.tprint-section-label {\n  font-size: 11px;\n  font-weight: 600;\n  text-transform: uppercase;\n  letter-spacing: 0.08em;\n  color: var(--tp-muted);\n  margin-bottom: 12px;\n}\n\n\/* \u2500\u2500 Chips \u2500\u2500 *\/\n.tprint-chip-group {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.tprint-chip-group--qty { gap: 6px; }\n\n.tp-chip {\n  background: var(--tp-bg);\n  border: 1.5px solid var(--tp-border);\n  border-radius: 6px;\n  padding: 8px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--tp-text);\n  cursor: pointer;\n  transition: all 0.15s ease;\n  font-family: var(--tp-font);\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 2px;\n  white-space: normal;\n  word-break: break-word;\n  text-align: center;\n  min-width: 0;\n  width: auto;\n}\n\n.tp-chip span {\n  font-size: 10px;\n  font-weight: 400;\n  color: var(--tp-muted);\n}\n.tp-chip:hover {\n  border-color: var(--tp-accent);\n  background: var(--tp-accent-light);\n  color: var(--tp-accent);\n}\n.tp-chip--active {\n  background: var(--tp-accent);\n  border-color: var(--tp-accent);\n  color: #fff;\n}\n.tp-chip--active span { color: rgba(255,255,255,0.65); }\n\n\/* \u2500\u2500 Paper Options \u2500\u2500 *\/\n.tprint-paper-group {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));\n  gap: 8px;\n}\n.tp-paper-opt {\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n  padding: 10px 14px;\n  border: 1.5px solid var(--tp-border);\n  border-radius: 6px;\n  cursor: pointer;\n  transition: all 0.15s ease;\n  position: relative;\n  background: var(--tp-bg);\n}\n.tp-paper-opt input[type=radio] {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n.tp-paper-opt:hover {\n  border-color: var(--tp-accent);\n  background: var(--tp-accent-light);\n}\n.tp-paper-opt--checked,\n.tp-paper-opt:has(input:checked) {\n  border-color: var(--tp-accent);\n  background: var(--tp-accent-light);\n}\n.tp-paper-name {\n  font-size: 13px;\n  font-weight: 600;\n  color: var(--tp-text);\n}\n.tp-paper-desc {\n  font-size: 11px;\n  color: var(--tp-muted);\n}\n\n\/* \u2500\u2500 Price Panel \u2500\u2500 *\/\n.tprint-price-panel {\n  position: sticky;\n  top: 24px;\n}\n.tprint-price-card {\n  background: var(--tp-card);\n  border: 1px solid var(--tp-border);\n  border-radius: var(--tp-radius);\n  overflow: hidden;\n  box-shadow: var(--tp-shadow);\n}\n.tprint-price-header {\n  background: var(--tp-accent);\n  color: #fff;\n  font-size: 12px;\n  font-weight: 600;\n  text-transform: uppercase;\n  letter-spacing: 0.1em;\n  padding: 14px 20px;\n}\n\n\/* \u2500\u2500 Summary \u2500\u2500 *\/\n.tprint-price-summary {\n  padding: 16px 20px;\n  border-bottom: 1px solid var(--tp-border);\n}\n.tp-sum-row {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 5px 0;\n  font-size: 13px;\n}\n.tp-sum-row > span:first-child { color: var(--tp-muted); }\n.tp-sum-row > span:last-child  { font-weight: 500; text-align: right; }\n\n\/* \u2500\u2500 Price Main \u2500\u2500 *\/\n.tprint-price-main {\n  padding: 20px 20px 16px;\n  border-bottom: 1px solid var(--tp-border);\n}\n.tprint-price-total {\n  display: flex;\n  flex-direction: column;\n  gap: 4px;\n  margin-bottom: 10px;\n}\n.tprint-price-label {\n  font-size: 11px;\n  font-weight: 600;\n  text-transform: uppercase;\n  letter-spacing: 0.08em;\n  color: var(--tp-muted);\n}\n.tprint-price-value {\n  font-family: 'Sora', sans-serif;\n  font-size: 36px;\n  font-weight: 700;\n  color: var(--tp-accent);\n  letter-spacing: -0.02em;\n  transition: all 0.2s ease;\n}\n.tprint-price-unit {\n  display: flex;\n  justify-content: space-between;\n  font-size: 13px;\n  color: var(--tp-muted);\n}\n.tprint-price-unit span:last-child { font-weight: 500; color: var(--tp-text); }\n\n.tprint-disclaimer {\n  padding: 12px 20px;\n  font-size: 11px;\n  color: var(--tp-muted);\n  line-height: 1.6;\n  border-bottom: 1px solid var(--tp-border);\n  background: #fafafa;\n}\n\n.tprint-quote-btn {\n  display: block;\n  width: 100%;\n  background: var(--tp-accent);\n  color: #fff;\n  border: none;\n  padding: 16px 20px;\n  font-size: 14px;\n  font-weight: 600;\n  font-family: var(--tp-font);\n  cursor: pointer;\n  transition: all 0.15s ease;\n  text-align: center;\n  letter-spacing: 0.01em;\n}\n.tprint-quote-btn:hover { background: var(--tp-accent-mid); }\n.tprint-quote-btn:disabled { opacity: 0.5; cursor: not-allowed; background: var(--tp-accent); }\n\n\/* \u2500\u2500 Modal \u2500\u2500 *\/\n.tprint-modal {\n  position: fixed;\n  inset: 0;\n  background: rgba(10,20,35,0.55);\n  z-index: 99999;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 20px;\n  backdrop-filter: blur(4px);\n  animation: tpFadeIn 0.2s ease;\n}\n@keyframes tpFadeIn {\n  from { opacity: 0; }\n  to   { opacity: 1; }\n}\n.tprint-modal-box {\n  background: var(--tp-card);\n  border-radius: 14px;\n  padding: 36px;\n  max-width: 520px;\n  width: 100%;\n  position: relative;\n  box-shadow: var(--tp-shadow-lg);\n  animation: tpSlideUp 0.25s ease;\n  max-height: 90vh;\n  overflow-y: auto;\n}\n@keyframes tpSlideUp {\n  from { transform: translateY(20px); opacity: 0; }\n  to   { transform: translateY(0);    opacity: 1; }\n}\n.tprint-modal-box h2 {\n  font-family: 'Sora', sans-serif;\n  font-size: 22px;\n  font-weight: 700;\n  margin: 0 0 6px;\n  letter-spacing: -0.02em;\n}\n.tprint-modal-subtitle {\n  font-size: 13px;\n  color: var(--tp-muted);\n  margin: 0 0 24px;\n  padding-bottom: 20px;\n  border-bottom: 1px solid var(--tp-border);\n}\n.tprint-modal-close {\n  position: absolute;\n  top: 16px;\n  right: 16px;\n  background: var(--tp-bg);\n  border: 1px solid var(--tp-border);\n  border-radius: 50%;\n  width: 32px;\n  height: 32px;\n  font-size: 14px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--tp-muted);\n  transition: all 0.15s ease;\n}\n.tprint-modal-close:hover { background: var(--tp-border); color: var(--tp-text); }\n\n\/* \u2500\u2500 Form \u2500\u2500 *\/\n.tprint-form { display: flex; flex-direction: column; gap: 14px; }\n.tp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }\n.tp-field { display: flex; flex-direction: column; gap: 5px; }\n.tp-field label {\n  font-size: 12px;\n  font-weight: 600;\n  color: var(--tp-text);\n  text-transform: uppercase;\n  letter-spacing: 0.05em;\n}\n.tp-field input,\n.tp-field textarea {\n  border: 1.5px solid var(--tp-border);\n  border-radius: 8px;\n  padding: 10px 13px;\n  font-size: 14px;\n  font-family: var(--tp-font);\n  color: var(--tp-text);\n  background: #fff;\n  transition: border-color 0.15s;\n  width: 100%;\n}\n.tp-field input:focus,\n.tp-field textarea:focus {\n  outline: none;\n  border-color: var(--tp-accent);\n  box-shadow: 0 0 0 3px rgba(15,41,66,0.1);\n}\n.tp-form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }\n.tp-form-err {\n  font-size: 13px;\n  color: var(--tp-error);\n  background: #fef2f2;\n  border-radius: 6px;\n  padding: 10px 14px;\n}\n.tprint-submit-btn {\n  background: var(--tp-accent);\n  color: #fff;\n  border: none;\n  border-radius: 8px;\n  padding: 14px 24px;\n  font-size: 15px;\n  font-weight: 600;\n  font-family: var(--tp-font);\n  cursor: pointer;\n  transition: all 0.15s;\n  width: 100%;\n}\n.tprint-submit-btn:hover { background: var(--tp-accent-mid); }\n.tprint-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }\n\n\/* \u2500\u2500 Success \u2500\u2500 *\/\n.tprint-success { text-align: center; padding: 20px 0; }\n.tprint-success-icon {\n  width: 64px; height: 64px;\n  background: var(--tp-success);\n  color: #fff;\n  border-radius: 50%;\n  font-size: 28px;\n  display: flex; align-items: center; justify-content: center;\n  margin: 0 auto 20px;\n}\n.tprint-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }\n.tprint-success p { color: var(--tp-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }\n.tprint-modal-close-btn {\n  background: var(--tp-bg);\n  border: 1.5px solid var(--tp-border);\n  border-radius: 8px;\n  padding: 10px 24px;\n  font-size: 14px;\n  font-weight: 500;\n  font-family: var(--tp-font);\n  cursor: pointer;\n  transition: all 0.15s;\n}\n.tprint-modal-close-btn:hover { border-color: var(--tp-accent); color: var(--tp-accent); }\n\n\/* \u2500\u2500 T-paita: product photo \u2500\u2500 *\/\n.tp-photo-wrap {\n  display: flex;\n  justify-content: center;\n  background: var(--tp-bg);\n  border-radius: 8px;\n  padding: 16px;\n}\n.tp-photo-wrap img {\n  max-width: 220px;\n  width: 100%;\n  height: auto;\n  display: block;\n}\n.tp-photo-caption {\n  text-align: center;\n  font-size: 13px;\n  color: var(--tp-muted);\n  margin-top: 10px;\n  font-weight: 500;\n}\n\n\/* \u2500\u2500 T-paita: color swatches \u2500\u2500 *\/\n.tp-color-group {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 10px;\n}\n.tp-color-swatch {\n  width: 34px;\n  height: 34px;\n  border-radius: 50%;\n  border: 2px solid var(--tp-border);\n  cursor: pointer;\n  transition: all 0.15s ease;\n  position: relative;\n  padding: 0;\n}\n.tp-color-swatch[data-white=\"1\"] { border-color: #d5d8dd; }\n.tp-color-swatch:hover { transform: scale(1.08); border-color: var(--tp-accent); }\n.tp-color-swatch--active { border-color: var(--tp-accent); box-shadow: 0 0 0 2px var(--tp-accent-light), 0 0 0 3px var(--tp-accent); }\n.tp-color-swatch--active::after {\n  content: '\u2713';\n  position: absolute; inset: 0;\n  display: flex; align-items: center; justify-content: center;\n  color: #fff;\n  font-size: 14px;\n  text-shadow: 0 1px 2px rgba(0,0,0,0.5);\n}\n.tp-color-swatch[data-white=\"1\"].tp-color-swatch--active::after { color: #111827; text-shadow: none; }\n.tp-color-label {\n  font-size: 12px;\n  color: var(--tp-muted);\n  margin-top: 8px;\n}\n\n\/* \u2500\u2500 T-paita: size matrix \u2500\u2500 *\/\n.tp-size-matrix {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));\n  gap: 8px;\n}\n.tp-size-cell {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 6px;\n  padding: 10px 6px;\n  border: 1.5px solid var(--tp-border);\n  border-radius: 6px;\n  background: var(--tp-bg);\n  transition: border-color 0.15s ease;\n}\n.tp-size-cell--filled { border-color: var(--tp-accent); background: var(--tp-accent-light); }\n.tp-size-cell label {\n  font-size: 12px;\n  font-weight: 600;\n  color: var(--tp-text);\n}\n.tp-size-cell input {\n  width: 100%;\n  text-align: center;\n  border: 1.5px solid var(--tp-border);\n  border-radius: 5px;\n  padding: 5px 2px;\n  font-size: 14px;\n  font-family: var(--tp-font);\n  -moz-appearance: textfield;\n}\n.tp-size-cell input::-webkit-outer-spin-button,\n.tp-size-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }\n.tp-size-cell input:focus { outline: none; border-color: var(--tp-accent); }\n.tp-size-total-row {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  margin-top: 12px;\n  padding-top: 12px;\n  border-top: 1px solid var(--tp-border);\n  font-size: 13px;\n}\n.tp-size-total-row strong { font-size: 15px; }\n.tp-size-min-warn { color: var(--tp-error); font-weight: 600; }\n.tp-size-ok { color: var(--tp-success); font-weight: 600; }\n\n\/* \u2500\u2500 T-paita: paikka (print location) \u2500\u2500 *\/\n.tp-paikka-list { display: flex; flex-direction: column; gap: 2px; }\n.tp-paikka-item {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 8px 16px;\n  padding: 12px 0;\n  border-bottom: 1px solid var(--tp-border);\n}\n.tp-paikka-item:last-child { border-bottom: none; }\n.tp-paikka-check {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n}\n.tp-paikka-check input[type=checkbox] {\n  width: 18px; height: 18px;\n  accent-color: var(--tp-accent);\n  cursor: pointer;\n}\n.tp-paikka-dims { font-size: 12px; color: var(--tp-muted); font-weight: 400; }\n.tp-paikka-area-select {\n  border: 1.5px solid var(--tp-border);\n  border-radius: 6px;\n  padding: 7px 10px;\n  font-size: 13px;\n  font-family: var(--tp-font);\n  color: var(--tp-text);\n  background: #fff;\n  min-width: 160px;\n}\n.tp-paikka-area-fixed {\n  font-size: 13px;\n  color: var(--tp-muted);\n  min-width: 160px;\n  text-align: right;\n}\n.tp-paikka-note {\n  font-size: 12px;\n  color: var(--tp-muted);\n  margin-top: 10px;\n  line-height: 1.5;\n}\n.tp-paikka-note--proof {\n  color: var(--tp-success);\n  font-weight: 600;\n}\n\n\/* \u2500\u2500 T-paita: over-limit quote note \u2500\u2500 *\/\n.tp-quote-note {\n  font-size: 13px;\n  font-weight: 600;\n  color: var(--tp-accent);\n  cursor: pointer;\n  text-decoration: underline;\n}\n\n\/* \u2500\u2500 Responsive \u2500\u2500 *\/\n@media (max-width: 800px) {\n  .tprint-layout { grid-template-columns: 1fr; }\n  .tprint-price-panel { position: static; }\n  .tprint-price-value { font-size: 28px; }\n}\n@media (max-width: 520px) {\n  .tprint-modal-box { padding: 24px 20px; }\n  .tp-field-row { grid-template-columns: 1fr; }\n  .tprint-paper-group { grid-template-columns: 1fr 1fr; }\n  .tp-size-matrix { grid-template-columns: repeat(4, 1fr); }\n  .tp-paikka-item { flex-direction: column; align-items: flex-start; }\n}\n\n\/* \u2500\u2500 File Upload \u2500\u2500 *\/\n.tp-upload-area {\n  border: 2px dashed var(--tp-border);\n  border-radius: var(--tp-radius-sm);\n  padding: 20px;\n  background: var(--tp-bg);\n  transition: all 0.15s ease;\n  min-height: 80px;\n}\n.tp-upload-area.tp-drag-over {\n  border-color: var(--tp-accent);\n  background: var(--tp-accent-light);\n}\n.tp-upload-placeholder {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 6px;\n  text-align: center;\n  color: var(--tp-muted);\n  font-size: 13px;\n}\n.tp-upload-placeholder > span:nth-child(2) {\n  display: flex;\n  align-items: center;\n  gap: 4px;\n  flex-wrap: nowrap;\n  white-space: nowrap;\n}\n.tp-upload-icon { font-size: 28px; }\n.tp-upload-browse {\n  background: none;\n  border: none;\n  color: var(--tp-accent);\n  font-weight: 600;\n  cursor: pointer;\n  font-size: 13px;\n  font-family: var(--tp-font);\n  padding: 0;\n  text-decoration: underline;\n}\n.tp-upload-hint {\n  font-size: 11px;\n  color: var(--tp-muted);\n}\n.tp-file-list {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n}\n.tp-file-item {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  background: #fff;\n  border: 1px solid var(--tp-border);\n  border-radius: 6px;\n  padding: 8px 12px;\n  font-size: 13px;\n}\n.tp-file-name { flex: 1; font-weight: 500; word-break: break-all; }\n.tp-file-size { color: var(--tp-muted); white-space: nowrap; }\n.tp-file-remove {\n  background: none;\n  border: none;\n  color: var(--tp-muted);\n  cursor: pointer;\n  font-size: 13px;\n  padding: 0 4px;\n  line-height: 1;\n}\n.tp-file-remove:hover { color: var(--tp-error); }\n<\/style><script>\/**\n * T-Print KY \u2014 Hintakonfiguraattori v2.3\n *\n * Paperikustannukset suoraan Antalis-hinnastosta (Galerie Art Silk\/Matt).\n * Kaikki hinnat muunnettu \u20ac\/SRA3-arkki (32\u00d745 cm).\n *\n * Validoitu:\n *   200 kpl A5, 130g Silk,  4+4 \u2192 ~80,00 \u20ac  \u2713\n *   1000 kpl A5, 130g Silk, 4+4 \u2192 ~160,37 \u20ac \u2713\n *\n * Kustannusrakenne:\n *   Kiinte\u00e4t: ALOI 40\u20ac + LEPK 10,57\u20ac = 50,57\u20ac\/tilaus\n *   Paperi:   suoraan Antalis-hinnasto (\u20ac\/arkki)\n *   Click:    0,18\u20ac\/arkki (4+4), 0,108\u20ac\/arkki (1+0)\n *   Palkka:   0,06\u20ac\/arkki\n *   Kpl-kust: 0,00489\u20ac\/kpl\n *   Kate:     ~20%\n *\/\n(function () {\n  'use strict';\n\n  \/\/ \u2500\u2500 Hinnoitteluvakiot \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const C = {\n    fixed:       50.57,   \/\/ ALOI + LEPK per tilaus\n    click44:     0.18,    \/\/ KLIKKI4\/4 per arkki (molemmin puolin)\n    click10:     0.108,   \/\/ KLIKKI1\/0 per arkki (yksipuolinen, ~60%)\n    labor44:     0.06,    \/\/ PAJO per arkki (4+4)\n    labor10:     0.036,   \/\/ PAJO per arkki (1+0)\n    perPiece:    0.00489, \/\/ LEPU + LAAT per kpl\n    margin:      0.20,    \/\/ ~20% kate\n    waste:       1.02,    \/\/ 2% hukka\n  };\n\n  \/\/ \u2500\u2500 Paperikustannukset \u20ac\/SRA3-arkki \u2014 suoraan Antalis-hinnastosta \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ L\u00e4hde: Galerie Art Silk\/Matt, koko 32\u00d745cm (tai normitettu vastaavaksi)\n  \/\/ Validointipiste: 130g Silk = 0.03486\u20ac\/arkki \u2713 (8,89\u20ac \/ 255 arkkia)\n  const PAPER_EUR_PER_SHEET = {\n    '90m':   0.02424,  \/\/ 90g Matt (p\u00e4\u00e4llyst\u00e4m\u00e4t\u00f6n)  GAMAT09032M45\n    '115s':  0.03094,  \/\/ 115g Silk                  GALAM11532M45\n    '115m':  0.03089,  \/\/ 115g Matt                  GAMAT11532M45\n    '130s':  0.03486,  \/\/ 130g Silk  \u2190 REFERENSSI    GALAM1303245MW \u2713\n    '130m':  0.03480,  \/\/ 130g Matt                  GAMAT13032M45\n    '150s':  0.04027,  \/\/ 150g Silk                  GALAM15032M45\n    '150m':  0.04020,  \/\/ 150g Matt                  GAMAT15032M45\n    '170s':  0.04567,  \/\/ 170g Silk                  GALAM17032M45\n    '170m':  0.04560,  \/\/ 170g Matt                  GAMAT17032M45\n    '200m':  0.05615,  \/\/ 200g Matt                  GAMAT20032M45\n    '250m':  0.07019,  \/\/ 250g Matt                  GAMAT25032M45\n    '300s':  0.07871,  \/\/ 300g Silk (46\u00d764 norm.)     GALAM3004664M\n    '300biz':0.08421,  \/\/ 300g Matt\/k\u00e4yntikorttikartonki GAMAT3004664M\n    '200s':  0.05250,  \/\/ Galerie Art Silk 200g (46x64 norm.)\n    '130off':0.03480,  \/\/ 130g offset (Galerie Art Matt)\n    '170off':0.04560,  \/\/ 170g offset (Galerie Art Matt)\n    '200off':0.05615,  \/\/ 200g offset (Galerie Art Matt)\n    '260inv':0.35457,  \/\/ Invercote Creato 260g SRA3  INVCR26032M45W \u2713\n    '300inv':0.37794,  \/\/ Invercote Creato 300g (46x64 norm) INVCR3004664M\n    'mesh':    0,   \/\/ Banneri \u2014 hinta lasketaan m\u00b2 mukaan\n    'pvc':     0,\n    'decotex': 0,\n  };\n\n  const PAPER_LABEL = {\n    '90m':   '90 g\/m\u00b2',\n    '115s':  '115 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '115m':  '115 g\/m\u00b2 matta',\n    '130s':  '130 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '130m':  '130 g\/m\u00b2 matta',\n    '150s':  '150 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '150m':  '150 g\/m\u00b2 matta',\n    '170s':  '170 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '170m':  '170 g\/m\u00b2 matta',\n    '200m':  '200 g\/m\u00b2 matta',\n    '250m':  '250 g\/m\u00b2 matta',\n    '300s':  '300 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '300biz':'300 g\/m\u00b2 k\u00e4yntikorttikartonki',\n    '200s':  '200 g\/m\u00b2 puolikiilt\u00e4v\u00e4 silk',\n    '130off':'130 g\/m\u00b2 offset',\n    '170off':'170 g\/m\u00b2 offset',\n    '200off':'200 g\/m\u00b2 offset',\n    '260inv':'260 g\/m\u00b2 Invercote Creato',\n    '300inv':'300 g\/m\u00b2 Invercote Creato',\n    'mesh':    'Mesh \u2014 ulkok\u00e4ytt\u00f6\u00f6n ja aitoihin',\n    'pvc':     'PVC vinyyli \u2014 yleisk\u00e4ytt\u00f6\u00f6n, ulos ja sis\u00e4lle',\n    'decotex': 'Decotex \u2014 sis\u00e4k\u00e4ytt\u00f6\u00f6n ja messuille',\n  };\n\n  const PAPER_DESC = {\n    '90m':   'P\u00e4\u00e4llyst\u00e4m\u00e4t\u00f6n \u00b7 Kevyin',\n    '115s':  'Puolikiilt\u00e4v\u00e4 silk-p\u00e4\u00e4llyste',\n    '115m':  'Mattap\u00e4\u00e4llyste',\n    '130s':  'Puolikiilt\u00e4v\u00e4 silk \u00b7 Yleisin',\n    '130m':  'Mattap\u00e4\u00e4llyste \u00b7 Yleisin',\n    '150s':  'Silk-p\u00e4\u00e4llyste \u00b7 Tukeva',\n    '150m':  'Mattap\u00e4\u00e4llyste \u00b7 Tukeva',\n    '170s':  'Silk-p\u00e4\u00e4llyste \u00b7 Paksu',\n    '170m':  'Mattap\u00e4\u00e4llyste \u00b7 Paksu',\n    '200m':  'Mattap\u00e4\u00e4llyste \u00b7 Eritt\u00e4in paksu',\n    '250m':  'Mattap\u00e4\u00e4llyste \u00b7 Premium',\n    '300s':  'Silk \u00b7 K\u00e4yntikorttipaksuus',\n    '300biz':'Mattakartonki \u00b7 K\u00e4yntikortti',\n    '200s':  'Silk-p\u00e4\u00e4llyste \u00b7 Paksu',\n    '130off':'P\u00e4\u00e4llyst\u00e4m\u00e4t\u00f6n \u00b7 Luonnonvalkoinen',\n    '170off':'P\u00e4\u00e4llyst\u00e4m\u00e4t\u00f6n \u00b7 Tukeva',\n    '200off':'P\u00e4\u00e4llyst\u00e4m\u00e4t\u00f6n \u00b7 Eritt\u00e4in paksu',\n    '260inv':'Premium kartonki \u00b7 J\u00e4ykk\u00e4',\n    '300inv':'Premium kartonki \u00b7 Korkein laatu',\n    'mesh':    'Tuulta l\u00e4p\u00e4isev\u00e4 \u00b7 Sopii rakennusty\u00f6maille ja aitoihin',\n    'pvc':     'Umpinainen ja s\u00e4\u00e4nkest\u00e4v\u00e4 \u00b7 Kest\u00e4vin valinta',\n    'decotex': 'Heijastamaton kangas \u00b7 B1-paloluokka',\n  };\n\n  \/\/ \u2500\u2500 Kappalem\u00e4\u00e4r\u00e4 SRA3-arkilla (arkkitulostin \u2014 vain A3 ja pienemm\u00e4t) \u2500\u2500\u2500\u2500\u2500\u2500\n  const IMPOSITION = {\n    'A6': 8, 'DL': 6, 'A5': 4, 'A4': 2,\n    'A3': 2,         \/\/ A3: 2 kpl per SRA3-arkki\n    'DL6': 2,        \/\/ 100\u00d7210mm 6-sivu: 2 kpl per SRA3\n    '85x55mm': 20, '90x50mm': 20,\n  };\n\n  \/\/ \u2500\u2500 K\u00e4yntikortti \u2014 oma hinnoittelu (40\u20ac + 0,15\u20ac\/kpl) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Validoitu: 100kpl=55\u20ac, 200kpl=70\u20ac, 300kpl=85\u20ac \u2713\n  const BIZCARD_PRICE = (q) => Math.round((40 + 0.15 * q) * 100) \/ 100;\n\n  \/\/ \u2500\u2500 Esite (4-sivu taitettu) \u2014 lis\u00e4kustannukset \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Taitto: TAKL 17.50\u20ac setup + TAIT 0.00285\u20ac\/kpl. Kate 25% (vs flyer 20%)\n  \/\/ Imposition: A6\u21924\/SRA3, A5\u21922\/SRA3, A4\u21921\/SRA3 (painetaan tuplakokoiselle)\n  const BROCHURE_IMPOSITION = { 'A6': 4, 'A5': 2, 'A4': 1 };\n  const BROCHURE_MARGIN = 0.25;\n  const BROCHURE_FOLD   = { setup: 17.50, perPiece: 0.00285 };\n\n  \/\/ \u2500\u2500 6-sivu G\/Z-taitto 100\u00d7210mm \u2014 kustannusmalli \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Validoitu datapisteet (D110 kate 25.65%):\n  \/\/   100kpl=112\u20ac, 200kpl=131\u20ac, 500kpl=191\u20ac \u2713\n  \/\/ Imposition: 2 kpl\/SRA3, TAKL fold_setup=17.50\u20ac, TAIT=0.0035\u20ac\/kpl\n  const BROCHURE6_MARGIN = 0.2565;\n  const BROCHURE6_FOLD   = { setup: 17.50, perPiece: 0.0035 };\n\n  \/\/ \u2500\u2500 Banneri \u2014 hinnoittelu \u20ac\/m\u00b2 k\u00e4ytt\u00f6tarkoituksen mukaan \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Asiakas valitsee k\u00e4ytt\u00f6tarkoituksen, tuotanto tiet\u00e4\u00e4 materiaalin\n  const BANNERI_MATERIALS = {\n    'mesh':    { label: 'Mesh \u2014 ulkok\u00e4ytt\u00f6\u00f6n ja aitoihin',        desc: 'Tuulta l\u00e4p\u00e4isev\u00e4 \u2014 sopii rakennusty\u00f6maille ja aitoihin', price: 27 },\n    'pvc':     { label: 'PVC vinyyli \u2014 yleisk\u00e4ytt\u00f6\u00f6n, ulos ja sis\u00e4lle', desc: 'Umpinainen ja s\u00e4\u00e4nkest\u00e4v\u00e4 \u2014 kest\u00e4vin valinta', price: 26 },\n    'decotex': { label: 'Decotex \u2014 sis\u00e4k\u00e4ytt\u00f6\u00f6n ja messuille',    desc: 'Heijastamaton kangas \u2014 B1-paloluokka', price: 45 },\n  };\n  const BANNERI_MIN_CM = 50;   \/\/ minimikoko 50cm\n  const DELIVERY_FEE   = 15;   \/\/ toimituskulut \u20ac\n  const FREE_THRESHOLD = 250;  \/\/ ilmainen toimitus yli 250\u20ac tilauksille\n\n  \/\/ \u2500\u2500 Roll-Up \u2014 kiinte\u00e4 hinta per koko \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ 85\u00d7200cm = 130\u20ac, 100\u00d7200cm = 150\u20ac (alv 0%)\n  const ROLLUP_PRICE = { '85x200cm': 130, '100x200cm': 150 };\n\n  \/\/ \u2500\u2500 Suurkuvatulostus \u2014 erillinen hinnoittelu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Apufunktio: interpoloi\/ekstrapoloi pisteiden v\u00e4lill\u00e4\n  function lfCalc(pts, perExtraUnit, q) {\n    if (q <= pts[0][0]) {\n      \/\/ alle min-m\u00e4\u00e4r\u00e4n: lineaarinen ekstrapolaatio alasp\u00e4in\n      return Math.round((pts[0][1] + (q - pts[0][0]) * (pts[1][1]-pts[0][1]) \/ (pts[1][0]-pts[0][0])) * 100) \/ 100;\n    }\n    if (q >= pts[pts.length-1][0]) {\n      \/\/ yli max-m\u00e4\u00e4r\u00e4n: lis\u00e4hinta per ylimenev\u00e4 kpl\n      return Math.round((pts[pts.length-1][1] + (q - pts[pts.length-1][0]) * perExtraUnit) * 100) \/ 100;\n    }\n    for (let i=0; i<pts.length-1; i++) {\n      const [q1,p1]=pts[i],[q2,p2]=pts[i+1];\n      if (q>=q1 && q<=q2) return Math.round((p1+(q-q1)*(p2-p1)\/(q2-q1))*100)\/100;\n    }\n  }\n\n  const LARGE_FORMAT = {\n    'A2': {\n      \/\/ 10kpl=90\u20ac, 25kpl=200\u20ac, 100kpl=240\u20ac. Yli 100: 0.40\u20ac\/kpl\n      calc: (q) => lfCalc([[10,90],[25,200],[100,240]], 0.40, q),\n    },\n    '50x70cm': {\n      \/\/ Uusi hinnoittelu: 1=30, 2=51, 3=72, 4=83, 5=92\n      \/\/ 5\u201350kpl: jatkuu ~8.50\u20ac\/kpl marginaalilla (92\u219250kpl interpoloitu)\n      \/\/ 50\u2013100kpl: tasaantuu ~3\u20ac\/kpl marginaalilla\n      \/\/ Yli 100: 0.40\u20ac\/kpl\n      calc: (q) => {\n        const lookup = {1:30, 2:51, 3:72, 4:83, 5:92};\n        if (lookup[q]) return lookup[q];\n        const pts = [[5,92],[25,200],[50,260],[100,280]];\n        return lfCalc(pts, 0.40, q);\n      },\n    },\n    '70x100cm': {\n      \/\/ 1kpl=40\u20ac, jokainen lis\u00e4kpl +21\u20ac\n      \/\/ Isommissa eriss\u00e4 marginaali laskee: extraUnit 21 \u2192 ~15 yli 10kpl \u2192 ~10 yli 50kpl\n      calc: (q) => {\n        if (q === 1) return 40;\n        if (q <= 10) return Math.round((40 + (q-1) * 21) * 100) \/ 100;\n        if (q <= 50) return Math.round((40 + 9*21 + (q-10) * 15) * 100) \/ 100;\n        if (q <= 100) return Math.round((40 + 9*21 + 40*15 + (q-50) * 10) * 100) \/ 100;\n        return Math.round((40 + 9*21 + 40*15 + 50*10 + (q-100) * 8) * 100) \/ 100;\n      },\n    },\n  };\n\n  \/\/ \u2500\u2500 Laminointilis\u00e4 \u20ac\/kpl \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const LAM_ADD = { none: 0, matt: 0.14, gloss: 0.12, soft: 0.14 };\n\n  \/\/ \u2500\u2500 T-paita \u2014 v\u00e4rit, koot, painatuspaikat, hinnoittelu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const TPAITA_SIZES = ['XS','S','M','L','XL','2XL','3XL','4XL','5XL'];\n  const TPAITA_COLORS = [\n    { val:'white',  hex:'#ffffff', label:'Valkoinen' },\n    { val:'yellow', hex:'#f5e400', label:'Keltainen' },\n    { val:'red',    hex:'#e0212c', label:'Punainen' },\n    { val:'orange', hex:'#ff7900', label:'Oranssi' },\n    { val:'turq',   hex:'#3ed6c5', label:'Turkoosi' },\n    { val:'blue',   hex:'#334f8d', label:'Sininen' },\n    { val:'black',  hex:'#000000', label:'Musta' },\n    { val:'navy',   hex:'#001b3d', label:'Laivastonsininen' },\n    { val:'grey',   hex:'#7c7c7c', label:'Harmaa' },\n    { val:'pink',   hex:'#d6006e', label:'Magenta' },\n    { val:'green',  hex:'#007a3d', label:'Vihre\u00e4' },\n  ];\n  \/\/ Yhteinen cm\u00b2 \u2192 \u20ac\/kpl -hinnasto, sama kaikille painatuspaikoille\n  const TPAITA_AREA_PRICE = { 100: 0.84, 300: 1.14, 500: 1.61, 750: 1.90 };\n  \/\/ Painatuspaikat: mitat + kullekin sallitut cm\u00b2-vaihtoehdot\n  const TPAITA_LOCATIONS = {\n    vasen_rinta: { label: 'Vasen rinta', dims: '110\u00d7110 mm', areas: [300] },\n    oikea_rinta: { label: 'Oikea rinta', dims: '110\u00d7110 mm', areas: [300] },\n    eteen:       { label: 'Eteen',       dims: '280\u00d7230 mm', areas: [100,300,500,750] },\n    ylos_taakse: { label: 'Yl\u00f6s taakse', dims: '280\u00d7230 mm', areas: [100,300,500,750] },\n    vasen_hauis: { label: 'Vasen hauis', dims: '80\u00d760 mm',   areas: [100] },\n    oikea_hauis: { label: 'Oikea hauis', dims: '80\u00d760 mm',   areas: [100] },\n  };\n  const TPAITA_SETUP_FEE = 25.78; \/\/ per valittu painatuspaikka, kertaalleen (ei per kpl)\n  const TPAITA_FREIGHT   = 13.00; \/\/ materiaalirahti, kertaalleen per tilaus \u2014 sulautettu hintaan, ei n\u00e4ytet\u00e4 erikseen\n  const TPAITA_QTY_MIN   = 5;\n  const TPAITA_QTY_MAX   = 50;    \/\/ yli t\u00e4m\u00e4n \u2192 \"Kysy tarjous\"\n\n  \/\/ Kappalehinta oletuskonfiguraatiolle (vasen rinta 300cm\u00b2) \u2014 lineaarinen interpolointi\n  \/\/ ankkuripisteiden v\u00e4lill\u00e4: 5kpl=17\u20ac, 10kpl=14\u20ac, 25kpl=9\u20ac, 50kpl=8\u20ac\n  function tpaitaCurvePrice(n) {\n    if (n <= 5)  return 17.00;\n    if (n <= 10) return 17.00 - 0.60     * (n - 5);\n    if (n <= 25) return 14.00 - (1 \/ 3)  * (n - 10);\n    if (n <= 50) return 9.00  - 0.04     * (n - 25);\n    return null; \/\/ yli 50 kpl \u2192 Kysy tarjous\n  }\n  \/\/ Yhden painatuspaikan kustannus: pinta-ala \u00d7 m\u00e4\u00e4r\u00e4 + kertaluontoinen aloitusmaksu\n  function tpaitaLocationCost(areaCm2, n) {\n    const price = TPAITA_AREA_PRICE[areaCm2] || 0;\n    return price * n + TPAITA_SETUP_FEE;\n  }\n\n  \/\/ \u2500\u2500 Kangaskassi \u2014 v\u00e4rit, painatuspaikat, hinnoittelu \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const KASSI_COLORS = [\n    { val:'white',  hex:'#ffffff', label:'Valkoinen' },\n    { val:'yellow', hex:'#f5e400', label:'Keltainen' },\n    { val:'red',    hex:'#b3132e', label:'Punainen' },\n    { val:'orange', hex:'#ff7900', label:'Oranssi' },\n    { val:'purple', hex:'#7c5cbf', label:'Violetti' },\n    { val:'pink',   hex:'#d98aa3', label:'Pinkki' },\n    { val:'blue',   hex:'#2f7fc1', label:'Sininen' },\n    { val:'navy',   hex:'#334f8d', label:'Tummansininen' },\n    { val:'darknavy', hex:'#0a1a33', label:'Laivastonsininen' },\n    { val:'green',  hex:'#2e9e44', label:'Vihre\u00e4' },\n    { val:'lightgreen', hex:'#8bc34a', label:'Vaaleanvihre\u00e4' },\n    { val:'grey',   hex:'#7c7c7c', label:'Harmaa' },\n    { val:'black',  hex:'#000000', label:'Musta' },\n    { val:'cream',  hex:'#f2ead9', label:'Luonnonvalkoinen' },\n  ];\n  \/\/ Perus-cm\u00b2-hinnasto (p\u00e4tee pieniin m\u00e4\u00e4riin, ks. kassiAreaRatio volyymialennukselle)\n  const KASSI_AREA_PRICE = { 100: 0.67, 300: 0.91, 500: 1.11, 750: 1.26 };\n  const KASSI_LOCATIONS = {\n    eteen:  { label: 'Eteen',  dims: '300\u00d7215 mm', areas: [100,300,500,750] },\n    takana: { label: 'Takana', dims: '300\u00d7215 mm', areas: [100,300,500,750] },\n  };\n  const KASSI_SETUP_FEE = 25.78; \/\/ sama aloitusmaksu kuin t-paidalla, per valittu paikka\n  const KASSI_FREIGHT_LOW  = 13.00;\n  const KASSI_FREIGHT_HIGH = 39.00;\n  const KASSI_FREIGHT_BREAK = 400; \/\/ 13\u20ac 5\u2013399 kpl, 39\u20ac 400\u2013500 kpl\n\n  \/\/ Volyymialennussuhde painatushinnalle \u2014 ankkuripisteet todellisesta datasta:\n  \/\/ 25kpl:aan asti t\u00e4ysi hinta (1.0), sitten 50\/100\/500kpl:lla annetut suhteet\n  const KASSI_AREA_RATIO_PTS = [[25, 1], [50, 1.20\/1.26], [100, 1.13\/1.26], [500, 1.04\/1.26]];\n  function kassiAreaRatio(n) {\n    if (n <= KASSI_AREA_RATIO_PTS[0][0]) return KASSI_AREA_RATIO_PTS[0][1];\n    for (let i = 0; i < KASSI_AREA_RATIO_PTS.length - 1; i++) {\n      const [q1, r1] = KASSI_AREA_RATIO_PTS[i], [q2, r2] = KASSI_AREA_RATIO_PTS[i + 1];\n      if (n >= q1 && n <= q2) return r1 + (n - q1) * (r2 - r1) \/ (q2 - q1);\n    }\n    return KASSI_AREA_RATIO_PTS[KASSI_AREA_RATIO_PTS.length - 1][1];\n  }\n  function kassiLocationCost(areaCm2, n) {\n    const base = KASSI_AREA_PRICE[areaCm2] || 0;\n    return base * kassiAreaRatio(n) * n + KASSI_SETUP_FEE;\n  }\n  \/\/ Kokonaismyyntihinnan k\u00e4yr\u00e4 (Eteen 750cm\u00b2 -oletus). Pisteet 5\/10\/25 k\u00e4ytt\u00e4v\u00e4t\n  \/\/ 35% katetta (sis\u00e4\u00e4nheittohinnoittelu), 50kpl pidet\u00e4\u00e4n 80% katteessa, ja\n  \/\/ 100\/500kpl ovat kiinte\u00e4t tavoitehinnat (3,35\u20ac\/kpl ja 2,75\u20ac\/kpl, rahti mukaan\n  \/\/ laskettuna): 100kpl \u2192 335,00\u20ac - 13\u20ac rahti = 322,00\u20ac; 500kpl \u2192 1375,00\u20ac - 39\u20ac rahti = 1336,00\u20ac.\n  const KASSI_MARGIN = 1.35;\n  const KASSI_CURVE_PTS = [\n    [5,   36.53 * KASSI_MARGIN],\n    [10,  47.28 * KASSI_MARGIN],\n    [25,  79.53 * KASSI_MARGIN],\n    [50,  130.28 * 1.8],   \/\/ pidet\u00e4\u00e4n 80% katteessa\n    [100, 322.00],          \/\/ tavoite 3,35 \u20ac\/kpl (rahti 13\u20ac mukaan laskettuna)\n    [500, 1336.00],         \/\/ tavoite 2,75 \u20ac\/kpl (rahti 39\u20ac mukaan laskettuna)\n  ];\n  function kassiCurveTotal(n) {\n    if (n <= KASSI_CURVE_PTS[0][0]) {\n      const [q1, p1] = KASSI_CURVE_PTS[0], [q2, p2] = KASSI_CURVE_PTS[1];\n      return p1 + (n - q1) * (p2 - p1) \/ (q2 - q1);\n    }\n    for (let i = 0; i < KASSI_CURVE_PTS.length - 1; i++) {\n      const [q1, p1] = KASSI_CURVE_PTS[i], [q2, p2] = KASSI_CURVE_PTS[i + 1];\n      if (n >= q1 && n <= q2) return p1 + (n - q1) * (p2 - p1) \/ (q2 - q1);\n    }\n    return KASSI_CURVE_PTS[KASSI_CURVE_PTS.length - 1][1];\n  }\n\n  \/\/ \u2500\u2500 Tuotem\u00e4\u00e4rittelyt \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const PRODUCTS = {\n    flyer: {\n      label: 'Flyer \/ Esite',\n      sizes: [\n        { val: 'A6', label: 'A6', sub: '105\u00d7148 mm' },\n        { val: 'A5', label: 'A5', sub: '148\u00d7210 mm', default: true },\n        { val: 'A4', label: 'A4', sub: '210\u00d7297 mm' },\n      ],\n      papers: ['115s', '115m', '130s', '130m', '170s', '170m', '200s', '200m'],\n      defaultPaper: '130s',\n      sides: ['1', '2'], defaultSides: '2',\n      lamination: false,\n      qtys: [10, 25, 50, 100, 250, 500, 1000, 2000], defaultQty: 500,\n    },\n    bizcard: {\n      label: 'K\u00e4yntikortti',\n      sizes: [\n        { val: '85x55mm', label: '85\u00d755 mm', sub: 'Standardi', default: true },\n        { val: '90x50mm', label: '90\u00d750 mm', sub: 'Slim' },\n      ],\n      papers: ['300biz', '300s'],\n      defaultPaper: '300biz',\n      sides: ['1', '2'], defaultSides: '2',\n      lamination: true,\n      qtys: [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000], defaultQty: 200,\n    },\n    brochure: {\n      label: 'Esite (4-sivua)',\n      sizes: [\n        { val: 'A6', label: 'A6', sub: '105\u00d7148 mm taitettu', default: false },\n        { val: 'A5', label: 'A5', sub: '148\u00d7210 mm taitettu', default: true },\n        { val: 'A4', label: 'A4', sub: '210\u00d7297 mm taitettu' },\n      ],\n      papers: ['115s', '115m', '130s', '130m', '170s', '170m', '200s', '200m'],\n      defaultPaper: '130s',\n      sides: ['2'], defaultSides: '2',   \/\/ 4-sivu = aina 2-puolinen\n      lamination: false,\n      qtys: [50, 100, 250, 500, 1000, 2000], defaultQty: 200,\n    },\n    banneri: {\n      label: 'Banderolli',\n      deliveryNote: '\u2713 Vahvistetut reunat ja purjerenkaat sis\u00e4ltyv\u00e4t hintaan',\n      \/\/ Koko sy\u00f6tet\u00e4\u00e4n vapaasti \u2014 ei predefined sizes\n      \/\/ Material options are customer-facing (not technical)\n      sizes: [{ val: 'custom', label: 'Mukautettu koko', default: true }],\n      papers: ['mesh', 'pvc', 'decotex'],\n      defaultPaper: 'pvc',\n      sides: ['1'], defaultSides: '1',\n      lamination: false,\n      qtys: [1, 2, 3, 5, 10], defaultQty: 1,\n      customSize: true,  \/\/ flag: show width\/height inputs instead of size chips\n    },\n    rollup: {\n      label: 'Premium Roll-Up',\n      sizes: [\n        { val: '85x200cm',  label: '85\u00d7200 cm',  sub: 'Standardi', default: true },\n        { val: '100x200cm', label: '100\u00d7200 cm', sub: 'Leve\u00e4' },\n      ],\n      papers: [],\n      defaultPaper: '',\n      sides: ['1'], defaultSides: '1',\n      lamination: false,\n      qtys: [1, 2, 3, 5, 10, 20], defaultQty: 1,\n    },\n    brochure6: {\n      label: 'Esite (6-sivua G\/Z)',\n      sizes: [\n        { val: 'DL6', label: '100\u00d7210 mm', sub: 'G- tai Z-taitto', default: true },\n      ],\n      papers: ['130s','130off','170s','170off','200s','200off','260inv','300s','300inv'],\n      defaultPaper: '130s',\n      sides: ['2'], defaultSides: '2',\n      lamination: false,\n      qtys: [50, 100, 250, 500, 1000, 2000], defaultQty: 200,\n    },\n    poster: {\n      label: 'Juliste',\n      sizes: [\n        { val: 'A3',      label: 'A3',       sub: '297\u00d7420 mm', default: true },\n        { val: 'A2',      label: 'A2',       sub: '420\u00d7594 mm' },\n        { val: '50x70cm', label: '50\u00d770 cm', sub: '500\u00d7700 mm' },\n        { val: '70x100cm',label: '70\u00d7100 cm',sub: '700\u00d71000 mm' },\n      ],\n      \/\/ A3: arkkitulostin \u2192 paperivalinta n\u00e4kyy\n      \/\/ A2\/50x70cm: suurkuva \u2192 paperi kiinte\u00e4 (140g matta tai 170g silk), ei n\u00e4ytet\u00e4\n      papers: ['140m', '170s'],\n      defaultPaper: '140m',\n      sides: ['1'], defaultSides: '1',\n      lamination: false,\n      qtys: [10, 25, 50, 100, 250, 500, 1000], defaultQty: 50,\n      \/* poster qtys ok *\/\n    },\n    tpaita: {\n      label: 'T-paita',\n      description: 'Lyhythihainen unisex-t-paita \u00b7 150 g\/m\u00b2',\n      \/\/ Ei perinteisi\u00e4 size-chippej\u00e4 \u2014 k\u00e4ytt\u00e4\u00e4 kokotaulukkoa (ks. sizeMatrix)\n      sizes: [{ val: 'matrix', label: 'Koot', default: true }],\n      sizeMatrix: true,\n      paikka: true,\n      colors: true,\n      papers: [],\n      defaultPaper: '',\n      sides: ['1'], defaultSides: '1',\n      lamination: false,\n      qtys: [], defaultQty: 0,\n      noRush: true, \/\/ valmistus (DTF + kassi) ei mahdu pikatoimituksen aikatauluun\n      normalDeliveryLabel: 'Toimitus 4\u20138 ty\u00f6p\u00e4iv\u00e4\u00e4', \/\/ paidan hankinta + DTF-painatus vie kauemmin kuin paperituotteet\n    },\n    kassi: {\n      label: 'Kangaskassi',\n      description: 'Puuvillakangaskassi 140 g\/m\u00b2 \u00b7 30 cm olkakahvat \u00b7 Kest\u00e4\u00e4 5 kg \u00b7 OEKO-Tex-sertifioitu, valmistettu Intiassa',\n      sizes: [{ val: 'onesize', label: 'Yksi koko', default: true }],\n      kassiPaikka: true,\n      kassiColors: true,\n      papers: [],\n      defaultPaper: '',\n      sides: ['1'], defaultSides: '1',\n      lamination: false,\n      qtys: [5, 10, 25, 50, 100, 500], defaultQty: 50,\n      noRush: true,\n      normalDeliveryLabel: 'Toimitus 4\u20138 ty\u00f6p\u00e4iv\u00e4\u00e4',\n    },\n  };\n\n  \/\/ \u2500\u2500 Tila \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  let S = { product: 'flyer', size: 'A5', qty: 500, paper: '130s', sides: '2', finish: 'none', banW: 100, banH: 200, delivery: 'pickup',\n    tpSizes: {}, tpColor: 'white', tpLocations: { vasen_rinta: { selected: true, area: 300 } },\n    kassiColor: 'white', kassiLocations: { eteen: { selected: true, area: 750 } } };\n\n  \/\/ \u2500\u2500 Hintalaskenta \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function calcPrice(s) {\n    \/\/ Kangaskassi: k\u00e4yr\u00e4 (Eteen 750cm\u00b2 -oletus, 80% kate) + paikkojen erotuskustannus + rahti\n    if (s.product === 'kassi') {\n      const n = s.qty;\n      const baselineCost = kassiLocationCost(750, n); \/\/ Eteen 750cm\u00b2 \u2014 jo mukana k\u00e4yr\u00e4ss\u00e4\n      const locs = s.kassiLocations || {};\n      let selectedCost = 0, anySelected = false;\n      Object.keys(locs).forEach(key => {\n        const l = locs[key];\n        if (l && l.selected) { anySelected = true; selectedCost += kassiLocationCost(l.area, n); }\n      });\n      if (!anySelected) selectedCost = baselineCost;\n\n      const extra = Math.round((selectedCost - baselineCost) * 100) \/ 100;\n      const curve = Math.round(kassiCurveTotal(n) * 100) \/ 100;\n      const beforeRush = Math.round((curve + extra) * 100) \/ 100;\n      const afterRush  = Math.round(beforeRush * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const freight    = n >= KASSI_FREIGHT_BREAK ? KASSI_FREIGHT_HIGH : KASSI_FREIGHT_LOW;\n      const prodTotal  = Math.round((afterRush + freight) * 100) \/ 100;\n      const fee = (s.delivery === 'pickup' || prodTotal >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n\n      return {\n        total:        Math.round((prodTotal + fee) * 100) \/ 100,\n        productTotal: prodTotal,\n        deliveryFee:  fee,\n        unit:         Math.round((prodTotal \/ n) * 1000) \/ 1000,\n        qty: n,\n      };\n    }\n\n    \/\/ T-paita: kokotaulukon yhteism\u00e4\u00e4r\u00e4 + interpoloitu k\u00e4yr\u00e4 + paikkojen lis\u00e4kulut\n    if (s.product === 'tpaita') {\n      const n = Object.values(s.tpSizes || {}).reduce((a, b) => a + (parseInt(b) || 0), 0);\n\n      if (n < TPAITA_QTY_MIN) {\n        return { total: null, productTotal: null, deliveryFee: 0, unit: null, qty: n, tooFew: true };\n      }\n      if (n > TPAITA_QTY_MAX) {\n        return { total: null, productTotal: null, deliveryFee: 0, unit: null, qty: n, quoteOnly: true };\n      }\n\n      \/\/ Oletuspaikka (vasen rinta 300cm\u00b2) on jo mukana k\u00e4yr\u00e4n hinnassa \u2014 lasketaan vain ERO\n      \/\/ valitun paikka-kokoonpanon ja oletuksen v\u00e4lill\u00e4 (voi olla my\u00f6s negatiivinen).\n      const baselineCost = tpaitaLocationCost(300, n);\n      const locs = s.tpLocations || {};\n      let selectedCost = 0;\n      let anySelected = false;\n      Object.keys(locs).forEach(key => {\n        const l = locs[key];\n        if (l && l.selected) { anySelected = true; selectedCost += tpaitaLocationCost(l.area, n); }\n      });\n      if (!anySelected) selectedCost = baselineCost; \/\/ turvaverkko \u2014 UI ei salli nollaa valintaa\n\n      const extra    = Math.round((selectedCost - baselineCost) * 100) \/ 100;\n      const perUnit  = tpaitaCurvePrice(n);\n      const garment  = Math.round(perUnit * n * 100) \/ 100;\n      const beforeRush = Math.round((garment + extra) * 100) \/ 100;\n      const afterRush  = Math.round(beforeRush * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const prodTotal  = Math.round((afterRush + TPAITA_FREIGHT) * 100) \/ 100;\n      const fee = (s.delivery === 'pickup' || prodTotal >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n\n      return {\n        total:        Math.round((prodTotal + fee) * 100) \/ 100,\n        productTotal: prodTotal,\n        deliveryFee:  fee,\n        unit:         Math.round((prodTotal \/ n) * 1000) \/ 1000,\n        qty: n,\n      };\n    }\n\n    \/\/ Banneri: leveys \u00d7 korkeus \u00d7 \u20ac\/m\u00b2, min 50\u20ac per tilaus\n    if (s.product === 'banneri') {\n      const BANNERI_MIN_ORDER = 50;\n      const mat = BANNERI_MATERIALS[s.paper] || BANNERI_MATERIALS['pvc'];\n      const w = Math.max(BANNERI_MIN_CM, s.banW || 100) \/ 100;\n      const h = Math.max(BANNERI_MIN_CM, s.banH || 200) \/ 100;\n      const m2 = w * h;\n      const unitPrice = Math.round(m2 * mat.price * 100) \/ 100;\n      const rawTotal = Math.round(unitPrice * s.qty * 100) \/ 100;\n      const banProd = Math.round(Math.max(BANNERI_MIN_ORDER, rawTotal) * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const banFee = (s.delivery === 'pickup' || banProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((banProd + banFee) * 100) \/ 100, productTotal: banProd, deliveryFee: banFee, unit: unitPrice, m2: Math.round(m2 * 100) \/ 100, minApplied: Math.max(BANNERI_MIN_ORDER, rawTotal) > rawTotal };\n    }\n\n    \/\/ Roll-Up: kiinte\u00e4 hinta per koko, vain 1 kpl min\n    if (s.product === 'rollup') {\n      const price = ROLLUP_PRICE[s.size] || 130;\n      const total = Math.round(price * s.qty * 100) \/ 100;\n      const rupProd = total;\n      const rupFee = (s.delivery === 'pickup' || rupProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((rupProd + rupFee) * 100) \/ 100, productTotal: rupProd, deliveryFee: rupFee, unit: price };\n    }\n\n    \/\/ K\u00e4yntikortti: kiinte\u00e4 malli\n    \/\/ Ilman laminointia: 40 + 0.15\u00d7q  (100kpl=55\u20ac, 200kpl=70\u20ac, 300kpl=85\u20ac \u2713)\n    \/\/ Laminoinnilla:     lookup (200kpl=130\u20ac, 300kpl=175\u20ac, 500kpl=275\u20ac \u2713)\n    if (s.product === 'bizcard') {\n      let total;\n      if (s.finish === 'none') {\n        total = BIZCARD_PRICE(s.qty);\n      } else {\n        \/\/ Lookup-interpolaatio laminoidulle k\u00e4yntikortille\n        const lamPts = [[100,85],[200,130],[300,175],[500,275]];\n        \/\/ alle min: lineaarinen ekstrapolaatio\n        if (s.qty <= lamPts[0][0]) {\n          total = lamPts[0][1] + (s.qty - lamPts[0][0]) * (lamPts[1][1]-lamPts[0][1]) \/ (lamPts[1][0]-lamPts[0][0]);\n        \/\/ yli max: 0.50\u20ac\/kpl marginaali\n        } else if (s.qty >= lamPts[lamPts.length-1][0]) {\n          total = lamPts[lamPts.length-1][1] + (s.qty - lamPts[lamPts.length-1][0]) * 0.50;\n        } else {\n          for (let i=0; i<lamPts.length-1; i++) {\n            const [q1,p1]=lamPts[i],[q2,p2]=lamPts[i+1];\n            if (s.qty>=q1 && s.qty<=q2) { total = p1+(s.qty-q1)*(p2-p1)\/(q2-q1); break; }\n          }\n        }\n        total = Math.round(total * 100) \/ 100;\n      }\n      const bizProd = Math.round(total * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const bizFee = (s.delivery === 'pickup' || bizProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((bizProd + bizFee) * 100) \/ 100, productTotal: bizProd, deliveryFee: bizFee, unit: Math.round(bizProd \/ s.qty * 1000) \/ 1000 };\n    }\n\n    \/\/ Esite (6-sivu G\/Z-taitto 100\u00d7210mm)\n    if (s.product === 'brochure6') {\n      const sheets = Math.ceil(s.qty \/ 2) * C.waste;\n      const paper  = PAPER_EUR_PER_SHEET[s.paper] || 0.035;\n      const direct =\n        C.fixed\n        + sheets * paper\n        + sheets * C.click44\n        + sheets * C.labor44\n        + s.qty  * C.perPiece\n        + BROCHURE6_FOLD.setup\n        + s.qty  * BROCHURE6_FOLD.perPiece;\n      const total = Math.round(direct \/ (1 - BROCHURE6_MARGIN) * 100) \/ 100;\n      const bizProd = Math.round(total * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const bizFee = (s.delivery === 'pickup' || bizProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((bizProd + bizFee) * 100) \/ 100, productTotal: bizProd, deliveryFee: bizFee, unit: Math.round(bizProd \/ s.qty * 1000) \/ 1000 };\n    }\n\n    \/\/ Esite (4-sivu taitettu): taitto mukana, isompi kate\n    if (s.product === 'brochure') {\n      const impl   = BROCHURE_IMPOSITION[s.size] || 2;\n      const sheets = Math.ceil(s.qty \/ impl) * C.waste;\n      const paper  = PAPER_EUR_PER_SHEET[s.paper] || 0.035;\n      const direct =\n        C.fixed\n        + sheets * paper\n        + sheets * (s.sides === '2' ? C.click44 : C.click10)\n        + sheets * (s.sides === '2' ? C.labor44 : C.labor10)\n        + s.qty  * C.perPiece\n        + BROCHURE_FOLD.setup\n        + s.qty  * BROCHURE_FOLD.perPiece;\n      const total = Math.round(direct \/ (1 - BROCHURE_MARGIN) * 100) \/ 100;\n      const bizProd = Math.round(total * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const bizFee = (s.delivery === 'pickup' || bizProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((bizProd + bizFee) * 100) \/ 100, productTotal: bizProd, deliveryFee: bizFee, unit: Math.round(bizProd \/ s.qty * 1000) \/ 1000 };\n    }\n\n    \/\/ Suurkuvatulostus: A2 ja 50x70cm k\u00e4ytt\u00e4v\u00e4t erillismallia\n    if (LARGE_FORMAT[s.size]) {\n      const total = LARGE_FORMAT[s.size].calc(s.qty);\n      const bizProd = Math.round(total * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n      const bizFee = (s.delivery === 'pickup' || bizProd >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n      return { total: Math.round((bizProd + bizFee) * 100) \/ 100, productTotal: bizProd, deliveryFee: bizFee, unit: Math.round(bizProd \/ s.qty * 1000) \/ 1000 };\n    }\n\n    \/\/ Arkkitulostin: A6, DL, A5, A4, A3\n    const impl      = IMPOSITION[s.size] || 4;\n    const paperCost = PAPER_EUR_PER_SHEET[s.paper] || 0.035;\n    const sheets    = Math.ceil(s.qty \/ impl) * C.waste;\n    const duplex    = s.sides === '2';\n\n    const direct =\n      C.fixed\n      + sheets * paperCost\n      + sheets * (duplex ? C.click44 : C.click10)\n      + sheets * (duplex ? C.labor44 : C.labor10)\n      + s.qty  * C.perPiece;\n\n    const base  = direct \/ (1 - C.margin);\n    const total = base; \/\/ laminointi vain k\u00e4yntikorteille\n\n    const prodTotal = Math.round(total * (s.delivery === 'rush' ? 1.30 : 1) * 100) \/ 100;\n    const fee = (s.delivery === 'pickup' || prodTotal >= FREE_THRESHOLD) ? 0 : DELIVERY_FEE;\n    return {\n      total:        Math.round((prodTotal + fee) * 100) \/ 100,\n      productTotal: prodTotal,\n      deliveryFee:  fee,\n      unit:         Math.round(prodTotal \/ s.qty * 1000) \/ 1000,\n    };\n  }\n\n  \/\/ \u2500\u2500 Muotoilijat \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  const fmtEur  = n => new Intl.NumberFormat('fi-FI', { style:'currency', currency:'EUR', minimumFractionDigits:2, maximumFractionDigits:2 }).format(n);\n  const fmtUnit = n => new Intl.NumberFormat('fi-FI', { style:'currency', currency:'EUR', minimumFractionDigits:3, maximumFractionDigits:3 }).format(n);\n  const fmtQty  = n => new Intl.NumberFormat('fi-FI').format(n) + ' kpl';\n  const $       = id => document.getElementById(id);\n\n  if (window.tprintCfg?.accentColor)\n    document.getElementById('tprint-root')?.style.setProperty('--tp-accent', window.tprintCfg.accentColor);\n\n  \/\/ \u2500\u2500 Render\u00f6inti \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderChips(containerId, items, currentVal, onChange) {\n    const el = $(containerId);\n    if (!el) return;\n    el.innerHTML = items.map(item => {\n      const active = item.val === currentVal ? ' tp-chip--active' : '';\n      const sub    = item.sub ? `<span>${item.sub}<\/span>` : '';\n      return `<button class=\"tp-chip${active}\" data-val=\"${item.val}\">${item.label}${sub}<\/button>`;\n    }).join('');\n    el.querySelectorAll('.tp-chip').forEach(btn =>\n      btn.addEventListener('click', () => {\n        el.querySelectorAll('.tp-chip').forEach(b => b.classList.remove('tp-chip--active'));\n        btn.classList.add('tp-chip--active');\n        onChange(btn.dataset.val);\n      })\n    );\n  }\n\n  function renderPapers(keys, current) {\n    const wrap = $('tp-paper');\n    if (!wrap) return;\n    wrap.innerHTML = keys.map(k => `\n      <label class=\"tp-paper-opt${k === current ? ' tp-paper-opt--checked' : ''}\">\n        <input type=\"radio\" name=\"tp_paper\" value=\"${k}\"${k === current ? ' checked' : ''}>\n        <span class=\"tp-paper-name\">${PAPER_LABEL[k] || k}<\/span>\n        <span class=\"tp-paper-desc\">${PAPER_DESC[k] || ''}<\/span>\n      <\/label>`).join('');\n    wrap.querySelectorAll('input[type=radio]').forEach(r =>\n      r.addEventListener('change', () => {\n        wrap.querySelectorAll('.tp-paper-opt').forEach(o => o.classList.remove('tp-paper-opt--checked'));\n        r.closest('.tp-paper-opt').classList.add('tp-paper-opt--checked');\n        S.paper = r.value;\n        updatePrice();\n      })\n    );\n  }\n\n  \/\/ \u2500\u2500 T-paita: kokotaulukko \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderSizeMatrix() {\n    const el = $('tp-size');\n    if (!el) return;\n    el.className = '';\n    el.innerHTML = '<div class=\"tp-size-matrix\">' +\n      TPAITA_SIZES.map(sz => {\n        const val = S.tpSizes[sz] || 0;\n        return `<div class=\"tp-size-cell${val > 0 ? ' tp-size-cell--filled' : ''}\" data-size=\"${sz}\">\n          <label>${sz}<\/label>\n          <input type=\"number\" min=\"0\" step=\"1\" value=\"${val || ''}\" placeholder=\"0\" data-size=\"${sz}\" \/>\n        <\/div>`;\n      }).join('') +\n      '<\/div>' +\n      '<div class=\"tp-size-total-row\"><span>Yhteens\u00e4<\/span><strong id=\"tp-size-total-val\">0 kpl<\/strong><\/div>' +\n      '<div id=\"tp-size-note\" style=\"margin-top:6px;\"><\/div>';\n    el.querySelectorAll('input').forEach(inp => {\n      inp.addEventListener('input', () => {\n        const sz = inp.dataset.size;\n        const v = Math.max(0, parseInt(inp.value) || 0);\n        S.tpSizes[sz] = v;\n        inp.closest('.tp-size-cell').classList.toggle('tp-size-cell--filled', v > 0);\n        updatePrice();\n      });\n    });\n    updateSizeTotalDisplay();\n  }\n\n  function updateSizeTotalDisplay() {\n    const n = Object.values(S.tpSizes).reduce((a, b) => a + (parseInt(b) || 0), 0);\n    const totalEl = $('tp-size-total-val');\n    const noteEl  = $('tp-size-note');\n    if (totalEl) totalEl.textContent = n + ' kpl';\n    if (noteEl) {\n      if (n === 0) noteEl.innerHTML = '';\n      else if (n < TPAITA_QTY_MIN) noteEl.innerHTML = `<span class=\"tp-size-min-warn\">V\u00e4hint\u00e4\u00e4n ${TPAITA_QTY_MIN} kpl yhteens\u00e4 (nyt ${n})<\/span>`;\n      else if (n > TPAITA_QTY_MAX) noteEl.innerHTML = `<span class=\"tp-size-ok\">Yli ${TPAITA_QTY_MAX} kpl \u2192 hinnoitellaan tarjouksena<\/span>`;\n      else noteEl.innerHTML = `<span class=\"tp-size-ok\">\u2713 M\u00e4\u00e4r\u00e4 kelpaa<\/span>`;\n    }\n  }\n\n  \/\/ \u2500\u2500 T-paita: v\u00e4rit \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderColors() {\n    const el = $('tp-color');\n    if (!el) return;\n    el.innerHTML = TPAITA_COLORS.map(c => {\n      const active = c.val === S.tpColor ? ' tp-color-swatch--active' : '';\n      const white  = c.val === 'white' ? ' data-white=\"1\"' : '';\n      return `<button type=\"button\" class=\"tp-color-swatch${active}\" style=\"background:${c.hex};\"${white} data-val=\"${c.val}\" title=\"${c.label}\" aria-label=\"${c.label}\"><\/button>`;\n    }).join('');\n    el.querySelectorAll('.tp-color-swatch').forEach(btn =>\n      btn.addEventListener('click', () => {\n        S.tpColor = btn.dataset.val;\n        el.querySelectorAll('.tp-color-swatch').forEach(b => b.classList.remove('tp-color-swatch--active'));\n        btn.classList.add('tp-color-swatch--active');\n        updatePrice();\n      })\n    );\n  }\n\n  \/\/ \u2500\u2500 T-paita: painatuksen paikka \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderPaikka() {\n    const el = $('tp-paikka');\n    if (!el) return;\n    el.innerHTML = Object.entries(TPAITA_LOCATIONS).map(([key, loc]) => {\n      const state = S.tpLocations[key] || { selected: false, area: loc.areas[0] };\n      const checked = state.selected ? ' checked' : '';\n      let areaControl;\n      if (loc.areas.length > 1) {\n        areaControl = `<select class=\"tp-paikka-area-select\" data-loc=\"${key}\"${state.selected ? '' : ' disabled'}>` +\n          loc.areas.map(a => `<option value=\"${a}\"${a === state.area ? ' selected' : ''}>${a} cm\u00b2 \u2013 ${fmtEur(TPAITA_AREA_PRICE[a])}<\/option>`).join('') +\n          `<\/select>`;\n      } else {\n        areaControl = `<span class=\"tp-paikka-area-fixed\">${loc.areas[0]} cm\u00b2 \u2013 ${fmtEur(TPAITA_AREA_PRICE[loc.areas[0]])}<\/span>`;\n      }\n      return `<div class=\"tp-paikka-item\" data-loc=\"${key}\">\n        <label class=\"tp-paikka-check\">\n          <input type=\"checkbox\" data-loc=\"${key}\"${checked} \/>\n          ${loc.label} <span class=\"tp-paikka-dims\">${loc.dims}<\/span>\n        <\/label>\n        ${areaControl}\n      <\/div>`;\n    }).join('');\n\n    el.querySelectorAll('input[type=checkbox]').forEach(cb => {\n      cb.addEventListener('change', () => {\n        const key = cb.dataset.loc;\n        if (!S.tpLocations[key]) S.tpLocations[key] = { selected: false, area: TPAITA_LOCATIONS[key].areas[0] };\n        S.tpLocations[key].selected = cb.checked;\n        \/\/ V\u00e4hint\u00e4\u00e4n yksi paikka pit\u00e4\u00e4 olla aina valittuna\n        const anySelected = Object.values(S.tpLocations).some(l => l.selected);\n        if (!anySelected) { cb.checked = true; S.tpLocations[key].selected = true; }\n        const select = el.querySelector(`select[data-loc=\"${key}\"]`);\n        if (select) select.disabled = !S.tpLocations[key].selected;\n        updatePrice();\n      });\n    });\n    el.querySelectorAll('select.tp-paikka-area-select').forEach(sel => {\n      sel.addEventListener('change', () => {\n        const key = sel.dataset.loc;\n        if (!S.tpLocations[key]) S.tpLocations[key] = { selected: true, area: parseInt(sel.value) };\n        S.tpLocations[key].area = parseInt(sel.value);\n        updatePrice();\n      });\n    });\n  }\n\n  \/\/ \u2500\u2500 Toimitustapa (tuotekohtainen \u2014 osa tuotteista ei tarjoa pikatoimitusta) \u2500\n  function renderDeliveryChips() {\n    const def = PRODUCTS[S.product];\n    const opts = [\n      { val:'pickup', label:'Nouto Hyvink\u00e4\u00e4lt\u00e4 \ud83c\udd93' },\n      { val:'normal', label: def?.normalDeliveryLabel || 'Toimitus 3\u20135 ty\u00f6p\u00e4iv\u00e4\u00e4' },\n      { val:'rush',   label:'Pikatoimitus 1\u20132 ty\u00f6p\u00e4iv\u00e4\u00e4' },\n    ].filter(o => !(o.val === 'rush' && def?.noRush));\n    if (def?.noRush && S.delivery === 'rush') S.delivery = 'normal';\n    renderChips('tp-delivery', opts, S.delivery, v => { S.delivery = v; updatePrice(); });\n  }\n\n  \/\/ \u2500\u2500 Kangaskassi: v\u00e4rit \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderKassiColors() {\n    const el = $('tp-color');\n    if (!el) return;\n    el.innerHTML = KASSI_COLORS.map(c => {\n      const active = c.val === S.kassiColor ? ' tp-color-swatch--active' : '';\n      const white  = c.val === 'white' ? ' data-white=\"1\"' : '';\n      return `<button type=\"button\" class=\"tp-color-swatch${active}\" style=\"background:${c.hex};\"${white} data-val=\"${c.val}\" title=\"${c.label}\" aria-label=\"${c.label}\"><\/button>`;\n    }).join('');\n    el.querySelectorAll('.tp-color-swatch').forEach(btn =>\n      btn.addEventListener('click', () => {\n        S.kassiColor = btn.dataset.val;\n        el.querySelectorAll('.tp-color-swatch').forEach(b => b.classList.remove('tp-color-swatch--active'));\n        btn.classList.add('tp-color-swatch--active');\n        updatePrice();\n      })\n    );\n  }\n\n  \/\/ \u2500\u2500 Kangaskassi: painatuksen paikka (Eteen \/ Takana) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function renderKassiPaikka() {\n    const el = $('tp-paikka');\n    if (!el) return;\n    el.innerHTML = Object.entries(KASSI_LOCATIONS).map(([key, loc]) => {\n      const state = S.kassiLocations[key] || { selected: false, area: loc.areas[0] };\n      const checked = state.selected ? ' checked' : '';\n      const areaControl = `<select class=\"tp-paikka-area-select\" data-loc=\"${key}\"${state.selected ? '' : ' disabled'}>` +\n        loc.areas.map(a => `<option value=\"${a}\"${a === state.area ? ' selected' : ''}>${a} cm\u00b2 \u2013 ${fmtEur(KASSI_AREA_PRICE[a])}<\/option>`).join('') +\n        `<\/select>`;\n      return `<div class=\"tp-paikka-item\" data-loc=\"${key}\">\n        <label class=\"tp-paikka-check\">\n          <input type=\"checkbox\" data-loc=\"${key}\"${checked} \/>\n          ${loc.label} <span class=\"tp-paikka-dims\">${loc.dims}<\/span>\n        <\/label>\n        ${areaControl}\n      <\/div>`;\n    }).join('');\n\n    el.querySelectorAll('input[type=checkbox]').forEach(cb => {\n      cb.addEventListener('change', () => {\n        const key = cb.dataset.loc;\n        if (!S.kassiLocations[key]) S.kassiLocations[key] = { selected: false, area: KASSI_LOCATIONS[key].areas[0] };\n        S.kassiLocations[key].selected = cb.checked;\n        const anySelected = Object.values(S.kassiLocations).some(l => l.selected);\n        if (!anySelected) { cb.checked = true; S.kassiLocations[key].selected = true; }\n        const select = el.querySelector(`select[data-loc=\"${key}\"]`);\n        if (select) select.disabled = !S.kassiLocations[key].selected;\n        updatePrice();\n      });\n    });\n    el.querySelectorAll('select.tp-paikka-area-select').forEach(sel => {\n      sel.addEventListener('change', () => {\n        const key = sel.dataset.loc;\n        if (!S.kassiLocations[key]) S.kassiLocations[key] = { selected: true, area: parseInt(sel.value) };\n        S.kassiLocations[key].area = parseInt(sel.value);\n        updatePrice();\n      });\n    });\n  }\n\n  \/\/ \u2500\u2500 Tuotteen vaihto \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function switchProduct(key) {\n    const def = PRODUCTS[key];\n    if (!def) return;\n    S.product = key;\n    S.size    = (def.sizes.find(s => s.default) || def.sizes[0]).val;\n    S.paper   = def.defaultPaper;\n    S.sides   = def.defaultSides;\n    S.finish  = 'none';\n    S.qty     = def.defaultQty;\n\n    \/\/ T-paita \/ Kangaskassi: nollaa oma tila + n\u00e4yt\u00e4\/piilota kuva-, v\u00e4ri- ja paikka-osiot\n    const isTpaita = key === 'tpaita';\n    const isKassi  = key === 'kassi';\n    if (isTpaita) {\n      S.tpSizes = {};\n      S.tpColor = 'white';\n      S.tpLocations = { vasen_rinta: { selected: true, area: 300 } };\n    }\n    if (isKassi) {\n      S.kassiColor = 'white';\n      S.kassiLocations = { eteen: { selected: true, area: 750 } };\n    }\n    const photoSection  = $('tp-photo-section');\n    const colorSection  = $('tp-color-section');\n    const paikkaSection = $('tp-paikka-section');\n    if (photoSection)  photoSection.style.display  = (isTpaita || isKassi) ? '' : 'none';\n    if (colorSection)  colorSection.style.display  = (isTpaita || isKassi) ? '' : 'none';\n    if (paikkaSection) paikkaSection.style.display = (isTpaita || isKassi) ? '' : 'none';\n    if (isTpaita) {\n      const photoEl = $('tp-photo');\n      if (photoEl) { photoEl.src = (window.tprintCfg && window.tprintCfg.tpaitaImage) || ''; photoEl.alt = 'T-paita'; }\n      const captionEl = $('tp-photo-caption');\n      if (captionEl) captionEl.textContent = def.description || '';\n    }\n    if (isKassi) {\n      const photoEl = $('tp-photo');\n      if (photoEl) { photoEl.src = (window.tprintCfg && window.tprintCfg.kassiImage) || ''; photoEl.alt = 'Kangaskassi'; }\n      const captionEl = $('tp-photo-caption');\n      if (captionEl) captionEl.textContent = def.description || '';\n    }\n    \/\/ Kappalem\u00e4\u00e4r\u00e4 tulee kokotaulukosta t-paidalla \u2014 piilotetaan chip-valitsin.\n    \/\/ Kangaskassilla m\u00e4\u00e4r\u00e4 valitaan normaaleilla chipeill\u00e4, joten osio pysyy n\u00e4kyviss\u00e4.\n    const qtySection = $('tp-qty')?.closest('.tprint-section');\n    if (qtySection) qtySection.style.display = isTpaita ? 'none' : '';\n\n    \/\/ Banneri: show custom width\/height inputs instead of size chips\n    const sizeSection = $('tp-size')?.closest('.tprint-section');\n    const sizeLabel = sizeSection?.querySelector('.tprint-section-label');\n    \/\/ Kangaskassi on yht\u00e4 kokoa \u2014 piilotetaan koko-osio kokonaan\n    if (sizeSection) sizeSection.style.display = isKassi ? 'none' : '';\n    if (isTpaita) {\n      renderSizeMatrix();\n      if (sizeLabel) sizeLabel.textContent = 'Koko';\n    } else if (def.customSize) {\n      \/\/ Render custom size inputs\n      const sizeContainer = $('tp-size');\n      if (sizeContainer) {\n        sizeContainer.innerHTML = '<div style=\"display:flex;align-items:center;gap:12px;flex-wrap:wrap;\">'\n          + '<div style=\"display:flex;flex-direction:column;gap:4px;\">'\n          + '<label style=\"font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--tp-muted);\">Leveys (cm)<\/label>'\n          + '<input id=\"tp-ban-w\" type=\"number\" min=\"' + BANNERI_MIN_CM + '\" max=\"1000\" value=\"' + (S.banW||100) + '\" style=\"width:100px;border:1.5px solid var(--tp-border);border-radius:6px;padding:8px 12px;font-size:15px;font-family:var(--tp-font);\" \/>'\n          + '<\/div>'\n          + '<div style=\"font-size:18px;color:var(--tp-muted);padding-top:18px;\">\u00d7<\/div>'\n          + '<div style=\"display:flex;flex-direction:column;gap:4px;\">'\n          + '<label style=\"font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.06em;color:var(--tp-muted);\">Korkeus (cm)<\/label>'\n          + '<input id=\"tp-ban-h\" type=\"number\" min=\"' + BANNERI_MIN_CM + '\" max=\"1000\" value=\"' + (S.banH||200) + '\" style=\"width:100px;border:1.5px solid var(--tp-border);border-radius:6px;padding:8px 12px;font-size:15px;font-family:var(--tp-font);\" \/>'\n          + '<\/div>'\n          + '<div id=\"tp-ban-m2\" style=\"padding-top:18px;font-size:13px;color:var(--tp-muted);\"><\/div>'\n          + '<\/div>';\n        sizeContainer.querySelectorAll('input').forEach(inp => {\n          inp.addEventListener('input', () => {\n            S.banW = parseInt($('tp-ban-w')?.value) || 100;\n            S.banH = parseInt($('tp-ban-h')?.value) || 200;\n            S.size = 'custom';\n            updatePrice();\n          });\n          inp.addEventListener('focus', function(){ this.style.borderColor='var(--tp-accent)'; this.style.boxShadow='0 0 0 3px rgba(var(--tp-accent-rgb),0.1)'; });\n          inp.addEventListener('blur',  function(){ this.style.borderColor='var(--tp-border)'; this.style.boxShadow=''; });\n        });\n        updatePrice();\n      }\n      if (sizeLabel) sizeLabel.textContent = 'Koko';\n    } else {\n      \/\/ Normal chip sizes\n      if (sizeLabel) sizeLabel.textContent = 'Koko';\n    }\n    if (!def.customSize && !isTpaita && !isKassi) {\n      renderChips('tp-size', def.sizes, S.size, v => {\n        S.size = v;\n        const isNoPaper = LARGE_FORMAT[v] || S.product === 'rollup';\n        const paperSection = $('tp-paper')?.closest('.tprint-section');\n        if (paperSection) paperSection.style.display = isNoPaper ? 'none' : '';\n        updatePrice();\n      });\n    }\n    \/\/ Aseta oikea tila heti alussa\n    const paperSection2 = $('tp-paper')?.closest('.tprint-section');\n    if (paperSection2) paperSection2.style.display = (LARGE_FORMAT[S.size] || key === 'rollup' || isTpaita || isKassi) ? 'none' : '';\n    \/\/ For banneri, always show paper (material choice)\n    if (key === 'banneri' && paperSection2) paperSection2.style.display = '';\n    \/\/ Show\/hide delivery note for banneri\n    let noteEl = document.getElementById('tp-banneri-note');\n    if (!noteEl) {\n      noteEl = document.createElement('p');\n      noteEl.id = 'tp-banneri-note';\n      noteEl.style.cssText = 'font-size:13px;color:var(--tp-accent);margin-top:12px;display:none;';\n      const qsec = $('tp-qty')?.closest('.tprint-section');\n      if (qsec) qsec.after(noteEl);\n    }\n    noteEl.textContent = def.deliveryNote || '';\n    noteEl.style.display = def.deliveryNote ? 'block' : 'none';\n    if (!isTpaita) renderChips('tp-qty',\n      [...def.qtys.map(q => ({ val: String(q), label: new Intl.NumberFormat('fi-FI').format(q) })),\n       { val: 'custom', label: 'Muu \u270f\ufe0f' }],\n      String(S.qty), v => {\n        if (v === 'custom') {\n          let ci = document.getElementById('tp-custom-qty-wrap');\n          if (!ci) {\n            ci = document.createElement('div');\n            ci.id = 'tp-custom-qty-wrap';\n            ci.style.cssText = 'margin-top:12px;display:flex;align-items:center;gap:10px;';\n            ci.innerHTML = '<input id=\"tp-custom-qty-inp\" type=\"number\" min=\"1\" max=\"100000\" placeholder=\"Sy\u00f6t\u00e4 m\u00e4\u00e4r\u00e4...\" style=\"border:1.5px solid var(--tp-accent);border-radius:6px;padding:8px 14px;font-size:15px;font-family:var(--tp-font);width:180px;outline:none;background:var(--tp-surface);\" \/><span style=\"font-size:14px;color:var(--tp-muted);\">kpl<\/span><span id=\"tp-custom-qty-note\" style=\"font-size:13px;font-weight:600;display:none;\"><\/span>';\n            const qsec = $('tp-qty')?.closest('.tprint-section');\n            if (qsec) qsec.appendChild(ci);\n            document.getElementById('tp-custom-qty-inp').addEventListener('input', function() {\n              const v = parseInt(this.value);\n              const maxQty = Math.max(...(PRODUCTS[S.product]?.qtys || [0]));\n              const note = document.getElementById('tp-custom-qty-note');\n              if (v > 0 && maxQty > 0 && v > maxQty) {\n                \/\/ Ylitt\u00e4\u00e4 suurimman valmiiksi m\u00e4\u00e4ritellyn m\u00e4\u00e4r\u00e4n \u2192 kysy tarjous\n                if (note) {\n                  note.textContent = 'Kysy tarjous isosta er\u00e4st\u00e4 \u2192';\n                  note.style.display = 'inline';\n                  note.style.color = 'var(--tp-accent)';\n                  note.style.cursor = 'pointer';\n                  note.onclick = function() {\n                    window.location.href = 'mailto:myynti@t-print.fi?subject=Tarjouspyynt\u00f6 ' + (PRODUCTS[S.product]?.label||S.product) + ' ' + v + ' kpl';\n                  };\n                }\n                \/\/ N\u00e4yt\u00e4 \"Kysy tarjous\" hinnan tilalla\n                const totalEl = document.getElementById('tp-total');\n                if (totalEl) totalEl.textContent = 'Kysy tarjous';\n                const unitEl = document.getElementById('tp-unit');\n                if (unitEl) unitEl.textContent = 'myynti@t-print.fi';\n                S.qty = v; \/\/ tallenna silti jotta summary pysyy oikeana\n              } else if (v > 0) {\n                if (note) note.style.display = 'none';\n                S.qty = v; updatePrice();\n              }\n            });\n            document.getElementById('tp-custom-qty-inp').focus();\n          } else {\n            ci.style.display = 'flex';\n            document.getElementById('tp-custom-qty-inp')?.focus();\n          }\n        } else {\n          S.qty = parseInt(v);\n          const ci = document.getElementById('tp-custom-qty-wrap');\n          if (ci) ci.style.display = 'none';\n          updatePrice();\n        }\n      });\n    renderPapers(def.papers, S.paper);\n\n    const sidesSection = $('tp-sides-section');\n    if (sidesSection) sidesSection.style.display = def.sides.length === 1 ? 'none' : '';\n    renderChips('tp-sides',\n      [{ val:'1', label:'1-puolinen' }, { val:'2', label:'2-puolinen' }]\n        .filter(o => def.sides.includes(o.val)),\n      S.sides, v => { S.sides = v; updatePrice(); });\n\n    const finSection = $('tp-finish-section');\n    if (finSection) finSection.style.display = def.lamination ? '' : 'none';\n    if (!def.lamination) S.finish = 'none';\n    $('tp-finish')?.querySelectorAll('.tp-chip').forEach(b =>\n      b.classList.toggle('tp-chip--active', b.dataset.val === 'none'));\n\n    if (isTpaita) { renderColors(); renderPaikka(); }\n    else if (isKassi) { renderKassiColors(); renderKassiPaikka(); }\n\n    renderDeliveryChips();\n\n    updatePrice();\n  }\n\n  \/\/ \u2500\u2500 Hintan\u00e4ytt\u00f6 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function updatePrice() {\n    const p   = calcPrice(S);\n    const def = PRODUCTS[S.product];\n\n    \/\/ \u2500\u2500 Kangaskassi: oma yhteenveto (v\u00e4ri + paikka), muuten normaali hintan\u00e4ytt\u00f6 \u2500\u2500\n    if (S.product === 'kassi') {\n      $('tp-total').textContent = fmtEur(p.total);\n      $('tp-unit').textContent  = fmtUnit(p.unit) + '\/kpl';\n\n      const feeRow  = $('tp-delivery-fee-row');\n      const freeRow = $('tp-free-delivery-row');\n      if (feeRow && freeRow) {\n        if (S.delivery === 'pickup') {\n          feeRow.style.display = 'none'; freeRow.style.display = 'none';\n        } else if ((p.deliveryFee||0) === 0) {\n          feeRow.style.display = 'none'; freeRow.style.display = '';\n        } else {\n          feeRow.style.display = ''; freeRow.style.display = 'none';\n          const fv = $('tp-delivery-fee-val');\n          if (fv) fv.textContent = fmtEur(p.deliveryFee);\n        }\n      }\n\n      $('tp-s-product').textContent = def?.label || S.product;\n      const colorObj = KASSI_COLORS.find(c => c.val === S.kassiColor);\n      $('tp-s-size').textContent = colorObj?.label || '\u2014';\n      $('tp-s-qty').textContent  = fmtQty(S.qty);\n\n      const paperRow = $('tp-s-paper-row');\n      if (paperRow) paperRow.style.display = 'none';\n\n      const sidesRow = $('tp-s-sides-row');\n      if (sidesRow) {\n        sidesRow.style.display = 'flex';\n        const labelSpan = sidesRow.querySelector('span:first-child');\n        if (labelSpan) labelSpan.textContent = 'Paikka';\n        const locLabels = Object.entries(S.kassiLocations)\n          .filter(([, l]) => l.selected)\n          .map(([k, l]) => `${KASSI_LOCATIONS[k].label} ${l.area}cm\u00b2`)\n          .join(' + ');\n        $('tp-s-sides').textContent = locLabels || '\u2014';\n      }\n\n      const finRow = $('tp-s-finish-row');\n      if (finRow) finRow.style.display = 'none';\n      return;\n    }\n\n    \/\/ \u2500\u2500 T-paita: oma yhteenveto- ja hintan\u00e4ytt\u00f6logiikka \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    if (S.product === 'tpaita') {\n      S.qty = p.qty || 0;\n      updateSizeTotalDisplay();\n\n      const totalEl = $('tp-total');\n      const unitEl  = $('tp-unit');\n      const quoteBtn = $('tp-quote-btn');\n\n      if (p.tooFew) {\n        totalEl.textContent = '\u2014';\n        unitEl.textContent  = `V\u00e4h. ${TPAITA_QTY_MIN} kpl yhteens\u00e4`;\n        if (quoteBtn) quoteBtn.disabled = true;\n      } else if (p.quoteOnly) {\n        totalEl.textContent = 'Kysy tarjous';\n        unitEl.innerHTML = '<span class=\"tp-quote-note\">myynti@t-print.fi \u2192<\/span>';\n        const noteSpan = unitEl.querySelector('.tp-quote-note');\n        if (noteSpan) noteSpan.onclick = () => {\n          window.location.href = 'mailto:myynti@t-print.fi?subject=Tarjouspyynt\u00f6 T-paita ' + p.qty + ' kpl';\n        };\n        if (quoteBtn) quoteBtn.disabled = false;\n      } else {\n        totalEl.textContent = fmtEur(p.total);\n        unitEl.textContent  = fmtUnit(p.unit) + '\/kpl';\n        if (quoteBtn) quoteBtn.disabled = false;\n      }\n\n      const feeRow  = $('tp-delivery-fee-row');\n      const freeRow = $('tp-free-delivery-row');\n      const priceKnown = !p.tooFew && !p.quoteOnly;\n      if (feeRow && freeRow) {\n        if (!priceKnown || S.delivery === 'pickup') {\n          feeRow.style.display = 'none';\n          freeRow.style.display = (priceKnown && S.delivery !== 'pickup') ? '' : 'none';\n        } else if ((p.deliveryFee||0) === 0) {\n          feeRow.style.display = 'none'; freeRow.style.display = '';\n        } else {\n          feeRow.style.display = ''; freeRow.style.display = 'none';\n          const fv = $('tp-delivery-fee-val');\n          if (fv) fv.textContent = fmtEur(p.deliveryFee);\n        }\n      }\n\n      $('tp-s-product').textContent = def?.label || S.product;\n      const colorObj = TPAITA_COLORS.find(c => c.val === S.tpColor);\n      const sizeBreakdown = TPAITA_SIZES.filter(sz => (S.tpSizes[sz]||0) > 0)\n        .map(sz => `${sz}:${S.tpSizes[sz]}`).join(', ') || '\u2014';\n      $('tp-s-size').textContent = `${colorObj?.label || ''} \u00b7 ${sizeBreakdown}`;\n      $('tp-s-qty').textContent  = fmtQty(p.qty || 0);\n\n      const paperRow = $('tp-s-paper-row');\n      if (paperRow) paperRow.style.display = 'none';\n\n      const sidesRow = $('tp-s-sides-row');\n      if (sidesRow) {\n        sidesRow.style.display = 'flex';\n        const labelSpan = sidesRow.querySelector('span:first-child');\n        if (labelSpan) labelSpan.textContent = 'Paikka';\n        const locLabels = Object.entries(S.tpLocations)\n          .filter(([, l]) => l.selected)\n          .map(([k, l]) => `${TPAITA_LOCATIONS[k].label} ${l.area}cm\u00b2`)\n          .join(' + ');\n        $('tp-s-sides').textContent = locLabels || '\u2014';\n      }\n\n      const finRow = $('tp-s-finish-row');\n      if (finRow) finRow.style.display = 'none';\n      return;\n    }\n\n    \/\/ \u2500\u2500 Muut tuotteet (ennallaan) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n    \/\/ Palautetaan \"Paperi\"\/\"Painatus\"-rivien oletusotsikot ja n\u00e4kyvyys, jos\n    \/\/ edellisell\u00e4 kerralla oltiin t-paidalla ja ne oli piilotettu\/uudelleennimetty.\n    const paperRow2 = $('tp-s-paper-row');\n    if (paperRow2) paperRow2.style.display = 'flex';\n    const sidesRow2 = $('tp-s-sides-row');\n    if (sidesRow2) {\n      sidesRow2.style.display = 'flex';\n      const labelSpan2 = sidesRow2.querySelector('span:first-child');\n      if (labelSpan2) labelSpan2.textContent = 'Painatus';\n    }\n\n    $('tp-total').textContent = fmtEur(p.total);\n    $('tp-unit').textContent  = fmtUnit(p.unit) + '\/kpl';\n    \/\/ Toimituskulut\n    const feeRow  = $('tp-delivery-fee-row');\n    const freeRow = $('tp-free-delivery-row');\n    if (feeRow && freeRow) {\n      if (S.delivery === 'pickup') {\n        feeRow.style.display = 'none'; freeRow.style.display = 'none';\n      } else if ((p.deliveryFee||0) === 0) {\n        feeRow.style.display = 'none'; freeRow.style.display = '';\n      } else {\n        feeRow.style.display = ''; freeRow.style.display = 'none';\n        const fv = $('tp-delivery-fee-val');\n        if (fv) fv.textContent = fmtEur(p.deliveryFee);\n      }\n    }\n    $('tp-s-product').textContent = def?.label || S.product;\n    \/\/ Banneri min order note\n    const banMinNote = document.getElementById('tp-ban-min-note');\n    if (banMinNote) {\n      const r = calcPrice(S);\n      banMinNote.style.display = (S.product === 'banneri' && r.minApplied) ? 'block' : 'none';\n    }\n    if (S.product === 'banneri') {\n      $('tp-s-size').textContent = (S.banW||100) + ' \u00d7 ' + (S.banH||200) + ' cm';\n      const m2el = $('tp-ban-m2');\n      if (m2el) { const w=(S.banW||100)\/100,h=(S.banH||200)\/100; m2el.textContent = (w*h).toFixed(2)+' m\u00b2'; }\n    } else {\n      $('tp-s-size').textContent = S.size;\n    }\n    $('tp-s-qty').textContent     = fmtQty(S.qty);\n    $('tp-s-paper').textContent   = PAPER_LABEL[S.paper] || S.paper;\n    $('tp-s-sides').textContent   = S.sides === '1' ? '1-puolinen' : '2-puolinen';\n    const finRow = $('tp-s-finish-row');\n    if (finRow) {\n      const showFin = S.finish !== 'none' && def?.lamination;\n      finRow.style.display = showFin ? 'flex' : 'none';\n      $('tp-s-finish').textContent = S.finish === 'matt' ? 'Mattalaminointi +40\u20ac\/100kpl' : S.finish === 'gloss' ? 'Kiiltolaminointi +40\u20ac\/100kpl' : 'Soft-touch laminointi +40\u20ac\/100kpl';\n    }\n  }\n\n  \/\/ \u2500\u2500 Modal & tarjouspyynt\u00f6 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function buildSummary() {\n    const p   = calcPrice(S);\n    const def = PRODUCTS[S.product];\n    if (S.product === 'kassi') {\n      const colorObj = KASSI_COLORS.find(c => c.val === S.kassiColor);\n      const locLabels = Object.entries(S.kassiLocations)\n        .filter(([, l]) => l.selected)\n        .map(([k, l]) => `${KASSI_LOCATIONS[k].label} ${l.area}cm\u00b2`)\n        .join(' + ');\n      const parts = [def?.label, colorObj?.label, fmtQty(S.qty), 'DTF Transfer', locLabels];\n      return { text: parts.filter(Boolean).join(' \u00b7 '), price: fmtEur(p.total) };\n    }\n    if (S.product === 'tpaita') {\n      const colorObj = TPAITA_COLORS.find(c => c.val === S.tpColor);\n      const sizeBreakdown = TPAITA_SIZES.filter(sz => (S.tpSizes[sz]||0) > 0)\n        .map(sz => `${sz}:${S.tpSizes[sz]}`).join(', ');\n      const locLabels = Object.entries(S.tpLocations)\n        .filter(([, l]) => l.selected)\n        .map(([k, l]) => `${TPAITA_LOCATIONS[k].label} ${l.area}cm\u00b2`)\n        .join(' + ');\n      const parts = [def?.label, colorObj?.label, sizeBreakdown, fmtQty(p.qty || 0), 'DTF Transfer', locLabels];\n      const priceText = p.tooFew ? `V\u00e4hint\u00e4\u00e4n ${TPAITA_QTY_MIN} kpl` : (p.quoteOnly ? 'Kysy tarjous' : fmtEur(p.total));\n      return { text: parts.filter(Boolean).join(' \u00b7 '), price: priceText };\n    }\n    const parts = [def?.label, S.size, fmtQty(S.qty), PAPER_LABEL[S.paper]];\n    if (def?.sides.length > 1) parts.push(S.sides === '2' ? '2-puolinen' : '1-puolinen');\n    if (S.finish !== 'none') parts.push(S.finish === 'matt' ? 'Mattilaminointi' : 'Kiiltolaminointi');\n    return { text: parts.filter(Boolean).join(' \u00b7 '), price: fmtEur(p.total) };\n  }\n\n  function openModal() {\n    if (S.product === 'tpaita') {\n      const p = calcPrice(S);\n      if (p.tooFew) return; \/\/ ei avata modaalia jos alle minimim\u00e4\u00e4r\u00e4n\n    }\n    const { text, price } = buildSummary();\n    const sub = $('tp-modal-summary');\n    if (sub) sub.textContent = `${text} \u2014 Hinta-arvio ${price} (alv 0%)`;\n    $('tp-modal').style.display = 'flex';\n    document.body.style.overflow = 'hidden';\n  }\n  function closeModal() {\n    $('tp-modal').style.display = 'none';\n    document.body.style.overflow = '';\n  }\n\n  function submitForm() {\n    const name  = $('tp-name').value.trim();\n    const email = $('tp-email').value.trim();\n    const err   = $('tp-form-err');\n    const phone3 = $('tp-phone')?.value.trim() || '';\n    if (!name || (!email && !phone3)) { err.textContent = 'T\u00e4yt\u00e4 nimi sek\u00e4 s\u00e4hk\u00f6posti tai puhelinnumero.'; err.style.display = 'block'; return; }\n    err.style.display = 'none';\n    const { text, price } = buildSummary();\n    const btn = $('tp-submit');\n    btn.disabled = true; btn.textContent = 'L\u00e4hetet\u00e4\u00e4n\u2026';\n    const data = new FormData();\n    ['action','nonce','name','company','email','phone','message','summary','price'].forEach(k => {\n      const v = { action:'tprint_send_quote', nonce: window.tprintCfg?.nonce||'',\n        name, company:$('tp-company').value.trim(), email,\n        phone:$('tp-phone').value.trim(), message:$('tp-message').value.trim(),\n        summary:text, price }[k];\n      data.append(k, v);\n    });\n    \/\/ Extra fields for better email\n    data.append('product',  S.product);\n    data.append('ban_w',    S.banW || '');\n    data.append('ban_h',    S.banH || '');\n    data.append('qty',      S.qty);\n    const deliveryLabels = { pickup:'Nouto Hyvink\u00e4\u00e4lt\u00e4', normal: PRODUCTS[S.product]?.normalDeliveryLabel || 'Toimitus 3\u20135 ty\u00f6p\u00e4iv\u00e4\u00e4', rush:'Pikatoimitus 1\u20132 ty\u00f6p\u00e4iv\u00e4\u00e4' };\n    data.append('delivery_label', deliveryLabels[S.delivery] || S.delivery);\n    fetch(window.tprintCfg?.ajaxUrl || '\/wp-admin\/admin-ajax.php', { method:'POST', body:data })\n      .then(r => r.json())\n      .then(res => {\n        if (res.success) { $('tp-form').style.display='none'; $('tp-success').style.display='block'; }\n        else { err.textContent = res.data||'L\u00e4hetys ep\u00e4onnistui.'; err.style.display='block'; btn.disabled=false; btn.textContent='L\u00e4het\u00e4 tarjouspyynt\u00f6'; }\n      })\n      .catch(() => { err.textContent='Verkkovirhe.'; err.style.display='block'; btn.disabled=false; btn.textContent='L\u00e4het\u00e4 tarjouspyynt\u00f6'; });\n  }\n\n  \/\/ \u2500\u2500 Alustus \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function init() {\n    if (!$('tprint-root')) return;\n\n    \/\/ Lue tuote URL-parametrista: ?tuote=flyer \/ bizcard \/ poster \/ brochure \/ brochure6\n    var urlParams = new URLSearchParams(window.location.search);\n    var tuoteParam = urlParams.get('tuote');\n    if (tuoteParam && PRODUCTS[tuoteParam]) {\n      S.product = tuoteParam;\n    }\n\n    renderChips('tp-product',\n      Object.entries(PRODUCTS).map(([val, d]) => ({ val, label: d.label })),\n      S.product, val => switchProduct(val));\n\n    renderChips('tp-finish', [\n      { val:'none',  label:'Ei laminointia' },\n      { val:'matt',  label:'Mattalaminointi' },\n      { val:'gloss', label:'Kiiltolaminointi' },\n      { val:'soft',  label:'Soft-touch laminointi' },\n    ], S.finish, v => { S.finish = v; updatePrice(); });\n    switchProduct('flyer');\n    $('tp-quote-btn')?.addEventListener('click', openModal);\n    $('tp-modal-close')?.addEventListener('click', closeModal);\n    $('tp-success-close')?.addEventListener('click', closeModal);\n    $('tp-modal')?.addEventListener('click', e => { if (e.target===$('tp-modal')) closeModal(); });\n    document.addEventListener('keydown', e => { if (e.key === 'Escape' && $('tp-modal')?.style.display !== 'none') closeModal(); });\n    $('tp-submit')?.addEventListener('click', submitForm);\n  }\n\n  \/\/ Sillan tarjoaminen alempana olevalle tiedostoliite-patchille, jonka oma\n  \/\/ submit-koodi ei p\u00e4\u00e4se k\u00e4siksi t\u00e4m\u00e4n IIFE:n S\/PRODUCTS-muuttujiin.\n  window.tprintGetOrderMeta = function() {\n    const def = PRODUCTS[S.product];\n    const deliveryLabels = {\n      pickup: 'Nouto Hyvink\u00e4\u00e4lt\u00e4',\n      normal: def?.normalDeliveryLabel || 'Toimitus 3\u20135 ty\u00f6p\u00e4iv\u00e4\u00e4',\n      rush:   'Pikatoimitus 1\u20132 ty\u00f6p\u00e4iv\u00e4\u00e4',\n    };\n    return {\n      product:  S.product,\n      qty:      S.qty,\n      banW:     S.banW || '',\n      banH:     S.banH || '',\n      deliveryLabel: deliveryLabels[S.delivery] || S.delivery,\n    };\n  };\n\n  document.readyState === 'loading'\n    ? document.addEventListener('DOMContentLoaded', init)\n    : init();\n})();\n\n\/\/ Patch: file upload + rename buttons (appended as hotfix)\n(function() {\n  var uploadedFiles = [];\n\n  function initUpload() {\n    var area   = document.getElementById('tp-upload-area');\n    var input  = document.getElementById('tp-files');\n    var browse = document.getElementById('tp-upload-browse');\n    var list   = document.getElementById('tp-file-list');\n    if (!area || !input) return;\n\n    browse && browse.addEventListener('click', function() { input.click(); });\n    input.addEventListener('change', function() { addFiles(input.files); });\n\n    area.addEventListener('dragover', function(e) { e.preventDefault(); area.classList.add('tp-drag-over'); });\n    area.addEventListener('dragleave', function() { area.classList.remove('tp-drag-over'); });\n    area.addEventListener('drop', function(e) {\n      e.preventDefault();\n      area.classList.remove('tp-drag-over');\n      addFiles(e.dataTransfer.files);\n    });\n\n    function addFiles(files) {\n      var allowed = ['pdf','ai','eps','tif','tiff','jpg','jpeg','png','zip'];\n      Array.from(files).forEach(function(f) {\n        var ext = f.name.split('.').pop().toLowerCase();\n        if (!allowed.includes(ext)) return;\n        if (f.size > 52428800) return;\n        if (uploadedFiles.find(function(u) { return u.name===f.name && u.size===f.size; })) return;\n        uploadedFiles.push(f);\n      });\n      renderList();\n    }\n\n    function renderList() {\n      if (!list) return;\n      list.innerHTML = uploadedFiles.map(function(f, i) {\n        var size = f.size > 1048576 ? (f.size\/1048576).toFixed(1)+' Mt' : Math.round(f.size\/1024)+' kt';\n        return '<li class=\"tp-file-item\"><span class=\"tp-file-name\">\\uD83D\\uDCC4 '+f.name+'<\/span>'\n          +'<span class=\"tp-file-size\">'+size+'<\/span>'\n          +'<button type=\"button\" class=\"tp-file-remove\" data-idx=\"'+i+'\">\u2715<\/button><\/li>';\n      }).join('');\n      list.querySelectorAll('.tp-file-remove').forEach(function(btn) {\n        btn.addEventListener('click', function() {\n          uploadedFiles.splice(parseInt(btn.dataset.idx), 1);\n          renderList();\n        });\n      });\n      var ph = document.getElementById('tp-upload-placeholder');\n      if (ph) ph.style.display = uploadedFiles.length ? 'none' : '';\n    }\n  }\n\n  \/\/ Patch submitForm to include files\n  function patchSubmit() {\n    var btn = document.getElementById('tp-submit');\n    if (!btn) return;\n    \/\/ Clone to remove old listener\n    var newBtn = btn.cloneNode(true);\n    btn.parentNode.replaceChild(newBtn, btn);\n    newBtn.addEventListener('click', function() {\n      var name  = document.getElementById('tp-name').value.trim();\n      var email = document.getElementById('tp-email').value.trim();\n      var err   = document.getElementById('tp-form-err');\n      var phone2 = document.getElementById('tp-phone') ? document.getElementById('tp-phone').value.trim() : '';\n      if (!name || (!email && !phone2)) { err.textContent='T\u00e4yt\u00e4 nimi sek\u00e4 s\u00e4hk\u00f6posti tai puhelinnumero.'; err.style.display='block'; return; }\n      err.style.display = 'none';\n      \/\/ Get summary from modal subtitle\n      var sub = document.getElementById('tp-modal-summary');\n      var summaryText = sub ? sub.textContent.replace(\/ \u2014 Hinta-arvio.*\/, '') : '';\n      var priceMatch  = sub ? sub.textContent.match(\/Hinta-arvio (.+?) \\(alv\/) : null;\n      var priceText   = priceMatch ? priceMatch[1] : '';\n\n      newBtn.disabled = true; newBtn.textContent = 'L\u00e4hetet\u00e4\u00e4n\u2026';\n      var data = new FormData();\n      data.append('action',  'tprint_send_quote');\n      data.append('nonce',   (window.tprintCfg && window.tprintCfg.nonce) || '');\n      data.append('name',    name);\n      data.append('company', document.getElementById('tp-company').value.trim());\n      data.append('email',   email);\n      data.append('phone',   document.getElementById('tp-phone').value.trim());\n      data.append('message', document.getElementById('tp-message').value.trim());\n      data.append('summary', summaryText);\n      data.append('price',   priceText);\n      var meta = (window.tprintGetOrderMeta && window.tprintGetOrderMeta()) || {};\n      data.append('product',        meta.product || '');\n      data.append('qty',            meta.qty || '');\n      data.append('ban_w',          meta.banW || '');\n      data.append('ban_h',          meta.banH || '');\n      data.append('delivery_label', meta.deliveryLabel || '');\n      uploadedFiles.forEach(function(f) { data.append('tp_files[]', f, f.name); });\n\n      var ajaxUrl = (window.tprintCfg && window.tprintCfg.ajaxUrl) || '\/wp-admin\/admin-ajax.php';\n\n      function doSubmit(nonceVal) {\n        data.set('nonce', nonceVal);\n        fetch(ajaxUrl, {method:'POST', body:data})\n          .then(function(r){return r.json();})\n          .then(function(res){\n            \/\/ -1 = stale nonce (cached page) \u2014 fetch fresh nonce and retry once\n            if (res === -1 || res.data === '-1') {\n              fetch(ajaxUrl + '?action=tprint_get_nonce')\n                .then(function(r){return r.json();})\n                .then(function(n){ if(n.success) doSubmit(n.data.nonce); });\n              return;\n            }\n            if (res.success) {\n              document.getElementById('tp-form').style.display='none';\n              document.getElementById('tp-success').style.display='block';\n            } else {\n              err.textContent = res.data||'L\u00e4hetys ep\u00e4onnistui.'; err.style.display='block';\n              newBtn.disabled=false; newBtn.textContent='Tilaa';\n            }\n          })\n          .catch(function(){ err.textContent='Verkkovirhe.'; err.style.display='block'; newBtn.disabled=false; newBtn.textContent='Tilaa'; });\n      }\n      doSubmit((window.tprintCfg && window.tprintCfg.nonce) || '');\n    });\n  }\n\n  \/\/ Run after DOM ready and also after modal opens\n  function setup() { initUpload(); patchSubmit(); }\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', setup);\n  } else {\n    setTimeout(setup, 100);\n  }\n\n  \/\/ Re-init when modal opens\n  var origBtn = document.getElementById('tp-quote-btn');\n  if (origBtn) {\n    origBtn.addEventListener('click', function() { setTimeout(function() { initUpload(); patchSubmit(); }, 50); });\n  } else {\n    document.addEventListener('click', function(e) {\n      if (e.target && e.target.id === 'tp-quote-btn') {\n        setTimeout(function() { initUpload(); patchSubmit(); }, 50);\n      }\n    });\n  }\n})();\n\n\/\/ \u2500\u2500 Tiedosto-moodin vaihto (global) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nwindow.tprintSetFileMode = function(mode) {\n  ['upload','later','design'].forEach(function(m) {\n    var area = document.getElementById('tp-mode-' + m + '-area');\n    var btn  = document.getElementById('tp-mode-' + m);\n    if (area) area.style.display = m === mode ? '' : 'none';\n    if (btn) {\n      btn.style.background  = m === mode ? '#e8451a' : '';\n      btn.style.color       = m === mode ? '#fff' : '';\n      btn.style.borderColor = m === mode ? '#e8451a' : '';\n    }\n  });\n  var mv = document.getElementById('tp-file-mode-val');\n  if (mv) mv.value = mode;\n};\n<\/script><style>\n\/* Chips *\/\n.tp-chip{white-space:normal!important;word-break:break-word!important;text-align:center!important;min-width:0!important;}\n\/* Upload area \u2014 keep text inside box, wrap if needed *\/\n.tp-upload-area{overflow:hidden!important;}\n.tp-upload-placeholder{width:100%!important;box-sizing:border-box!important;}\n.tp-upload-text{display:block!important;text-align:center!important;}\n.tp-upload-browse{display:block!important;width:auto!important;margin:4px auto 0!important;background:none!important;border:1.5px solid var(--tp-accent)!important;border-radius:6px!important;color:var(--tp-accent)!important;font-weight:600!important;cursor:pointer!important;font-size:13px!important;padding:6px 16px!important;white-space:nowrap!important;text-decoration:none!important;}\n\/* Submit button \u2014 full text visible *\/\n.tprint-submit-btn{width:auto!important;min-width:160px!important;padding:14px 36px!important;font-size:15px!important;letter-spacing:0.02em!important;white-space:nowrap!important;}\n<\/style>    <div id=\"tprint-root\" class=\"tprint-root\">\n\n      <div class=\"tprint-layout\">\n\n        <!-- LEFT: Options Panel -->\n        <div class=\"tprint-options-panel\">\n\n          <!-- Product \u2014 filled by JS -->\n          <div class=\"tprint-section\">\n            <div class=\"tprint-section-label\">Tuote<\/div>\n            <div class=\"tprint-chip-group\" id=\"tp-product\"><\/div>\n          <\/div>\n\n          <!-- Photo \u2014 shown only for products with an image (JS) -->\n          <div class=\"tprint-section\" id=\"tp-photo-section\" style=\"display:none;\">\n            <div class=\"tp-photo-wrap\"><img decoding=\"async\" id=\"tp-photo\" src=\"\" alt=\"\" \/><\/div>\n            <div class=\"tp-photo-caption\" id=\"tp-photo-caption\"><\/div>\n          <\/div>\n\n          <!-- Color \u2014 shown only for products with color options (JS) -->\n          <div class=\"tprint-section\" id=\"tp-color-section\" style=\"display:none;\">\n            <div class=\"tprint-section-label\">V\u00e4ri<\/div>\n            <div class=\"tp-color-group\" id=\"tp-color\"><\/div>\n          <\/div>\n\n          <!-- Size \u2014 filled by JS per product (chips OR size-matrix for apparel) -->\n          <div class=\"tprint-section\">\n            <div class=\"tprint-section-label\">Koko<\/div>\n            <div class=\"tprint-chip-group\" id=\"tp-size\"><\/div>\n          <\/div>\n\n          <!-- Paikka (print location) \u2014 shown only for apparel products (JS) -->\n          <div class=\"tprint-section\" id=\"tp-paikka-section\" style=\"display:none;\">\n            <div class=\"tprint-section-label\">Painatuksen paikka<\/div>\n            <div class=\"tp-paikka-list\" id=\"tp-paikka\"><\/div>\n            <div class=\"tp-paikka-note\">Merkkaustapa: DTF Transfer. Muut merkkaustavat (silkkipainatus, brodeeraus, siirtokuva) \u2014 <a href=\"mailto:myynti@t-print.fi?subject=Tarjouspyynt\u00f6%20-%20muu%20merkkaustapa\">kysy tarjous \u2192<\/a><\/div>\n            <div class=\"tp-paikka-note tp-paikka-note--proof\">\u2713 L\u00e4het\u00e4mme sinulle vedoksen painatuksesta tarkistettavaksi ennen tuotannon aloittamista.<\/div>\n          <\/div>\n\n          <!-- Quantity \u2014 filled by JS per product -->\n          <div class=\"tprint-section\">\n            <div class=\"tprint-section-label\">Kappalem\u00e4\u00e4r\u00e4<\/div>\n            <div class=\"tprint-chip-group tprint-chip-group--qty\" id=\"tp-qty\"><\/div>\n          <\/div>\n\n          <!-- Paper \u2014 filled by JS per product -->\n          <div class=\"tprint-section\">\n            <div class=\"tprint-section-label\">Paperi<\/div>\n            <div class=\"tprint-paper-group\" id=\"tp-paper\"><\/div>\n          <\/div>\n\n          <!-- Sides \u2014 filled + shown\/hidden by JS -->\n          <div class=\"tprint-section\" id=\"tp-sides-section\">\n            <div class=\"tprint-section-label\">Painatus<\/div>\n            <div class=\"tprint-chip-group\" id=\"tp-sides\"><\/div>\n          <\/div>\n\n          <!-- Finish \u2014 filled + shown\/hidden by JS -->\n          <div class=\"tprint-section\" id=\"tp-delivery-section\">\n            <div class=\"tprint-section-label\">Toimitus<\/div>\n            <div class=\"tprint-chip-group\" id=\"tp-delivery\"><\/div>\n          <\/div>\n\n          <div class=\"tprint-section\" id=\"tp-finish-section\">\n            <div class=\"tprint-section-label\">Viimeistely<\/div>\n            <div class=\"tprint-chip-group\" id=\"tp-finish\"><\/div>\n          <\/div>\n\n        <\/div>\n\n        <!-- RIGHT: Price Panel -->\n        <div class=\"tprint-price-panel\">\n          <div class=\"tprint-price-card\">\n            <div class=\"tprint-price-header\">Hinta-arvio<\/div>\n\n            <div class=\"tprint-price-summary\" id=\"tp-summary\">\n              <div class=\"tp-sum-row\"><span>Tuote<\/span><span id=\"tp-s-product\">\u2014<\/span><\/div>\n              <div class=\"tp-sum-row\"><span>Koko<\/span><span id=\"tp-s-size\">\u2014<\/span><\/div>\n              <div class=\"tp-sum-row\"><span>M\u00e4\u00e4r\u00e4<\/span><span id=\"tp-s-qty\">\u2014<\/span><\/div>\n              <div class=\"tp-sum-row\" id=\"tp-s-paper-row\"><span>Paperi<\/span><span id=\"tp-s-paper\">\u2014<\/span><\/div>\n              <div class=\"tp-sum-row\" id=\"tp-s-sides-row\"><span>Painatus<\/span><span id=\"tp-s-sides\">\u2014<\/span><\/div>\n              <div class=\"tp-sum-row\" id=\"tp-s-finish-row\"><span>Viimeistely<\/span><span id=\"tp-s-finish\">\u2014<\/span><\/div>\n            <\/div>\n\n            <div class=\"tprint-price-main\">\n              <div class=\"tprint-price-total\">\n                <span class=\"tprint-price-label\">Yhteens\u00e4 (alv 0%)<\/span>\n                <span class=\"tprint-price-value\" id=\"tp-total\">\u2014<\/span>\n              <\/div>\n              <div class=\"tprint-price-unit\">\n                <span>Kappalehinta<\/span>\n                <span id=\"tp-unit\">\u2014<\/span>\n              <\/div>\n              <div class=\"tprint-price-unit\" id=\"tp-delivery-fee-row\" style=\"display:none;\">\n                <span>Toimituskulut<\/span>\n                <span id=\"tp-delivery-fee-val\">15,00 \u20ac<\/span>\n              <\/div>\n              <div class=\"tprint-price-unit\" id=\"tp-free-delivery-row\" style=\"display:none;color:var(--tp-accent);\">\n                <span>\u2713 Ilmainen toimitus<\/span>\n                <span>0,00 \u20ac<\/span>\n              <\/div>\n            <\/div>\n\n            <div class=\"tprint-disclaimer\">\n              <span id=\"tp-ban-min-note\" style=\"display:none;color:var(--tp-accent);font-weight:600;\">Minimiveloitus 50 \u20ac \u2014 laskutetaan minimihinnalla.<\/span><br>\n              Hinta-arvio ilman arvonlis\u00e4veroa ja toimituskuluja. Lopullinen tarjous huomioi painovalmiit tiedostot ja toimitusaikavaatimukset.\n            <\/div>\n\n            <button class=\"tprint-quote-btn\" id=\"tp-quote-btn\">Tilaa \u2192<\/button>\n          <\/div>\n        <\/div>\n\n      <\/div>\n\n      <!-- Order Modal -->\n      <div class=\"tprint-modal\" id=\"tp-modal\" style=\"display:none;\">\n        <div class=\"tprint-modal-box\">\n          <h2>Tilaus<\/h2>\n          <p class=\"tprint-modal-subtitle\" id=\"tp-modal-summary\"><\/p>\n          <div class=\"tprint-form\" id=\"tp-form\">\n            <div class=\"tp-field-row\">\n              <div class=\"tp-field\"><label>Nimi *<\/label><input type=\"text\" id=\"tp-name\" placeholder=\"Etunimi Sukunimi\" \/><\/div>\n              <div class=\"tp-field\"><label>Yritys<\/label><input type=\"text\" id=\"tp-company\" placeholder=\"Yritys Oy\" \/><\/div>\n            <\/div>\n            <div class=\"tp-field-row\">\n              <div class=\"tp-field\"><label>S\u00e4hk\u00f6posti *<\/label><input type=\"email\" id=\"tp-email\" placeholder=\"nimi@yritys.fi\" \/><\/div>\n              <div class=\"tp-field\"><label>Puhelin<\/label><input type=\"tel\" id=\"tp-phone\" placeholder=\"+358 40 000 0000\" \/><\/div>\n            <\/div>\n            <div class=\"tp-field\">\n              <label>Painovalmis tiedosto <span style=\"font-weight:400;color:#999;\">(valinnainen)<\/span><\/label>\n\n              <!-- Tiedosto-optiot -->\n              <div style=\"display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;\">\n                <button type=\"button\" id=\"tp-mode-upload\" onclick=\"tprintSetFileMode('upload')\" style=\"font-size:13px;padding:9px 18px;border:1.5px solid #e8451a;background:#e8451a;color:#fff;border-radius:6px;cursor:pointer;font-family:inherit;font-weight:600;white-space:nowrap;\">\ud83d\udcce Liit\u00e4n tiedoston nyt<\/button>\n                <button type=\"button\" id=\"tp-mode-later\" onclick=\"tprintSetFileMode('later')\" style=\"font-size:13px;padding:9px 18px;border:1.5px solid #e2e2e2;background:#f8f8f6;color:#333;border-radius:6px;cursor:pointer;font-family:inherit;font-weight:600;white-space:nowrap;\">\ud83d\udcec L\u00e4het\u00e4n my\u00f6hemmin<\/button>\n                <button type=\"button\" id=\"tp-mode-design\" onclick=\"tprintSetFileMode('design')\" style=\"font-size:13px;padding:9px 18px;border:1.5px solid #e2e2e2;background:#f8f8f6;color:#333;border-radius:6px;cursor:pointer;font-family:inherit;font-weight:600;white-space:nowrap;\">\u270f\ufe0f Tarvitsen suunnittelun<\/button>\n              <\/div>\n\n              <!-- Upload-tila (oletus) -->\n              <div id=\"tp-mode-upload-area\">\n                <div class=\"tp-upload-area\" id=\"tp-upload-area\">\n                  <input type=\"file\" id=\"tp-files\" name=\"tp_files[]\" multiple accept=\".pdf,.ai,.eps,.tif,.tiff,.jpg,.jpeg,.png,.zip\" style=\"display:none;\" \/>\n                  <div class=\"tp-upload-placeholder\" id=\"tp-upload-placeholder\">\n                    <span class=\"tp-upload-icon\">\ud83d\udcce<\/span>\n                    <span class=\"tp-upload-text\">Raahaa tiedostot t\u00e4h\u00e4n tai<\/span>\n                    <button type=\"button\" class=\"tp-upload-browse\" id=\"tp-upload-browse\">Selaa tiedostoja<\/button>\n                    <span class=\"tp-upload-hint\">PDF, AI, EPS, TIFF, JPG, ZIP \u2014 max 50 Mt<\/span>\n                  <\/div>\n                  <ul class=\"tp-file-list\" id=\"tp-file-list\"><\/ul>\n                <\/div>\n              <\/div>\n\n              <!-- L\u00e4het\u00e4n my\u00f6hemmin -tila -->\n              <div id=\"tp-mode-later-area\" style=\"display:none;background:var(--tp-surface);border:1.5px dashed var(--tp-border);border-radius:6px;padding:20px;text-align:center;\">\n                <div style=\"font-size:24px;margin-bottom:8px;\">\ud83d\udcec<\/div>\n                <div style=\"font-size:14px;font-weight:600;color:var(--tp-text);margin-bottom:6px;\">Aineisto my\u00f6hemmin<\/div>\n                <div style=\"font-size:13px;color:var(--tp-muted);line-height:1.6;\">Tilaus kirjataan ja otamme yhteytt\u00e4 aineiston toimittamisesta. L\u00e4het\u00e4 tiedosto my\u00f6hemmin osoitteeseen <strong>aineistot@t-print.fi<\/strong><\/div>\n                <input type=\"hidden\" name=\"tp_file_mode\" id=\"tp-file-mode-val\" value=\"upload\" \/>\n              <\/div>\n\n              <!-- Suunnittelu-tila -->\n              <div id=\"tp-mode-design-area\" style=\"display:none;background:var(--tp-accent-light, #fff0ec);border:1.5px solid var(--tp-accent);border-radius:6px;padding:20px;\">\n                <div style=\"font-size:14px;font-weight:600;color:var(--tp-text);margin-bottom:8px;\">\u270f\ufe0f Suunnittelupalvelu<\/div>\n                <div style=\"font-size:13px;color:var(--tp-muted);line-height:1.7;margin-bottom:12px;\">Teemme sinulle painovalmiin aineiston. Ilmoita lis\u00e4tiedoissa logosi, v\u00e4rit ja toiveet \u2014 otamme yhteytt\u00e4 hinta-arviolla.<\/div>\n                <div style=\"font-size:12px;color:var(--tp-accent);font-weight:600;\">Suunnittelu alkaen 50 \u20ac \u00b7 hinnoittelu ty\u00f6n mukaan<\/div>\n              <\/div>\n            <\/div>\n            <div class=\"tp-field\">\n              <label>Lis\u00e4tietoja<\/label>\n              <textarea id=\"tp-message\" rows=\"3\" placeholder=\"Esim. toimitusaikavaatimus, v\u00e4riprofiili, erityistoiveet...\"><\/textarea>\n            <\/div>\n            <div class=\"tp-form-actions\">\n              <div id=\"tp-form-err\" class=\"tp-form-err\" style=\"display:none;\"><\/div>\n              <button class=\"tprint-submit-btn\" id=\"tp-submit\">Tilaa<\/button>\n            <\/div>\n          <\/div>\n          <div class=\"tprint-success\" id=\"tp-success\" style=\"display:none;\">\n            <div class=\"tprint-success-icon\">\u2713<\/div>\n            <h3>Tilaus vastaanotettu!<\/h3>\n            <p>Kiitos tilauksesta. K\u00e4ymme tiedot l\u00e4pi ja otamme sinuun yhteytt\u00e4 mahdollisimman pian \u2014 yleens\u00e4 saman p\u00e4iv\u00e4n aikana.<\/p>\n            <button class=\"tprint-modal-close-btn\" id=\"tp-success-close\">Sulje<\/button>\n          <\/div>\n        <\/div>\n      <\/div>\n\n    <\/div>\n    \n","protected":false},"excerpt":{"rendered":"Tuote V\u00e4ri Koko Painatuksen paikka Merkkaustapa: DTF Transfer. Muut merkkaustavat (silkkipainatus, brodeeraus, siirtokuva) \u2014 kysy tarjous \u2192 \u2713 L\u00e4het\u00e4mme sinulle vedoksen painatuksesta tarkistettavaksi ennen tuotannon aloittamista. Kappalem\u00e4\u00e4r\u00e4 Paperi Painatus Toimitus Viimeistely Hinta-arvio Tuote\u2014 Koko\u2014 M\u00e4\u00e4r\u00e4\u2014 Paperi\u2014 Painatus\u2014 Viimeistely\u2014 Yhteens\u00e4 (alv 0%) \u2014 Kappalehinta \u2014 Toimituskulut 15,00 \u20ac \u2713 Ilmainen toimitus 0,00 \u20ac Minimiveloitus 50 \u20ac [...]","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2165","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Laske hinta ja tilaa - T-Print<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/t-print.fi\/en\/t-print-tilaus\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laske hinta ja tilaa - T-Print\" \/>\n<meta property=\"og:url\" content=\"https:\/\/t-print.fi\/en\/t-print-tilaus\/\" \/>\n<meta property=\"og:site_name\" content=\"T-Print\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TPrintKy\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-23T13:10:36+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/t-print.fi\\\/t-print-tilaus\\\/\",\"url\":\"https:\\\/\\\/t-print.fi\\\/t-print-tilaus\\\/\",\"name\":\"Laske hinta ja tilaa - T-Print\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/t-print.fi\\\/#website\"},\"datePublished\":\"2026-03-20T11:50:54+00:00\",\"dateModified\":\"2026-03-23T13:10:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/t-print.fi\\\/t-print-tilaus\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/t-print.fi\\\/t-print-tilaus\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/t-print.fi\\\/t-print-tilaus\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/t-print.fi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laske hinta ja tilaa\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/t-print.fi\\\/#website\",\"url\":\"https:\\\/\\\/t-print.fi\\\/\",\"name\":\"T-Print\",\"description\":\"Kotimaista painopalvelua\",\"publisher\":{\"@id\":\"https:\\\/\\\/t-print.fi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/t-print.fi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/t-print.fi\\\/#organization\",\"name\":\"T-Print\",\"url\":\"https:\\\/\\\/t-print.fi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/t-print.fi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/t-print.fi\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/t-print-logo.png\",\"contentUrl\":\"http:\\\/\\\/t-print.fi\\\/wp-content\\\/uploads\\\/2019\\\/01\\\/t-print-logo.png\",\"width\":303,\"height\":85,\"caption\":\"T-Print\"},\"image\":{\"@id\":\"https:\\\/\\\/t-print.fi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/TPrintKy\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Laske hinta ja tilaa - T-Print","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/t-print.fi\/en\/t-print-tilaus\/","og_locale":"en_US","og_type":"article","og_title":"Laske hinta ja tilaa - T-Print","og_url":"https:\/\/t-print.fi\/en\/t-print-tilaus\/","og_site_name":"T-Print","article_publisher":"https:\/\/www.facebook.com\/TPrintKy\/","article_modified_time":"2026-03-23T13:10:36+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/t-print.fi\/t-print-tilaus\/","url":"https:\/\/t-print.fi\/t-print-tilaus\/","name":"Laske hinta ja tilaa - T-Print","isPartOf":{"@id":"https:\/\/t-print.fi\/#website"},"datePublished":"2026-03-20T11:50:54+00:00","dateModified":"2026-03-23T13:10:36+00:00","breadcrumb":{"@id":"https:\/\/t-print.fi\/t-print-tilaus\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/t-print.fi\/t-print-tilaus\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/t-print.fi\/t-print-tilaus\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/t-print.fi\/"},{"@type":"ListItem","position":2,"name":"Laske hinta ja tilaa"}]},{"@type":"WebSite","@id":"https:\/\/t-print.fi\/#website","url":"https:\/\/t-print.fi\/","name":"T-Print","description":"Kotimaista painopalvelua","publisher":{"@id":"https:\/\/t-print.fi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/t-print.fi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/t-print.fi\/#organization","name":"T-Print","url":"https:\/\/t-print.fi\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/t-print.fi\/#\/schema\/logo\/image\/","url":"https:\/\/mlscupq2hhrz.i.optimole.com\/cb:X3aX.fe0\/w:auto\/h:auto\/q:mauto\/f:best\/ig:avif\/http:\/\/t-print.fi\/wp-content\/uploads\/2019\/01\/t-print-logo.png","contentUrl":"https:\/\/mlscupq2hhrz.i.optimole.com\/cb:X3aX.fe0\/w:auto\/h:auto\/q:mauto\/f:best\/ig:avif\/http:\/\/t-print.fi\/wp-content\/uploads\/2019\/01\/t-print-logo.png","width":303,"height":85,"caption":"T-Print"},"image":{"@id":"https:\/\/t-print.fi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TPrintKy\/"]}]}},"_links":{"self":[{"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/pages\/2165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/comments?post=2165"}],"version-history":[{"count":3,"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/pages\/2165\/revisions"}],"predecessor-version":[{"id":2228,"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/pages\/2165\/revisions\/2228"}],"wp:attachment":[{"href":"https:\/\/t-print.fi\/en\/wp-json\/wp\/v2\/media?parent=2165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}