/* Tiikeri Configurator – brändivärit: vihreä #0F4D3A, keltainen #FFDD00, kerma #F8F6E9 */
.ttc {
	--ttc-green: #0F4D3A;
	--ttc-green-2: #0b3a2c;
	--ttc-yellow: #FFDD00;
	--ttc-cream: #F8F6E9;
	--ttc-ink: #13231d;
	--ttc-muted: #5b6b63;
	--ttc-line: rgba(15, 77, 58, 0.16);
	--ttc-radius: 14px;
	color: var(--ttc-ink);
	font-family: inherit;
	width: 100%;
	max-width: 1520px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 40px) max(16px, env(safe-area-inset-left, 0px)) 64px;
	box-sizing: border-box;
}
.ttc *, .ttc *::before, .ttc *::after { box-sizing: border-box; }
.ttc [hidden] { display: none !important; }
.ttc-product .product > .summary:empty { display: none; }
.ttc-product div.product { display: block; }

.ttc__head { margin-bottom: clamp(20px, 3vw, 36px); max-width: 760px; }
.ttc__title {
	font-weight: 900;
	font-stretch: 125%;
	text-transform: uppercase;
	font-size: clamp(34px, 6vw, 72px);
	line-height: 0.92;
	letter-spacing: -0.01em;
	margin: 0 0 12px;
	color: var(--ttc-green);
}
.ttc__intro { color: var(--ttc-muted); font-size: 17px; line-height: 1.55; }
.ttc__intro p { margin: 0 0 8px; }
.ttc__loading { color: var(--ttc-muted); }

