/**
 * TeraPrint Frontend Konfigurator v7
 * Design-Referenz: konfig-v7-reorder.html
 * KEINE border-radius, KEIN #000000, NUR Roboto
 */

/* ══════════════════════════════════════
   CSS VARIABLES & RESET
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap {
  --blue: #337ab7;
  --blue-dark: #2a6a9e;
  --blue-light: #edf4fb;
  --orange: #f36f21;
  --orange-light: rgba(243,111,33,.04);
  --orange-border: rgba(243,111,33,.35);
  --dark: #2d2d2d;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;
  --border: #dde0e4;
  --border-light: #eef0f3;
  --border-faint: #f3f4f6;
  --bg-gray: #f3f4f6;
  --bg-gray-light: #f8f9fb;
  --bg-white: #fff;
  --green: #10b981;
  --green-dark: #059669;
  --green-bg: rgba(16,185,129,.06);
  --red: #ef4444;
  --red-dark: #dc3545;
  --tp-card-radius: 10px;
  --tp-card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --tp-card-border: 1px solid var(--border);
  --tp-card-bg: #fff;
  --tp-inner-radius: 8px;

  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.teraprint-konfigurator-wrap *,
.teraprint-konfigurator-wrap *::before,
.teraprint-konfigurator-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════
   .tp — MAIN CONFIGURATOR CONTAINER
   ══════════════════════════════════════ */
.tp {
  width: 100%;
  max-width: 560px;
  background: var(--bg-white);
  border: var(--tp-card-border, 1px solid var(--border));
  border-radius: var(--tp-card-radius, 10px);
  box-shadow: var(--tp-card-shadow, 0 2px 12px rgba(0,0,0,0.08));
  overflow: hidden;
  font-size: 14px;
}

/* ══════════════════════════════════════
   HEADER (Blue bar + info-bar)
   ══════════════════════════════════════ */
.konf-header {
  background: var(--blue, #337ab7);
  color: #fff;
  padding: 10px 16px;
  border-bottom: none;
}
.konf-header h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.konf-info-bar {
  display: flex;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 8px 10px;
  overflow: visible;
}
.konf-info-bar:empty {
  display: none;
}
.info-badge {
  flex: 1;
  padding: 10px 8px;
  background: var(--bg-gray-light);
  text-align: center;
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
}
.info-badge__icon {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.info-badge__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-faint);
  font-weight: 600;
}
.info-badge__value {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.tp-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tp-head h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}
.tp-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SECTION HEADERS (reusable)
   ══════════════════════════════════════ */
.tp-sec-hd {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 6px;
}
.tp-step-num {
  width: 20px;
  height: 20px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp-sec-t {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dark);
  flex: 1;
}
.tp-sec-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: auto;
}

/* ══════════════════════════════════════
   OPTIONS (Pill Buttons)
   ══════════════════════════════════════ */
.tp-opts {
  padding: 10px 16px;
  border-bottom: none;
}
.tp-pills {
  display: flex;
  gap: 3px;
}
.tp-pill {
  flex: 1;
  padding: 6px 3px;
  text-align: center;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .12s;
  background: var(--bg-white);
  position: relative;
  min-width: 0;
}
.tp-pill:hover {
  border-color: var(--blue);
}
.tp-pill.on {
  border-color: var(--blue);
}
.tp-pill.on::after {
  content: '';
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  right: -1.5px;
  height: 2.5px;
  background: var(--blue);
}
.tp-pill[disabled],
.tp-pill.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* Pill Icon */
.tp-pill-ic {
  width: 20px;
  height: 20px;
  margin: 0 auto 2px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-pill.on .tp-pill-ic {
  background: rgba(51,122,183,.1);
}
.tp-pill-ic svg {
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}
.tp-pill.on .tp-pill-ic svg {
  color: var(--blue);
}

/* Pill Text */
.tp-pill-n {
  font-size: 10px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-pill-pr {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
}
.tp-pill-pr.free {
  color: var(--green);
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

/* ══════════════════════════════════════
   OPTION TILES (2x2 / 3-col Grid)
   ══════════════════════════════════════ */
.tp-tile-grid {
  display: grid;
  gap: 6px;
}
.tp-tile-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tp-tile-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tp-tile {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg-white);
  text-align: left;
  font-family: inherit;
  position: relative;
  min-height: 44px;
  overflow: hidden;
}
.tp-tile:not(.on):hover {
  border-color: #c0c6ce;
}
.tp-tile.on {
  border-color: #337ab7 !important;
  background: #edf4fb !important;
  color: #2d2d2d !important;
}
.tp-tile-ic {
  font-size: 18px;
  width: 26px;
  height: 26px;
  background: rgba(51,122,183,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
}
.tp-tile.on .tp-tile-ic,
.tp-tile.on .tp-tile-ico {
  background: rgba(51, 122, 183, 0.15) !important;
}
.tp-tile.on .tp-tile-n {
  color: #337ab7 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
/* .tp-tile-sub entfernt — wird nicht mehr gerendert, ersetzt durch tp-tile-info */
.tp-tile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tp-tile-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
  word-break: break-word;
}
/* .tp-tile-sub entfernt — ersetzt durch tp-tile-info (Tooltip-Icon) */
.tp-tile-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff !important;
  background: #16a34a !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  flex-shrink: 0;
  letter-spacing: .3px;
  white-space: nowrap;
  text-transform: uppercase !important;
}
/* Badge bleibt grün auch im selected State */
.tp-tile.on .tp-tile-badge {
  background: #16a34a !important;
  color: #fff !important;
}
/* Info-Icon ⓘ oben rechts im Tile */
.tp-tile-info {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: transparent;
  color: #337ab7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.15s;
  line-height: 1;
  z-index: 2;
}
.tp-tile:hover .tp-tile-info {
  opacity: 1;
  background: #337ab7;
  color: #fff;
}
/* Tooltip */
.tp-tile-tooltip {
  position: fixed;
  transform: translateX(-50%);
  background: #2d2d2d;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  font-family: 'Roboto', sans-serif;
  line-height: 1.4;
  white-space: nowrap;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  pointer-events: none;
}
.tp-tile-price {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   SECTION INFO ICON — blauer Kreis
   ═══════════════════════════════════════ */
.tp-sec-info {
  position: relative;
  display: inline-flex;
}
.tp-sec-info-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #337ab7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  border: none;
  outline: none;
  flex-shrink: 0;
}
.tp-sec-info-btn:hover {
  background: #2968a0;
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(51,122,183,0.15);
}
.tp-sec-info-tip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #2d2d2d;
  padding: 12px 14px 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  width: 280px;
  z-index: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
  border-left: 4px solid #337ab7;
}
.tp-sec-info-tip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #fff;
  filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.05));
}
.tp-sec-info-btn:hover + .tp-sec-info-tip,
.tp-sec-info-btn:focus + .tp-sec-info-tip {
  display: block;
}
.tp-tip-line {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
}
.tp-tip-line:first-child {
  margin-top: 0;
}
.tp-tip-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #337ab7;
  flex-shrink: 0;
  margin-top: 6px;
}
.tp-sec-info-tip strong {
  font-weight: 600;
  color: #337ab7;
}

/* Text Input Step (inline) */
.tp-text-input-wrap {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
}
.tp-text-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--dark);
  transition: border-color .12s;
  outline: none;
}
.tp-text-input:focus {
  border-color: var(--blue);
}
.tp-text-char-count {
  font-size: 12px;
  color: var(--text-faint);
  text-align: right;
  margin-top: 3px;
}

/* Dependency reason label — see B4 section for full styles */

/* ═══════════════════════════════════════
   STAFFELPREISE — Connected Segments
   ═══════════════════════════════════════ */

/* Container — gleiches Padding wie .tp-opts / .tp-upl */
.tp-tiers {
  padding: 10px 16px;
}
.tp-tiers-wrap {
  padding: 0;
}

/* Verbundene Segmente */
.tp-tiers-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dde0e4;
}

/* Einzelnes Segment — BLAU-Palette, kein Hover */
.tp-tier-seg {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  border-right: 1px solid #eef0f3;
  cursor: default;
}
.tp-tier-seg:last-child {
  border-right: none;
}

/* Status: Erreicht (passed) — hellblau */
.tp-tier-seg--passed {
  background: #edf4fb;
}

/* Status: Aktuell (current) — mittelblau + blauer bottom-border */
.tp-tier-seg--current {
  background: #c5ddf0;
  border-bottom: 3px solid #337ab7;
}

/* Status: Noch nicht erreicht (future) — ausgegraut */
.tp-tier-seg--future {
  opacity: 0.4;
}

/* Preis im Segment */
.tp-tier-seg__price {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
}
.tp-tier-seg--passed .tp-tier-seg__price {
  color: #337ab7;
}
.tp-tier-seg--current .tp-tier-seg__price {
  color: #337ab7;
  font-size: 14px;
}
.tp-tier-seg--future .tp-tier-seg__price {
  color: #6b7280;
}

/* Name unter dem Preis */
.tp-tier-seg__name {
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-top: 2px;
}
.tp-tier-seg--passed .tp-tier-seg__name,
.tp-tier-seg--current .tp-tier-seg__name {
  color: #337ab7;
}

/* Incentive-Bar */
.tp-tiers-incentive {
  margin-top: 10px;
  padding: 8px 12px;
  background: #dcfce7;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #16a34a;
  font-weight: 500;
}
.tp-tiers-incentive strong,
.tp-tiers-incentive b {
  font-weight: 700;
}

/* ═══════════════════════════════════════
   PREIS-SUMMARY — Card-Design v7
   Gleicher weisser BG wie andere Sections
   ═══════════════════════════════════════ */
.tp-price-sec {
  padding: 14px 18px;
  border-bottom: 1px solid #eef0f3;
  background: #fff;
}
.tp-ps-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 15px 3px 18px; /* Einrueckung buendig mit Card-Inhalt */
}
.tp-ps-label {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}
.tp-ps-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}
.tp-ps-divider {
  border: none;
  border-top: 1px solid #eef0f3;
  margin: 8px 15px 8px 18px; /* buendig mit Rows */
}
/* --- Inner-Card fuer Gesamt-Zeile --- */
.tp-ps-total {
  background: #edf4fb;
  border: 1px solid #337ab7;
  border-left: 4px solid #337ab7;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 8px;
}
.tp-ps-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tp-ps-total-label {
  font-size: 14px;
  font-weight: 700;
  color: #337ab7;
}
.tp-ps-total-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #337ab7;
}
.tp-ps-tax {
  text-align: right;
  font-size: 10px;
  color: #6b7280;
  margin-top: 1px;
}
/* --- Footer: Mindest + Lieferung --- */
.tp-ps-footer {
  margin-top: 10px;
}
.tp-ps-min {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #337ab7;
}
.tp-ps-min--ok {
  color: #16a34a;
}
.tp-ps-delivery {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #6b7280;
  margin-top: 6px;
}

/* Mindestmengen-Hinweis */
.tp-tier-min-hint {
  font-size: 12px;
  color: #92400e;
  background: #fef3c7;
  padding: 6px 12px;
  margin: 0 18px 8px;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
}

/* ═══════════════════════════════════════
   META-ZEILE — volle Breite, gestreckt
   ═══════════════════════════════════════ */
.tp-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid #eef0f3;
  font-size: 10px;
  color: #6b7280;
  font-weight: 500;
}
.tp-meta-bar span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════
   HOVER-EFFEKTE — klickbare Elemente
   ═══════════════════════════════════════ */

