/* Sticker Konfigurator – Text-Konfigurator (gleicher Aufbau wie der Aufkleber-Konfigurator,
   Vorschau: freistehender Text in Folienfarbe statt Aufkleber-Form). */

/* Layout wie .skf-configurator */
@media (min-width: 900px) {
	.skf-textcfg .skf-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 40px; row-gap: 0; align-items: start; grid-template-areas: "prev form"; }
	.skf-textcfg .skf-grid.has-title { grid-template-areas: "prev title" "prev form"; grid-template-rows: auto 1fr; }
	.skf-textcfg .skf-summary { position: static; box-shadow: var(--skf-shadow); }
}
.skf-textcfg .skf-head { margin-bottom: 14px; }
.skf-tc-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }

/* Vorschau: freistehender Text auf dem Raster */
.skf-tc-stage { aspect-ratio: 5 / 4; transition: background-color .25s; }
.skf-tc-stage.wtd-preview-dark { background-color: var(--skf-stage-dark, #0f2150); background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); }
.skf-tc-stage .skf-motif-chip { z-index: 3; }
.skf-tc-dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.skf-tc-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px 70px 70px 30px; }
.skf-textcfg .wtd-preview-inner { transition: transform .15s ease-out; transform-origin: center; }
.skf-textcfg .wtd-preview-row { display: flex; align-items: center; }
.skf-textcfg .wtd-fixed-logo { flex-shrink: 0; object-fit: contain; }
.skf-textcfg .wtd-preview-text { white-space: nowrap; }
.skf-textcfg .wtd-preview-line { white-space: pre; }
.skf-textcfg .wtd-preview-image { display: inline-block; object-fit: contain; }

/* Masslinien */
.skf-tc-dim { position: absolute; pointer-events: none; color: var(--skf-muted); font-size: 13px; font-weight: 700; font-family: system-ui, sans-serif; }
.skf-tc-dim i { position: absolute; display: block; }
.skf-tc-dim-w { height: 10px; }
.skf-tc-dim-w i { left: 0; right: 0; top: 5px; border-top: 1.5px solid currentColor; }
.skf-tc-dim-w i::before, .skf-tc-dim-w i::after { content: ""; position: absolute; top: -6px; height: 11px; border-left: 1.5px solid currentColor; }
.skf-tc-dim-w i::before { left: 0; }
.skf-tc-dim-w i::after { right: 0; }
.skf-tc-dim-w b { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.skf-tc-dim-h { width: 10px; }
.skf-tc-dim-h i { top: 0; bottom: 0; left: 5px; border-left: 1.5px solid currentColor; }
.skf-tc-dim-h i::before, .skf-tc-dim-h i::after { content: ""; position: absolute; left: -6px; width: 11px; border-top: 1.5px solid currentColor; }
.skf-tc-dim-h i::before { top: 0; }
.skf-tc-dim-h i::after { bottom: 0; }
.skf-tc-dim-h b { position: absolute; left: 16px; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: left center; white-space: nowrap; margin-left: 8px; }
.skf-tc-stage.wtd-preview-dark .skf-tc-dim { color: rgba(255,255,255,.75); }

/* Textzeilen */
.skf-tc-lines #wtd_lines { display: grid; gap: 8px; }
.skf-textcfg .wtd-line-row { display: flex; gap: 8px; align-items: center; }
.skf-textcfg .wtd-line-input { flex: 1 1 auto; min-width: 0; font-size: 16px !important; font-weight: 600; }
.skf-textcfg .wtd-line-size-wrap { flex: 0 0 auto; display: flex; align-items: center; border: 1px solid var(--skf-border); border-radius: var(--skf-r-sm); background: var(--skf-bg); overflow: hidden; height: 44px; }
.skf-textcfg .wtd-line-size-wrap input.wtd-line-size { width: 50px; border: 0 !important; box-shadow: none !important; background: transparent; padding: 0 2px 0 8px !important; text-align: right; font-size: 14px; height: 100%; min-height: 0; }
.skf-textcfg .wtd-line-size-unit { padding-right: 8px; color: var(--skf-muted); font-size: 13px; }
.skf-textcfg .wtd-line-cm-display { flex: 0 0 auto; font-size: 12.5px; color: var(--skf-muted); white-space: nowrap; min-width: 4.4em; }
.skf-textcfg .wtd-line-remove { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--skf-surface); color: var(--skf-muted); font-size: 13px; line-height: 1; padding: 0; }
.skf-textcfg .wtd-line-remove:hover { background: #fee2e2; color: #b91c1c; }
.skf-tc-lines:not(.is-multi) .wtd-line-size-wrap, .skf-tc-lines:not(.is-multi) .wtd-line-remove, .skf-tc-lines:not(.is-multi) .wtd-line-cm-display { display: none; }
.skf-tc-addline { width: 100%; margin-top: 8px; border: 1.5px dashed var(--skf-border) !important; background: transparent !important; color: var(--skf-text) !important; border-radius: var(--skf-r-sm); padding: 10px 14px; font-weight: 600; font-size: 14px; }
.skf-tc-addline small { font-weight: 400; color: var(--skf-muted); }
.skf-tc-addline:hover { border-color: var(--skf-primary) !important; }
.skf-tc-addline[disabled] { opacity: .5; cursor: not-allowed; }
.skf-tc-sub { margin-top: 18px; }

/* Grösse */
.skf-tc-lock { width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--skf-muted); }
.skf-tc-lock svg { font-size: 20px; }

/* Menge: Kacheln + Plus/Minus */
.skf-textcfg .skf-qty-grid[hidden] { display: none; }
.skf-tc-stepper { margin-top: 12px; }
.skf-tc-stepper input { max-width: 110px; }

/* Ausführung */
.skf-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.skf-tc-range { width: 100%; accent-color: var(--skf-primary); }

/* Logo-Auswahl */
.skf-tc-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.skf-textcfg .wtd-logo-opt { margin: 0; cursor: pointer; position: relative; }
.skf-textcfg .wtd-logo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.skf-textcfg .wtd-logo-opt span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 12px; border: 1px solid var(--skf-border); border-radius: var(--skf-r-sm); font-size: 12px; background: var(--skf-bg); }
.skf-textcfg .wtd-logo-opt img { height: 30px; width: auto; }
.skf-textcfg .wtd-logo-opt input:checked + span { border-color: var(--skf-accent); box-shadow: 0 0 0 1px var(--skf-accent); background: var(--skf-accent-soft); color: var(--skf-text); }
.skf-textcfg .wtd-logo-opt input:checked + span img { filter: none; }