.ttc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 48px);
	align-items: start;
}
.ttc-col { min-width: 0; }
.ttc-col--preview { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.ttc-col--controls { display: flex; flex-direction: column; gap: 14px; }

/* Esikatselu */
.ttc-preview {
	position: relative;
	border-radius: 22px;
	background: var(--ttc-cream);
	border: 1px solid var(--ttc-line);
	aspect-ratio: 1 / 1;
	max-width: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.ttc-checker-soft {
	background-color: var(--ttc-cream);
	background-image:
		linear-gradient(45deg, rgba(15, 77, 58, 0.05) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(15, 77, 58, 0.05) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(15, 77, 58, 0.05) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(15, 77, 58, 0.05) 75%);
	background-size: 24px 24px;
	background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}
.ttc-preview__canvas { width: 100%; height: 100%; display: block; }
.ttc-preview__empty {
	position: absolute; inset: auto 24px 50%; transform: translateY(50%);
	text-align: center; color: var(--ttc-muted); font-weight: 600; margin: 0;
}
.ttc-preview.has-art .ttc-preview__empty { display: none; }
.ttc-preview__info { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ttc-muted); }
.ttc-preview__info p { margin: 0; }
.ttc-preview__dims { font-weight: 700; color: var(--ttc-green); }
.ttc-preview__legend { display: inline-flex; align-items: center; gap: 8px; }
.ttc-cutline { width: 26px; border-top: 2px dashed #E4007C; display: inline-block; }
.ttc-preview--mock { aspect-ratio: 400 / 460; padding: 6%; }
.ttc-mockup { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.14)); }
.ttc-sides { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* Vaiheet */
.ttc-step {
	background: #fff;
	border: 1px solid var(--ttc-line);
	border-radius: var(--ttc-radius);
	padding: 18px 18px 20px;
}
.ttc-step__title {
	display: flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
	margin: 0 0 14px; color: var(--ttc-green);
}
.ttc-step__num {
	width: 28px; height: 28px; border-radius: 50%;
	display: inline-grid; place-items: center;
	background: var(--ttc-green); color: var(--ttc-yellow);
	font-size: 14px; letter-spacing: 0;
}
.ttc-hint { font-size: 13px; color: var(--ttc-muted); margin: 8px 0 0; }

/* Napit ja valinnat */
.ttc-btn {
	appearance: none; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 16px;
	border-radius: 999px; border: 2px solid var(--ttc-green);
	background: var(--ttc-green); color: var(--ttc-cream);
	font: inherit; font-weight: 700; font-size: 14px; line-height: 1;
	text-decoration: none; transition: transform .15s ease, background .15s ease;
}
@media (hover: hover) { .ttc-btn:hover { transform: translateY(-1px); } }
.ttc-btn:focus-visible, .ttc-chip:focus-visible, .ttc-qty__item:focus-visible, .ttc-swatch:focus-visible, .ttc-drop:focus-within { outline: 3px solid var(--ttc-yellow); outline-offset: 2px; }
.ttc-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.ttc-btn--yellow { background: var(--ttc-yellow); color: var(--ttc-green); border-color: var(--ttc-yellow); }
.ttc-btn--ghost { background: transparent; color: var(--ttc-green); }
.ttc-btn--primary {
	width: 100%; min-height: 58px; font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em;
	background: var(--ttc-yellow); color: var(--ttc-green); border-color: var(--ttc-yellow);
}
@media (hover: hover) { .ttc-btn--primary:not([disabled]):hover { background: #f0e275; } }

.ttc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-chip {
	appearance: none; cursor: pointer;
	min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1.5px solid var(--ttc-line); background: var(--ttc-cream); color: var(--ttc-ink);
	font: inherit; font-weight: 600; font-size: 14px;
}
.ttc-chip--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ttc-chip[aria-checked="true"], .ttc-chip[aria-pressed="true"] { background: var(--ttc-green); color: var(--ttc-cream); border-color: var(--ttc-green); }

/* Kuvan lataus */
.ttc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ttc-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: 120px; padding: 18px; text-align: center; cursor: pointer;
	border: 2px dashed rgba(15, 77, 58, 0.35); border-radius: 12px; background: var(--ttc-cream);
	transition: background .15s ease, border-color .15s ease;
}
.ttc-drop strong { font-size: 16px; color: var(--ttc-green); }
.ttc-drop span { font-size: 13px; color: var(--ttc-muted); }
@media (hover: hover) { .ttc-drop:hover, .ttc-drop.is-over { background: #f1eed6; border-color: var(--ttc-green); } }
.ttc-imagerow { display: flex; gap: 14px; align-items: flex-start; }
.ttc-imagerow:has(.ttc-tools[hidden]) .ttc-thumb:empty { display: none; }
.ttc-thumb { flex: 0 0 auto; width: 112px; border-radius: 10px; overflow: hidden; }
.ttc-thumb:empty { display: none; }
.ttc-thumb canvas { display: block; width: 100%; height: auto; }
.ttc-checker {
	background-color: #fff;
	background-image:
		linear-gradient(45deg, #e9e7da 25%, transparent 25%),
		linear-gradient(-45deg, #e9e7da 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e9e7da 75%),
		linear-gradient(-45deg, transparent 75%, #e9e7da 75%);
	background-size: 14px 14px;
	background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.ttc-imagecol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ttc-imagepanel > .ttc-imagerow { margin-top: 0; }
.ttc-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-tools .ttc-btn { min-height: 36px; font-size: 13px; padding: 0 12px; }
.ttc-tol label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ttc-status { margin: 0; font-size: 13px; color: var(--ttc-muted); }
.ttc-status.is-error, .ttc-msg { color: #b3261e; font-weight: 600; }
.ttc-msg:empty { display: none; }
.ttc input[type="range"] { width: 100%; accent-color: var(--ttc-green); }

/* Koko */
.ttc-size { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ttc-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.ttc-field__input { display: inline-flex; align-items: center; border: 1.5px solid var(--ttc-line); border-radius: 10px; background: var(--ttc-cream); padding-right: 12px; }
.ttc-field__input input { width: 96px; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 700; padding: 10px 12px; color: var(--ttc-ink); }
.ttc-field__input input:focus { outline: none; }
.ttc-field__input:focus-within { border-color: var(--ttc-green); }
.ttc-field__input em { font-style: normal; color: var(--ttc-muted); }
.ttc-presets { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ttc-muted); }
.ttc-size .ttc-hint { flex-basis: 100%; margin: 0; }

/* Materiaali */
.ttc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.ttc-option {
	display: flex; align-items: center; gap: 10px; cursor: pointer;
	padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream);
	font-size: 14px; font-weight: 600;
}
.ttc-option input { accent-color: var(--ttc-green); margin: 0; }
.ttc-option em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ttc-muted); }
.ttc-option:has(input:checked) { border-color: var(--ttc-green); background: #fff; box-shadow: inset 0 0 0 1px var(--ttc-green); }

/* Määrä */
.ttc-qty { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ttc-qty__item {
	appearance: none; cursor: pointer; text-align: left;
	display: flex; flex-direction: column; gap: 2px;
	padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream);
	font: inherit; color: var(--ttc-ink);
}
.ttc-qty__item strong { font-size: 16px; }
.ttc-qty__item span { font-size: 14px; font-weight: 600; }
.ttc-qty__item em { font-style: normal; font-size: 12px; color: var(--ttc-muted); min-height: 1em; }
.ttc-qty__item[aria-checked="true"] { background: var(--ttc-green); color: var(--ttc-cream); border-color: var(--ttc-green); }
.ttc-qty__item[aria-checked="true"] em { color: var(--ttc-yellow); }
.ttc-qty__item[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Värit */
.ttc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ttc-swatch {
	appearance: none; cursor: pointer;
	width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.12); box-shadow: inset 0 0 0 3px #fff;
}
.ttc-swatch[aria-checked="true"] { border-color: var(--ttc-green); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--ttc-yellow); }

/* Painopaikat */
.ttc-locs { display: flex; flex-direction: column; gap: 8px; }
.ttc-loc { border: 1.5px solid var(--ttc-line); border-radius: 12px; background: var(--ttc-cream); overflow: hidden; }
.ttc-loc:has(input[type="checkbox"]:checked) { border-color: var(--ttc-green); background: #fff; }
.ttc-loc__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.ttc-loc__head input { width: 20px; height: 20px; accent-color: var(--ttc-green); margin: 0; }
.ttc-loc__name { font-weight: 700; }
.ttc-loc__meta { margin-left: auto; font-size: 12px; color: var(--ttc-muted); }
.ttc-loc__body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.ttc-sliders { display: grid; gap: 10px; }
.ttc-sliders label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }

/* Koot */
.ttc-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.ttc-sizebox {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 10px 6px; border-radius: 10px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream);
	font-weight: 800; font-size: 14px;
}
.ttc-sizebox input { width: 100%; max-width: 70px; text-align: center; font: inherit; font-size: 17px; padding: 6px; border-radius: 8px; border: 1px solid var(--ttc-line); background: #fff; }
.ttc-sizebox em { font-style: normal; font-weight: 600; font-size: 11px; color: var(--ttc-muted); }
.ttc-sizebox:focus-within { border-color: var(--ttc-green); }

/* Yhteenveto */
.ttc-summary {
	display: flex; flex-direction: column; gap: 12px;
	padding: 20px; border-radius: var(--ttc-radius);
	background: var(--ttc-green); color: var(--ttc-cream);
	box-shadow: 0 -10px 30px rgba(15, 77, 58, 0.12);
}
.ttc-total { margin: 0; font-size: clamp(30px, 4vw, 40px); font-weight: 900; line-height: 1; color: var(--ttc-yellow); }
.ttc-unit { margin: 6px 0 0; font-size: 13px; opacity: 0.85; }
.ttc-unit:empty { display: none; }
.ttc-proof { margin: 0; font-size: 13px; opacity: 0.85; }
.ttc-summary .ttc-msg { color: #ffd2cc; }
.ttc-lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 14px; opacity: 0.9; }
.ttc-lines dt, .ttc-lines dd { margin: 0; }
.ttc-lines dd { text-align: right; font-weight: 700; }

.ttc-from { font-size: 0.8em; font-weight: 600; opacity: 0.75; }

@media (max-width: 900px) {
	.ttc-grid { grid-template-columns: minmax(0, 1fr); }
	.ttc-col--preview { position: static; }
	.ttc-preview { max-width: 520px; margin: 0 auto; }
	.ttc-preview--mock { max-width: 420px; }
}
@media (max-width: 480px) {
	.ttc { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
	.ttc-step { padding: 14px; }
	.ttc-sliders label { grid-template-columns: 1fr; gap: 4px; }
	.ttc-summary { margin-inline: -4px; }
}
@media (prefers-reduced-motion: reduce) {
	.ttc-btn, .ttc-drop { transition: none; }
	.ttc-btn:hover { transform: none; }
}

.ttc-guide { margin-top: 10px; }
.ttc-guide a { color: var(--ttc-green); font-weight: 700; text-decoration-color: var(--ttc-yellow); text-decoration-thickness: 2px; }

/* Tekoäly: edistyminen */
.ttc-progress { height: 6px; border-radius: 999px; background: rgba(15, 77, 58, 0.12); overflow: hidden; }
.ttc-progress span { display: block; height: 100%; width: 0; background: var(--ttc-green); border-radius: inherit; transition: width .2s ease; }
.ttc-progress.is-indeterminate span { width: 35% !important; animation: ttc-indet 1.1s ease-in-out infinite; }
@keyframes ttc-indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.ttc-imagepanel.is-busy .ttc-thumb { opacity: .55; }
.ttc-imagecol .ttc-status { font-weight: 600; color: var(--ttc-ink); }
.ttc-stack { display: flex; flex-direction: column; gap: 14px; }
.ttc-sublabel { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ttc-muted); }

/* Korjaussivellin */
.ttc-brush { --ttc-green: #0F4D3A; --ttc-green-2: #0b3a2c; --ttc-yellow: #FFDD00; --ttc-cream: #F8F6E9; --ttc-ink: #13231d; --ttc-muted: #5b6b63; --ttc-line: rgba(15, 77, 58, 0.16); --ttc-radius: 14px; font-family: inherit; }
.ttc-brush *, .ttc-brush *::before, .ttc-brush *::after { box-sizing: border-box; }
.ttc-noscroll { overflow: hidden; }
.ttc-brush { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(10, 30, 22, .78); }
.ttc-brush__box { width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--ttc-ink); }
.ttc-brush__bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.ttc-brush__bar strong { font-size: 18px; color: var(--ttc-green); margin-right: auto; }
.ttc-brush__size { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ttc-brush__size input { width: 140px; }
.ttc-brush__stage { position: relative; display: grid; place-items: center; border-radius: 12px; overflow: hidden; min-height: 240px; touch-action: none; }
.ttc-brush__canvas { display: block; max-width: 100%; cursor: none; touch-action: none; }
.ttc-brush__cursor { position: absolute; pointer-events: none; border: 2px solid #E4007C; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px #fff; }
.ttc-brush__actions { display: flex; gap: 10px; justify-content: flex-end; }
.ttc-brush__done { width: auto; min-height: 48px; padding: 0 28px; }
@media (max-width: 560px) { .ttc-brush__size input { width: 100px; } .ttc-brush__box { padding: 12px; } }
.ttc-lock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding-bottom: 12px; cursor: pointer; }
.ttc-lock input { width: 18px; height: 18px; accent-color: var(--ttc-green); margin: 0; }

/* Materiaalit ryhmittäin */
.ttc-matgroups { display: flex; flex-direction: column; gap: 14px; }
.ttc-options--mat { grid-template-columns: 1fr; }
@media (min-width: 1100px) { .ttc-options--mat { grid-template-columns: 1fr 1fr; } }
.ttc-option--mat { align-items: flex-start; gap: 12px; padding: 12px 14px; }
.ttc-option--mat input { margin-top: 3px; flex: none; }
.ttc-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ttc-option__text strong { font-size: 14px; }
.ttc-option__text small { font-size: 12px; font-weight: 500; color: var(--ttc-muted); line-height: 1.4; }
.ttc-option--mat .ttc-option__price { margin-left: 8px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--ttc-green); white-space: nowrap; }
.ttc-swatch-mat { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: #fff; }
.ttc-swatch-mat--gloss { background: linear-gradient(135deg, #fff 0 40%, #e8eef0 50%, #fff 60%); }
.ttc-swatch-mat--matte { background: #f1efe8; }
.ttc-swatch-mat--mirror { background: linear-gradient(135deg, #f4f5f6, #a7adb3 30%, #fbfcfd 50%, #8f969d 75%, #e9ebed); }
.ttc-swatch-mat--holo { background: linear-gradient(135deg, #ff9ad5, #9fe8ff 35%, #b6ffb0 65%, #ffe89a); }
.ttc-swatch-mat--clear { background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 10px 10px; }

/* Kalvoeditori */
.ttc-filmview { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ttc-filmview__frame { width: 100%; max-height: 62vh; aspect-ratio: 5 / 6; margin-inline: auto; padding: 14px; border-radius: 8px; background: linear-gradient(145deg, #f7f5ec, #dcd8c6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 18px 40px -24px rgba(15,77,58,.55); }
.ttc-filmview__glass { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; box-shadow: inset 0 0 0 3px #c9c4ad, inset 0 0 0 4px rgba(0,0,0,.12); }
.ttc-filmview__scene, .ttc-filmview__film { position: absolute; inset: 0; }
.ttc-filmview__scene { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%237fb6dc'/%3E%3Cstop offset='.7' stop-color='%23cfe4ef'/%3E%3Cstop offset='1' stop-color='%23f3ecd2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='300' fill='url%28%23s%29'/%3E%3Ccircle cx='318' cy='62' r='26' fill='%23fff6c9'/%3E%3Ccircle cx='318' cy='62' r='40' fill='%23fff6c9' opacity='.35'/%3E%3Cg fill='%239fb3bd'%3E%3Crect x='0' y='150' width='46' height='150'/%3E%3Crect x='50' y='120' width='38' height='180'/%3E%3Crect x='92' y='165' width='60' height='135'/%3E%3Crect x='250' y='135' width='44' height='165'/%3E%3Crect x='298' y='160' width='58' height='140'/%3E%3Crect x='360' y='110' width='40' height='190'/%3E%3C/g%3E%3Cg fill='%237e949f'%3E%3Crect x='150' y='98' width='52' height='202'/%3E%3Cpath d='M176 60l10 38h-20z'/%3E%3Crect x='204' y='175' width='48' height='125'/%3E%3C/g%3E%3Cg fill='%23e9e3c4' opacity='.7'%3E%3Crect x='58' y='132' width='6' height='8'/%3E%3Crect x='72' y='132' width='6' height='8'/%3E%3Crect x='58' y='150' width='6' height='8'/%3E%3Crect x='72' y='168' width='6' height='8'/%3E%3Crect x='160' y='112' width='7' height='9'/%3E%3Crect x='176' y='112' width='7' height='9'/%3E%3Crect x='190' y='130' width='7' height='9'/%3E%3Crect x='160' y='148' width='7' height='9'/%3E%3Crect x='176' y='166' width='7' height='9'/%3E%3Crect x='368' y='124' width='6' height='8'/%3E%3Crect x='384' y='142' width='6' height='8'/%3E%3Crect x='258' y='148' width='6' height='8'/%3E%3Crect x='274' y='166' width='6' height='8'/%3E%3C/g%3E%3Crect y='262' width='400' height='38' fill='%236f8a5c'/%3E%3Cellipse cx='96' cy='236' rx='44' ry='40' fill='%232f6b49'/%3E%3Cellipse cx='70' cy='252' rx='30' ry='26' fill='%233d7b55'/%3E%3Crect x='92' y='250' width='8' height='30' fill='%234a3a28'/%3E%3Cellipse cx='330' cy='246' rx='36' ry='30' fill='%233d7b55'/%3E%3C/svg%3E") center / cover no-repeat; }
.ttc-filmview__glass::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.28) 0 18%, transparent 30% 62%, rgba(255,255,255,.14) 70%, transparent 80%); }
.ttc-filmview__glass::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 3px; margin-left: -1.5px; background: var(--ttc-yellow); z-index: 3; box-shadow: 0 0 0 1px rgba(15,77,58,.4); }
.ttc-filmview__film { z-index: 1; background: var(--tone); }
.ttc-filmview__film--frost { backdrop-filter: blur(9px) saturate(.7); -webkit-backdrop-filter: blur(9px) saturate(.7); }
.ttc-filmview__film--opaque { background: #f4f4f1; }
.ttc-filmview__film--mirror { backdrop-filter: brightness(.7); -webkit-backdrop-filter: brightness(.7); background: linear-gradient(160deg, rgba(235,240,245,.75), rgba(150,160,170,.55) 45%, rgba(230,236,240,.7)); }
.ttc-filmview__film--tint { backdrop-filter: saturate(.85); -webkit-backdrop-filter: saturate(.85); }
.ttc-filmview__film--clear { background: linear-gradient(120deg, rgba(210,232,242,.18), rgba(255,255,255,.04)); }
.ttc-filmview__tag { position: absolute; z-index: 4; top: 10px; left: 10px; max-width: 46%; padding: 4px 9px; border-radius: 99px; background: var(--ttc-green); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ttc-filmview__tag--r { left: auto; right: 10px; background: rgba(255,255,255,.88); color: var(--ttc-ink); }
.ttc-filmview__split { width: 100%; max-width: 420px; display: grid; gap: 4px; font-size: 13px; color: var(--ttc-muted); text-align: center; }
.ttc-filmview__split input { width: 100%; accent-color: var(--ttc-green); }
.ttc-filmtip { margin: 14px 0 0; font-size: 14px; color: var(--ttc-muted); line-height: 1.5; }
.ttc-swatch-film { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.14); background: linear-gradient(var(--tone), var(--tone)), linear-gradient(160deg, #7fb6dc, #cfe4ef 60%, #6f8a5c 61%); }
.ttc-swatch-film--frost { background: linear-gradient(var(--tone), var(--tone)), linear-gradient(135deg, #b9d1de, #e6eef2); }
.ttc-swatch-film--opaque { background: #f4f4f1; }
.ttc-swatch-film--mirror { background: linear-gradient(135deg, #f4f5f6, #a7adb3 30%, #fbfcfd 50%, #8f969d 75%, #e9ebed); }
.ttc-filmrows { display: flex; flex-direction: column; gap: 10px; }
.ttc-filmrow { display: grid; grid-template-columns: 28px repeat(3, minmax(0, 1fr)) 32px; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--ttc-line); border-radius: 12px; background: #fff; }
.ttc-filmrow__n { align-self: center; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ttc-cream); font-weight: 800; font-size: 13px; color: var(--ttc-green); }
.ttc-filmrow__f { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ttc-muted); min-width: 0; }
.ttc-filmrow__f input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid #c9c4ac; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ttc-ink); background: #fff; }
.ttc-filmrow__del { width: 32px; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; color: var(--ttc-muted); cursor: pointer; }
.ttc-filmrow__del:hover { background: var(--ttc-cream); color: var(--ttc-ink); }
.ttc-filmrow__info { grid-column: 2 / -1; font-size: 13px; color: var(--ttc-green); font-weight: 700; }
.ttc-filmrow__info.is-bad { color: #a3361f; }
.ttc-filmrows__add { margin-top: 10px; }
.ttc-filmextra { display: flex; flex-direction: column; gap: 14px; }
.ttc-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ttc-line); border-radius: 12px; background: #fff; cursor: pointer; }
.ttc-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ttc-green); flex: none; }
.ttc-check span { display: grid; gap: 2px; }
.ttc-check small { color: var(--ttc-muted); font-size: 13px; line-height: 1.45; }
.ttc-filmextra__note { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ttc-muted); }
.ttc-filmextra__note textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #c9c4ac; border-radius: 10px; font: inherit; font-size: 16px; resize: vertical; }
@media (max-width: 520px) {
	.ttc-filmrow { grid-template-columns: repeat(3, minmax(0, 1fr)) 28px; }
	.ttc-filmrow__n { display: none; }
	.ttc-filmrow__info { grid-column: 1 / -1; }
}
.ttc-unit-suffix { font-size: .8em; font-weight: 600; }

/* Painoaineiston lataus valmiissa painotuotteissa */
.ttc-printfile { --g: #0F4D3A; margin: 0 0 18px; padding: 16px; border: 1px solid rgba(15,77,58,.16); border-radius: 14px; background: #fff; display: grid; gap: 10px; width: 100%; }
.ttc-printfile__title { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: var(--g); }
.ttc-printfile__drop { position: relative; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px; border: 2px dashed rgba(15,77,58,.3); border-radius: 12px; cursor: pointer; background: #fbfaf3; }
.ttc-printfile__drop.is-set { border-style: solid; border-color: var(--g); }
.ttc-printfile__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ttc-printfile__drop:focus-within { outline: 3px solid #FFDD00; outline-offset: 2px; }
.ttc-printfile__btn { padding: 10px 16px; border-radius: 99px; background: var(--g); color: #fff; font-weight: 800; font-size: 14px; }
.ttc-printfile__name { font-size: 14px; color: #5b6b63; overflow-wrap: anywhere; min-width: 0; }
.ttc-printfile__help { margin: 0; font-size: 13px; line-height: 1.5; color: #5b6b63; }
.ttc-printfile__note { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #5b6b63; }
.ttc-printfile__note textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #c9c4ac; border-radius: 10px; font: inherit; font-size: 16px; resize: vertical; }

.ttc-options--film { grid-template-columns: 1fr !important; }
.ttc-options--film .ttc-option__text { min-width: 0; flex: 1; }
.ttc__head:has(.ttc__title) { max-width: 1000px; }
@media (max-width: 520px) {
	.ttc__title { font-size: clamp(26px, 8.4vw, 40px); overflow-wrap: anywhere; }
	.ttc-options--film .ttc-option--mat { flex-wrap: wrap; }
	.ttc-options--film .ttc-option__price { margin-left: 40px !important; flex-basis: 100%; }
}

/* Määräalennustaulukko */
.ttc-tiers { flex-basis: 100%; width: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(15,77,58,.16); }
.ttc-tiers__title { margin: 0 0 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; color: #0F4D3A; }
.ttc-tiers__table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.ttc-tiers__table th { text-align: left; font-size: 12px; color: #5b6b63; font-weight: 700; padding: 4px 8px; border-bottom: 1px solid rgba(15,77,58,.16); }
.ttc-tiers__table td { padding: 7px 8px; border-bottom: 1px solid rgba(15,77,58,.08); }
.ttc-tiers__table tr.is-on td { background: #FFDD00; font-weight: 800; color: #0F4D3A; }
.ttc-tiers__table tr.is-on td:first-child { border-radius: 8px 0 0 8px; } .ttc-tiers__table tr.is-on td:last-child { border-radius: 0 8px 8px 0; }
.ttc-tiers__total { margin: 10px 0 0; font-size: 15px; color: #13231d; }

/* Leikkuuviivojen selitteet ja painovalmis PDF */
.ttc-preview__legend { flex-wrap: wrap; row-gap: 4px; }
.ttc-cutline--flex { border-top-color: #3FA9E0; margin-left: 10px; }
.ttc-tools.is-pdf > :not(label) { display: none; }
.ttc-pdfinfo { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--ttc-green); display: grid; gap: 6px; font-size: 14px; }
.ttc-pdfinfo > strong { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ttc-green); }
.ttc-pdfinfo > span { font-weight: 700; overflow-wrap: anywhere; }
.ttc-pdfinfo ul { margin: 2px 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.ttc-pdfinfo li::before { content: "–"; display: inline-block; width: 18px; color: var(--ttc-muted); }
.ttc-pdfinfo li.is-ok::before { content: "✓"; color: var(--ttc-green); font-weight: 900; }
.ttc-pdfinfo p { margin: 4px 0 0; color: var(--ttc-muted); line-height: 1.45; }

/* Kuvan tarkkuus (ppi) */
.ttc-quality { margin-top: 12px; padding: 12px 14px; border-radius: 12px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; border: 1px solid transparent; }
.ttc-quality strong { font-size: 14px; }
.ttc-quality strong::before { display: inline-block; width: 1.3em; font-weight: 900; }
.ttc-quality--good { background: #e6f2ea; border-color: #b9dcc6; color: #0F4D3A; }
.ttc-quality--good strong::before { content: "✓"; }
.ttc-quality--ok { background: #fbf5d6; border-color: #ffdd00; color: #5a4c00; }
.ttc-quality--ok strong::before { content: "!"; }
.ttc-quality--bad { background: #fbe4df; border-color: #e7a99c; color: #8a2414; }
.ttc-quality--bad strong::before { content: "✕"; }
.ttc-quality .ttc-btn { justify-self: start; margin-top: 4px; }
.ttc-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }

/* Esikatselu käytössä */
.ttc-scenes { margin-top: 12px; justify-content: center; }
.ttc-ppi--good { color: #0F4D3A; } .ttc-ppi--ok { color: #7a6400; font-weight: 700; } .ttc-ppi--bad { color: #a3361f; font-weight: 700; }
.ttc-cutline { border-top-width: 3px; width: 28px; }
.ttc-bleedmark, .ttc-bleedtxt { display: none; }
.ttc-preview__legend.has-bleed .ttc-bleedmark { display: inline-block; width: 18px; height: 12px; margin-left: 10px; border-radius: 3px; background: repeating-linear-gradient(45deg, rgba(15,77,58,.35) 0 3px, rgba(15,77,58,.12) 3px 6px); }
.ttc-preview__legend.has-bleed .ttc-bleedtxt { display: inline; }
.ttc-pdfinfo li.is-warn::before { content: "!"; color: #a3361f; font-weight: 900; }
.ttc-pdfinfo li.is-warn { color: #8a2414; }
.ttc-preview__legend { gap: 6px 16px; }
.ttc-leg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ttc-cutline--flex { margin-left: 0; }
.ttc-leg--bleed { display: none; }
.ttc-preview__legend.has-bleed .ttc-leg--bleed { display: inline-flex; }
.ttc-preview__legend.has-bleed .ttc-bleedmark { margin-left: 0; }
.ttc-preview__legend .ttc-bleedmark { display: inline-block; width: 18px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(45deg, rgba(15,77,58,.35) 0 3px, rgba(15,77,58,.12) 3px 6px); }
.ttc-size .ttc-hint--inline { flex-basis: 100%; margin: 0; }
.ttc-sliders .ttc-field--inline { flex-direction: row; align-items: center; gap: 10px; }
.ttc-sliders .ttc-field--inline .ttc-field__input input { width: 80px; font-size: 16px; padding: 8px 10px; }
.ttc-enhance { margin-top: 12px; }
.ttc-enhance[hidden] { display: none; }

/* Taustanpoisto puolesta (palvelu) */
.ttc-bgservice { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px dashed rgba(15, 77, 58, .35); cursor: pointer; }
.ttc-bgservice[hidden] { display: none; }
.ttc-bgservice input { margin-top: 3px; width: 18px; height: 18px; accent-color: #0F4D3A; flex: none; }
.ttc-bgservice span { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.ttc-bgservice small { color: #3F5A4D; font-size: 13px; }
.ttc-bgservice:has(input:checked) { border-style: solid; border-color: #0F4D3A; background: #F1F6EF; }

/* Vedoksen hyväksyntä */
.ttc-noscroll, .ttc-noscroll body { overflow: hidden; }
.ttc-proofdlg { --ttc-green: #0F4D3A; --ttc-yellow: #FFDD00; --ttc-cream: #F8F6E9; position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; background: rgba(10, 30, 22, .78); font-family: inherit; }
.ttc-proofdlg__box { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #F8F6E9; color: #13231d; border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: grid; gap: 14px; }
.ttc-proofdlg__title { margin: 0; font-size: 26px; color: #0F4D3A; text-transform: uppercase; letter-spacing: .01em; }
.ttc-proofdlg__lead { margin: 0; font-size: 15px; line-height: 1.45; color: #2f4239; }
.ttc-proofdlg__imgs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.ttc-proofdlg__imgs img { width: 100%; height: auto; max-height: 52dvh; object-fit: contain; background: #fff; border-radius: 12px; border: 1.5px solid rgba(15, 77, 58, .16); }
.ttc-proofdlg__info { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FBF7DA; border: 1.5px solid #FFDD00; font-size: 14px; }
.ttc-proofdlg__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; cursor: pointer; }
.ttc-proofdlg__check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #0F4D3A; }
.ttc-proofdlg__acts { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.ttc-proofdlg__acts .ttc-btn--primary { width: auto; flex: 1 1 260px; min-height: 52px; font-size: 15px; }
.ttc-proofdlg__acts .ttc-btn--ghost { min-height: 52px; }
@media (max-width: 520px) { .ttc-proofdlg__box { padding: 18px; } .ttc-proofdlg__title { font-size: 22px; } .ttc-proofdlg__acts .ttc-btn { flex: 1 1 100%; } .ttc-proofdlg__imgs { grid-auto-flow: row; } }

/* Alv-valitsin tuotesivun otsikon alla (tyylit teeman shop.css:ssä) */
.ttc__head .tt-vat-toggle { margin: 10px 0 0; }

/* Vedoksen välilehdet ja 3D-näkymät */
.ttc-proofdlg__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(15, 77, 58, .08); margin-bottom: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.ttc-proofdlg__tabs button { border: 0; background: transparent; color: #0F4D3A; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ttc-proofdlg__tabs button[aria-selected="true"] { background: #0F4D3A; color: #F8F6E9; }
.ttc-proofdlg__stage { position: relative; height: clamp(300px, 50dvh, 440px); border-radius: 14px; background: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #ece8d8 75%); border: 1.5px solid rgba(15, 77, 58, .14); overflow: hidden; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.ttc-proofdlg__stage > .ttc-proofdlg__imgs, .ttc-proofdlg__stage > div:first-child:not([class]) { width: 100%; height: 100%; padding: 12px; box-sizing: border-box; }
.ttc-proofdlg__stage .ttc-proofdlg__imgs img { max-height: 100%; border: 0; background: transparent; }
.ttc-s3d { perspective: 900px; cursor: grab; }
.ttc-s3d:active { cursor: grabbing; }
.ttc-s3d__card { position: relative; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ttc-s3d__card.is-drag { transition: none; }
.ttc-s3d__front, .ttc-s3d__back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ttc-s3d__front img { width: 100%; height: 100%; display: block; pointer-events: none; }
.ttc-s3d__glare { position: absolute; inset: 0; mix-blend-mode: soft-light; pointer-events: none; overflow: hidden; }
.ttc-s3d__glare i { position: absolute; inset: -60%; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 22%), linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 58%); will-change: transform; }
.ttc-s3d__card { will-change: transform; }
.ttc-s3d__front img { filter: drop-shadow(0 10px 14px rgba(10, 30, 22, .32)); }
.ttc-s3d__back { transform: rotateY(180deg); background: repeating-linear-gradient(135deg, #f1efe6 0 10px, #e9e6da 10px 20px); display: grid; place-items: center; }
.ttc-s3d__back span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(15, 77, 58, .45); }
.ttc-s3d__hint, .ttc-lap__hint { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; text-align: center; font-size: 12.5px; color: rgba(19, 35, 29, .62); pointer-events: none; }
.ttc-s3d__acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.ttc-s3d__acts .ttc-btn, .ttc-lap__acts .ttc-btn { min-height: 34px; padding: 0 12px; font-size: 13px; background: rgba(255,255,255,.85); }
.ttc-lap { perspective: 1100px; cursor: grab; }
.ttc-lap.is-moving { cursor: grabbing; }
.ttc-lap__wrap { transform-style: preserve-3d; margin-bottom: 40px; }
.ttc-lap__lid { position: relative; transform-style: preserve-3d; background: linear-gradient(145deg, #dfe2e6 0%, #c3c7cc 55%, #aeb3b9 100%); box-shadow: 0 30px 50px -18px rgba(10, 30, 22, .45), inset 0 0 0 1px rgba(255,255,255,.5); overflow: hidden; }
.ttc-lap__logo { position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.7), rgba(255,255,255,.15)); opacity: .55; }
.ttc-lap__sheen { position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: soft-light; }
.ttc-lap__sticker { position: absolute; left: 50%; top: 50%; z-index: 1; cursor: move; touch-action: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); will-change: transform; }
.ttc-lap__lid { will-change: transform; }
.ttc-lap__acts { position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ttc-lap__acts .ttc-lap__hint { position: static; flex: 1 1 200px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .ttc-s3d__card { transition: none; } }

/* Aineiston tarkistus -lisävalinta */
.ttc-filecheck { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(15, 77, 58, .18); background: rgba(255,255,255,.7); color: #0F4D3A; cursor: pointer; font-size: 15px; line-height: 1.35; text-align: left; }
.ttc-filecheck:has(input:checked) { border-color: #0F4D3A; background: #FBF7DA; }
.ttc-filecheck input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #0F4D3A; }
.ttc-filecheck > span { display: grid; gap: 3px; }
.ttc-filecheck > span > strong:first-child { display: inline; }
.ttc-filecheck small { display: block; font-size: 13px; color: #3F5A4D; font-weight: 400; }
.ttc-summary .ttc-filecheck { background: rgba(255,255,255,.08); border-color: rgba(248,246,233,.35); color: inherit; }
.ttc-summary .ttc-filecheck small { color: inherit; opacity: .8; }
.ttc-summary .ttc-filecheck:has(input:checked) { background: rgba(255,221,0,.18); border-color: #FFDD00; }

/* Tuotetiedot ja mittataulukko (Stanley/Stella) */
.ttc-spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 1rem; }
.ttc-spec th, .ttc-spec td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(15, 77, 58, 0.12); vertical-align: top; }
.ttc-spec th { font-weight: 600; color: #0F4D3A; width: 34%; }
.ttc-spec--sizes th, .ttc-spec--sizes td { text-align: center; width: auto; white-space: nowrap; }
.ttc-spec--sizes tbody th { text-align: left; }
.ttc-spec--sizes thead th { background: rgba(15, 77, 58, 0.06); }
.ttc-spec__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ttc-spec__note { font-size: 0.85rem; opacity: 0.75; max-width: 65ch; }

/* ---------- Mallisto (Stanley/Stella -kuvasto) ---------- */
.ttc-cat { --g: #0F4D3A; --y: #FFDD00; --line: rgba(15, 77, 58, .14); color: #13231D; }
.ttc-cat__lead { max-width: 70ch; font-size: 1.05rem; margin: 0 0 1.25rem; }
.ttc-cat__bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.ttc-cat__search { flex: 1 1 280px; min-width: 0; }
.ttc-cat__search input { width: 100%; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; }
.ttc-cat__search input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(255, 221, 0, .6); }
.ttc-cat__sel { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .92rem; }
.ttc-cat__sel select { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; }
.ttc-cat__chk { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .92rem; cursor: pointer; }
.ttc-cat__vat { margin-left: auto; }
.ttc-cat__chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.ttc-cat__chips button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--g); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.ttc-cat__chips button small { opacity: .6; font-weight: 600; }
.ttc-cat__chips button[aria-pressed="true"] { background: var(--g); color: #F8F6E9; box-shadow: none; }
.ttc-cat__count { margin: 4px 0 14px; font-size: .9rem; opacity: .7; }
.ttc-cat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.ttc-cat__card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none !important; color: inherit; box-shadow: 0 0 0 1px var(--line); transition: transform .15s, box-shadow .15s; }
@media (hover: hover) { .ttc-cat__card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 14px 30px rgba(15, 42, 32, .12); } }
.ttc-cat__card[hidden] { display: none; }
.ttc-cat__img { position: relative; aspect-ratio: 4 / 5; background: #F3F2EC; display: block; }
.ttc-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttc-cat__badge { position: absolute; top: 10px; left: 10px; background: var(--y); color: var(--g); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ttc-cat__badge--ed { top: auto; bottom: 10px; background: var(--g); color: #F8F6E9; }
.ttc-cat__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ttc-cat__body strong { font-size: 1.05rem; color: var(--g); }
.ttc-cat__brandtag { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g); opacity: .6; }
.ttc-cat__body small { font-size: .82rem; opacity: .75; }
.ttc-cat__dots { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.ttc-cat__dots i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.ttc-cat__dots em { font-style: normal; font-size: .78rem; opacity: .7; margin-left: 2px; }
.ttc-cat__price { margin-top: 6px; font-weight: 800; color: var(--g); }
.ttc-cat__price small, .ttc-cat__bigprice small { font-weight: 500; font-size: .75em; opacity: .7; }
.ttc-cat__none, .ttc-cat__empty { padding: 30px 0; }

.ttc-cat__crumbs { margin-bottom: 16px; font-weight: 600; }
.ttc-cat__crumbs span { opacity: .4; margin: 0 4px; }
.ttc-cat__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ttc-cat__main { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 4 / 5; }
.ttc-cat__main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ttc-cat__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ttc-cat__thumb { flex: none; width: 72px; height: 90px; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ttc-cat__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ttc-cat__thumb[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--g); }
.ttc-cat__brand { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; opacity: .7; margin: 0 0 6px; }
.ttc-cat__desc { font-size: 1.1rem; margin: 0 0 12px; }
.ttc-cat__bigprice { font-size: 1.6rem; font-weight: 800; color: var(--g); margin: 0; }
.ttc-cat__note { font-size: .88rem; opacity: .85; margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ttc-cat__h { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 8px; color: var(--g); }
.ttc-cat__h span { text-transform: none; letter-spacing: 0; font-weight: 600; color: #13231D; }
.ttc-cat__swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-cat__sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); padding: 0; cursor: pointer; }
.ttc-cat__sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--g); }
.ttc-cat__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-cat__size { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.ttc-cat__size small { font-size: .72rem; }
.ttc-cat__size.is-ok small { color: #2E7D32; }
.ttc-cat__size.is-low small { color: #B7791F; }
.ttc-cat__size.is-out { opacity: .6; }
.ttc-cat__size.is-out small { color: #C8102E; }
.ttc-cat__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.ttc-cat__spec { margin-top: 8px; }
.ttc-cat__sec { margin-top: 44px; }
.ttc-cat__sec h2 { color: var(--g); }
.ttc-cat__quote { background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 0 0 1px var(--line); max-width: 760px; scroll-margin-top: 120px; }
.ttc-cat__qty { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-cat__qty label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; }
.ttc-cat__qty input { width: 64px; text-align: center; }
.ttc-cat__qsum { font-weight: 700; margin: 6px 0 0; }
.ttc-cat__qsum.is-warn, .ttc-cat__err { color: #C8102E; font-weight: 700; }
.ttc-cat__locs { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ttc-cat__locs legend { font-weight: 700; margin-bottom: 6px; }
.ttc-cat__locs label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
@media (max-width: 820px) {
	.ttc-cat__top { grid-template-columns: 1fr; gap: 20px; }
	.ttc-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ttc-cat__body { padding: 10px 12px 12px; }
	.ttc-cat__vat { margin-left: 0; }
	.ttc-cat__quote { padding: 18px; }
}
.ttc-cat__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(15, 77, 58, .35); }
.ttc-cat__ph svg { width: 42%; height: auto; }
.ttc-cat__ph small { font-size: .75rem; }
/* Varmistus, jos teema ei vielä tunne tt-wide-luokkaa */
body.tt-wide .container { max-width: 1520px; }
body.tt-wide .entry-content { max-width: none; }
body.tt-wide .container.entry-content { max-width: 1520px; }

/* Nosto Mallistoon kaupassa */
.ttc-promo { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin: 0 0 20px; padding: 12px 14px 12px 20px; border-radius: 16px; background: #0F4D3A; color: #F8F6E9 !important; text-decoration: none !important; overflow: hidden; transition: transform .15s, box-shadow .15s; }
@media (hover: hover) { .ttc-promo:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 42, 32, .18); } }
.ttc-promo__txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.ttc-promo__eyebrow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #FFDD00; flex-basis: 100%; }
.ttc-promo strong { font-size: 1.08rem; line-height: 1.2; font-weight: 900; }
.ttc-promo__txt > span:not(.ttc-promo__go) { display: none; }
.ttc-promo__go { font-weight: 800; color: #FFDD00; white-space: nowrap; }
.ttc-promo__imgs { display: flex; gap: 6px; flex: none; }
.ttc-promo__imgs img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; background: #fff; }
@media (max-width: 900px) { .ttc-promo__imgs img:nth-child(n+3) { display: none; } }
@media (max-width: 600px) { .ttc-promo { padding: 12px 14px; } .ttc-promo__imgs { display: none; } }

/* Mallisivun kuvat: koko tuote aina näkyvissä (teeman kuvatyylit eivät saa rajata) */
.ttc-cat__main { position: relative; background: #fff; }
.ttc-cat .ttc-cat__main img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; padding: 4%; box-sizing: border-box; margin: 0 !important; border-radius: 0 !important; }
.ttc-cat__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ttc-cat__thumb { width: auto; height: auto; aspect-ratio: 4 / 5; background: #fff; padding: 0; }
.ttc-cat .ttc-cat__thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; margin: 0 !important; border-radius: 0 !important; }
@media (hover: hover) { .ttc-cat__thumb:hover { box-shadow: 0 0 0 2px rgba(15, 77, 58, .45); } }
.ttc-cat .ttc-cat__img img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain !important; background: #fff; margin: 0 !important; }
.ttc-cat__img { background: #fff; }

/* Mallisivun kuva mahtuu näyttöön */
.ttc-cat__main { aspect-ratio: auto !important; height: min(72vh, 680px); }
.ttc-cat__gal { position: sticky; top: calc(var(--header-h, 96px) + 16px); align-self: start; }
@media (max-width: 820px) { .ttc-cat__gal { position: static; } .ttc-cat__main { height: min(62vh, 520px); } }

/* ------------------------------------------------------------------ Tarrastudio koko ruudulle */
.ttc-fbar { display: none; }
.ttc-launch { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.ttc-launch[hidden] { display: none; }
.ttc-launch .ttc-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ttc-launch__drop { aspect-ratio: 4 / 3; width: 100%; border-radius: 22px; border: 2px dashed rgba(15, 77, 58, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #0F4D3A; cursor: pointer; font: inherit; padding: 24px; text-align: center; transition: border-color .15s, transform .15s; }
@media (hover: hover) { .ttc-launch__drop:hover, .ttc-launch__drop.is-over { border-color: #0F4D3A; transform: translateY(-2px); } }
.ttc-launch__drop b { font-size: 1.25rem; }
.ttc-launch__drop span:last-child { opacity: .75; font-size: .95rem; }
.ttc-launch__ic { width: 64px; height: 64px; border-radius: 50%; background: #FFDD00; display: grid; place-items: center; }
.ttc-launch__ic svg { width: 28px; height: 28px; }
.ttc-launch__side h2 { margin: 0 0 14px; color: #0F4D3A; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.ttc-launch__side ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ttc-launch__side li { display: flex; gap: 10px; align-items: flex-start; }
.ttc-launch__side li svg { flex: none; color: #0F4D3A; background: rgba(15, 77, 58, .1); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ttc-launch__cta { width: 100%; max-width: 360px; }
.ttc__app.ttc--stk:not(.is-full) > .ttc-grid { display: none; }

.ttc__app.is-full { position: fixed; inset: 0; z-index: 100000; background: #F8F6E9; display: flex; flex-direction: column; margin: 0; max-width: none; }
.is-full .ttc-fbar { display: flex; align-items: center; gap: 14px; flex: none; background: #0F4D3A; color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); min-height: 62px; box-sizing: border-box; }
.ttc-fbar__back { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px 9px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.ttc-fbar__back:hover { background: rgba(255, 255, 255, .18); }
.ttc-fbar__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ttc-fbar__t b { text-transform: uppercase; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-fbar__t span { font-size: 12px; opacity: .75; }
.ttc-fbar__r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.ttc-fbar__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ttc-fbar__price b { color: #FFDD00; font-size: 19px; }
.ttc-fbar__price small { font-size: 11px; opacity: .8; }
.ttc-fbar__cta { display: inline-flex; align-items: center; gap: 8px; background: #FFDD00; color: #0F4D3A; border: 0; border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.ttc-fbar__cta:disabled { opacity: .55; cursor: default; }
.is-full > .ttc-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 34vw, 500px); gap: 0; align-items: stretch; }
.is-full .ttc-col--preview { position: static; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 12px; }
.is-full .ttc-preview { width: min(100%, calc(100vh - 62px - 250px)); flex: none; background-color: #F8F6E9; }
.is-full .ttc-col--controls { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 40px; background: #fff; border-left: 1px solid rgba(15, 77, 58, .12); }
@media (max-width: 900px) {
	.ttc-launch { grid-template-columns: minmax(0, 1fr); }
	.ttc-launch__drop { aspect-ratio: 16 / 11; }
	.ttc-launch__cta { max-width: none; }
	.is-full > .ttc-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
	.is-full .ttc-col--preview { padding: 10px 16px 6px; overflow: visible; }
	.is-full .ttc-preview { width: min(100%, 36vh); }
	.is-full .ttc-scenes, .is-full .ttc-preview__info, .is-full .ttc-quality:empty { display: none; }
	.is-full .ttc-col--controls { border-left: 0; border-top: 1px solid rgba(15, 77, 58, .12); padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 32px); }
	.ttc-fbar__back span, .ttc-fbar__t span { display: none; }
	.ttc-fbar__back { padding: 9px; }
	.ttc-fbar__cta span { display: none; }
	.ttc-fbar__cta { padding: 11px; }
	.ttc-fbar__price b { font-size: 17px; }
	.ttc-fbar__price small { display: none; }
}

/* ---------- Mallisto kauppatyylisesti: suodattimet vasemmalla, järjestys ja haku ylhäällä ---------- */
body.ttc-mallisto .page-hero { padding: 18px 0 14px; }
body.ttc-mallisto .page-hero__title { font-size: clamp(28px, 3.4vw, 44px); }
body.ttc-mallisto .page-hero + .section--auto { padding-top: 22px; }
.ttc-cat--shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.ttc-cat__col { min-width: 0; }
.ttc-cat__side { position: sticky; top: calc(var(--header-h, 96px) + 16px); max-height: calc(100vh - var(--header-h, 96px) - 32px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px; }
.ttc-cat__sidehead { display: none; }
.ttc-cat__back { font-weight: 700; color: var(--g); text-decoration: none; font-size: .9rem; margin: 0 0 10px; }
.ttc-cat__back:hover { text-decoration: underline; }
.ttc-f, .sub-content details.ttc-f { border-top: 1px solid var(--line); border-bottom: 0; padding: 10px 0; }
/* Sivupohjan .sub-content-haitarien "+/–"-merkki ei saa näkyä suodattimissa (näkyi kääntyneenä x:nä nuolen päällä). */
.ttc-f summary { cursor: pointer; list-style: none; font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--g); display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.ttc-f summary::-webkit-details-marker { display: none; }
.ttc-f summary::after { content: "" !important; font-size: 0 !important; line-height: 0 !important; flex: none; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.ttc-f[open] summary::after { transform: rotate(-135deg); }
.ttc-f__b { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; }
.ttc-f__o { position: relative; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; cursor: pointer; font-size: .93rem; }
@media (hover: hover) { .ttc-f__o:hover { background: rgba(15, 77, 58, .06); } }
.ttc-f__o input { accent-color: var(--g); width: 16px; height: 16px; margin: 0; flex: none; }
.ttc-f__o span { flex: 1; min-width: 0; }
.ttc-f__o small { font-size: .78rem; opacity: .55; font-variant-numeric: tabular-nums; }
.ttc-f__o.is-zero { opacity: .4; }
.ttc-f__o:has(input:checked) { background: rgba(15, 77, 58, .08); font-weight: 700; }
.ttc-f__o:has(input[type=radio]:checked) { background: var(--g); color: #F8F6E9; }
.ttc-f__o:has(input[type=radio]:checked) small { opacity: .8; }
.ttc-f__o input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.ttc-f__sws { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ttc-f__o--sw { padding: 5px 6px; gap: 7px; font-size: .86rem; }
.ttc-f__o--sw input { position: absolute; opacity: 0; pointer-events: none; }
.ttc-f__o--sw i { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.ttc-f__o--sw:has(input:checked) i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--g); }
.ttc-f__o--sw small { display: none; }
.ttc-cat__clear { margin-top: 10px; align-self: flex-start; background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 700; font-size: .88rem; color: var(--g); text-decoration: underline; cursor: pointer; }
.ttc-cat__showbtn, .ttc-cat__fbtn, .ttc-cat__scrim { display: none; }
.ttc-cat--shop .ttc-cat__bar { margin: 0 0 8px; gap: 10px 14px; }
.ttc-cat--shop .ttc-cat__search { flex: 1 1 260px; }
.ttc-cat--shop .ttc-cat__search input { padding: 10px 16px; }
.ttc-cat__sort { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.ttc-cat__sort select { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; color: var(--g); }
.ttc-cat__info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 14px; min-height: 30px; }
.ttc-cat--shop .ttc-cat__count { margin: 0; font-weight: 700; opacity: 1; color: var(--g); }
.ttc-cat--shop .ttc-cat__lead { margin: 0 0 0 auto; font-size: .82rem; opacity: .7; max-width: none; }
.ttc-cat__active { display: flex; flex-wrap: wrap; gap: 6px; }
.ttc-cat__chip { border: 0; border-radius: 999px; padding: 5px 11px; background: var(--g); color: #F8F6E9; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ttc-cat__chip:hover { background: #0B3A2C; }
.ttc-cat--shop .ttc-cat__grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ttc-cat__price--q { font-weight: 600; font-size: .85rem; opacity: .7; }
@media (max-width: 900px) {
	.ttc-cat--shop { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ttc-cat__fbtn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--g); background: #fff; color: var(--g); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
	.ttc-cat__fbtn b { background: var(--y); border-radius: 999px; min-width: 20px; padding: 0 6px; font-size: .78rem; line-height: 20px; text-align: center; }
	.ttc-cat__fbtn b[hidden] { display: none; }
	.ttc-cat__side { position: fixed; z-index: 100001; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); max-height: none; background: #F8F6E9; padding: calc(env(safe-area-inset-top, 0px) + 12px) 18px calc(env(safe-area-inset-bottom, 0px) + 16px) max(18px, env(safe-area-inset-left, 0px)); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .25); }
	.ttc-cat.is-open .ttc-cat__side { transform: none; }
	.ttc-cat__scrim { position: fixed; inset: 0; z-index: 100000; background: rgba(10, 30, 22, .45); }
	.ttc-cat.is-open .ttc-cat__scrim { display: block; }
	.ttc-cat__sidehead { display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; color: var(--g); margin-bottom: 6px; }
	.ttc-cat__x { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--g); padding: 4px 8px; }
	.ttc-cat__showbtn { display: block; position: sticky; bottom: 0; margin-top: auto; border: 0; border-radius: 999px; padding: 14px; background: var(--g); color: #F8F6E9; font: inherit; font-weight: 800; cursor: pointer; }
	.ttc-cat--shop .ttc-cat__search { flex-basis: 100%; }
	.ttc-cat__sort span { display: none; }
	.ttc-cat--shop .ttc-cat__lead { margin-left: 0; flex-basis: 100%; }
	.ttc-cat--shop .ttc-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
/* Tarrastudio koko ruudulla: oikea palsta ei koskaan leviä yli (ei vaakavieritystä). */
.is-full > .ttc-grid { grid-template-columns: minmax(0, 1fr) clamp(400px, 38vw, 560px); }
.is-full .ttc-col--controls { overflow-x: hidden; min-width: 0; }
.is-full .ttc-col--controls * { min-width: 0; }
.is-full .ttc-options--mat { grid-template-columns: 1fr; }
.is-full .ttc-options { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.is-full .ttc-option { min-width: 0; max-width: 100%; }
.is-full .ttc-option--mat .ttc-option__price { white-space: nowrap; }
@media (min-width: 1500px) { .is-full .ttc-options--mat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .is-full > .ttc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Tarraeditori koko ruudulla: selkeämpi kännykkänäkymä ---------- */
/* Materiaalikortit: valinta | näyte | nimi + kuvaus | hinta – hinta ei koskaan nimen päällä. */
.is-full .ttc-options.ttc-options--mat { grid-template-columns: minmax(0, 1fr); }
.is-full .ttc-option--mat { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: start; column-gap: 12px; }
.is-full .ttc-option--mat .ttc-option__text { min-width: 0; }
.is-full .ttc-option--mat .ttc-option__text strong { overflow-wrap: normal; word-break: normal; }
.is-full .ttc-option--mat .ttc-option__price { min-width: max-content; margin-left: 0; text-align: right; }
.is-full .ttc-option--mat input { margin-top: 4px; }
@media (min-width: 1500px) { .is-full .ttc-options.ttc-options--mat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
	/* Esikatselu pienemmäksi, jotta valinnoille jää tilaa. */
	.is-full .ttc-col--preview { padding: 8px 16px 6px; gap: 6px; }
	.is-full .ttc-preview { width: min(100%, 26vh); border-radius: 16px; }
	/* Tarkkuus yhdeksi riviksi; selitys näytetään vain, jos kuvassa on ongelma. */
	.is-full .ttc-quality { margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; gap: 2px; }
	.is-full .ttc-quality strong { font-size: 13px; }
	.is-full .ttc-quality--good span { display: none; }
	.is-full .ttc-quality--ok, .is-full .ttc-quality--bad { border-radius: 12px; padding: 8px 12px; }
	.is-full .ttc-quality--ok span, .is-full .ttc-quality--bad span { font-size: 12px; }
	/* Valinnat tiiviimmiksi. */
	.is-full .ttc-col--controls { padding-top: 10px; }
	.is-full .ttc-option--mat { padding: 12px; column-gap: 10px; }
	.is-full .ttc-option__text strong { font-size: 15px; }
	.is-full .ttc-option__text small { font-size: 13px; }
	.is-full .ttc-chip { padding: 8px 14px; font-size: 14px; }
}
html.ttc-lock, html.ttc-lock body { overflow: hidden; overscroll-behavior: none; }

/* ---------- Sama visuaalinen linja kuin paitaeditorissa ---------- */
/* Vaiheen numero: vihreä pyöristetty laatta, valkoinen numero */
.ttc-step__num { width: 34px; height: 34px; border-radius: 11px; background: var(--ttc-green); color: #fff; font-size: 15px; font-weight: 900; }
/* Latausalue: ikoni vihreässä laatassa */
.ttc-drop { gap: 6px; }
.ttc-drop__ic { width: 48px; height: 48px; border-radius: 15px; background: var(--ttc-green); color: #fff; display: grid; place-items: center; margin-bottom: 4px; }
.ttc-drop__ic svg { display: block; }
/* Kuvan jälkeen: yksi selkeä "Poista tausta", muut työkalut piilossa */
.ttc-tools { flex-direction: column; align-items: stretch; gap: 10px; }
.ttc-tools .ttc-tools__main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; font-size: 15px; padding: 0 18px; width: 100%; }
.ttc-tools__main svg { flex: none; }
.ttc-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--ttc-green); padding: 4px 0; }
.ttc-more > summary::-webkit-details-marker { display: none; }
.ttc-more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ttc-green); color: #fff; font-weight: 900; }
.ttc-more[open] > summary::before { content: '−'; }
.ttc-tools__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ttc-tools__row .ttc-btn { min-height: 36px; font-size: 13px; padding: 0 12px; }
/* PDF: vain "Vaihda tiedosto" */
.ttc-tools.is-pdf > .ttc-more { display: block; }
.ttc-tools.is-pdf > .ttc-more > summary { display: none; }
.ttc-tools.is-pdf .ttc-tools__row { margin-top: 0; }
.ttc-tools.is-pdf .ttc-tools__row > :not(label) { display: none; }
.ttc-more .ttc-bgservice { margin-top: 10px; }
@media (max-width: 600px) { .ttc-thumb { width: 76px; } .ttc-imagerow { gap: 12px; } }

/* =====================================================================
 * SIMPPELI TARRATILAUS (ttc--simple): yksi sarake, isot kortit, hinta alhaalla
 * ===================================================================== */
.ttc--simple .ttc-simple { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 96px; }
.ttc--simple .ttc-step { padding: 18px 18px 20px; border-radius: 22px; }
.ttc--simple .ttc-step__title { font-size: 16px; margin-bottom: 16px; }
/* Kuva + pieni esikatselu */
.ttc--simple .ttc-sprev { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ttc-line); }
.ttc--simple .ttc-sprev[hidden] { display: none; }
.ttc--simple .ttc-sprev__pv { position: relative; flex: none; width: 150px; max-width: 42%; }
.ttc--simple .ttc-sprev .ttc-preview { width: 100%; border-radius: 16px; position: static; }
.ttc-sprev__zoom { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ttc-green); color: #F8F6E9; box-shadow: 0 4px 12px rgba(10, 40, 30, .28); cursor: zoom-in; }
.ttc-sprev__zoom:hover { filter: brightness(1.15); }
.ttc-sprev__zoom:focus-visible { outline: 3px solid var(--ttc-yellow); outline-offset: 2px; }
.ttc--simple .ttc-sprev__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.ttc--simple .ttc-sprev .ttc-preview__dims { margin: 0; font-weight: 800; color: var(--ttc-green); font-size: 15px; }
.ttc--simple .ttc-sprev .ttc-quality { margin: 0; padding: 8px 12px; font-size: 13px; }
.ttc--simple .ttc-sprev .ttc-quality--good span { display: none; }
.ttc--simple .ttc-sprev .ttc-quality .ttc-btn { font-size: 12px; min-height: 32px; }
.ttc--simple .ttc-imagerow .ttc-thumb { display: none; } /* esikatselu näyttää kuvan */
/* Muodot: isot kortit ikoneilla */
.ttc--simple .ttc-shapes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .ttc--simple .ttc-shapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ttc--simple .ttc-shape { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 112px; padding: 16px 8px; border-radius: 18px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); font-size: 15px; font-weight: 800; text-align: center; white-space: normal; line-height: 1.2; }
.ttc--simple .ttc-shape__ic { width: 52px; height: 52px; border-radius: 16px; background: var(--ttc-green); color: #fff; display: grid; place-items: center; transition: background .15s, color .15s; }
.ttc--simple .ttc-shape[aria-checked="true"] { background: #fff; color: var(--ttc-green); border-color: var(--ttc-green); box-shadow: inset 0 0 0 1px var(--ttc-green); }
.ttc--simple .ttc-shape[aria-checked="true"] .ttc-shape__ic { background: var(--ttc-yellow); color: var(--ttc-green); }
.ttc--simple .ttc-more--opts > summary { margin-top: 4px; }
.ttc--simple .ttc-more--opts .ttc-stack { margin-top: 12px; }
/* Koko: pikakoot isoina nappeina ensin, omat mitat alla */
.ttc--simple .ttc-size { display: flex; flex-wrap: wrap; gap: 12px; }
.ttc--simple .ttc-presets { order: -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.ttc--simple .ttc-presets > span { grid-column: 1 / -1; font-size: 13px; font-weight: 700; }
.ttc--simple .ttc-presets .ttc-chip { display: flex; align-items: center; min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 800; justify-content: center; padding: 0 8px; }
.ttc--simple .ttc-size .ttc-field { flex: 1 1 140px; }
.ttc--simple .ttc-size .ttc-hint { flex-basis: 100%; margin: 0; }
/* Määrä: selkeä lista – määrä, hinta, kappalehinta, säästö */
.ttc--simple .ttc-qty { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ttc--simple .ttc-qty__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q p" "u s"; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 16px; text-align: left; min-height: 0; }
.ttc--simple .ttc-qty__item strong { grid-area: q; font-size: 17px; }
.ttc--simple .ttc-qty__item span { grid-area: p; font-size: 17px; font-weight: 800; text-align: right; }
.ttc--simple .ttc-qty__item em { grid-area: u; font-size: 13px; }
.ttc--simple .ttc-qty__save { grid-area: s; justify-self: end; font-size: 12px; font-weight: 800; color: #1E7A4C; background: #E3F1E6; padding: 2px 8px; border-radius: 999px; }
.ttc--simple .ttc-qty__item[aria-checked="true"] .ttc-qty__save { background: var(--ttc-yellow); color: var(--ttc-green); }
.ttc--simple .ttc-qty__pop { position: absolute; top: -9px; left: 14px; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; background: var(--ttc-yellow); color: var(--ttc-green); padding: 2px 8px; border-radius: 999px; }
.ttc--simple .ttc-qty__item.is-pop { margin-top: 6px; }
/* Hinta- ja tilauspalkki alhaalla */
.ttc-sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 14px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--ttc-green); color: var(--ttc-cream); box-shadow: 0 -10px 30px rgba(15, 42, 32, .18); transition: transform .25s ease; }
.ttc-sbar.is-off { transform: translateY(110%); }
/* Näppäimistö auki puhelimella: alapalkki ja tarkkuusilmoitus eivät peitä kirjoituskenttää. */
.ttc-kb .ttc-sbar .ttc-sheetchips { display: none; } /* kirjoittaessa vain hinta ja nappi näkyvissä – matala palkki */
.ttc-kb .ttc-sbar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
.ttc-kb .ttc-sbar .ttc-sbar__go { min-height: 42px; }
.ttc-kb .ttc-sprev .ttc-quality { display: none; }
.ttc-sbar__p { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ttc-sbar__p b { font-size: 21px; font-weight: 900; color: var(--ttc-yellow); line-height: 1.1; }
.ttc-sbar__p small { font-size: 12.5px; opacity: .85; }
.ttc-sbar .ttc-sbar__go { width: auto; flex: none; min-height: 50px; padding: 0 22px; }
@media (min-width: 901px) { .ttc-sbar { left: 50%; right: auto; bottom: 18px; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); border-radius: 20px; padding: 12px 14px 12px 22px; } .ttc-sbar.is-off { transform: translate(-50%, 140%); } }
html.ttc-has-sbar .mobile-cta { display: none !important; }
html.ttc-has-sbar .to-top { bottom: 100px !important; }
.ttc-sbar__p b.is-sm { font-size: 16px; color: var(--ttc-cream); }
.ttc-more .ttc-enhance { margin-top: 10px; }
/* Materiaalit tiiviisti: kuvaus näkyy vain valitulla */
.ttc--simple .ttc-option--mat { padding: 12px 14px; border-radius: 16px; align-items: center; }
.ttc--simple .ttc-option--mat:not(:has(input:checked)) .ttc-option__text small { display: none; }
.ttc--simple .ttc-option--mat .ttc-option__text strong { font-size: 15px; }
.ttc--simple .ttc-matgroup + .ttc-matgroup { margin-top: 6px; }
.ttc--simple .ttc-size .ttc-hint { font-size: 12px; }
/* Kampanja määrälistassa */
.ttc-qty__item.is-deal { margin-top: 6px; border-color: var(--ttc-green); box-shadow: inset 0 0 0 1px var(--ttc-green); }
.ttc-qty__pop--deal { background: var(--ttc-green) !important; color: var(--ttc-yellow) !important; }
.ttc-qty__was { font-size: 12px; color: var(--ttc-muted); text-decoration: none; }
.ttc-qty__item[aria-checked="true"] .ttc-qty__was { color: var(--ttc-cream); opacity: .8; }
.ttc--simple .ttc-qty__item .ttc-qty__was { grid-column: 1 / -1; }
.ttc-qty { padding-top: 6px; }
/* Vedosikkuna: koko vedos näkyy (ei leikkaannu), selite omalla rivillään */
.ttc-proofdlg__box { width: min(860px, 100%); }
.ttc-proofdlg__stage { height: clamp(320px, 58dvh, 600px); }
.ttc-proofdlg__stage > .ttc-proofdlg__imgs { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 14px 38px; min-height: 0; }
.ttc-proofdlg__stage .ttc-proofdlg__imgs img { flex: 1 1 0; min-width: 0; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ttc-proofdlg__stage .ttc-s3d__hint { background: rgba(248, 246, 233, .9); border-radius: 8px; padding: 4px 8px; left: 50%; right: auto; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); }

/* =====================================================================
 * Simppeli tilaus v2: tarratyyppi ensin, tietokoneella sarakkeet vierekkäin
 * ===================================================================== */
.ttc--simple .ttc-simple { max-width: 1320px; }
.ttc-simple__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.ttc-simple__last { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ttc-simple__grid > * { min-width: 0; }
@media (min-width: 900px) { .ttc-simple__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
	.ttc-simple__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.ttc--simple .ttc-sprev { flex-direction: column; align-items: stretch; }
	.ttc--simple .ttc-sprev__pv { width: 100%; max-width: none; }
}
@media (min-width: 900px) { .ttc--simple .ttc-shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ttc--simple .ttc-sizelabel { margin: 6px 0 0; }
/* Tarratyypit */
.ttc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ttc-type { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); font: inherit; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
@media (hover: hover) { .ttc-type:hover { transform: translateY(-1px); border-color: var(--ttc-green); } }
.ttc-type[aria-checked="true"] { border-color: var(--ttc-green); box-shadow: inset 0 0 0 1px var(--ttc-green); }
.ttc-type__ic { width: 50px; height: 50px; border-radius: 15px; background: var(--ttc-green); color: #fff; display: grid; place-items: center; transition: background .15s, color .15s; }
.ttc-type[aria-checked="true"] .ttc-type__ic { background: var(--ttc-yellow); color: var(--ttc-green); }
.ttc-type--holo .ttc-type__ic { background: linear-gradient(135deg, #ff9ad5, #9fe8ff 40%, #b6ffb0 70%, #ffe89a); color: var(--ttc-green); }
.ttc-type--peili .ttc-type__ic { background: linear-gradient(135deg, #e9ecef, #8f969d 35%, #fbfcfd 55%, #a7adb3 80%); color: var(--ttc-green); }
.ttc-type--clear .ttc-type__ic { background: repeating-conic-gradient(#e6e3d4 0 25%, #fff 0 50%) 0 0 / 12px 12px; color: var(--ttc-green); box-shadow: inset 0 0 0 1.5px var(--ttc-line); }
.ttc-type--holo[aria-checked="true"] .ttc-type__ic, .ttc-type--peili[aria-checked="true"] .ttc-type__ic, .ttc-type--clear[aria-checked="true"] .ttc-type__ic { box-shadow: 0 0 0 3px var(--ttc-yellow); }
.ttc-type__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ttc-type__t b { font-size: 15px; font-weight: 900; line-height: 1.2; }
.ttc-type__t small { font-size: 12.5px; color: var(--ttc-muted); line-height: 1.35; }
@media (max-width: 700px) {
	.ttc-types { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: -2px; scrollbar-width: none; }
	.ttc-types::-webkit-scrollbar { display: none; }
	.ttc-type { flex: 0 0 148px; scroll-snap-align: start; }
}
/* QR-koodi */
.ttc-qr { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.ttc-qr[hidden] { display: none; }
.ttc-qr__l { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ttc-green); }
.ttc-qr__in { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream); font: inherit; font-size: 16px; color: var(--ttc-ink); width: 100%; box-sizing: border-box; }
.ttc-qr__in:focus { outline: none; border-color: var(--ttc-green); background: #fff; }
.ttc-qr__go { min-height: 48px; }
.ttc-qr__msg { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ttc-green); }
.ttc-qr__msg:empty { display: none; }
.ttc-qr__msg.is-error { color: #b3261e; }
.ttc-imagepanel.is-qr .ttc-drop, .ttc-imagepanel.is-qr .ttc-guide, .ttc-imagepanel.is-qr .ttc-tools, .ttc-imagepanel.is-qr .ttc-status { display: none !important; }
.ttc--simple .ttc-options.ttc-options--mat { grid-template-columns: minmax(0, 1fr) !important; }
.ttc--simple .ttc-option--mat { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 10px; }
.ttc--simple .ttc-option--mat .ttc-option__price { min-width: max-content; margin-left: 0; }
.ttc-types { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Vedos puhelimen kuoressa */
.ttc-lap__lid--phone { background: linear-gradient(150deg, #3a3f44 0%, #23272b 55%, #15181b 100%); box-shadow: 0 30px 50px -18px rgba(10, 30, 22, .55), inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px rgba(0,0,0,.35); }
.ttc-lap__cam { position: absolute; z-index: 3; background: linear-gradient(145deg, #2c3136, #1b1e21); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.4); pointer-events: none; }
.ttc-lap__cam i { position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a5560 0 18%, #0b0d10 40%, #22272c 70%); box-shadow: 0 0 0 2px #3b4146; }
.ttc-lap__cam i:first-child { left: 8%; top: 8%; }
.ttc-lap__cam i:last-child { left: 8%; bottom: 8%; }
.ttc--simple .ttc-step[hidden], .ttc-qr__l[hidden] { display: none !important; }
@media (min-width: 1200px) { .ttc-simple--nomat .ttc-simple__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* QR + logo */
.ttc-qr__logo { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 2px dashed rgba(15, 77, 58, .3); background: var(--ttc-cream); cursor: pointer; }
@media (hover: hover) { .ttc-qr__logo:hover { border-color: var(--ttc-green); } }
.ttc-qr__logo.is-set { border-style: solid; border-color: var(--ttc-green); background: #EEF4E6; }
.ttc-qr__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ttc-qr__logoic { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--ttc-green); color: #fff; display: grid; place-items: center; }
.ttc-qr__logot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ttc-qr__logot b { font-size: 14.5px; color: var(--ttc-green); overflow-wrap: anywhere; }
.ttc-qr__logot small { font-size: 12.5px; color: var(--ttc-muted); font-weight: 500; }
.ttc-qr__pos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-qr__p { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); font: inherit; font-size: 13px; font-weight: 800; }
.ttc-qr__pic { width: 54px; height: 44px; border-radius: 12px; background: var(--ttc-green); color: #fff; display: grid; place-items: center; }
.ttc-qr__p[aria-checked="true"] { border-color: var(--ttc-green); box-shadow: inset 0 0 0 1px var(--ttc-green); }
.ttc-qr__p[aria-checked="true"] .ttc-qr__pic { background: var(--ttc-yellow); color: var(--ttc-green); }
.ttc-swatch-mat--none { background: repeating-linear-gradient(45deg, #fff 0 4px, #eee 4px 8px); }
/* Kännykän kelluva esikatselu */
.ttc-fprev { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 9989; width: 108px; padding: 6px 6px 4px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(15, 42, 32, .28), 0 0 0 1.5px rgba(15, 77, 58, .12); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.ttc-fprev[hidden] { display: none; }
.ttc-fprev canvas { width: 96px; height: 96px; border-radius: 10px; background: repeating-conic-gradient(#efece0 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.ttc-fprev__d { font-size: 11px; font-weight: 800; color: var(--ttc-green); white-space: nowrap; }
html.ttc-has-sbar .to-top { display: none !important; }
body.nav-open .ttc-sbar, body.nav-open .ttc-fprev { display: none !important; }
.ttc-qr__bg { align-self: flex-start; min-height: 38px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.ttc-qr__bg[hidden] { display: none; }
.ttc-aiq { display: block; font-size: 12.5px; font-weight: 700; color: var(--ttc-muted, #5B6B63); margin-top: -4px; }
.ttc-aiq[hidden] { display: none; }
.ttc-aiq.is-out { color: #8a2414; }
.ttc-aiq--qr { margin-top: 2px; }

/* ---------- Malliston tarjouskori + varastotuotteet */
.ttc-cat__qlead { margin: -4px 0 16px; color: rgba(15, 77, 58, .8); }
.ttc-ql__pick { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ttc-ql__add { justify-self: start; }
.ttc-ql { display: grid; gap: 8px; margin: 0 0 6px; }
.ttc-ql__h { margin: 0; font-weight: 800; color: var(--g); }
.ttc-ql__row { display: flex; align-items: flex-start; gap: 10px; background: #F8F6E9; border-radius: 14px; padding: 10px 12px; }
.ttc-ql__txt { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: .92rem; }
.ttc-ql__txt a { color: var(--g); text-decoration: none; }
.ttc-ql__txt small { color: rgba(15, 77, 58, .7); }
.ttc-ql__x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--g); font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.ttc-ql__x:hover { background: #FFDD00; }
.ttc-ql__more { margin: 4px 0 16px; font-weight: 700; }
.ttc-ql__more a { color: var(--g); }
.ttc-ql__contact { display: grid; gap: 4px; }
.ttc-cat--qpage .ttc-cat__quote { margin: 24px auto 0; }
.ttc-cat__stocktag { display: inline-block; background: var(--g); color: #F8F6E9; border-radius: 99px; padding: 1px 9px; font-size: .78rem; margin-right: 4px; }
.ttc-cat__admin { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed rgba(15, 77, 58, .4); border-radius: 12px; font-size: .88rem; }
.ttc-cat__admin form { display: inline; }
.ttc-cat__admin .button { margin-left: 6px; cursor: pointer; }
.ttc-qbar { --g: #0F4D3A; position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; background: var(--g); color: #F8F6E9; text-decoration: none; border-radius: 99px; padding: 10px 10px 10px 18px; box-shadow: 0 10px 30px rgba(15, 77, 58, .3); max-width: calc(100vw - 32px); white-space: nowrap; }
.ttc-qbar__t { font-weight: 800; }
.ttc-qbar__n { font-size: .88rem; opacity: .85; order: 2; }
.ttc-qbar__t { order: 1; }
.ttc-qbar__go { order: 3; background: #FFDD00; color: var(--g); font-weight: 800; border-radius: 99px; padding: 6px 14px; }
@media (max-width: 420px) { .ttc-qbar__n { display: none; } }
html.ttc-qform-in .ttc-qbar { display: none; }

/* Messumatot */
.ttc-carpetview { width: 100%; border-radius: 16px; background: repeating-linear-gradient(0deg, #e9e6da 0 39px, #e1ddcf 39px 40px), #ece9df; background-size: 100% 40px; padding: 6px; }
.ttc-carpetview__svg { display: block; width: 100%; height: auto; }
.ttc-swatch-carpet { flex: none; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,.14); background: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px) 0 0 / 5px 5px, var(--c); }
.ttc-carpet-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ttc-swatch--img, .ttc-swatch-carpet { background-size: 400%; background-position: 0 0; } /* Kukilan värikuvissa koodi on keskellä tekstinä */

/* Levytulosteet */
.ttc-boardview { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px 18px; border-radius: 16px; background: #ece9df; }
.ttc-boardview__board { position: relative; max-width: 86%; max-height: 460px; box-shadow: var(--e, 6px) var(--e, 6px) 0 var(--edge, #e6e3d6), calc(var(--e, 6px) + 10px) calc(var(--e, 6px) + 16px) 26px rgba(15, 77, 58, .22); }
.ttc-boardview__face { position: absolute; inset: 0; display: grid; place-items: center; background: #fff center / cover no-repeat; outline: 1px solid rgba(0, 0, 0, .06); }
.ttc-boardview__face.has-img .ttc-boardview__ph { display: none; }
.ttc-boardview__ph { color: rgba(15, 77, 58, .45); font-weight: 700; font-size: 14px; text-align: center; padding: 8px; }
.ttc-boardview__dims { margin: 0; font-weight: 700; color: var(--ttc-green, #0F4D3A); font-size: 14px; text-align: center; }
.ttc-swatch-board { flex: none; width: 28px; height: 22px; border-radius: 3px; background: var(--c); box-shadow: var(--e, 4px) var(--e, 4px) 0 rgba(15, 77, 58, .22); border: 1px solid rgba(0, 0, 0, .12); margin: 0 var(--e, 4px) var(--e, 4px) 0; }
.ttc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
 * 1.28 Tarratilaus vaihe kerrallaan (puhelin): Muoto → Aineisto → Materiaali → Tilaus
 * ===================================================================== */
.ttc-wiz { display: none; }
.ttc-wiz-on .ttc-wiz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 2px; }
.ttc-wiz__s { appearance: none; border: 0; background: none; padding: 4px 0 0; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--ttc-muted); cursor: pointer; min-height: 44px; }
.ttc-wiz__s i { display: block; height: 5px; border-radius: 99px; background: rgba(15, 77, 58, .14); transition: background .2s; }
.ttc-wiz__s span { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-wiz__s.is-done i { background: var(--ttc-green); }
.ttc-wiz__s.is-cur i { background: var(--ttc-green); box-shadow: inset -40% 0 0 0 var(--ttc-yellow); }
.ttc-wiz__s.is-cur { color: var(--ttc-green); }
.ttc-wiz__s.is-cur span { font-weight: 900; }
.ttc-wiz-on .ttc-simple__grid > [data-wstep]:not(.is-cur) { display: none !important; }
.ttc-wiz-on .ttc-simple { padding-bottom: 110px; gap: 12px; }
.ttc-wiz-on .ttc-step__num { display: none; }
.ttc-wiz-on .ttc-step__title { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 14px; }
.ttc-wiz-on .ttc-summary > div:first-child, .ttc-wiz-on .ttc-summary .ttc-add { display: none; }
.ttc-wiz-on .ttc-summary { padding-top: 0; }
.ttc-step.is-need { animation: ttc-need .6s ease; }
@keyframes ttc-need { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Alapalkki: takaisin, hinta, seuraava */
.ttc-sbar__back { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(248, 246, 233, .35); background: none; color: var(--ttc-cream); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ttc-sbar__back[hidden] { display: none; }
.ttc-sbar__back:active { background: rgba(248, 246, 233, .12); }
.ttc-wiz-on .ttc-sbar { gap: 10px; }
.ttc-wiz-on .ttc-sbar .ttc-sbar__go { min-width: 132px; }

/* Aineisto: oma kuva / QR, ideat, reunus */
.ttc-srcswitch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ttc-srcswitch .ttc-chip { justify-content: center; min-height: 46px; font-size: 15px; font-weight: 800; border-radius: 14px; }
.ttc-noart { margin: 14px 0 0; font-size: 14px; color: var(--ttc-muted); }
.ttc-noart[hidden] { display: none; }
.ttc-noart a { color: var(--ttc-green); font-weight: 800; }
.ttc-border--up { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ttc-line); }
.ttc-border--up[hidden] { display: none; }
.ttc-border--up .ttc-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ttc-border--up .ttc-chip { justify-content: center; min-height: 46px; padding: 0 6px; font-size: 13.5px; text-align: center; }

/* Kuvatyökalut: "Valitse kohde" ja sivellin heti näkyvissä */
.ttc-tools__quick { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ttc-tools__quick:empty { display: none; }
.ttc-tools .ttc-tools__quick .ttc-btn { flex: 1 1 auto; min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ttc-tools .ttc-tools__sel { border-color: var(--ttc-green); color: var(--ttc-green); font-weight: 800; }

/* Tilaus: iso esikatselu, valmistumisaika, vedos */
.ttc-bigprev { position: relative; display: grid; place-items: center; border-radius: 18px; padding: 10px; }
.ttc-bigprev[hidden] { display: none; }
.ttc-bigprev canvas { width: min(100%, 340px); height: auto; aspect-ratio: 1; display: block; }
.ttc-bigprev[role=button] { cursor: zoom-in; }
.ttc-bigprev[role=button]:focus-visible { outline: 3px solid var(--ttc-green); outline-offset: 3px; }
.ttc-bigprev__tilt { position: relative; display: block; width: min(100%, 340px); transition: transform .25s ease; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 10px 18px rgba(10, 40, 30, .18)); }
.ttc-bigprev:hover .ttc-bigprev__tilt { transition: transform .08s linear; }
.ttc-bigprev__sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; mix-blend-mode: screen; }
.ttc-bigprev__cta { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--ttc-green); color: #F8F6E9; font-size: 12.5px; font-weight: 800; box-shadow: 0 4px 12px rgba(10, 40, 30, .25); transition: transform .2s; pointer-events: none; }
.ttc-bigprev:hover .ttc-bigprev__cta { transform: translateY(-2px); }
@media (max-width: 480px) { .ttc-bigprev__cta span { display: none; } .ttc-bigprev__cta { padding: 8px; } }
.ttc-proofdlg--view .ttc-proofdlg__acts { justify-content: flex-end; }
.ttc-bigprev__d { font-size: 13px; font-weight: 800; color: var(--ttc-green); }
.ttc-eta { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #EEF4E6; color: var(--ttc-green); }
.ttc-eta__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ttc-green); color: var(--ttc-cream); display: grid; place-items: center; }
.ttc-eta__t { display: flex; flex-direction: column; gap: 1px; }
.ttc-eta__t b { font-size: 15px; font-weight: 900; }
.ttc-eta__t small { font-size: 13px; opacity: .85; }
.ttc-emailproof { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(15, 77, 58, .18); background: rgba(255,255,255,.7); color: #0F4D3A; cursor: pointer; font-size: 15px; line-height: 1.35; text-align: left; }
.ttc-emailproof input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #0F4D3A; }
.ttc-emailproof > span { display: grid; gap: 3px; }
.ttc-emailproof small { display: block; font-size: 13px; color: #3F5A4D; font-weight: 400; }
.ttc-summary .ttc-emailproof { background: rgba(255,255,255,.08); border-color: rgba(248,246,233,.35); color: inherit; }
.ttc-summary .ttc-emailproof small { color: inherit; opacity: .8; }
.ttc-summary .ttc-emailproof input { accent-color: #FFDD00; }
@media (min-width: 900px) { .ttc-simple__grid .ttc-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ttc-simple__grid .ttc-type { padding: 12px; } .ttc-simple__grid .ttc-type__ic { width: 40px; height: 40px; border-radius: 12px; } }

/* Jatka siitä, mihin jäit */
.ttc-resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ttc-green); }
.ttc-resume[hidden] { display: none; }
.ttc-resume__th { flex: none; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.ttc-resume__t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 160px; min-width: 0; }
.ttc-resume__t b { color: var(--ttc-green); font-size: 15px; }
.ttc-resume__t small { color: var(--ttc-muted); font-size: 13px; }
.ttc-resume__a { display: flex; gap: 8px; }
.ttc-resume__a .ttc-btn { width: auto; min-height: 40px; padding: 0 16px; }

/* Lisätty ostoskoriin */
.ttc-added__box { text-align: center; justify-items: center; max-width: 420px; }
.ttc-added__ic { width: 60px; height: 60px; border-radius: 50%; background: var(--ttc-yellow); color: var(--ttc-green); display: grid; place-items: center; }
.ttc-added__acts { display: grid; gap: 10px; width: 100%; }
.ttc-added__acts .ttc-btn { box-sizing: border-box; width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Valitse kohde -ikkuna */
.ttc-sel .ttc-brush__box { gap: 10px; }
.ttc-sel__stage { background: #1d2b25; }
.ttc-sel__canvas { cursor: crosshair; }
.ttc-sel__stage:not(.is-ready) .ttc-sel__canvas { opacity: .55; }
.ttc-sel__wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 20px; text-align: center; color: #fff; background: rgba(15, 42, 32, .45); }
.ttc-sel__wait[hidden] { display: none; }
.ttc-sel__wait b { font-size: 17px; }
.ttc-sel__wait small { font-size: 13px; opacity: .9; max-width: 34ch; }
.ttc-sel__spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255,255,255,.3); border-top-color: var(--ttc-yellow); animation: ttc-spin 0.9s linear infinite; }
.ttc-sel__spin[hidden] { display: none; }
@keyframes ttc-spin { to { transform: rotate(360deg); } }
.ttc-sel__hint { margin: 0; font-size: 15px; font-weight: 700; color: var(--ttc-green); }
.ttc-sel__acts { display: flex; gap: 8px; }
.ttc-sel .ttc-chip { min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 800; }
.ttc-sel .ttc-chip b { font-size: 18px; margin-right: 4px; }
.ttc-sel__off[aria-pressed="true"] { background: #fff; color: var(--ttc-green); box-shadow: inset 0 0 0 2px var(--ttc-green); }
@media (max-width: 560px) {
	.ttc-sel .ttc-brush__bar { gap: 8px; }
	.ttc-sel .ttc-brush__bar strong { width: 100%; }
	.ttc-sel .ttc-chips { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.ttc-sel__acts { width: 100%; }
	.ttc-sel__acts .ttc-btn { flex: 1; }
	.ttc-sel .ttc-brush__actions .ttc-btn { flex: 1; }
}

/* Vedos- ja ostoskori-ikkuna mahtuu puhelimen leveyteen (ruudukon sarake ei kasva sisällön mukaan) */
.ttc-proofdlg { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ttc-proofdlg__box { min-width: 0; max-width: 100%; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); }
.ttc-proofdlg__tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ttc-proofdlg__tabs::-webkit-scrollbar { display: none; }
.ttc-wiz-on .ttc-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
.ttc-wiz-on .ttc-type { flex: none; }
.ttc-wiz-on .ttc-type__t small { font-size: 12px; }

/* Millainen tarra: kuvatarra / QR-kooditarra (ensimmäinen valinta) */
.ttc-kinds { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
.ttc-kinds .ttc-kind { flex: none; }
.ttc-kinds + .ttc-sublabel { margin: 4px 0 -2px; }

/* Tiikeri-krediitit yhteenvedossa */
.ttc-credit { margin: 8px 0 0; display: inline-block; padding: 4px 10px; border-radius: 10px; line-height: 1.35; background: rgba(255, 221, 0, .16); color: var(--ttc-yellow); font-size: 12.5px; font-weight: 800; }
.ttc-credit[hidden] { display: none; }
.ttc-wiz-on .ttc-summary > div:first-child:has(.ttc-credit:not([hidden])) { display: block; }
.ttc-wiz-on .ttc-summary > div:first-child .ttc-total, .ttc-wiz-on .ttc-summary > div:first-child .ttc-unit { display: none; }

/* Kosketusnäytöt: ei "jumiin jäävää" hover-reunaa – vain valittu kortti näyttää valitulta */
.ttc-type, .ttc-shape, .ttc-chip, .ttc-qty__item, .ttc-option, .ttc-qr__p, .ttc-wiz__s, .ttc-btn { -webkit-tap-highlight-color: transparent; }
.ttc-type:focus:not(:focus-visible), .ttc-shape:focus:not(:focus-visible), .ttc-chip:focus:not(:focus-visible), .ttc-qty__item:focus:not(:focus-visible), .ttc-qr__p:focus:not(:focus-visible) { outline: none; }
@media (hover: none) {
	.ttc-type:not([aria-checked="true"]):hover, .ttc-shape:not([aria-checked="true"]):hover, .ttc-qr__p:not([aria-checked="true"]):hover { border-color: var(--ttc-line); box-shadow: none; transform: none; }
}
/* Valittu kortti selvästi erilainen: paksu reuna ja vaalea tausta */
.ttc-type[aria-checked="true"], .ttc--simple .ttc-shape[aria-checked="true"] { background: #F3F7EC; border-color: var(--ttc-green); box-shadow: inset 0 0 0 2px var(--ttc-green); }

/* =====================================================================
 * Tekstitarra ja veneen rekisteritunnus
 * ===================================================================== */
.ttc-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ttc-tb { display: flex; flex-direction: column; gap: 16px; }
.ttc-tb[hidden], .ttc-tb__row[hidden], .ttc-imagepanel[hidden] { display: none !important; }
.ttc-tb__row { display: flex; flex-direction: column; gap: 8px; }
.ttc-tb__row > .ttc-sublabel { margin: 0; }
.ttc-tb__in { width: 100%; box-sizing: border-box; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream); font: inherit; font-size: 18px; font-weight: 700; color: var(--ttc-ink); resize: vertical; }
.ttc-tb__in:focus { outline: none; border-color: var(--ttc-green); background: #fff; }
.ttc-tb__in.is-reg { font-size: 26px; letter-spacing: .12em; text-transform: uppercase; resize: none; min-height: 60px; }
.ttc-tb__fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.ttc-tb__font { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 76px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); }
.ttc-tb__font span { font-size: 26px; line-height: 1.1; }
.ttc-tb__font small { font-family: inherit; font-size: 11.5px; color: var(--ttc-muted); font-family: system-ui, sans-serif; }
.ttc-tb__font[aria-checked="true"] { border-color: var(--ttc-green); box-shadow: inset 0 0 0 2px var(--ttc-green); background: #F3F7EC; }
.ttc-tb__colrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ttc-tb__cols { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-tb__sw { appearance: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .18); padding: 0; }
.ttc-tb__sw[aria-checked="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ttc-green); }
.ttc-tb__colin { width: 44px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.ttc-tb__hrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ttc-tb__hrow .ttc-field__input { display: flex; align-items: center; gap: 6px; }
.ttc-tb__num { width: 96px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--ttc-line); font: inherit; font-size: 17px; font-weight: 800; }
.ttc-tb__pre { display: flex !important; flex-wrap: wrap; gap: 6px; order: 0 !important; width: auto !important; }
.ttc-tb__pre .ttc-chip.is-on { background: var(--ttc-green); color: var(--ttc-cream); border-color: var(--ttc-green); }
.ttc-tb__gap { display: flex; align-items: center; gap: 12px; }
.ttc-tb__gap input { flex: 1; accent-color: var(--ttc-green); }
.ttc-tb__gapv { min-width: 64px; text-align: right; color: var(--ttc-green); }
.ttc-tb__chk { list-style: none; margin: 0; padding: 12px 14px; border-radius: 14px; background: #EEF4E6; display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ttc-green); }
.ttc-tb__chk[hidden] { display: none; }
.ttc-tb__chk .is-warn { color: #8a2414; }
.ttc-tb__msg { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ttc-green); }
.ttc-tb__msg:empty { display: none; }
.ttc-tb__msg.is-error { color: #b3261e; }
.ttc-tb__adh .ttc-chip { min-height: 44px; padding: 0 16px; }
.ttc-border--up.is-text { display: none !important; }

.ttc-wiz-on .ttc-wiz { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.ttc-wiz__s[hidden] { display: none; }
/* Tekstitarra: rivit omilla korkeuksilla */
.ttc-tb__lwrap { display: flex; flex-direction: column; gap: 10px; }
.ttc-tb__lines { display: flex; flex-direction: column; gap: 10px; }
.ttc-tb__line { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: var(--ttc-cream); border: 1px solid var(--ttc-line); }
.ttc-tb__lin { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 11px 12px; resize: none; line-height: 1.4; overflow: hidden; border-radius: 10px; border: 1.5px solid var(--ttc-line); background: #fff; font: inherit; font-size: 17px; font-weight: 700; color: var(--ttc-ink); }
.ttc-tb__lin:focus { outline: none; border-color: var(--ttc-green); }
.ttc-tb__lsz { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; font-size: 13px; font-weight: 700; color: var(--ttc-muted); }
.ttc-tb__lsz > span { margin-right: auto; }
.ttc-tb__lsz .ttc-field__input { display: flex; align-items: center; gap: 4px; }
.ttc-tb__num--sm { width: 64px; min-height: 40px; font-size: 15px; padding: 0 8px; }
.ttc-tb__st, .ttc-tb__del { appearance: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); font-size: 20px; font-weight: 900; line-height: 1; padding: 0; }
.ttc-tb__del { border-color: transparent; background: none; color: #8a2414; }
.ttc-tb__add { align-self: flex-start; min-height: 44px; }
.ttc-tb__add[hidden] { display: none; }
.ttc-tb__align { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ttc-tb__align .ttc-chip { justify-content: center; min-height: 44px; }

.ttc-tb__lhint { margin: 2px 0 0; }

/* 1.36 – vedos puhelimessa alapaneelina, hyväksyntä aina näkyvissä */
@media (max-width: 899px) {
	.ttc-proofdlg { place-items: end stretch; padding: 0; }
	.ttc-proofdlg__box { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; padding: 18px 18px 0; gap: 12px; }
	.ttc-proofdlg__stage { height: clamp(220px, 38dvh, 360px); }
	.ttc-proofdlg__imgs img { max-height: 38dvh; }
	.ttc-proofdlg__acts { position: sticky; bottom: 0; z-index: 2; margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #F8F6E9; border-top: 1px solid rgba(15, 77, 58, .12); box-shadow: 0 -12px 22px rgba(248, 246, 233, .95); flex-wrap: nowrap; }
	.ttc-proofdlg__acts .ttc-btn--ghost { flex: 0 0 auto !important; padding-left: 14px; padding-right: 14px; }
	.ttc-proofdlg__acts .ttc-btn--primary { flex: 1 1 auto !important; font-size: 14.5px; }
}

/* 1.36.1 – pikakoot näyttävät valinnan kuten muoto- ja tyyppikortit, ja painallus tuntuu */
.ttc-presets .ttc-chip { transition: transform .12s ease, background-color .15s, box-shadow .15s, border-color .15s; }
.ttc-presets .ttc-chip:active { transform: scale(.96); }
.ttc-presets .ttc-chip[aria-pressed="true"] { background: #F3F7EC; color: var(--ttc-green); border-color: var(--ttc-green); box-shadow: inset 0 0 0 2px var(--ttc-green); }
.ttc-presets .ttc-chip { position: relative; white-space: normal; line-height: 1.15; text-align: center; }
.ttc-presets .ttc-chip--orig { grid-column: 1 / -1; }
.ttc-presets .ttc-chip[aria-pressed="true"]::after { content: ""; position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ttc-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4D3A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 2px #fff; }
.ttc-type:active, .ttc-shape:active, .ttc-qr__p:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .ttc-presets .ttc-chip, .ttc-presets .ttc-chip:active { transition: none; transform: none; } }
.ttc-tools > .ttc-tools__change { width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.ttc-corners { margin-top: 12px; }
.ttc-corners[hidden] { display: none !important; }
.ttc-corners .ttc-chips, .ttc-border--up .ttc-corners .ttc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-corners .ttc-chip { justify-content: center; min-height: 46px; font-weight: 800; }
.ttc-tb__full { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDECEA; border: 1.5px solid #b3261e; color: #8c1d18; font-size: 14px; font-weight: 700; line-height: 1.35; }
.ttc-tb__full[hidden] { display: none !important; }
.ttc-tb__full.is-shake { animation: ttc-need .35s ease; }
@media (prefers-reduced-motion: reduce) { .ttc-tb__full.is-shake { animation: none; } }

/* 1.37 – rekisteritunnuksen värit */
.ttc-tb__colrow:has(.ttc-tb__regc) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-tb__cols:has(.ttc-tb__regc) { display: contents; }
.ttc-tb__regc { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; font-weight: 800; font-size: 15px; background: #fff; }
.ttc-tb__regc[aria-checked="true"] { background: #F3F7EC; color: var(--ttc-green); border-color: var(--ttc-green); box-shadow: inset 0 0 0 2px var(--ttc-green); }
.ttc-tb__regc:active { transform: scale(.97); }
.ttc-tb__regdot { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .18); }
.ttc-tb__regdot.is-gold { background: linear-gradient(135deg, #8a6a1f 0%, #e6c96b 45%, #fff3c4 55%, #b08a2e 100%) !important; }
.ttc-tb__regdot.is-chrome { background: linear-gradient(135deg, #6d737a 0%, #f4f6f8 45%, #ffffff 52%, #9aa1a8 100%) !important; }

/* 1.37.4 – vedoksen yhteenveto */
.ttc-proofdlg__sum { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1.5px solid rgba(15, 77, 58, .14); font-size: 14px; }
.ttc-proofdlg__sum > div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.ttc-proofdlg__sum dt { flex: none; color: #5b6b63; font-weight: 600; }
.ttc-proofdlg__sum dt::after { content: ":"; }
.ttc-proofdlg__sum dd { margin: 0; font-weight: 800; color: #0F4D3A; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .ttc-proofdlg__sum { grid-template-columns: 1fr; gap: 4px; font-size: 13.5px; } }

/* 1.37.4 – sulje-rasti kaikkien ponnahdusikkunoiden oikeaan yläkulmaan (pysyy näkyvissä vieritettäessä) */
.ttc-x { position: sticky; top: 0; z-index: 6; justify-self: end; align-self: flex-end; margin: -6px -6px -38px 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(15, 77, 58, .08); color: #0F4D3A; display: inline-grid; place-items: center; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.ttc-x:hover { background: rgba(15, 77, 58, .16); }
.ttc-x:active { transform: scale(.94); }
.ttc-x:focus-visible { outline: 3px solid #FFDD00; outline-offset: 2px; }
.ttc-proofdlg__title { padding-right: 48px; }
/* Vedoksen näkymät: nopeat klikkaukset eivät maalaa tekstiä valituksi */
.ttc-proofdlg__stage, .ttc-proofdlg__stage *, .ttc-proofdlg__tabs { -webkit-user-select: none; user-select: none; }
.ttc-proofdlg__stage button { touch-action: manipulation; }
.ttc-added__box .ttc-proofdlg__title { padding: 0 48px; }

/* 1.38 – "Tarvitsetko asennuslastan?" lisätty ostoskoriin -ikkunassa */
.ttc-upsell { width: 100%; text-align: left; background: #fff; border: 1.5px solid rgba(15, 77, 58, .14); border-radius: 14px; padding: 14px; display: grid; gap: 8px; box-sizing: border-box; }
.ttc-upsell__t { margin: 0; font-weight: 900; color: #0F4D3A; font-size: 16px; }
.ttc-upsell__s { margin: 0; font-size: 13.5px; color: #5b6b63; }
.ttc-upsell__list { display: grid; gap: 8px; }
.ttc-upsell__i { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: #F8F6E9; }
.ttc-upsell__i.is-rec { box-shadow: inset 0 0 0 2px #0F4D3A; }
.ttc-upsell__i img, .ttc-upsell__ph { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.ttc-upsell__n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ttc-upsell__n a { color: #13231d; font-weight: 700; font-size: 14px; text-decoration: none; }
.ttc-upsell__n a:hover { text-decoration: underline; }
.ttc-upsell__n b { color: #0F4D3A; font-size: 14px; }
.ttc-upsell__n small { color: #0F4D3A; font-size: 12px; font-weight: 700; }
.ttc-upsell__i .ttc-btn { white-space: nowrap; min-height: 40px; }
.ttc-upsell__i .ttc-btn.is-done { background: #0F4D3A; color: #F8F6E9; border-color: #0F4D3A; }
.ttc-added__box { max-width: 480px; }
.ttc-added__close { border: 0; background: none; color: #0F4D3A; font: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 8px; cursor: pointer; justify-self: center; }
.ttc-added .ttc-x { width: 44px; height: 44px; background: rgba(15, 77, 58, .12); }
.ttc-upsell__i .ttc-btn.is-done:disabled { opacity: 1; cursor: default; }

/* 1.38.5: reunavalinta muodon alla (valkoinen reuna / ei reunaa) */
.ttc-fit > .ttc-chips { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.ttc-step--size .ttc-border--up { margin-top: 4px; }

/* 1.39.0: kaupan tuotesivu – Lisää tarjouspyyntöön */
.ttc-wcq { display: grid; gap: 8px; margin: 14px 0 6px; justify-items: start; }
.ttc-wcq__or { font-size: .85rem; color: rgba(15, 77, 58, .7); font-weight: 700; }
.ttc-wcq__btn { min-height: 48px; background: transparent; cursor: pointer; font: inherit; font-weight: 800; }
.ttc-wcq__btn:hover { background: #0F4D3A; color: #F8F6E9; }
.ttc-wcq__msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: #E8F1EC; color: #0F4D3A; font-weight: 700; }
.ttc-wcq__msg.is-bad { background: #FDECEC; color: #8A1C1C; }
.ttc-wcq__msg a { color: #0F4D3A; }
.ttc-wcq__hint { margin: 0; font-size: .85rem; color: rgba(15, 77, 58, .75); max-width: 46ch; }
.ttc-qadd { width: 100%; margin-top: 8px; }
.ttc-summary .ttc-qadd { background: transparent !important; color: #F8F6E9 !important; border: 1.5px solid rgba(248, 246, 233, .7) !important; box-shadow: none !important; }
.ttc-summary .ttc-qadd:hover { background: rgba(248, 246, 233, .12) !important; }
.ttc-qadd__msg { margin: 6px 0 0; font-weight: 700; font-size: .9rem; }
.ttc-qadd__msg a { color: inherit; }

/* Painoaineiston laaduntarkistus */
.ttc-preflight { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; background: #EEF3EF; color: #0F4D3A; border-left: 4px solid #0F4D3A; }
.ttc-preflight--ok, .ttc-preflight--pdf, .ttc-preflight--unknown { background: #F4F2E4; border-left-color: #B9B08A; color: #3a3a2c; }
.ttc-preflight--poor { background: #FFF1EC; border-left-color: #C2410C; color: #7A2A0A; font-weight: 600; }

/* Minimitilaus per väri (MPH) */
.ttc-minline { margin: 4px 0 12px; font-size: 15px; color: #0F4D3A; }
.ttc-minline--loop { display: block; margin: 2px 0 6px; font-size: 13px; opacity: .85; }
.ttc-wcq__pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.ttc-wcq__pick label { display: grid; gap: 4px; flex: 1 1 140px; min-width: 0; font-weight: 700; font-size: 14px; color: #0F4D3A; }
.ttc-wcq__pick select, .ttc-wcq__pick input { width: 100%; padding: 10px 12px; border: 1px solid rgba(15, 77, 58, .3); border-radius: 12px; font: inherit; background: #fff; }
.ttc-wcq__min { margin: 0 0 10px; font-size: 14px; color: #0F4D3A; }

/* Puhelin: yksi ruudullinen kerrallaan (1.43.0) */
.ttc-wiz-on .ttc-wp-off { display: none !important; }
.ttc-wiz-on .ttc-wiz__s span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ttc-wiz-on .ttc-wiz__s { min-height: 24px; padding: 8px 0; }
/* Materiaali: tiiviit kortit, jotta kaikki mahtuvat ruudulle. */
.ttc-wiz-on .ttc-sublabel--mat, .ttc-wiz-on .ttc-sizelabel { display: none !important; }
.ttc-wiz-on .ttc-types { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ttc-wiz-on .ttc-kinds { grid-template-columns: minmax(0, 1fr) !important; gap: 6px; }
.ttc-wiz-on .ttc-kinds .ttc-type__t small { -webkit-line-clamp: 2; }
.ttc-wiz-on .ttc-type { flex-direction: row; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; }
.ttc-wiz-on .ttc-type__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.ttc-wiz-on .ttc-type__ic svg { width: 20px; height: 20px; }
.ttc-wiz-on .ttc-type__t b { font-size: 13.5px; }
.ttc-wiz-on .ttc-type__t small { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ttc-wiz-on .ttc-type { padding: 8px 10px; }
.ttc-wiz-on .ttc-presets .ttc-chip { min-height: 44px; }
/* Tiedosto: esikatselu ylimpänä (iso + suurennuslasi), valkoinen reuna sen vieressä, työkalut tiiviinä alla. */
.ttc-wiz-on .ttc-step--upload.is-img > div:last-child { display: flex; flex-direction: column; }
.ttc-wiz-on .ttc-step--upload.is-img .ttc-sprev { order: -1; margin: 0 0 10px; padding: 0; border: 0; }
.ttc-wiz-on .ttc-step { padding: 16px 14px 18px; }
.ttc-wiz-on .ttc-sprev { position: relative; flex-direction: column; align-items: stretch; gap: 0; }
.ttc-wiz-on .ttc-sprev__pv { width: 100%; max-width: min(100%, 48vh); margin-inline: auto; }
.ttc-wiz-on .ttc-sprev__info { display: contents; }
.ttc-wiz-on .ttc-sprev .ttc-preview__dims { display: none; }
.ttc-wiz-on .ttc-sprev .ttc-quality { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 16px rgba(10, 40, 30, .18); animation: ttc-q-in .25s ease-out; }
@keyframes ttc-q-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ttc-quality.is-gone { display: none !important; }
.ttc-wiz-on .ttc-step--upload.is-img .ttc-border--up { order: -1; margin: 0 0 12px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--ttc-line); }
.ttc-wiz-on .ttc-step--upload .ttc-border--up .ttc-sublabel { font-size: 12.5px; margin: 0 0 6px; }
.ttc-wiz-on .ttc-step--upload .ttc-border--up .ttc-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ttc-wiz-on .ttc-step--upload .ttc-border--up .ttc-chip { min-height: 38px; padding: 0 6px; font-size: 12.5px; line-height: 1.1; }
.ttc-wiz-on .ttc-step--upload .ttc-border--up .ttc-hint { display: none; }
.ttc-wiz-on .ttc-step--upload.has-art .ttc-guide { display: none; }
.ttc-wiz-on .ttc-step--upload.has-art .ttc-tools__quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-wiz-on .ttc-step--upload.has-art .ttc-tools__quick .ttc-btn { min-height: 44px; font-size: 13px; padding: 0 8px; white-space: normal; line-height: 1.15; }
/* Tilaus: määrät kahdessa sarakkeessa, ei toista esikatselua (sama kuva näkyy jo Tiedosto-vaiheessa). */
.ttc-wiz-on .ttc-step--qty .ttc-qty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ttc-wiz-on .ttc-step--qty .ttc-qty__item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q" "p" "u" "s"; padding: 20px 12px 12px; gap: 2px; }
.ttc-wiz-on .ttc-step--qty .ttc-qty__pop { font-size: 9.5px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-wiz-on .ttc-step--qty .ttc-qty__item span { text-align: left; }
.ttc-wiz-on .ttc-step--qty .ttc-bigprev { display: none !important; }
.ttc-s3d__back[hidden] { display: none !important; }
.ttc-wiz-on .ttc-wp-empty { display: none !important; }
/* Puhelin: Viimeistely ja koko samalla ruudulla (1.43.2) – tiiviit valinnat. */
.ttc-wiz-on .ttc-step.is-cur + .ttc-step.is-cur { margin-top: 10px; }
.ttc-wiz-on .ttc-matinner .ttc-option { padding-block: 8px; min-height: 0; }
.ttc-wiz-on .ttc-matinner .ttc-option__text small { display: none; }
.ttc-wiz-on .ttc-matinner .ttc-options { gap: 6px; }
.ttc-wiz-on .ttc-step--size .ttc-size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-wiz-on .ttc-step--size .ttc-size > .ttc-presets { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ttc-wiz-on .ttc-step--size .ttc-presets .ttc-chip { min-height: 40px; font-size: 14.5px; border-radius: 12px; }
.ttc-wiz-on .ttc-step--size .ttc-size > .ttc-hint { display: none; }
.ttc-wiz-on .ttc-step--size .ttc-size > .ttc-field { min-width: 0; }
.ttc-wiz-on .ttc-step--size .ttc-presets > span { display: none; }
/* Puhelin: tarran varjo erillisenä, liikkumattomana varjona – suodin 3D-käännössä tekee liikkeestä nykivää. */
@media (pointer: coarse) { .ttc-s3d__front img { filter: none; } }
.ttc-s3d__ground { position: absolute; left: 50%; top: 62%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(10, 30, 22, .28), rgba(10, 30, 22, 0) 70%); pointer-events: none; }

/* ================================================================
   Puhelin: yksi ruutu (1.44.0) – iso esikatselu, valintanapit alapalkissa,
   valinnat alhaalta nousevissa paneeleissa. Tietokone ennallaan.
   ================================================================ */
.ttc-sheetchips, .ttc-sheet { display: none; }
.ttc-sheet-on .ttc-wiz,
.ttc-sheet-on .ttc-step--mat, .ttc-sheet-on .ttc-step--size, .ttc-sheet-on .ttc-simple__last,
.ttc-sheet-on .ttc-step--upload > .ttc-step__title, .ttc-sheet-on .ttc-fprev { display: none !important; }
.ttc-sheet-on .ttc-step--upload { padding: 12px; }
/* Esikatselu ylimpänä ja isona, työkalut tiiviinä sen alla. */
.ttc-sheet-on .ttc-step--upload > div:last-child { display: flex; flex-direction: column; }
.ttc-sheet-on .ttc-step--upload .ttc-sprev { order: -1; position: relative; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 10px; padding: 0; border: 0; }
.ttc-sheet-on .ttc-sprev__pv { width: 100%; max-width: min(100%, 52vh); margin-inline: auto; }
.ttc-sheet-on .ttc-sprev__info { display: contents; }
.ttc-sheet-on .ttc-sprev .ttc-preview__dims { display: none; }
.ttc-sheet-on .ttc-sprev .ttc-quality { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 6px 16px rgba(10, 40, 30, .18); }
.ttc-sheet-on .ttc-step--upload .ttc-guide,
.ttc-sheet-on .ttc-step--upload.has-art .ttc-status { display: none; }
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 8px; }
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools > * { grid-column: auto; margin: 0; }
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools__quick { display: contents; }
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools .ttc-btn { min-height: 42px; font-size: 13px; padding: 0 8px; white-space: normal; line-height: 1.15; width: 100%; }
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools .ttc-more { grid-column: 1 / -1; }
/* Tekoälypoistojen päiväkiintiö näkyy puhelimellakin – koko leveydeltä nappien alla. */
.ttc-sheet-on .ttc-step--upload.has-art .ttc-tools > .ttc-aiq { grid-column: 1 / -1; margin: -2px 0 0; font-size: 12px; }
/* Alapalkki: valintanapit + hinta + Lisää koriin. */
.ttc-sheet-on .ttc-sbar { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; }
.ttc-sheet-on .ttc-sbar__back { display: none; }
.ttc-sheet-on .ttc-sheetchips { display: flex; gap: 6px; width: 100%; }
.ttc-sheetchip { flex: 1 1 auto; min-width: 0; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 7px; border-radius: 12px; border: 1.5px solid rgba(248, 246, 233, .3); background: rgba(248, 246, 233, .08); color: var(--ttc-cream); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ttc-sheetchip:active { background: rgba(248, 246, 233, .18); }
.ttc-sheetchip[hidden] { display: none; }
.ttc-sheetchip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ttc-sheetchip__ic:empty { display: none; }
.ttc-sheetchip__ic svg { width: 20px; height: 20px; display: block; }
.ttc-sheetchip--kind, .ttc-sheetchip--shape { flex: 0 0 42px; padding: 0; }
.ttc-sheetchip--kind .ttc-sheetchip__t, .ttc-sheetchip--shape .ttc-sheetchip__t { display: none; }
.ttc-sheetchip--kind, .ttc-sheetchip--shape { flex-basis: 42px; }
/* Paneeli */
.ttc-sheet-on .ttc-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 10000; }
.ttc-sheet__bg { position: absolute; inset: 0; background: rgba(6, 28, 20, .5); animation: ttc-sh-fade .2s ease-out; }
.ttc-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 40px rgba(6, 28, 20, .25); animation: ttc-sh-up .25s cubic-bezier(.2, .8, .2, 1); }
.ttc-sheet__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.ttc-sheet__t { margin: 0; font-size: 19px; font-weight: 900; color: var(--ttc-green); }
.ttc-sheet__x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #F3F1E6; color: var(--ttc-green); display: grid; place-items: center; cursor: pointer; }
.ttc-sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.ttc-sheet__done { margin-top: 10px; width: 100%; min-height: 48px; }
@keyframes ttc-sh-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ttc-sh-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ttc-sheet__panel, .ttc-sheet__bg { animation: none; } }
/* Paneelien sisältö tiiviinä */
.ttc-sheet .ttc-kinds, .ttc-sheet .ttc-types { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 6px; overflow: visible !important; margin: 0 !important; padding: 0 !important; }
.ttc-sheet .ttc-type { flex: none; width: auto !important; }
.ttc-sheet .ttc-type { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.ttc-sheet .ttc-type__ic { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.ttc-sheet .ttc-type__ic svg { width: 20px; height: 20px; }
.ttc-sheet .ttc-type__t b { font-size: 14px; }
.ttc-sheet .ttc-type__t small { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ttc-sheet .ttc-matinner .ttc-option { padding-block: 8px; }
.ttc-sheet .ttc-matinner .ttc-option__text small { display: none; }
.ttc-sheet .ttc-size { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ttc-sheet .ttc-size > .ttc-presets { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ttc-sheet .ttc-presets > span, .ttc-sheet .ttc-size > .ttc-hint { display: none; }
.ttc-sheet .ttc-presets .ttc-chip { min-height: 42px; font-size: 14.5px; border-radius: 12px; }
.ttc-sheet .ttc-qty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ttc-sheet .ttc-qty__item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "q" "p" "u" "s"; padding: 18px 12px 10px; gap: 2px; }
.ttc-sheet .ttc-qty__item span { text-align: left; }
.ttc-sheet .ttc-qty__pop { font-size: 9.5px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttc-sheet .ttc-border--up .ttc-hint { display: none; }
.ttc-sheet__sub { margin: 6px 0 -4px; font-weight: 800; }
/* Puhelin: läppäri ja puhelin litteinä (ei 3D-kallistusta) – sulavampi. */
.ttc-lap--flat { perspective: none; cursor: default; }
.ttc-lap--flat .ttc-lap__wrap, .ttc-lap--flat .ttc-lap__lid { transform-style: flat; transform: none !important; }
/* Valintanapit: pieni otsikko + arvo */
.ttc-sheetchip { flex-direction: column; gap: 1px; min-height: 48px; padding: 4px 6px; }
.ttc-sheetchip__c { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; line-height: 1.1; }
.ttc-sheetchip__v { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; max-width: 100%; }
.ttc-sheetchip__v svg { width: 18px; height: 18px; display: block; }
.ttc-sheetchip--kind, .ttc-sheetchip--shape { flex: 0 0 50px; padding: 4px 2px; }

/* Puhelin: teksti- ja rekisteritarran valinnat paneeleissa (Fontti, Väri, Materiaali/Koko, Liima). */
.ttc-sheet-on .ttc-step--upload .ttc-tb__opt { display: none; }
.ttc-sheet .ttc-tb__opt { margin-top: 0; }
.ttc-sheetchip--font, .ttc-sheetchip--color, .ttc-sheetchip--clip { flex: 0 0 50px; padding: 4px 2px; }
.ttc-sheetchip--font .ttc-sheetchip__ic { font-size: 18px; line-height: 1; font-weight: 400; }
.ttc-sheetchip__dot { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(248, 246, 233, .85); box-sizing: border-box; }
.ttc-sheetchip__dot.is-chrome { background: linear-gradient(135deg, #f4f6f8, #9aa1a9 45%, #eef1f4 55%, #8d949c) !important; }
.ttc-sheetchip__dot.is-gold { background: linear-gradient(135deg, #f3dc8c, #b08a2e 50%, #e9cf78) !important; }
.ttc-txph { order: -1; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; max-width: min(100%, 52vh); margin: 0 auto 10px; box-sizing: border-box; /* sama korkeus kuin esikatselulla – sivu ei hyppää ensimmäisestä kirjaimesta */ border-radius: 16px; border: 1.5px solid var(--ttc-line);
	background: repeating-conic-gradient(#f1eedd 0 25%, #f8f6e9 0 50%) 0 0 / 22px 22px; color: var(--ttc-muted, #5B6B63); font-weight: 700; font-size: 15px; }
.ttc-txph[hidden] { display: none; }

/* Puhelin, editorisivu: ei murupolkua, esittelyä eikä erillistä Verkkokauppa-riviä – editori alkaa heti. */
@media (max-width: 899px) {
	.ttc-sheet-page .page-hero--shop, .ttc-sheet-page .product-crumbs, .ttc-sheet-page .ttc__intro { display: none; }
	.ttc-sheet-page .section--auto { padding-top: 14px; }
	.ttc-sheet-page .ttc { position: relative; }
	.ttc-sheet-page .ttc__head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-right: 40px; min-height: 40px; }
	/* Otsikko vain ruudunlukijalle ja hakukoneille – tarran laji näkyy alapalkissa. */
	.ttc-sheet-page .ttc__title { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.ttc-sheet-page .ttc__head .tt-vat-toggle { margin: 0; flex: none; }
	.ttc-sheet-page .ttc__head .tt-vat-toggle button { font-size: 12px; padding: 6px 9px; }
	.ttc-sheet-page .ttc-tour-help { position: absolute; top: 0; right: 0; margin: 0; height: 40px; align-items: center; }
	.ttc-sheet-page .ttc-tour-help button { font-size: 0; gap: 0; padding: 4px; text-decoration: none; }
	.ttc-sheet-page .ttc-tour-help button span { width: 30px; height: 30px; font-size: 16px; }
}

/* Tekstitarran kuvat (clipart) */
.ttc-tb__adds { display: flex; flex-wrap: wrap; gap: 8px; }
.ttc-tb__addclip { display: inline-flex; align-items: center; gap: 8px; }
.ttc-tb__addclip svg { flex: none; }
.ttc-clipovl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.ttc-clipovl[hidden] { display: none; }
.ttc-clipbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 4px; }
.ttc-clipbar[hidden] { display: none; }
.ttc-sheet-on .ttc-clipbar { order: -1; margin: -2px 0 10px; }
.ttc-clipbar__b { min-width: 42px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-green); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.ttc-clipbar__b.is-del { font-size: 13.5px; color: #8a2414; border-color: rgba(138, 36, 20, .3); margin-left: auto; }
.ttc-clipbar__b.is-ok { font-size: 13.5px; background: var(--ttc-green); color: var(--ttc-cream); border-color: var(--ttc-green); }
.ttc-clipd { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; }
.ttc-clipd[hidden] { display: none; }
.ttc-clipd__bg { position: absolute; inset: 0; background: rgba(6, 28, 20, .5); }
.ttc-clipd__panel { position: relative; width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: 22px 22px 0 0; box-sizing: border-box;
	padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -10px 40px rgba(6, 28, 20, .25); }
@media (min-width: 900px) { .ttc-clipd { align-items: center; } .ttc-clipd__panel { border-radius: 22px; max-height: 84vh; } }
.ttc-clipd__panel .ttc-sheet__h { margin: 0; }
.ttc-clipd__panel > :not(.ttc-clipd__scroll) { flex: none; }
.ttc-clipd__hint { margin: 0; }
.ttc-clipd .ttc-clipd__q { -webkit-appearance: none; appearance: none; width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream); font: inherit; font-size: 16px; color: var(--ttc-ink); }
.ttc-clipd__q:focus { outline: none; border-color: var(--ttc-green); background: #fff; }
.ttc-clipd__cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ttc-clipd__cats::-webkit-scrollbar { display: none; }
.ttc-clipd__cat { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ttc-line); background: var(--ttc-cream); color: var(--ttc-green); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ttc-clipd__cat[aria-pressed="true"] { background: var(--ttc-green); color: var(--ttc-cream); border-color: var(--ttc-green); }
.ttc-clipd__scroll { overflow-y: auto; min-height: 0; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.ttc-clipd__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.ttc-clipd__it { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 10px; border-radius: 12px; border: 1.5px solid var(--ttc-line); background: #fff; color: var(--ttc-ink, #13231D); cursor: pointer; }
.ttc-clipd__it:hover, .ttc-clipd__it:focus-visible { border-color: var(--ttc-green); background: #F3F1E6; }
.ttc-clipd__it svg { width: 100%; height: 100%; fill: currentColor; }
.ttc-clipd__more { margin: 10px auto 0; display: block; }
.ttc-clipd__more[hidden] { display: none; }
.ttc-clipd__attr { font-size: 11.5px; color: var(--ttc-muted, #5B6B63); margin: 10px 0 0; }
.ttc-clipd__attr a { color: inherit; }

/* Suurennuslasi aina kuvien muokkauskerroksen päällä. */
.ttc-sprev__zoom { z-index: 4; }

@keyframes ttc-sh-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) { .ttc-sheetchip--font .ttc-sheetchip__t, .ttc-sheetchip--color .ttc-sheetchip__t, .ttc-sheetchip--clip .ttc-sheetchip__t { display: none; } }


/* =========== Tietokone (≥ 900 px) – sama rakenne kuin paitaeditorissa: kuvakepalkki | valintapaneeli | iso tarra. Puhelin ennallaan. =========== */
@media (min-width: 900px) {
	html.ttc-desk-app .ttc__intro { display: none; }
	html.ttc-desk-app .ttc__title { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	html.ttc-desk-app .ttc__head { margin: 0; padding: 0; min-height: 0; }
	/* Tarraeditorissa tila editorille: matalampi yläpalkki, murupolku ja väli tiiviimmiksi. */
	html.ttc-desk-app .site-header__inner { min-height: 0; padding-block: 10px; }
	html.ttc-desk-app .site-header__logo .logo { height: 58px; }
	html.ttc-desk-app .page-hero--shop { padding: 8px 0; }
	html.ttc-desk-app .page-hero--shop + .section--auto { padding-top: 10px; padding-bottom: 16px; }
	html.ttc-desk-app .ttc { padding-top: 0; margin-top: 0; }
	html.ttc-desk-app { scroll-padding-top: 80px; }
	.ttc__app.ttc-sheet-on { display: grid; grid-template-columns: 104px clamp(300px, 26vw, 360px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0;
		height: var(--ttc-app-h, calc(100vh - 170px)); border-radius: 22px; overflow: hidden; background: #fff; border: 1.5px solid var(--ttc-line); box-shadow: 0 18px 40px rgba(15, 42, 32, .10); }
	/* 1) Kuvakepalkki */
	.ttc-sheet-on > .ttc-sbar { grid-column: 1; grid-row: 1; position: relative; inset: auto; z-index: 1; height: 100%; min-height: 0; box-sizing: border-box; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 12px 10px; border-radius: 0; box-shadow: none; transform: none !important; transition: none; overflow-y: auto; scrollbar-width: none; }
	.ttc-sheet-on > .ttc-sbar .ttc-sbar__back { display: none; }
	.ttc-sheet-on .ttc-sheetchips { display: flex; flex-direction: column; gap: 8px; width: 100%; }
	.ttc-sheet-on .ttc-sheetchip, .ttc-sheet-on .ttc-sheetchip--kind, .ttc-sheet-on .ttc-sheetchip--shape, .ttc-sheet-on .ttc-sheetchip--font, .ttc-sheet-on .ttc-sheetchip--color, .ttc-sheet-on .ttc-sheetchip--clip {
		flex: none; width: 100%; min-height: 74px; padding: 8px 4px; border-radius: 14px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; position: relative; }
	.ttc-sheet-on .ttc-sheetchip[hidden] { display: none; }
	.ttc-sheet-on .ttc-sheetchip__v { flex-direction: column; gap: 4px; order: -1; }
	.ttc-sheet-on .ttc-sheetchip__ic svg { width: 24px; height: 24px; }
	.ttc-sheet-on .ttc-sheetchip--font .ttc-sheetchip__ic { font-size: 22px; }
	.ttc-sheet-on .ttc-sheetchip__dot { width: 22px; height: 22px; }
	/* Valittu arvo näkyy kuvakkeen ja otsikon alla (esim. KOKO 7×7 cm, MÄÄRÄ 50 kpl) – ei tarvitse avata jokaista paneelia. */
	.ttc-sheet-on .ttc-sheetchip__v { display: contents; }
	.ttc-sheet-on .ttc-sheetchip__ic { order: 1; }
	.ttc-sheet-on .ttc-sheetchip__c { order: 2; }
	.ttc-sheet-on .ttc-sheetchip__t { order: 3; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; max-width: 100%; hyphens: manual; font-size: 11px; font-weight: 600; line-height: 1.15; opacity: .82; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
	.ttc-sheet-on .ttc-sheetchip__t:empty, .ttc-sheet-on .ttc-sheetchip__t.is-dup, .ttc-sheet-on > .ttc-sbar.is-tight .ttc-sheetchip__t { display: none !important; }
	.ttc-sheet-on .ttc-sheetchip__c { font-size: 10.5px; opacity: 1; letter-spacing: .05em; }
	.ttc-sheet-on .ttc-sheetchip:hover { background: rgba(248, 246, 233, .16); border-color: rgba(248, 246, 233, .5); }
	.ttc-sheet-on .ttc-sheetchip.is-open { background: var(--ttc-yellow); border-color: var(--ttc-yellow); color: var(--ttc-green); }
	.ttc-sheet-on .ttc-sheetchip.is-open .ttc-sheetchip__dot { border-color: var(--ttc-green); }
	/* 2) Valintapaneeli (aina auki) + hinta ja Lisää koriin alhaalla */
	.ttc-dpanel { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1.5px solid var(--ttc-line); }
	.ttc-sheet-on .ttc-dpanel .ttc-sheet:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; position: static; inset: auto; z-index: auto; }
	.ttc-sheet-on .ttc-dpanel .ttc-sheet[hidden] { display: none; }
	.ttc-dpanel .ttc-sheet__bg, .ttc-dpanel .ttc-sheet__x, .ttc-dpanel .ttc-sheet__done { display: none !important; }
	.ttc-dpanel .ttc-sheet__panel { position: static; inset: auto; flex: 1 1 auto; min-height: 0; max-height: none; border-radius: 0; box-shadow: none; border: 0; padding: 18px 18px 12px; animation: none; display: flex; flex-direction: column; background: #fff; }
	.ttc-dpanel .ttc-sheet__t { font-size: 20px; }
	.ttc-dpanel .ttc-sheet__h { margin-bottom: 12px; min-height: 0; }
	.ttc-dpanel .ttc-sheet__body { flex: 1 1 auto; min-height: 0; }
	.ttc-dpanel .ttc-sbar__p { flex: none; display: flex; flex-direction: column; padding: 14px 18px 8px; border-top: 1.5px solid var(--ttc-line); color: var(--ttc-ink, #13231D); }
	.ttc-dpanel .ttc-sbar__p b { color: var(--ttc-green); font-size: 28px; }
	.ttc-dpanel .ttc-sbar__p b.is-sm { font-size: 17px; }
	.ttc-dpanel .ttc-sbar__p small { opacity: .75; }
	.ttc-dpanel .ttc-sbar__go { flex: none; margin: 0 18px 16px; width: auto; min-height: 54px; font-size: 16px; }
	/* 3) Iso tarra */
	.ttc-sheet-on > .ttc-simple { grid-column: 3; grid-row: 1; height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--ttc-cream, #F8F6E9); padding: 12px 18px 16px; box-sizing: border-box; position: relative; }
	.ttc-sheet-on > .ttc-simple > .ttc-tour-help { position: static; align-self: flex-end; margin: 0 0 6px; }
	.ttc-sheet-on > .ttc-simple > .ttc-resume { margin: 0 0 10px; }
	.ttc-sheet-on .ttc-simple__grid { flex: 1 1 auto; min-height: 0; display: flex; }
	.ttc-sheet-on .ttc-step--upload { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
	.ttc-sheet-on .ttc-step--upload > div:last-child { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
	.ttc-sheet-on .ttc-step--upload .ttc-sprev, .ttc-sheet-on .ttc-txph { flex: 1 1 auto; min-height: 200px; display: grid; place-items: center; margin: 0; padding: 0; border: 0; background: none; overflow: hidden; }
	.ttc-sheet-on .ttc-sprev__pv { width: var(--ttc-pv, 420px); height: var(--ttc-pv, 420px); max-width: none; margin: 0; }
	.ttc-sheet-on .ttc-sprev__pv .ttc-preview { width: 100%; height: 100%; }
	.ttc-sheet-on .ttc-txph { aspect-ratio: auto; max-width: none; width: 100%; border-radius: 16px; }
	.ttc-sheet-on .ttc-sprev .ttc-quality { left: 50%; right: auto; transform: translateX(-50%); top: 8px; max-width: min(92%, 520px); }
	.ttc-sheet-on .ttc-clipbar { flex: none; justify-content: center; margin: 10px 0 0; }
	/* Aineiston työkalut ovat paneelissa – kortissa vain tarra (ennen kuvaa iso latausalue) */
	.ttc-sheet-on .ttc-step--upload.has-art > div > .ttc-imagepanel, .ttc-sheet-on .ttc-step--upload > div > .ttc-tb, .ttc-sheet-on .ttc-step--upload > div > .ttc-qr,
	.ttc-sheet-on .ttc-step--upload.has-art > div > .ttc-enhance, .ttc-sheet-on .ttc-step--upload.has-art > div > .ttc-pdfinfo { display: none !important; }
	.ttc-sheet-on .ttc-step--upload:not(.has-art) > div > .ttc-imagepanel { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
	/* Paneelin sisältö: aineiston työkalut yhteen sarakkeeseen, tekstikentän lisäasetukset omissa paneeleissaan */
	.ttc-dpanel .ttc-tb > .ttc-tb__opt { display: none; }
	/* Työkalut tiiviisti: iso Poista tausta, sen alla kaksi pienempää vierekkäin, tiedoston vaihto matalana. */
	.ttc-dpanel .ttc-tools { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
	.ttc-dpanel .ttc-tools > * { grid-column: 1 / -1; }
	.ttc-dpanel .ttc-tools__quick { display: contents; }
	.ttc-dpanel .ttc-tools__quick > * { grid-column: auto; }
	.ttc-dpanel .ttc-tools .ttc-btn { width: 100%; }
	.ttc-dpanel .ttc-tools .ttc-btn--ghost { min-height: 44px; padding: 8px 10px; font-size: 14px; line-height: 1.15; white-space: normal; text-align: center; gap: 6px; border-width: 1.5px; }
	.ttc-dpanel .ttc-tools .ttc-btn--ghost:hover { background: var(--ttc-cream, #F8F6E9); }
	.ttc-dpanel .ttc-tools__quick > .ttc-btn:only-child { grid-column: 1 / -1; }
	.ttc-dpanel .ttc-tools__change { min-height: 40px !important; border-style: dashed !important; }
	.ttc-mobonly { display: none; }
	/* Leveämpi editori isoilla näytöillä */
	html.ttc-desk-app .container.shop, html.ttc-desk-app .page-hero--shop .container, html.ttc-desk-app .site-header .container { max-width: 1640px; }
	.ttc-sheet-on .ttc-step--upload:not(.has-art) .ttc-drop { min-height: 72%; }
	.ttc-dpanel .ttc-imagerow, .ttc-dpanel .ttc-imagecol { display: block; }
	.ttc-dpanel .ttc-drop { min-height: 120px; }
}
@media (min-width: 900px) and (max-height: 820px) {
	.ttc-sheet-on .ttc-sheetchips { gap: 6px; }
	.ttc-sheet-on .ttc-sheetchip, .ttc-sheet-on .ttc-sheetchip--kind, .ttc-sheet-on .ttc-sheetchip--shape, .ttc-sheet-on .ttc-sheetchip--font, .ttc-sheet-on .ttc-sheetchip--color, .ttc-sheet-on .ttc-sheetchip--clip { min-height: 0; padding: 6px 4px; gap: 3px; }
	.ttc-sheet-on > .ttc-sbar { padding: 8px 8px; }
	.ttc-sheet-on .ttc-sheetchip__ic svg { width: 20px; height: 20px; }
	.ttc-sheet-on .ttc-sheetchip--font .ttc-sheetchip__ic { font-size: 18px; }
	.ttc-sheet-on .ttc-sheetchip__dot { width: 18px; height: 18px; }
	.ttc-sheet-on .ttc-sheetchip__t { -webkit-line-clamp: 1; font-size: 10.5px; }
	.ttc-dpanel .ttc-sbar__p b { font-size: 24px; }
	.ttc-dpanel .ttc-sbar__go { min-height: 48px; }
}
@media (min-width: 900px) {
	.ttc-sheet-on > .ttc-sbar, .ttc-sheet-on > .ttc-simple, .ttc-sheet-on > .ttc-dpanel { width: auto !important; max-width: none !important; justify-self: stretch; margin: 0; }
}

@media (min-width: 900px) {
	.ttc-sheet-on .ttc-simple__grid { flex-direction: column; align-items: stretch; }
	.ttc-sheet-on .ttc-sheetchip, .ttc-sheet-on .ttc-sheetchip--kind, .ttc-sheet-on .ttc-sheetchip--shape, .ttc-sheet-on .ttc-sheetchip--font, .ttc-sheet-on .ttc-sheetchip--color, .ttc-sheet-on .ttc-sheetchip--clip { min-height: 66px; }
}
@media (min-width: 900px) and (max-height: 820px) {
	.ttc-sheet-on .ttc-sheetchip, .ttc-sheet-on .ttc-sheetchip--kind, .ttc-sheet-on .ttc-sheetchip--shape, .ttc-sheet-on .ttc-sheetchip--font, .ttc-sheet-on .ttc-sheetchip--color, .ttc-sheet-on .ttc-sheetchip--clip { min-height: 54px; }
}

/* Tarkkuusilmoituksen sulkunappi */
.ttc-quality { position: relative; padding-right: 40px !important; }
.ttc-quality__x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 42, 32, .08); color: inherit; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ttc-quality__x:hover { background: rgba(15, 42, 32, .16); }

/* Malliston kuvat: paikkamerkki näkyy vain, jos kuvaa ei ole tai mikään kuvaosoite ei lataudu (1.52.5). */
.ttc-cat__img > img { position: relative; z-index: 1; }
.ttc-cat__img:not(.is-noimg) > .ttc-cat__ph { visibility: hidden; }
.ttc-cat__main { position: relative; }
.ttc-cat__main > .ttc-cat__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(15, 77, 58, .4); font-size: .95rem; }
.ttc-cat__main:not(.is-noimg) > .ttc-cat__ph { display: none; }
.ttc-cat__main.is-noimg { min-height: 320px; background: #F3F2EC; border-radius: inherit; }