/* Dropzone / Upload-Zone */
.tp-upl-zone:hover,
.upload-zone:hover {
  background: #e4eef7 !important;
  border-color: #2968a0 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(51,122,183,0.1);
}

/* CTA-Button Hover (aktiv) */
.tp-cta:not(.tp-cta--disabled):not(.tp-cta--loading):not(.tp-cta--success):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(243,111,33,0.3);
}

/* Datei-Cards Hover */
.tp-fc:hover {
  border-color: #b0b8c4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Quantity Buttons Hover */
.tp-stk-b:hover {
  background: rgba(51,122,183,0.1);
  color: #337ab7;
}

/* ═══════════════════════════════════════
   CTA — DISABLED STATE (vor Upload)
   ═══════════════════════════════════════ */
.tp-cta--disabled {
  background: #9ca3af !important;
  cursor: default !important;
  pointer-events: none;
}

/* ══════════════════════════════════════
   DELIVERY INFO LINE
   ══════════════════════════════════════ */
.tp-delivery-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 10px;
  font-size: 10px;
  color: var(--text-muted);
  border-radius: var(--tp-inner-radius);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-gray-light);
}

/* ══════════════════════════════════════
   EXPRESS BOX
   ══════════════════════════════════════ */
.tp-express {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0 10px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--tp-inner-radius);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
}
.tp-express:hover {
  border-color: var(--orange);
}
.tp-express.on {
  border-color: var(--orange);
  background: #fff8f3;
}
.tp-express__icon {
  font-size: 24px;
  flex-shrink: 0;
}
.tp-express__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tp-express__body strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}
.tp-express__body span {
  font-size: 10px;
  color: var(--text-muted);
}
.tp-express__badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  background: rgba(243,111,33,.08);
  padding: 3px 8px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   INNER CARD SECTIONS
   ══════════════════════════════════════ */
.tp-opts,
.tp-upl {
  margin: 6px 10px;
  background: var(--bg-gray-light);
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
}
.tp-trow {
  margin: 6px 10px;
  padding: 6px;
  background: var(--bg-gray-light);
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
}
.tp-delivery-info {
  margin: 0 10px;
  border-radius: var(--tp-inner-radius);
}
.tp-express {
  border-radius: var(--tp-inner-radius) !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
}
.konf-info-bar {
  border-radius: 0;
  overflow: hidden;
}

/* ══════════════════════════════════════
   UPLOAD ZONE
   ══════════════════════════════════════ */
.tp-upl {
  padding: 10px 16px;
  border-bottom: none;
}
.tp-upl-zone {
  background: #edf4fb;
  border: 2px dashed #337ab7;
  border-radius: 8px;
  padding: 14px 14px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tp-upl-zone:hover {
  border-color: #2a6a9e;
  background: rgba(51,122,183,.08);
}
.tp-upl-zone.dragover {
  border-color: #2a6a9e;
  background: rgba(51,122,183,.12);
}
.tp-upl-ic {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(51,122,183,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-upl-ic svg {
  width: 20px;
  height: 20px;
  color: #337ab7;
}
.tp-upl-txt p {
  font-size: 14px;
  font-weight: 700;
  color: #337ab7;
  margin: 0;
}
.tp-upl-txt small {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

/* Upload progress */
.tp-upl-progress {
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════
   FILES
   ══════════════════════════════════════ */
.tp-files {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-light);
}
.tp-fc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-faint);
}
.tp-fc:last-of-type {
  border-bottom: none;
}

/* Pending/Error states */
.tp-fc--pending .tp-fc-info {
  color: var(--text-muted);
}
.tp-fc--error {
  background: rgba(239,68,68,.04);
}
/* A24: Invalid field highlight for validation */
.tp-fc--invalid {
  outline: 2px solid var(--red, #ef4444);
  outline-offset: -1px;
  animation: tp-shake .3s ease;
}
@keyframes tp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Thumbnail */
.tp-fc-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-gray);
  border: 1px solid #e2e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.tp-fc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-fc-thumb-ph {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* Info */
.tp-fc-info {
  flex: 1;
  min-width: 0;
}
.tp-fc-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark);
}
.tp-fc-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.tp-fc-meta span {
  color: var(--dark);
  font-weight: 600;
}
.tp-fc-warning {
  font-size: 10px;
  color: var(--red);
  font-weight: 500;
  margin-top: 2px;
}

/* DPI badge in file meta */
.tp-fc-dpi {
  font-size: 10px;
  font-weight: 600;
  padding: 0 3px;
  margin-left: 4px;
}
.tp-fc-dpi.dpi-green { color: var(--green); }
.tp-fc-dpi.dpi-yellow { color: #f59e0b; }
.tp-fc-dpi.dpi-red { color: var(--red); }

/* Edit button in file card */
.tp-fc-edit-btn {
  background: none;
  border: 1px solid #e2e5ea;
  padding: 3px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  transition: border-color 0.15s, color 0.15s;
  color: #6b7280;
  vertical-align: middle;
  line-height: 1;
}
.tp-fc-edit-btn:hover {
  border-color: #337ab7;
  color: #337ab7;
}
.tp-fc-edit-btn svg { width: 12px; height: 12px; }

/* PDF badge on thumbnail */
.tp-fc-thumb { position: relative; }
.tp-fc-badge--pdf {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #ef4444;
  color: #fff;
  font: 700 10px/1 'Roboto', sans-serif;
  padding: 1px 4px;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* Right Side */
.tp-fc-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Quantity Stepper */
.tp-stk {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
}
.tp-stk-b {
  width: 20px;
  height: 20px;
  background: var(--bg-gray-light);
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  line-height: 1;
}
.tp-stk-b:hover {
  background: var(--border-light);
}
.tp-stk-v {
  width: 24px;
  height: 20px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font: 600 10px 'Roboto Mono', monospace;
  color: var(--dark);
  background: var(--bg-white);
  outline: none;
}

/* File Price */
.tp-fc-price {
  font-size: 12px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  white-space: nowrap;
  min-width: 50px;
  text-align: right;
  color: var(--dark);
}

/* Delete File */
.tp-fc-x {
  width: 18px;
  height: 18px;
  background: none;
  border: 1px solid #e2e5ea;
  cursor: pointer;
  color: #c0c4cc;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
  line-height: 1;
}
.tp-fc-x:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ══════════════════════════════════════
   PRICE BREAKDOWN
   ══════════════════════════════════════ */
.tp-price {
  padding: 10px 16px;
  margin: 6px 10px;
  background: var(--bg-gray-light);
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
}
.tp-price-lines {
  margin-bottom: 8px;
}
.tp-pl {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 12px;
}
.tp-pl-l {
  color: var(--text-muted);
}
.tp-pl-v {
  font-family: 'Roboto Mono', monospace;
  font-weight: 500;
  color: var(--dark);
}
.tp-pl-v.green {
  color: var(--green);
}
.tp-pl-sep {
  height: 1px;
  background: #e2e5ea;
  margin: 4px 0;
}

/* Total */
.tp-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}
.tp-total-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}
.tp-total-r {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.tp-total-pr {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
  font-family: 'Roboto Mono', monospace;
  letter-spacing: -1px;
  line-height: 1;
}
.tp-total-vat {
  font-size: 10px;
  color: var(--text-faint);
}
.tp-min {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
}
/* A30: Matrix-Overflow Warnung */
.tp-min--warn {
  color: #b45309;
  background: #fef3c7;
  padding: 4px 8px;
}

/* Mindestpreis-Warnung */
.tp-min-notice {
  background: #fef5ee;
  border-left: 4px solid #f36f21;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #2d2d2d;
}
.tp-min-notice__icon {
  color: #f36f21;
}
.tp-min-notice__cur {
  color: var(--text-muted);
}
.tp-min-notice__hint {
  font-weight: 600;
  font-size: 12px;
}

/* Berechneter Preis (abgeschwaecht wenn Mindestpreis greift) */
.tp-calc-price--muted {
  opacity: 0.5;
}
.tp-calc-price--muted .tp-pl-v {
  text-decoration: line-through;
}

/* Mindestpreis-Zeile (prominent) */
.tp-min-price-row {
  font-weight: 600;
}
.tp-min-price-row .tp-pl-v {
  color: var(--blue);
  font-weight: 700;
}

/* Price upload hint (no files yet) */
.tp-price-hint {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.tp-price-hint-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════
   CTA BUTTON
   ══════════════════════════════════════ */
.tp-cta {
  display: block;
  width: calc(100% - 20px);
  margin: 8px 10px 10px;
  padding: 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--tp-inner-radius);
  font: 700 13px 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.tp-cta:hover {
  background: #e05e10;
}
.tp-cta:disabled,
.tp-cta.disabled {
  background: var(--text-faint);
  cursor: not-allowed;
  opacity: 0.6;
}
.tp-cta--success {
  background: #2e9e45;
}
.tp-cta--success:hover {
  background: #2e9e45;
}
/* A23: Mindestmengen-Hinweis */
.tp-tier-min-hint {
  padding: 6px 14px;
  margin: 0 10px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(243,111,33,.06);
  border: 1px solid rgba(243,111,33,.2);
  border-radius: var(--tp-inner-radius);
  text-align: center;
}
.tp-cta--loading {
  background: var(--orange);
  opacity: 0.8;
  pointer-events: none;
  cursor: wait;
}
.tp-cta--loading .tp-cta-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tp-spin .6s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

/* ══════════════════════════════════════
   TRUST LINE
   ══════════════════════════════════════ */
.tp-trust {
  padding: 8px 10px 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  color: var(--text-faint);
  background: var(--bg-gray-light);
}

/* ══════════════════════════════════════
   SPINNER
   ══════════════════════════════════════ */
.tp-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  animation: tp-spin .6s linear infinite;
}
@keyframes tp-spin {
  to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════
   NOTIFICATION
   ══════════════════════════════════════ */
#teraprintNotification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  padding: 14px 24px;
  background: #333;
  color: #fff;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: opacity .3s;
  opacity: 0;
  max-width: 400px;
}

/* ══════════════════════════════════════
   MODAL (Resize Modal — keep existing)
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.modal-close {
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
}
.modal-close:hover {
  color: var(--red);
  border-color: var(--red);
}
.modal-body {
  padding: 20px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}
.modal-btn {
  padding: 8px 20px;
  font: 600 13px 'Roboto', sans-serif;
  border: none;
  cursor: pointer;
  transition: all .12s;
}
.modal-btn--cancel {
  background: var(--bg-gray);
  color: var(--text-muted);
}
.modal-btn--cancel:hover {
  background: var(--border);
}
.modal-btn--apply {
  background: var(--blue);
  color: #fff;
}
.modal-btn--apply:hover {
  background: var(--blue-dark);
}

/* Modal Dims */
.modal-dims {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.modal-field {
  flex: 1;
}
.modal-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.modal-field input {
  width: 100%;
  padding: 8px 10px;
  font: 500 14px 'Roboto Mono', monospace;
  border: 1.5px solid var(--border);
  color: var(--dark);
  outline: none;
  transition: border-color .12s;
}
.modal-field input:focus {
  border-color: var(--blue);
}
.modal-lock {
  width: 36px;
  height: 36px;
  margin-top: 18px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
}
.modal-lock--active {
  background: var(--blue-light);
  border-color: var(--blue);
}
.modal-info-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.modal-distort-preview {
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-preview-area {
  background: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.modal-preview-area--dark {
  background: #1a1a1a;
}
.modal-distort-placeholder {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-faint);
}
.modal-distort-warning {
  padding: 8px 12px;
  background: rgba(239,68,68,.08);
  color: var(--red);
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
}
.tp-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.tp-modal-bg-toggle {
  padding: 3px 8px;
  font-size: 12px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  transition: all .12s;
}
.tp-modal-bg-toggle--dark {
  background: #333;
  color: #fff;
  border-color: #555;
}

/* ══════════════════════════════════════
   SHARE MODAL
   ══════════════════════════════════════ */
.tp-share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
}
.tp-share-modal {
  background: #fff;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.tp-share-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 14px;
}
.tp-share-modal__close {
  width: 24px;
  height: 24px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-share-modal__body {
  padding: 16px;
}
.tp-share-modal__body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.tp-share-modal__url-row {
  display: flex;
  gap: 6px;
}
.tp-share-modal__input {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--dark);
  background: var(--bg-gray);
}
.tp-share-modal__copy {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.tp-share-modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.tp-share-modal__btn {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--dark);
  transition: all .12s;
}
.tp-share-modal__btn:hover {
  background: var(--bg-gray);
}

/* ══════════════════════════════════════
   STANDALONE PAGE LAYOUT (Sidebar + Product)
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap .page-wrap {
  max-width: 1340px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 220px 1fr 420px;
  gap: 10px;
  align-items: start;
}

/* Sidebar */
.teraprint-konfigurator-wrap .sidebar {
  background: #fff;
  border: 1px solid var(--border);
  align-self: stretch;
  overflow-y: auto;
}
.teraprint-konfigurator-wrap .sidebar-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  background: var(--blue);
}
.teraprint-konfigurator-wrap .sidebar-nav {
  list-style: none;
}
.teraprint-konfigurator-wrap .sidebar-cat {
  border-bottom: 1px solid var(--border);
}
.teraprint-konfigurator-wrap .sidebar-cat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background .12s;
}
.teraprint-konfigurator-wrap .sidebar-cat__header:hover {
  background: var(--bg-gray);
}
.teraprint-konfigurator-wrap .sidebar-cat__arrow {
  font-size: 10px;
  color: var(--text-muted);
}
.teraprint-konfigurator-wrap .sidebar-product {
  padding: 8px 14px 8px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all .12s;
  border-left: 3px solid transparent;
}
.teraprint-konfigurator-wrap .sidebar-product:hover {
  background: var(--bg-gray);
}
.teraprint-konfigurator-wrap .sidebar-product--active {
  background: var(--blue-light);
  border-left-color: var(--blue);
  font-weight: 600;
}