/* Zusammenfassung / Meldung */
.skf-textcfg .skf-summary .skf-btn { margin-top: 14px; }
.skf-textcfg .wtd-original-price { color: var(--skf-muted); }
.skf-textcfg .wtd-feedback { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--skf-r-sm); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.skf-textcfg .wtd-feedback-success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.skf-textcfg .wtd-feedback-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

@media (max-width: 599px) {
	.skf-tc-art { padding: 34px 54px 56px 16px; }
	.skf-tc-dim { font-size: 11.5px; }
	.skf-textcfg .wtd-line-cm-display { display: none; }
	.skf-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.skf-textcfg .skf-summary-rows, .skf-textcfg .skf-summary .skf-total-sub { display: none; }
	.skf-textcfg .skf-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; }
	.skf-textcfg .skf-summary .skf-total { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
	.skf-textcfg .skf-summary .skf-total-label { font-size: 12px; font-weight: 600; color: var(--skf-muted); }
	.skf-textcfg .skf-summary .skf-total strong { font-size: 21px; }
	.skf-textcfg .skf-summary .skf-btn-block { margin: 0; width: auto; min-height: 48px; padding: 12px 16px; font-size: 14.5px; }
	.skf-textcfg .wtd-feedback { grid-column: 1 / -1; order: -1; margin: 0 0 6px; }
}
/* Texteingabe gut sichtbar */
.skf-textcfg .skf-tc-lines { margin-top: 14px; }
.skf-textcfg .skf-tc-lines > .skf-label { font-size: 15px; font-weight: 800; margin-bottom: 8px; display: block; }
.skf-textcfg .wtd-line-input { height: 58px !important; min-height: 58px; padding: 0 18px !important; font-size: 20px !important; font-weight: 700; background: #fff !important; border: 2px solid var(--skf-primary, #13254a) !important; border-radius: 14px !important; box-shadow: 0 6px 18px -14px rgba(10, 22, 51, .6); }
.skf-textcfg .wtd-line-input:focus { border-color: var(--skf-accent, #f5b81c) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--skf-accent, #f5b81c) 30%, transparent) !important; outline: none; }
.skf-textcfg .wtd-line-input::placeholder { color: var(--skf-muted); font-weight: 500; }
.skf-textcfg .wtd-line-size-wrap { height: 58px; }
.skf-textcfg .skf-tryon-open { margin-top: 14px; }
/* Hinweis kompakt */
.skf .skf-text-notice { gap: 8px; margin: 8px 0 2px; padding: 8px 12px; font-size: 12.5px; line-height: 1.45; }
.skf .skf-text-notice svg { width: 16px; height: 16px; margin-top: 2px; }
.skf .skf-text-notice strong { display: inline; margin: 0 4px 0 0; }
.skf .skf-text-notice > div > p:first-of-type { display: inline; }
.skf .skf-text-notice p { margin: 0; }
@media (max-width: 760px) { .skf-textcfg .wtd-line-input { font-size: 18px !important; height: 54px !important; min-height: 54px; } }

/* Handy: Vorschau bleibt beim Tippen und Auswählen sichtbar */
@media (max-width: 899px) {
	.skf-textcfg .skf-grid { display: block; }
	.skf-textcfg .skf-col-title { margin-bottom: 10px; }
	.skf-textcfg .skf-col-preview { position: sticky; top: var(--skf-sticky-top, 63px); z-index: 20; margin: 0 0 14px; padding: 4px 0 6px; background: var(--skf-page-bg, var(--so-bg, #f4f6fa)); box-shadow: 0 10px 18px -16px rgba(10, 22, 51, .55); }
	.skf-textcfg .skf-preview-card { padding: 0; border: 0; box-shadow: none; background: transparent; }
	.skf-textcfg .skf-tc-stage { aspect-ratio: auto; height: clamp(150px, 23vh, 210px); }
	.skf-textcfg .skf-preview-meta { margin-top: 2px; padding: 4px 6px 0; font-size: 12px; }
	.skf-textcfg .skf-preview-price, .skf-textcfg .skf-col-preview .skf-facts, .skf-textcfg .skf-col-preview > .skf-tryon-open { display: none; }
	.skf-textcfg .skf-tryon-open--m { display: flex; margin: 4px 0 14px; }
	.skf-textcfg .skf-tc-stage .skf-bg-toggle { transform: scale(.86); transform-origin: right bottom; }
}