/* Product Main */
.teraprint-konfigurator-wrap .product-main {
  padding: 0 10px;
}
.teraprint-konfigurator-wrap .breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.teraprint-konfigurator-wrap .bc-item--active {
  color: var(--dark);
  font-weight: 600;
}
.teraprint-konfigurator-wrap .gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.teraprint-konfigurator-wrap .gallery-placeholder {
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}
.teraprint-konfigurator-wrap .gallery-placeholder .icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.teraprint-konfigurator-wrap .pro-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--blue);
  color: #fff;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.teraprint-konfigurator-wrap .gallery-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.teraprint-konfigurator-wrap .gallery-thumb {
  flex: 1;
  aspect-ratio: 1;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-faint);
  cursor: pointer;
  transition: border-color .12s;
}
.teraprint-konfigurator-wrap .gallery-thumb--active,
.teraprint-konfigurator-wrap .gallery-thumb:hover {
  border-color: var(--blue);
}
.teraprint-konfigurator-wrap .product-title-area {
  margin-top: 12px;
}
.teraprint-konfigurator-wrap .product-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}
.teraprint-konfigurator-wrap .product-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* Konfigurator wrapper in standalone */
.teraprint-konfigurator-wrap .tp {
  background: #fff;
  border: 1px solid var(--border);
}
.teraprint-konfigurator-wrap .konf-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.teraprint-konfigurator-wrap .konf-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

/* Info bar (standalone) */
.teraprint-konfigurator-wrap .konf-info-bar {
  display: flex;
  gap: 6px;
  background: transparent;
  border: none;
}
.teraprint-konfigurator-wrap .info-badge {
  flex: 1;
  padding: 10px 8px;
  background: var(--bg-gray-light);
  text-align: center;
  font-size: 12px;
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
}
.teraprint-konfigurator-wrap .info-badge__icon {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}
.teraprint-konfigurator-wrap .info-badge__label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-faint);
}
.teraprint-konfigurator-wrap .info-badge__value {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

/* ══════════════════════════════════════
   EMBED MODE OVERRIDES
   ══════════════════════════════════════ */
.teraprint-embed-mode {
  margin-top: 20px;
}
.teraprint-embed-mode .tp {
  max-width: 100%;
  border: var(--tp-card-border, 1px solid #dde3ea);
  border-radius: var(--tp-card-radius, 6px);
  box-shadow: var(--tp-card-shadow, 0 1px 4px rgba(0,0,0,0.06));
  overflow: hidden;
}
.teraprint-embed-mode .sidebar,
.teraprint-embed-mode .product-main {
  display: none !important;
}
.teraprint-embed-mode .page-wrap {
  display: block;
  padding: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1100px) {
  .teraprint-konfigurator-wrap .page-wrap {
    grid-template-columns: 200px 1fr;
    gap: 8px;
  }
  .teraprint-konfigurator-wrap .product-main {
    display: none;
  }
}

@media (max-width: 768px) {
  .teraprint-konfigurator-wrap .page-wrap {
    display: block;
    padding: 0;
  }
  .teraprint-konfigurator-wrap .sidebar {
    display: none;
  }
}

@media (max-width: 560px) {
  .tp {
    border-left: none;
    border-right: none;
  }

  /* Pills wrap on mobile */
  .tp-pills {
    flex-wrap: wrap;
  }
  .tp-pill {
    min-width: calc(50% - 2px);
  }

  /* Tier buttons smaller */
  .tp-t-p {
    font-size: 12px;
  }
  .tp-t-r {
    display: none;
  }

  /* File cards wrap */
  .tp-fc {
    flex-wrap: wrap;
  }
  .tp-fc-right {
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
  }

  /* Total price smaller */
  .tp-total-pr {
    font-size: 24px;
  }
}

/* ══════════════════════════════════════
   PRINT
   ══════════════════════════════════════ */
@media print {
  .teraprint-konfigurator-wrap .sidebar,
  .teraprint-konfigurator-wrap .gallery-thumbs,
  .tp-upl,
  .tp-cta,
  .tp-trust {
    display: none !important;
  }
  .tp {
    border: none;
    box-shadow: none;
  }
}

/* ══════════════════════════════════════
   PRODUCT PAGE LAYOUT (restored from pre-v7)
   ══════════════════════════════════════ */
.tp-product-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 220px 1fr 480px;
  gap: 12px;
  align-items: start;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Reset box-sizing within our layout */
.tp-product-page *,
.tp-product-page *::before,
.tp-product-page *::after {
  box-sizing: border-box;
}

/* WooCommerce Breadcrumb inside TeraPrint product page */
.tp-product-page .woocommerce-breadcrumb,
.tp-layout-v25 .woocommerce-breadcrumb {
  font-size: 12px !important;
  color: #666 !important;
  padding: 6px 0;
  margin: 0;
}
.tp-product-page .woocommerce-breadcrumb a,
.tp-layout-v25 .woocommerce-breadcrumb a {
  color: #666 !important;
  text-decoration: none;
  font-size: 12px !important;
}
.tp-product-page .woocommerce-breadcrumb a:hover,
.tp-layout-v25 .woocommerce-breadcrumb a:hover {
  color: #337ab7 !important;
}

/* Sidebar aligns to top of row */
.tp-row .tp-block--sidebar {
  align-self: start !important;
}

/* ── COLUMN 2: Product Main ── */
.tp-product-main {
  min-width: 0;
}

.tp-product-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Gallery */
.tp-product-gallery {
  width: 100%;
  position: relative;
}

/* ── Gallery Slideshow ── */
.tp-gallery-slideshow {
  position: relative;
  width: 100%;
}

.tp-gallery-main {
  width: 100%;
  overflow: hidden;
  background: #f8f8f8;
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.tp-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.tp-gallery-main video {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Slideshow Arrows */
.tp-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--tp-dark, #2d2d2d);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.tp-slide-arrow:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.tp-slide-prev {
  left: 10px;
}

.tp-slide-next {
  right: 10px;
}

/* Slideshow Dots */
.tp-slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
}

.tp-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #ccc;
  cursor: pointer;
  transition: all 0.15s;
}

.tp-slide-dot.active {
  background: #337ab7;
  transform: scale(1.2);
}

.tp-slide-dot:hover {
  background: #999;
}

/* Product Info - inline under gallery */
.tp-product-info--inline {
  margin-top: 12px;
}

.tp-product-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--tp-dark, #2d2d2d);
  margin: 0 0 8px;
  line-height: 1.3;
}

.tp-product-short-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.tp-product-short-desc p {
  margin: 0 0 8px;
}

/* Tabs */
.tp-product-tabs {
  margin-top: 8px;
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  padding: 0 16px 16px;
  overflow: hidden;
}

.tp-product-tabs .woocommerce-tabs {
  padding: 0;
}

.tp-product-tabs .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 12px;
  list-style: none;
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--tp-gray-200, #e8e8e8);
}

.tp-product-tabs .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}

.tp-product-tabs .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--tp-gray-600, #6a6a6a);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tp-product-tabs .woocommerce-tabs ul.tabs li.active a {
  color: var(--tp-blue, #337ab7);
  border-bottom-color: var(--tp-blue, #337ab7);
}

.tp-product-tabs .woocommerce-tabs .panel {
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

/* ── Grid spacer for empty cells in row-based layout ── */
.tp-block-spacer {
  min-height: 0;
}

/* ── Product Content Card (Tabs in einer Card) ── */
.tp-product-content-card {
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
}

.tp-pcc-header {
  padding: 20px 20px 16px;
}

.tp-pcc-header .tp-product-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--tp-dark, #2d2d2d);
  margin: 0 0 8px;
  line-height: 1.3;
}

.tp-pcc-header .tp-product-short-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.tp-pcc-header .tp-product-short-desc p {
  margin: 0 0 6px;
}

.tp-pcc-tabs {
  padding: 12px 20px 20px;
}

.tp-pcc-tabs .tp-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--tp-gray-200, #e8e8e8);
  padding-top: 2px;
}

.tp-pcc-tabs .tp-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--tp-gray-600, #6a6a6a);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  font-family: inherit;
}

.tp-pcc-tabs .tp-tab-btn:hover {
  color: var(--tp-dark, #2d2d2d);
}

.tp-pcc-tabs .tp-tab-btn--active {
  color: var(--tp-blue, #337ab7);
  border-bottom-color: var(--tp-blue, #337ab7);
}

.tp-pcc-tabs .tp-tabs-content {
  padding-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.tp-pcc-tabs .tp-tab-panel {
  display: none;
}

.tp-pcc-tabs .tp-tab-panel--active {
  display: block;
}

/* ── Comparison Card (Vergleichstabelle auf Produktseite) ── */
.tp-compare-card {
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  overflow: hidden;
}

.tp-compare-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--tp-dark, #2d2d2d);
  padding: 16px 20px 0;
  margin: 0;
}

.tp-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tp-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 500px;
}

.tp-compare-table thead th {
  padding: 14px 12px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  color: var(--tp-dark, #2d2d2d);
  border-bottom: 2px solid #eee;
  white-space: nowrap;
  vertical-align: bottom;
}

.tp-compare-table .tp-compare-label-col {
  width: 120px;
  min-width: 100px;
}

.tp-compare-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f3f3f3;
  color: #444;
  vertical-align: top;
  line-height: 1.5;
}

.tp-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.tp-compare-label {
  font-weight: 600;
  color: var(--tp-blue, #337ab7);
  white-space: nowrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.tp-compare-current {
  background: #f0f6ff;
}

.tp-compare-highlight {
  font-weight: 600;
}

.tp-cmp-yes {
  color: #27ae60;
  font-weight: 700;
}

.tp-cmp-no {
  color: #c0392b;
  font-weight: 700;
}

.tp-compare-cta-row td {
  padding: 14px 12px;
  border-bottom: none;
}

.tp-compare-btn {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.tp-compare-btn:hover {
  opacity: 0.88;
  text-decoration: none;
}

.tp-compare-btn--orange {
  background: var(--orange, #f36f21);
  color: #fff;
}

.tp-compare-btn--blue {
  background: var(--tp-blue, #337ab7);
  color: #fff;
}

.tp-compare-btn--current {
  background: #e8e8e8;
  color: #888;
  cursor: default;
  font-size: 10px;
}

/* Responsive: comparison table scrollable on small screens */
@media (max-width: 768px) {
  .tp-compare-table {
    min-width: 400px;
  }
}

/* ── COLUMN 3: Configurator ── */
.tp-konfigurator-col {
  position: static; /* mitscrollend — kein sticky */
  min-width: 0;
  overflow: visible;
}

/* Block-basiert: Konfigurator + Sidebar (nur Desktop) */
@media (min-width: 769px) {
  .tp-block--configurator {
    position: static;
    align-self: start;
    overflow: visible;
  }
  .tp-block--sidebar {
    position: sticky;
    top: var(--tp-sticky-top, 100px);
    align-self: start;
    max-height: calc(100vh - var(--tp-sticky-top, 100px) - 10px);
    overflow-y: auto;
  }
}
.tp-block--gallery {
  align-self: start;
}

.tp-konfigurator-col .teraprint-konfigurator-wrap,
.tp-block--configurator .teraprint-konfigurator-wrap {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
}

.tp-konfigurator-col .teraprint-embed-mode,
.tp-block--configurator .teraprint-embed-mode {
  margin-top: 0;
}

.tp-konfigurator-col .tp,
.tp-block--configurator .tp {
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  background: var(--tp-card-bg);
  padding: 0;
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
}

/* Ensure embed-mode overrides don't strip styling in 3-column layout */
.tp-konfigurator-col .teraprint-embed-mode .tp,
.tp-block--configurator .teraprint-embed-mode .tp {
  border: var(--tp-card-border) !important;
  border-radius: var(--tp-card-radius) !important;
  box-shadow: var(--tp-card-shadow) !important;
  background: var(--tp-card-bg) !important;
  padding: 0 !important;
}

/* Konfigurator header: always white text on blue */
.tp-konfigurator-col .konf-header,
.tp-block--configurator .konf-header,
.tp-product-page .konf-header {
  background: var(--tp-bar-bg) !important;
  color: var(--tp-bar-color) !important;
  padding: var(--tp-bar-padding);
  line-height: var(--tp-bar-line-height);
  border-radius: var(--tp-card-radius) var(--tp-card-radius) 0 0;
}

.tp-konfigurator-col .konf-header h2,
.tp-block--configurator .konf-header h2,
.tp-product-page .konf-header h2,
.tp-konfigurator-col #konfTitle,
.tp-block--configurator #konfTitle,
.tp-product-page #konfTitle {
  color: var(--tp-bar-color) !important;
  font-size: var(--tp-bar-font-size);
  font-weight: var(--tp-bar-font-weight);
  text-transform: uppercase;
  letter-spacing: var(--tp-bar-letter-spacing);
  margin: 0;
}

/* Prevent inner elements from overflowing */
.tp-konfigurator-col .staffel-boxes {
  overflow-x: auto;
}

.tp-konfigurator-col .tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.tp-konfigurator-col .tp-tile-grid,
.tp-block--configurator .tp-tile-grid {
  gap: 6px;
}
.tp-konfigurator-col .tp-tile,
.tp-block--configurator .tp-tile {
  padding: 8px 6px;
  gap: 6px;
  min-height: 44px;
}
.tp-konfigurator-col .tp-sav-box,
.tp-block--configurator .tp-sav-box {
  margin: 6px 10px 0;
  padding: 8px 10px;
}
.tp-konfigurator-col .tp-sav-box__amount,
.tp-block--configurator .tp-sav-box__amount {
  font-size: 14px;
}
.tp-konfigurator-col .tp-t-p,
font-size: 14px;
}
.tp-konfigurator-col .tp-delivery-info,
font-size: 12px;
  gap: 10px;
  padding: 6px 10px;
}
.tp-konfigurator-col .tp-express,
.tp-block--configurator .tp-express {
  margin: 0 10px 6px;
  padding: 8px 12px;
}

/* When configurator is narrow (< 380px), fall back to 2 cols */
@container (max-width: 360px) {
  .tp-konfigurator-col .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tp-konfigurator-col .tile {
  padding: 8px 6px;
  gap: 6px;
  overflow: hidden;
  border-radius: 8px;
}

.tp-konfigurator-col .tile__name,
font-size: 14px;
  word-break: break-word;
}

.tp-konfigurator-col .staffel-boxes,
.tp-konfigurator-col .staffel-tiers {
  flex-wrap: nowrap;
  overflow-x: auto;
}

.tp-konfigurator-col .staffel-box,
.tp-konfigurator-col .staffel-tier {
  min-width: 0;
  padding: 6px 3px;
}

.tp-konfigurator-col .staffel-box__price,
font-size: 14px;
}

.tp-konfigurator-col .staffel-box__range,
font-size: 12px;
  white-space: nowrap;
}

.tp-konfigurator-col .staffel-box__name,
font-size: 12px;
  white-space: nowrap;
}

/* Info bar compact */
.tp-konfigurator-col .konf-info-bar {
  flex-wrap: wrap;
  padding: 0;
  gap: 6px;
  margin: 8px 10px;
  background: transparent;
  border: none;
}

.tp-konfigurator-col .info-badge,
.tp-konfigurator-col .konf-info-item {
  padding: 8px 6px;
  gap: 2px;
  border-radius: var(--tp-inner-radius);
  border: 1px solid var(--border-faint);
  background: var(--bg-gray-light);
}

.tp-konfigurator-col .info-badge__icon,
.tp-konfigurator-col .konf-info-icon {
  font-size: 18px;
}

.tp-konfigurator-col .info-badge__label,
font-size: 12px;
}

.tp-konfigurator-col .info-badge__value,
font-size: 12px;
}

.tp-konfigurator-col .cta-button {
  width: 100%;
  max-width: 100%;
}

.tp-konfigurator-col .price-total__value {
  word-break: break-word;
}

.tp-konfigurator-col .staffel-trust {
  flex-wrap: wrap;
}

.tp-konfigurator-col .price-delivery {
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TERAPRINT DESIGN SYSTEM — Zentrale Variablen
   Alle Cards, Header, Sidebar, Konfigurator etc. nutzen diese.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --tp-blue: #337ab7;
  --tp-blue-light: #edf4fb;
  --tp-orange: #f36f21;
  --tp-orange-dark: #e05e10;
  --tp-dark: #2d2d2d;
  --tp-text: #2d2d2d;

  /* Kadence-Theme Palette Override */
  --global-palette3: #2d2d2d;
  --global-palette4: #2d2d2d;
  --global-palette5: #6b7280;
  --tp-gray-50: #fafafa;
  --tp-gray-200: #e8e8e8;
  --tp-gray-400: #b0b0b0;
  --tp-gray-600: #6a6a6a;
  --tp-border: #e8e8e8;
  --tp-max-w: 1400px;

  /* Card Design System */
  --tp-card-radius: 6px;
  --tp-card-shadow: 0 1px 4px rgba(0,0,0,0.06);
  --tp-card-border: 1px solid #dde3ea;
  --tp-card-bg: #fff;

  /* Blue Header Bar (Sidebar, Konfigurator, etc.) */
  --tp-bar-padding: 10px 16px;
  --tp-bar-font-size: 14px;
  --tp-bar-font-weight: 700;
  --tp-bar-line-height: 1.3;
  --tp-bar-letter-spacing: 0.5px;
  --tp-bar-bg: var(--tp-blue);
  --tp-bar-color: #fff;
}

body {
  color: var(--tp-dark, #2d2d2d);
}

/* Container */
.tp-sidebar {
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  overflow: hidden;
  box-shadow: var(--tp-card-shadow);
}

/* Header "KATEGORIEN" — blauer Balken (uses design system bar vars) */
.tp-sidebar-header {
  padding: var(--tp-bar-padding);
  font-size: var(--tp-bar-font-size);
  font-weight: var(--tp-bar-font-weight);
  text-transform: uppercase;
  letter-spacing: var(--tp-bar-letter-spacing);
  line-height: var(--tp-bar-line-height);
  color: var(--tp-bar-color);
  background: var(--tp-bar-bg);
  border-radius: var(--tp-card-radius) var(--tp-card-radius) 0 0;
}

/* Nav list reset */
.tp-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-sidebar-cat {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Kategorie-Link (aufklappbar) */
.tp-sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tp-dark, #2d2d2d);
  text-decoration: none;
  border-bottom: 1px solid #eef0f3;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.tp-sidebar-cat-link:hover {
  background: #f7f8fa;
  color: var(--tp-blue, #337ab7);
}

/* Aktive Kategorie — blauer Text + orange Seitenlinie */
.tp-sidebar-cat-link.active {
  color: var(--tp-blue, #337ab7);
  font-weight: 600;
  border-left-color: var(--tp-orange, #f36f21);
  background: #f0f6fc;
}

/* Chevron (›) */
.tp-sidebar-chevron {
  font-size: 14px;
  font-weight: 600;
  color: #bbb;
  transition: transform 0.2s, color 0.2s;
}

.tp-sidebar-cat-link.active .tp-sidebar-chevron {
  color: var(--tp-orange, #f36f21);
  transform: rotate(90deg);
}

/* Produkt-Liste unter Kategorie */
.tp-sidebar-products {
  list-style: none;
  margin: 0;
  padding: 3px 0;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
}

/* Produkt-Links */
.tp-sidebar-product-link {
  display: block;
  padding: 5px 14px 5px 26px;
  font-size: 12px;
  color: #555;
  text-decoration: none;
  position: relative;
  transition: all 0.12s;
}

/* Dot-Separator */
.tp-sidebar-product-link::before {
  content: '\2022';
  position: absolute;
  left: 15px;
  color: #ccc;
  font-size: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.tp-sidebar-product-link:hover {
  color: var(--tp-blue, #337ab7);
  background: #f0f4f8;
}

/* Aktives Produkt — orangener Text */
.tp-sidebar-product-link.active {
  color: var(--tp-orange, #f36f21);
  font-weight: 600;
}

.tp-sidebar-product-link.active::before {
  color: var(--tp-orange, #f36f21);
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE: Hamburger Menu + Sidebar Drawer
   ═══════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.tp-sidebar-hamburger {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--tp-gray-200);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--tp-text);
  width: 100%;
  margin-bottom: 8px;
}

.tp-hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.tp-hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tp-text);
  transition: all 0.2s;
}

/* Overlay */
.tp-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.25s;
}

.tp-sidebar-overlay--active {
  display: block;
  opacity: 1;
}

/* Tablet: narrower columns */
@media (min-width: 1101px) and (max-width: 1400px) {
  .tp-product-page {
    grid-template-columns: 200px 1fr 420px;
    gap: 10px;
    padding: 10px 16px;
  }
}

/* Mobile breakpoint: single column + hamburger sidebar */
@media (max-width: 1100px) {
  .tp-product-page {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 8px 0;
    gap: 10px;
  }

  /* Sidebar: hidden by default, slides in from left */
  .tp-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 99999;
    overflow-y: auto;
    transition: left 0.3s ease;
    border: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .tp-sidebar.tp-sidebar--open {
    left: 0;
  }

  /* Show hamburger button */
  .tp-sidebar-hamburger {
    display: flex;
  }

  /* Konfigurator: full width */
  .tp-konfigurator-col {
    position: static;
    order: -1; /* Show configurator above product on mobile */
    overflow: visible;
  }

  .tp-product-main {
    order: 0;
  }
}


/* ═══════════════════════════════════════════════════════════════
   v2.3.0 — BLOCK-BASED LAYOUT SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* Layout wrapper (v2.3.0 block-based) */
.tp-layout-v23 {
  display: grid;
  gap: var(--tp-grid-gap, 16px);
  max-width: var(--tp-layout-max-width, 1400px);
  margin: 0 auto;
  padding: var(--tp-layout-padding, 16px 0);
  width: 100%;
  box-sizing: border-box;
}

/* Generic block wrapper */
.tp-block {
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

/* Block within a sticky container */
.tp-block[data-sticky="1"] {
  position: sticky;
  top: var(--tp-sticky-top, 100px);
  align-self: start;
}

/* Block visibility on mobile */
@media (max-width: 1100px) {
  .tp-block[data-mobile-visible="0"] {
    display: none !important;
  }

  /* v2.5.0 row-based: collapse rows to single column on mobile */
  .tp-layout-v25 .tp-row {
    grid-template-columns: 1fr !important;
  }

  .tp-layout-v25 .tp-block-spacer {
    display: none !important;
  }
}


/* ── Tech Data Table ───────────────────────────────────────── */

.tp-tech-data {
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  overflow: hidden;
}

.tp-tech-data__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-text, #1e1e1e);
  margin: 0;
  padding: 12px 16px 8px;
}

.tp-tech-data__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tp-tech-data__table th,
.tp-tech-data__table td {
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid var(--tp-gray-100, #f3f4f6);
}

.tp-tech-data__table th {
  font-weight: 600;
  color: var(--tp-text-light, #555);
  width: 40%;
  background: var(--tp-gray-50, #f9fafb);
  white-space: nowrap;
}

.tp-tech-data__table td {
  color: var(--tp-text, #1e1e1e);
}

.tp-tech-data__table tr:last-child th,
.tp-tech-data__table tr:last-child td {
  border-bottom: none;
}

.tp-tech-data__table tr:hover {
  background: var(--tp-gray-50, #f9fafb);
}

/* Category group header */
.tp-tech-data__table .tp-td-category {
  background: var(--tp-gray-100, #f3f4f6);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tp-gray-500, #666);
  padding: 6px 16px;
}

.tp-tech-data__table .tp-td-category td {
  background: var(--tp-gray-100, #f3f4f6);
  color: var(--tp-gray-500, #666);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Value badges / tags */
.tp-tech-data__value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tp-tech-data__value-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--tp-blue-light, #eff6ff);
  color: var(--tp-blue, #3858e9);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
}


/* ── Cross-Sell / Related Products ─────────────────────────── */

.tp-cross-sell {
  background: var(--tp-card-bg);
  border: var(--tp-card-border);
  border-radius: var(--tp-card-radius);
  box-shadow: var(--tp-card-shadow);
  padding: 16px;
}

.tp-cross-sell__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-text, #1e1e1e);
  margin: 0 0 12px;
}

.tp-cross-sell__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tp-cross-sell__item {
  display: flex;
  flex-direction: column;
  background: var(--tp-gray-50, #f9fafb);
  border: 1px solid var(--tp-gray-200, #e5e7eb);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

.tp-cross-sell__item:hover {
  border-color: var(--tp-orange, #f97316);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tp-cross-sell__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0f0f0;
}

.tp-cross-sell__img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tp-gray-100, #f3f4f6);
  color: var(--tp-gray-400, #9ca3af);
  font-size: 24px;
}

.tp-cross-sell__info {
  padding: 8px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tp-cross-sell__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--tp-text, #1e1e1e);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-cross-sell__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--tp-orange, #f97316);
  margin-top: auto;
}

.tp-cross-sell__empty {
  text-align: center;
  padding: 20px;
  color: var(--tp-gray-400, #9ca3af);
  font-style: italic;
  font-size: 14px;
}


/* ── Custom HTML/Text Block ────────────────────────────────── */

.tp-custom-html {
  background: #fff;
  border: 1px solid var(--tp-gray-200, #e5e7eb);
  border-radius: 0;
  padding: 16px;
  line-height: 1.6;
}

.tp-custom-html h1,
.tp-custom-html h2,
.tp-custom-html h3,
.tp-custom-html h4 {
  margin-top: 0;
  color: var(--tp-text, #1e1e1e);
}

.tp-custom-html h1 { font-size: 24px; }
.tp-custom-html h2 { font-size: 24px; }
.tp-custom-html h3 { font-size: 18px; }
.tp-custom-html h4 { font-size: 14px; }

.tp-custom-html p {
  margin: 0 0 12px;
}

.tp-custom-html p:last-child {
  margin-bottom: 0;
}

.tp-custom-html img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.tp-custom-html ul,
.tp-custom-html ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.tp-custom-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.tp-custom-html table th,
.tp-custom-html table td {
  padding: 6px 10px;
  border: 1px solid var(--tp-gray-200, #e5e7eb);
  font-size: 14px;
}

.tp-custom-html table th {
  background: var(--tp-gray-50, #f9fafb);
  font-weight: 600;
}


/* ── v2.3.0 Mobile: Auto-Stack ─────────────────────────────── */

@media (max-width: 1100px) {
  .tp-layout-v23 {
    grid-template-columns: 1fr !important;
    padding: 8px !important;
    gap: 10px !important;
  }

  .tp-layout-v23 .tp-block {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    order: var(--tp-mobile-order, 0);
  }

  .tp-layout-v23 .tp-block[data-sticky="1"] {
    position: static;
  }

  /* Cross-sell: 2 columns on mobile */
  .tp-cross-sell__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .tp-cross-sell__item {
    font-size: 12px;
  }

  .tp-cross-sell__name {
    font-size: 12px;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  .tp-cross-sell__grid {
    grid-template-columns: 1fr;
  }
}


/* ── Print Styles (shared) ─────────────────────────────────── */

@media print {
  .tp-layout-v23 {
    display: block !important;
    max-width: none;
  }

  .tp-block {
    page-break-inside: avoid;
    margin-bottom: 12px;
  }

  .tp-block[data-mobile-visible="0"] {
    display: none !important;
  }

  .tp-cross-sell,
  .tp-sidebar {
    display: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   v2.3.x — COMPACT FILE CARD + DISTORTION MODAL
   ═══════════════════════════════════════════════════════════════ */

/* Clickable thumbnail */
.teraprint-konfigurator-wrap .file-card__thumb--clickable {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
}
.teraprint-konfigurator-wrap .file-card__thumb--clickable:hover {
  border-color: var(--blue, #3858e9);
  transform: scale(1.05);
}

/* Inline dimensions row (B x H x Stueck) */
.teraprint-konfigurator-wrap .file-card__inline-dims {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 12px;
  flex-wrap: wrap;
}

.teraprint-konfigurator-wrap .fc-dim-label {
  font-size: 10px;
  color: var(--gray-400, #9ca3af);
  font-weight: 700;
  text-transform: uppercase;
}

.teraprint-konfigurator-wrap .fc-dim-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700, #374151);
  background: var(--gray-100, #f3f4f6);
  padding: 2px 6px;
  border-radius: 0;
  min-width: 32px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.teraprint-konfigurator-wrap .fc-dim-value:hover {
  border-color: var(--blue, #3858e9);
  background: #e8f0fe;
}

.teraprint-konfigurator-wrap .fc-dim-x {
  font-size: 10px;
  color: var(--gray-400, #9ca3af);
}

.teraprint-konfigurator-wrap .fc-dim-unit {
  font-size: 10px;
  color: var(--gray-400, #9ca3af);
}

.teraprint-konfigurator-wrap .fc-dim-sep {
  font-size: 10px;
  color: var(--gray-300, #d1d5db);
  margin: 0 2px;
}

/* Mini qty controls (inline) */
.teraprint-konfigurator-wrap .qty-btn--mini {
  width: 20px;
  height: 20px;
  font-size: 12px;
  padding: 0;
  border: 1px solid var(--gray-300, #d1d5db);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  transition: all 0.1s;
}
.teraprint-konfigurator-wrap .qty-btn--mini:hover {
  border-color: var(--blue, #3858e9);
  color: var(--blue, #3858e9);
}

.teraprint-konfigurator-wrap .qty-input--mini {
  width: auto; min-width: 40px; max-width: 80px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  border: 1px solid var(--gray-300, #d1d5db);
  border-radius: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
}

/* ── Distortion Preview Modal ─────────────────────── */

.teraprint-konfigurator-wrap .modal-content--resize {
  width: 540px;
  max-width: 95vw;
}

.teraprint-konfigurator-wrap .modal-distort-preview {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  min-height: 180px;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, border-width 0.2s;
}

.teraprint-konfigurator-wrap .modal-distort-preview img {
  max-width: 90%;
  max-height: 260px;
  transition: transform 0.2s ease;
}

.teraprint-konfigurator-wrap .modal-distort-placeholder {
  font-size: 48px;
  color: var(--gray-400, #9ca3af);
  font-weight: 700;
}

.teraprint-konfigurator-wrap .modal-distort-warning {
  background: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  border-radius: 0;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.teraprint-konfigurator-wrap .modal-info-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
}

.teraprint-konfigurator-wrap .modal-info-row span {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  background: #f8f9fa;
  color: #6c757d;
  text-align: center;
  border-radius: 0;
  border: 1px solid #e8e8e8;
}


/* ═══════════════════════════════════════════════════════════════
   v2.3.x — CUSTOM CONFIGURABLE TABS
   ═══════════════════════════════════════════════════════════════ */

.tp-custom-tabs .tp-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tp-custom-tabs .tp-tab-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #6a6a6a;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tp-custom-tabs .tp-tab-btn:hover {
  color: #337ab7;
}

.tp-custom-tabs .tp-tab-btn--active {
  color: #337ab7;
  border-bottom-color: #337ab7;
}

.tp-custom-tabs .tp-tab-panel {
  display: none;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
}

.tp-custom-tabs .tp-tab-panel--active {
  display: block;
}

/* Attribute table inside tabs */
.tp-attr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tp-attr-table th,
.tp-attr-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.tp-attr-table th {
  font-weight: 600;
  color: #555;
  width: 35%;
  background: #f9fafb;
}

/* ══════════════════════════════════════
   FILE SUMMARY BAR (compact upload summary)
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap .file-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-top: 6px;
  background: var(--blue-light);
  border: 1px solid var(--blue);
}
.teraprint-konfigurator-wrap .file-summary-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-dark);
}
.teraprint-konfigurator-wrap .file-summary-bar__sep {
  color: var(--gray-400);
}
.teraprint-konfigurator-wrap .file-summary-bar__btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}
.teraprint-konfigurator-wrap .file-summary-bar__btn:hover {
  background: var(--blue-dark);
}
/* ── Inline File-Cards (direkt unter Summary-Bar, kein Popup) ── */
.teraprint-konfigurator-wrap .file-cards-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.teraprint-konfigurator-wrap .file-cards-inline .file-card {
  border-radius: 0;
  font-family: Roboto, sans-serif;
}
.teraprint-konfigurator-wrap .file-cards-inline .file-card__name {
  color: var(--tp-dark, #2d2d2d);
  font-family: Roboto, sans-serif;
}
.teraprint-konfigurator-wrap .file-cards-inline .fc-dim-value {
  color: #337ab7;
}
.teraprint-konfigurator-wrap .file-cards-inline .qty-input--mini,
.teraprint-konfigurator-wrap .file-cards-inline .qty-btn--mini {
  border-radius: 0;
}

/* ══════════════════════════════════════
   FILE LIST POPUP
   ══════════════════════════════════════ */
.file-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.file-popup {
  background: #fff;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.file-popup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}
.file-popup__header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--tp-dark, #2d2d2d);
  margin: 0;
}
.file-popup__summary {
  font-size: 12px;
  color: #6a6a6a;
  margin-left: auto;
}
.file-popup__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  padding: 4px 8px;
  margin-left: 8px;
}
.file-popup__close:hover {
  color: var(--tp-dark, #2d2d2d);
}
.file-popup__body {
  padding: 12px 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ══════════════════════════════════════
   SUMMARY BOX
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap .summary-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  margin-top: 8px;
  display: none;
}
.teraprint-konfigurator-wrap .summary-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.teraprint-konfigurator-wrap .summary-header__icon { font-size: 14px; }
.teraprint-konfigurator-wrap .summary-header__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--dark);
}
.teraprint-konfigurator-wrap .summary-body {
  padding: 8px 14px;
}
.teraprint-konfigurator-wrap .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.teraprint-konfigurator-wrap .summary-item:last-child { border-bottom: none; }
.teraprint-konfigurator-wrap .summary-item__label {
  color: var(--gray-600);
  font-weight: 400;
  flex-shrink: 0;
  margin-right: 8px;
}
.teraprint-konfigurator-wrap .summary-item__value {
  font-weight: 500;
  color: var(--dark);
  text-align: right;
}
.teraprint-konfigurator-wrap .summary-item__price {
  font-size: 10px;
  color: var(--gray-500);
}
.teraprint-konfigurator-wrap .summary-footer {
  padding: 8px 14px;
  border-top: 2px solid var(--blue);
  background: var(--blue-light);
}
.teraprint-konfigurator-wrap .summary-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.teraprint-konfigurator-wrap .summary-price__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}
.teraprint-konfigurator-wrap .summary-price__value {
  font-size: 18px;
  font-weight: 900;
  color: var(--blue);
}
.teraprint-konfigurator-wrap .summary-brutto {
  font-size: 10px;
  color: var(--gray-500);
  text-align: right;
  margin-top: 2px;
}

/* Summary Action Buttons */
.teraprint-konfigurator-wrap .summary-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--gray-200);
}
.teraprint-konfigurator-wrap .summary-action-btn {
  flex: 1;
  padding: 7px 12px;
  border: 1.5px solid var(--gray-300);
  background: #fff;
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.teraprint-konfigurator-wrap .summary-action-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.teraprint-konfigurator-wrap .summary-action-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.teraprint-konfigurator-wrap .summary-action-btn--pdf:hover {
  border-color: #dc3545;
  color: #dc3545;
  background: #fff5f5;
}
.teraprint-konfigurator-wrap .summary-action-btn--share:hover {
  border-color: #25d366;
  color: #25d366;
  background: #f0fff4;
}

/* ══════════════════════════════════════
   SHARE MODAL
   ══════════════════════════════════════ */
.tp-share-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-share-modal {
  background: #fff;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  overflow: hidden;
}
.tp-share-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #337ab7;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.tp-share-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}
.tp-share-modal__body {
  padding: 16px;
}
.tp-share-modal__body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}
.tp-share-modal__url-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.tp-share-modal__input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  font-size: 12px;
  background: #f8f8f8;
  color: var(--tp-dark, #2d2d2d);
}
.tp-share-modal__copy {
  padding: 8px 14px;
  background: #337ab7;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tp-share-modal__copy:hover {
  background: #286090;
}
.tp-share-modal__actions {
  display: flex;
  gap: 8px;
}
.tp-share-modal__btn {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
}
.tp-share-modal__btn--wa {
  background: #25d366;
}
.tp-share-modal__btn--wa:hover {
  background: #1eb851;
}
.tp-share-modal__btn--mail {
  background: #555;
}
.tp-share-modal__btn--mail:hover {
  background: #333;
}

/* ══════════════════════════════════════
   MOCKUP PREVIEW
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap .mockup-preview {
  margin-top: 10px;
  text-align: center;
}
.teraprint-konfigurator-wrap .mockup-preview__wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  background: #f8f8f8;
}
.teraprint-konfigurator-wrap .mockup-preview__bg {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.teraprint-konfigurator-wrap .mockup-preview__motif {
  position: absolute;
  object-fit: contain;
  opacity: 0.88;
  pointer-events: none;
}
.teraprint-konfigurator-wrap .mockup-preview__motif--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(51,122,183,.12);
  border: 1.5px dashed var(--blue);
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}
.teraprint-konfigurator-wrap .mockup-preview__label {
  font-size: 10px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ══════════════════════════════════════
   UPLOAD THUMBNAILS STRIP
   ══════════════════════════════════════ */
.teraprint-konfigurator-wrap .upload-thumbs-strip {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  overflow-x: auto;
  flex-wrap: wrap;
}
.teraprint-konfigurator-wrap .upload-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px solid var(--gray-200);
  background: var(--gray-100);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.12s;
}
.teraprint-konfigurator-wrap .upload-thumb:hover {
  border-color: var(--blue);
}
.teraprint-konfigurator-wrap .upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.teraprint-konfigurator-wrap .upload-thumb__ext {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
}
.teraprint-konfigurator-wrap .upload-thumb__qty {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 4px;
}
.teraprint-konfigurator-wrap .upload-thumb__del {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(220,53,69,.85);
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  padding: 1px 3px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.12s;
}
.teraprint-konfigurator-wrap .upload-thumb:hover .upload-thumb__del {
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE: Breadcrumb & Layout Fixes (v3.1.1)
   ═══════════════════════════════════════════════════════════════ */

/* ── Breadcrumb Bar (above product grid) ── */
.tp-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.tp-breadcrumb .container-1400 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 14px;
    color: #999;
}

.tp-breadcrumb a {
    color: #337ab7;
    text-decoration: none;
    transition: color .2s ease;
}

.tp-breadcrumb a:hover {
    color: #2a6399;
    text-decoration: underline;
}

.tp-bc-sep {
    margin: 0 8px;
    color: #ccc;
}

.tp-breadcrumb strong {
    color: #666;
    font-weight: 500;
}

/* ── Product Page Grid: Sidebar alignment ── */
/* Grid-Layouts: alle Spalten starten oben */
.tp-product-page.tp-layout-v23,
.tp-product-page.tp-layout-v25 {
    align-items: start !important;
}

.tp-product-page .tp-row {
    align-items: start !important;
}

/* Sidebar-Block: immer oben in der Grid-Zelle */
.tp-product-page .tp-block--sidebar,
.tp-row .tp-block--sidebar {
    align-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sidebar sticky — nur Desktop */
@media (min-width: 769px) {
  .tp-product-page .tp-block--sidebar {
    position: sticky;
    top: var(--tp-sticky-top, 100px);
  }
}

/* Konfigurator — kein sticky, Seite scrollt */
@media (min-width: 769px) {
  .tp-product-page .tp-block--configurator {
    position: static !important;
    align-self: start !important;
    overflow: visible !important;
  }
}

/* Hide WooCommerce duplicate breadcrumb inside the grid */
.tp-product-page .woocommerce-breadcrumb {
    display: none !important;
}

/* ── Responsive: Breadcrumb ── */
@media (max-width: 768px) {
    .tp-breadcrumb .container-1400 {
        padding: 10px 16px;
        font-size: 12px;
    }

    .tp-bc-sep {
        margin: 0 5px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   Phase 4: Konfigurator Tile-Hoehe + Upload-Info (v3.1.2)
   ═══════════════════════════════════════════════════════════════ */

/* ── 4a: Smaller tiles ── */
.teraprint-konfigurator-wrap .tile {
    min-height: 56px !important;
    padding: 6px 6px 5px !important;
    gap: 2px !important;
}

.teraprint-konfigurator-wrap .tile__icon {
    font-size: 18px !important;
}

.teraprint-konfigurator-wrap .tile__name {
    font-size: 10px !important;
}

.teraprint-konfigurator-wrap .tile__price {
    font-size: 10px !important;
}

/* ── 4b: Upload Info Button ── */
.teraprint-konfigurator-wrap .upload-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #337ab7;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: help;
    margin-left: 8px;
    flex-shrink: 0;
    vertical-align: middle;
    line-height: 20px;
    text-align: center;
    transition: background .2s;
}

.teraprint-konfigurator-wrap .upload-info-btn:hover {
    background: #2a6499;
}

/* Upload Info Popover */
.teraprint-konfigurator-wrap .upload-info-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 6px;
    background: #fff;
    border: 2px solid #337ab7;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    font-size: 14px;
    color: var(--tp-dark, #2d2d2d);
    line-height: 1.6;
}

.teraprint-konfigurator-wrap .upload-info-popover.show {
    display: block;
}

.teraprint-konfigurator-wrap .upload-info-popover__title {
    font-size: 14px;
    font-weight: 700;
    color: #337ab7;
    margin-bottom: 10px;
}

.teraprint-konfigurator-wrap .upload-info-popover__row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.teraprint-konfigurator-wrap .upload-info-popover__row:last-child {
    border-bottom: none;
}

.teraprint-konfigurator-wrap .upload-info-popover__label {
    font-weight: 500;
    color: #666;
}

.teraprint-konfigurator-wrap .upload-info-popover__value {
    font-weight: 600;
    color: var(--tp-dark, #2d2d2d);
}

.teraprint-konfigurator-wrap .upload-info-popover__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.teraprint-konfigurator-wrap .upload-info-popover__close:hover {
    color: #337ab7;
}

/* ═══════════════════════════════════════
   Runde 8: B1/B3 Upload-Async + Validation
   ═══════════════════════════════════════ */

/* B1: Spinner-Animation fuer pending Uploads */
@keyframes tp-spin {
  to { transform: rotate(360deg); }
}
.tp-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border, #ddd);
  border-top-color: var(--blue, #3b82f6);
  border-radius: 0;
  animation: tp-spin 0.8s linear infinite;
  margin: 8px auto;
}

/* B1: Pending file card */
.file-card--pending {
  opacity: 0.7;
}
.file-card--pending .file-card__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary, #f5f5f5);
}

/* B3: Disabled CTA button */
.cta-button--disabled,
.cta-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--text-muted, #888) !important;
}

/* B14: Price footer placeholder transition */
#priceFooter {
  transition: opacity 0.3s ease;
}
/* ═══════════════════════════════════════
   Runde 9: B4 Dependency-Visualisierung
   ═══════════════════════════════════════ */

/* B4: Disabled option group — B14: opacity+pointerEvents via CSS instead of inline styles */
.tp-option-disabled {
  opacity: 0.5;
  position: relative;
}
/* Block clicks on tiles within disabled section, but allow hover/reading */
.tp-option-disabled .tile {
  pointer-events: none;
}
.tp-option-disabled input {
  pointer-events: none;
}

/* B4: Dependency reason text */
.tp-dep-reason {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: var(--orange, #f36f21);
  font-weight: 500;
  font-style: italic;
}
.tp-dep-reason::before {
  content: '\26A0\FE0E ';
}
/* ═══════════════════════════════════════
   Paket 1: Konfigurator Aufwertung
   ═══════════════════════════════════════ */

/* P1: Tile click-tooltip */
.teraprint-konfigurator-wrap .tile__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark, #2d2d2d);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  padding: 8px 12px;
  max-width: 250px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  line-height: 1.4;
}
.teraprint-konfigurator-wrap .tile__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark, #2d2d2d);
}

/* P1: Tile hover enhancement */
.teraprint-konfigurator-wrap .tile:hover {
  border-color: var(--orange);
}

/* P1: Info-bar empty state hidden */
.teraprint-konfigurator-wrap .konf-info-bar:empty {
  display: none;
}

/* P1: Mobile responsive info-bar */
@media (max-width: 500px) {
  .teraprint-konfigurator-wrap .konf-info-bar {
    flex-direction: column;
    gap: 6px;
  }
  .teraprint-konfigurator-wrap .info-badge {
    border-right: none;
    border-bottom: none;
    padding: 8px;
  }
  .teraprint-konfigurator-wrap .info-badge:last-child {
    border-bottom: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PAKET 6: Mobile Responsive Enhancements
   ═══════════════════════════════════════════════════════════════ */

/* Staffel-Boxen: Labels und Preise kleiner auf Mobile */
@media (max-width: 500px) {
    .teraprint-konfigurator-wrap .staffel-box__name { display: none; }
    .teraprint-konfigurator-wrap .staffel-box__price { font-size: 12px; }
    .teraprint-konfigurator-wrap .staffel-box { padding: 8px 3px; }
    .teraprint-konfigurator-wrap .staffel-incentive { font-size: 12px; }
}

/* Tile Grid: 1 Spalte auf sehr schmalen Screens */
@media (max-width: 400px) {
    .teraprint-konfigurator-wrap .tile-grid { grid-template-columns: 1fr !important; }
}

/* CTA Button sticky auf Mobile */
@media (max-width: 768px) {
    .teraprint-konfigurator-wrap .cta-area {
        position: sticky;
        bottom: 0;
        z-index: 100;
        background: #fff;
        padding: 12px;
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    }
}

/* Preismatrix horizontal scrollbar */
.teraprint-konfigurator-wrap .price-matrix-wrapper,
.teraprint-konfigurator-wrap .staffel-boxes {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* ── BUG 7: Staffel Mengen-Anzeige + Hint ── */
.teraprint-konfigurator-wrap .staffel-current-qty {
  font-size: 14px; font-weight: 600; color: var(--dark);
  margin-bottom: 6px; padding: 0 2px;
}
.teraprint-konfigurator-wrap .staffel-current-qty__value {
  color: var(--orange); font-weight: 700;
}
.teraprint-konfigurator-wrap .staffel-hint {
  border-left: 3px solid #f36f21; background: #fef5ee;
  padding: 8px 12px; margin-top: 8px; font-size: 12px;
  color: #5a3e1b; border-radius: 0 4px 4px 0;
}
.teraprint-konfigurator-wrap .staffel-hint--best {
  border-left-color: #27ae60; background: #f0faf0; color: #1a5928;
}
/* ── BUG 5: Modal Dark/Light Toggle (Toolbar über dem Bild) ── */
.tp-preview-toolbar {
  display: flex; justify-content: flex-end; align-items: center;
  padding: 4px 0; margin-bottom: 4px; gap: 6px;
}
.tp-preview-toolbar__label {
  font-size: 12px; color: #888;
}
.tp-modal-bg-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 0;
  border: 1px solid var(--gray-300); background: #fff;
  cursor: pointer; font-size: 12px; color: #555;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.tp-modal-bg-toggle:hover { border-color: var(--orange); color: var(--orange); }
.tp-modal-bg-toggle--dark { background: #2d2d2d; color: #eee; border-color: #555; }

.modal-preview-area { background: #f0f0f0; border-radius: 0; padding: 12px; transition: background 0.2s ease; text-align: center; }
.modal-preview-area--dark { background: #2d2d2d; }

/* Thumbnail preview in file card: Hintergrund #f0f0f0 statt #fff */
.teraprint-konfigurator-wrap .file-card__preview,
.teraprint-konfigurator-wrap .upload-thumb {
  background: #f0f0f0;
}

/* ═══════════════════════════════════════════════════════════ */
/* Phase 3: Pipeline Staffelleiste + Quantity + Hints         */
/* ═══════════════════════════════════════════════════════════ */

/* Mengenanzeige ueber der Staffelleiste */
.tp-quantity-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}
.tp-quantity-label {
    color: #6b7280;
}
.tp-quantity-value {
    font-weight: 600;
    color: var(--tp-dark, #2d2d2d);
}

/* Mindestpreis-Hinweis */
.price-min-notice {
    font-size: 12px;
    color: #92400e;
    background: #fef3c7;
    padding: 4px 8px;
    margin: 4px 0;
    font-family: 'Roboto', sans-serif;
}

/* Dark/Light Toggle fuer Preview */
.tp-bg-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0;
}
.tp-bg-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #337ab7;
}

/* Stueckzahl-Input breiter (BUG 4) */
.tp-file-card input[type="number"],
.qty-input--mini {
    min-width: 48px;
    max-width: 80px;
    width: auto;
    text-align: center;
}

/* SideCart Mengen-Input breiter */
.tp-sc-qty input[type="number"] {
    min-width: 48px;
    max-width: 80px;
    width: auto;
    text-align: center;
}

/* Responsive: Staffelpreise auf kleinen Bildschirmen */
@media (max-width: 500px) {
    .tp-tier-seg__price {
        font-size: 12px;
    }
    .tp-tier-seg--current .tp-tier-seg__price {
        font-size: 14px;
    }
    .tp-tier-seg__name {
        font-size: 10px;
    }
    .tp-tiers-incentive {
        font-size: 10px;
    }
}

/* FIX: STK-Label in gleiche Zeile wie B/H/Qty + kleineres Input */
.teraprint-konfigurator-wrap .file-card__inline-dims {
    flex-wrap: nowrap;
}
.teraprint-konfigurator-wrap .qty-input {
    width: 32px;
    padding: 2px 0;
    text-align: center;
}

/* FIX: Native Browser-Spinner im Qty-Input ausblenden */
.teraprint-konfigurator-wrap .qty-input::-webkit-outer-spin-button,
.teraprint-konfigurator-wrap .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.teraprint-konfigurator-wrap .qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* FIX: Sidebar buendig mit Gallery/Konfigurator
   Ursache: .woocommerce-notices-wrapper im Grid erzeugt unsichtbaren Slot + row-gap */
.tp-product-page > .woocommerce-notices-wrapper:empty {
    display: none;
}
.tp-product-page > .woocommerce-notices-wrapper:not(:empty) {
    display: block;
    grid-column: 1 / -1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}


/* ═══════════════════════════════════════════════════════════════════
   MOBILE OPTIMIERUNG — konsolidiert
   Breakpoints:  768px (Smartphone)
                 480px (kleines Smartphone)
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Modals & Popups: nie breiter als Viewport ── */
#teraprintNotification          { max-width: min(400px, 90vw); }
.modal-content                  { max-width: min(520px, 95vw); }
.tp-share-modal                 { width: min(420px, 92vw); }
.file-popup                     { max-width: min(520px, 95vw); }

@media (max-width: 768px) {

  /* ── 2. Produktseite: sauberer 1-Spalten-Aufbau ── */
  .tp-product-page,
  .tp-layout-v23 {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    padding: 0 12px !important;
    gap: 12px !important;
  }

  .tp-product-page .tp-block {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  /* Reihenfolge Mobile: Konfigurator > Galerie > Content > Vergleich */
  .tp-block--configurator { order: -2 !important; position: static !important; max-height: none !important; overflow: visible !important; }
  .tp-block--gallery      { order: -1 !important; }
  .tp-block--product_content { order: 1 !important; }
  .tp-block--comparison   { order: 2 !important; }
  .tp-block--sidebar      { display: none !important; }

  /* ── 3. Konfigurator: volle Breite, kein Card-Rand ── */
  .tp-block--configurator .tp,
  .tp-block--configurator .teraprint-konfigurator-wrap {
    max-width: 100% !important;
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  /* ── 4. Galerie: volle Breite ── */
  .tp-product-gallery {
    margin: 0 -12px;
  }
  .tp-gallery-main img {
    width: 100%;
    height: auto;
  }
  .tp-slide-dots {
    justify-content: center;
    padding: 8px 0;
  }

  /* ── 5. Touch-Targets: mindestens 44px Hoehe ── */
  .tp-pill,
  .tp-tile,
  .tp-tier-step,
  .teraprint-konfigurator-wrap .tile,
  .teraprint-konfigurator-wrap .staffel-box {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── 6. Product-Content-Card ── */
  .tp-product-content-card {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }
  .tp-pcc-header h2 {
    font-size: 24px;
  }
  .tp-pcc-header p {
    font-size: 14px;
  }
  .tp-pcc-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tp-tab-btn {
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }

  /* ── 7. Vergleichstabelle: horizontal scrollbar ── */
  .tp-compare-card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    overflow: visible;
  }
  .tp-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tp-compare-table {
    min-width: 400px;
  }

  /* ── 8. Font-Groessen: lesbarer auf Mobile ── */
  .tp-pcc-content h2,
  .tp-pcc-content h3 {
    font-size: 18px;
  }
  .tp-pcc-content h4 {
    font-size: 18px;
  }
  .tp-pcc-content {
    font-size: 14px;
    line-height: 1.6;
    padding: 16px 14px;
  }

  /* ── 9. Upload-Zone: kompakter ── */
  .tp-upl-zone {
    padding: 16px 12px;
  }
  .tp-upl-zone .tp-upl-text {
    font-size: 14px;
  }
  .tp-upl-zone .tp-upl-ic {
    width: 36px;
    height: 36px;
  }

  /* ── 10. CTA sticky am unteren Rand ── */
  .teraprint-konfigurator-wrap .cta-area {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  }

  /* ── 11. Cross-Sell: 2 Spalten ── */
  .tp-cross-sell__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* ── 12. Tech-Data Tabelle scrollbar ── */
  .tp-tech-data {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tp-tech-data table {
    min-width: 360px;
  }
}

/* ── Kleines Smartphone (< 480px) ── */
@media (max-width: 480px) {

  /* Titel kleiner */
  .tp-pcc-header h2 {
    font-size: 18px;
  }

  /* Tabs: 2-zeilig statt Scroll */
  .tp-pcc-tabs {
    flex-wrap: wrap;
  }
  .tp-tab-btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Tier-Steps: kompakter */
  .tp-tier-step {
    padding: 8px 4px;
  }
  .tp-tier-price {
    font-size: 14px;
  }
  .tp-tier-unit {
    font-size: 10px;
  }
  .tp-tier-name {
    font-size: 10px;
  }

  /* Cross-Sell: 1 Spalte */
  .tp-cross-sell__grid {
    grid-template-columns: 1fr !important;
  }

  /* Info-Bar: untereinander */
  .teraprint-konfigurator-wrap .konf-info-bar,
  .tp-konfigurator-col .konf-info-bar {
    flex-direction: column;
    gap: 4px;
  }

  /* Upload-Zone noch kompakter */
  .tp-upl-zone {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Vergleichstabelle enger */
  .tp-compare-table {
    min-width: 320px;
  }
  .tp-compare-label-col {
    width: 80px;
    min-width: 70px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════
   B14: CLS Prevention
   Reserved heights prevent layout shift.
   Opacity transitions instead of display:none.
   ═══════════════════════════════════════ */

/* --- Container min-heights: reserve space before JS renders --- */
#tpHead:empty                { min-height: 42px; }
#tpOptionsContainer:empty    { min-height: 0; }
#tpUploadContainer:empty     { min-height: 80px; }
#tpPriceContainer:empty      { min-height: 160px; }
#tpCtaContainer:empty        { min-height: 52px; }
#tpTiersContainer:empty      { min-height: 0; } /* varies per product */

/* --- Incentive bar: always in layout flow, opacity-based --- */
.tp-tiers-incentive {
  min-height: 36px;
  transition: opacity 0.2s ease;
}
.tp-tiers-incentive[data-state="hidden"] {
  opacity: 0;
  pointer-events: none;
}

/* Generic hide: collapses height smoothly, no layout shift on reveal */
.tp-section--hidden {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
  transition: max-height 0.2s ease, opacity 0.15s ease;
}

/* Dependency hide: same collapse but specifically for dep engine */
.tp-dep--hidden {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
}

/* Dependency reason hidden state */
.tp-dep-reason--hidden {
  display: none;
}

/* Sidebar category body collapse */
.sidebar-cat__body--collapsed {
  display: none;
}

/* ══════════════════════════════════════
   Nesting: Spacing-Slider
   ══════════════════════════════════════ */
.tp-spacing-control {
  padding: 10px 14px;
  border: 1px solid #e2e5ea;
  border-top: none;
  background: #fff;
}
/* B14: max-height collapse instead of display:none */
.tp-spacing-control[data-state="hidden"] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.15s ease;
}
.tp-spacing-control__label {
  display: flex;
  justify-content: space-between;
  font: 600 11px/1 'Roboto', sans-serif;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tp-spacing-control__value {
  font-weight: 700;
  color: #337ab7;
}
.tp-spacing-control__slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e5ea;
  outline: none;
  border-radius: 0;
}
.tp-spacing-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: #337ab7;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  border-radius: 0;
}
.tp-spacing-control__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #337ab7;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  border-radius: 0;
}
.tp-spacing-control__range {
  display: flex;
  justify-content: space-between;
  font: 400 10px 'Roboto', sans-serif;
  color: #9ca3af;
  margin-top: 4px;
}

/* ══════════════════════════════════════
   Nesting: Vorschau
   ══════════════════════════════════════ */
.tp-nesting-preview {
  border: 1px solid #e2e5ea;
  margin: 0;
  background: #fff;
  border-top: none;
}
/* B14: max-height collapse instead of display:none */
.tp-nesting-preview[data-state="empty"] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-width: 0 !important;
  pointer-events: none;
  transition: max-height 0.25s ease, opacity 0.15s ease;
}
.tp-nesting-preview__header {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e5ea;
  background: #f8f9fb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tp-nesting-preview__title {
  font: 600 11px/1 'Roboto', sans-serif;
  color: #6b7280;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tp-nesting-preview__info {
  font: 400 12px 'Roboto', sans-serif;
  color: #9ca3af;
}
.tp-nesting-preview__canvas-wrapper {
  max-height: 400px;
  overflow-y: auto;
  background: #f3f4f6;
}
.tp-nesting-preview__canvas {
  width: 100%;
  display: block;
  cursor: pointer;
}
.tp-nesting-preview__canvas:hover {
  opacity: 0.95;
}
.tp-nesting-preview__footer {
  padding: 8px 14px;
  border-top: 1px solid #e2e5ea;
  font: 400 12px 'Roboto', sans-serif;
  color: #2d2d2d;
  background: #f8f9fb;
}
.tp-nesting-preview__footer strong {
  font-weight: 600;
  color: #337ab7;
}

/* Nesting: Zoom-Modal */
.tp-nesting-zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tp-nesting-zoom-modal {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 320px;
}

/* ══════════════════════════════════════════════════
   C3: Display-Modi (Wizard / Accordion / Tabs / Offcanvas)
   ══════════════════════════════════════════════════ */

/* ── C3: Wizard-Modus ── */

.tp-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 8px;
  gap: 0;
}
.tp-wizard-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8ecf0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.tp-wizard-dot--active {
  background: #337ab7;
  color: #fff;
}
.tp-wizard-dot--done {
  background: #16a34a;
  color: #fff;
}
.tp-wizard-dot:hover {
  opacity: 0.85;
}
.tp-wizard-line {
  flex: 1;
  height: 2px;
  background: #e8ecf0;
  min-width: 20px;
  max-width: 60px;
  transition: background 0.2s;
}
.tp-wizard-line--done {
  background: #16a34a;
}
.tp-wizard-counter {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  padding: 4px 0 12px;
  letter-spacing: 0.5px;
}
.tp-opts--wizard {
  border-bottom: none;
}
.tp-wizard-nav {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.tp-wizard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #337ab7;
  background: #fff;
  color: #337ab7;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tp-wizard-btn:hover {
  background: #edf4fb;
}
.tp-wizard-btn--next {
  background: #337ab7;
  color: #fff;
}
.tp-wizard-btn--next:hover {
  background: #2a6a9e;
}

/* ── C3: Accordion-Modus ── */

.tp-acc-item {
  border-bottom: 1px solid #eef0f3;
}
.tp-acc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.tp-acc-header:hover {
  background: #f8f9fa;
}
.tp-acc-header .tp-step-num {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: #e8ecf0;
  color: #6b7280;
  flex-shrink: 0;
}
.tp-acc-item--done .tp-acc-header .tp-step-num {
  background: #16a34a;
  color: #fff;
}
.tp-acc-item--open .tp-acc-header .tp-step-num {
  background: #337ab7;
  color: #fff;
}
.tp-acc-header .tp-sec-t {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #2d2d2d;
}
.tp-acc-summary {
  font-size: 14px;
  color: #337ab7;
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tp-acc-chevron {
  font-size: 12px;
  color: #9ca3af;
  transition: transform 0.2s;
}
.tp-acc-item--open .tp-acc-chevron {
  color: #337ab7;
}
.tp-acc-body {
  padding: 0 16px 16px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s;
}

/* ── C3: Tabs-Modus ── */

.tp-tabs-bar {
  display: flex;
  border-bottom: 2px solid #eef0f3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 8px;
}
.tp-tabs-bar::-webkit-scrollbar {
  display: none;
}
.tp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.tp-tab-btn:hover {
  color: #337ab7;
}
.tp-tab-btn--active {
  color: #337ab7;
  border-bottom-color: #337ab7;
}
.tp-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  border-radius: 50%;
}
.tp-tab-badge--done {
  background: #16a34a;
  color: #fff;
}
.tp-tab-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-opts--tab {
  border-bottom: none;
  padding-top: 8px;
}

/* ── C3: Offcanvas-Modus ── */

.tp-offcanvas-trigger {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #337ab7;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.tp-offcanvas-trigger:hover {
  background: #2a6a9e;
}
.tp-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100010;
  pointer-events: none;
  visibility: hidden;
}
.tp-offcanvas--open {
  pointer-events: auto;
  visibility: visible;
}
.tp-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}
.tp-offcanvas--open .tp-offcanvas__backdrop {
  opacity: 1;
}
.tp-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.tp-offcanvas--open .tp-offcanvas__panel {
  transform: translateX(0);
}
.tp-offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
}
.tp-offcanvas__title {
  font-size: 18px;
  font-weight: 700;
  color: #2d2d2d;
}
.tp-offcanvas__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
}
.tp-offcanvas__close:hover {
  color: #2d2d2d;
}
.tp-offcanvas__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* ── C3: Mobile Override (< 768px alle Modi → Wizard) ── */

@media (max-width: 767px) {
  .tp-offcanvas__panel {
    width: 100vw;
  }
  .tp-tabs-bar {
    padding: 0 4px;
  }
  .tp-tab-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .tp-tab-label {
    max-width: 80px;
  }
  .tp-wizard-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .tp-wizard-line {
    min-width: 12px;
  }
}

/* ══════════════════════════════════════
   KONFIGURATOR FONT-SIZE OVERRIDE
   Minimum 12px inside .tp configurator
   10px → 12px, 12px → 14px
   ══════════════════════════════════════ */
.tp-block--configurator .tp [style*="font-size:10px"],
.tp-konfigurator-col .tp [style*="font-size:10px"] {
  font-size: 12px !important;
}

/* Badge/Tag/Meta: 10px → 12px */
.tp .info-badge__label,
.tp .tp-badge,
.tp .tp-sec-tag,
.tp .tp-pill-n,
.tp .tp-pill-pr,
.tp .tp-tile-badge,
.tp .tp-tile-info,
.tp .tp-tile-price,
.tp .tp-sec-info-btn,
.tp .tp-tier-seg__name,
.tp .tp-ps-tax,
.tp .tp-ps-min,
.tp .tp-ps-delivery,
.tp .tp-meta-bar,
.tp .tp-step-num,
.tp .tp-upl-txt small,
.tp .tp-fc-thumb-ph,
.tp .tp-fc-meta,
.tp .tp-fc-warning,
.tp .tp-fc-dpi,
.tp .tp-fc-price,
.tp .tp-cross-sell__price,
.tp .tp-express__badge,
.tp .tp-trust span {
  font-size: 12px !important;
}

/* Secondary text: 12px → 14px */
.tp .info-badge__value,
.tp .tp-sec-t,
.tp .tp-tile-n,
.tp .tp-tile-tooltip,
.tp .tp-sec-info-tip,
.tp .tp-text-char-count,
.tp .tp-tiers-incentive,
.tp .tp-ps-label,
.tp .tp-ps-value,
.tp .tp-tier-min-hint,
.tp .tp-express__body strong,
.tp .tp-upl-progress,
.tp .tp-fc-name,
.tp .tp-stk-b,
.tp .tp-upl-zone,
.tp .tp-upl-txt,
.tp .tp-fc-dims,
.tp .tp-spacing-control__label,
.tp .tp-nesting-preview__title {
  font-size: 14px !important;
}