/* Tropho Configurator 0.3 — full-screen app layout (Figma: Konfigurator / Desktop 3).
   Scoped to .tc-app so the theme is untouched. Tokens follow the TROPHO design system (dark). */
.tc-app{
  --tc-bg:#090909; --tc-fg:#fff; --tc-fg-2:#a2a19d; --tc-muted:#666; --tc-line:#e8e6e0;
  --tc-field:rgba(0,0,0,.07); --tc-sel-bg:#fff; --tc-sel-fg:#090909; --tc-accent:#E85628;
  --tc-panel-w:396px; --tc-footer-h:83px; --tc-menu-h:80px; /* site header above the configurator */
  /* preview materials (draft colours) */
  --tc-frame:#1A1A1A; --tc-border:#111; --tc-base:#1B1B1B; --tc-terrain:#3A3A3A; --tc-track:#E85628;
  --tc-plate:#141414; --tc-plate-ink:#fff;
  box-sizing:border-box; display:flex; width:100%;
  height:calc(100vh - var(--tc-menu-h) - var(--wp-admin--admin-bar--height, 0px));
  height:calc(100dvh - var(--tc-menu-h) - var(--wp-admin--admin-bar--height, 0px));
  margin:0; background:var(--tc-bg); color:var(--tc-fg); overflow:hidden;
  font:400 12px/1.33 "IBM Plex Mono",ui-monospace,Menlo,monospace; -webkit-font-smoothing:antialiased;
}
.tc-app *,.tc-app *::before,.tc-app *::after{box-sizing:border-box}
.tc-app :focus{outline:none}
.tc-app :focus-visible{outline:1px solid var(--tc-fg);outline-offset:2px} /* keyboard only, no colour */
.tc-app [hidden]{display:none !important}
.tc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- stage (preview) ---------- */
.tc-stage{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;background:var(--tc-bg);overflow:hidden}
.tc-3d{position:absolute;inset:0}
.tc-3d canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.tc-3d canvas.is-drag{cursor:grabbing}
.tc-3d-status{position:absolute;left:16px;top:16px;right:16px;font-size:11px;letter-spacing:.045em;text-transform:uppercase;color:var(--tc-fg)}
.tc-reset{position:absolute;left:0;bottom:0;z-index:2}
/* zoom / reset controls: mobile only, top-right of the preview, stacked */
.tc-zoom{display:none;position:absolute;top:12px;right:12px;z-index:3;flex-direction:column;gap:8px}
.tc-app .tc-zoom-btn{display:grid;place-items:center;width:40px;height:40px;margin:0;padding:0;border:1px solid var(--tc-line);border-radius:0;background:var(--tc-bg);color:var(--tc-fg);cursor:pointer;-webkit-tap-highlight-color:transparent}
.tc-app .tc-zoom-btn:focus:not(:hover){background:var(--tc-bg);color:var(--tc-fg)}
.tc-app .tc-zoom-btn:active{background:var(--tc-fg);color:var(--tc-bg)}
.tc-zoom-btn svg{width:20px;height:20px;fill:currentColor}
.tc-attrib{position:absolute;right:16px;bottom:12px;margin:0;font-size:10px;letter-spacing:.02em;text-transform:uppercase;color:var(--tc-muted)}

/* ---------- 2D fallback preview ---------- */
.tc-preview{position:relative;width:min(60%,62vh);aspect-ratio:1/1;container-type:inline-size}
.tc-preview[data-ratio="portrait"]{aspect-ratio:2/3;width:min(45%,48vh)}
.tc-preview[data-ratio="landscape"]{aspect-ratio:3/2;width:min(70%,80vh)}
.tc-frame{width:100%;height:100%;background:var(--tc-frame);padding:6%}
.tc-border{width:100%;height:100%;background:var(--tc-border);padding:2%}
.tc-base{position:relative;width:100%;height:100%;background:var(--tc-base);overflow:hidden}
.tc-model{position:absolute;left:21.5%;top:21.5%;width:57%;height:57%;background:var(--tc-terrain)}
.tc-model svg{position:absolute;inset:8%;width:84%;height:84%}
.tc-model polyline{fill:none;stroke:var(--tc-track);stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.tc-model-hint{position:absolute;inset:0;display:grid;place-items:center;font-size:2cqw;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.7)}
.tc-plate{position:absolute;display:block;text-align:center;line-height:5.9cqw;background:var(--tc-plate);color:var(--tc-plate-ink);font:700 1.9cqw/5.9cqw "Google Sans Code",ui-monospace,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 1.2cqw}
.tc-plate--top{left:21.5%;width:57%;top:11%;height:7%}
.tc-plate--bottom{left:21.5%;width:57%;top:82%;height:7%}
.tc-plate--pr{left:31.5%;width:37%;top:91%;height:6%;line-height:5cqw}
.tc-plate--side{top:21.5%;height:57%;width:7%;writing-mode:vertical-rl;padding:1.2cqw 0}
.tc-plate--left{left:11%;transform:rotate(180deg)}
.tc-plate--right{left:82%}

/* ---------- panel ---------- */
.tc-panel{flex:0 0 var(--tc-panel-w);width:var(--tc-panel-w);height:100%;display:flex;flex-direction:column;border-left:2px solid var(--tc-line);background:var(--tc-bg)}
.tc-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding:24px;display:flex;flex-direction:column;gap:16px;scrollbar-width:thin;scrollbar-color:#cdcdcd #f5f5f5}
.tc-scroll::-webkit-scrollbar{width:14px}
.tc-scroll::-webkit-scrollbar-track{background:#f5f5f5;border-left:1px solid rgba(0,0,0,.12)}
.tc-scroll::-webkit-scrollbar-thumb{background:#cdcdcd;border-radius:5px;border:4px solid #f5f5f5}
.tc-sec{display:flex;flex-direction:column;gap:8px}
.tc-row{padding:4px 0;border-bottom:1px solid var(--tc-line);font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase}
/* desktop: sections are expansion panels — the label row toggles them, chevron on the right */
.tc-row--tog{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;user-select:none}
.tc-chev{flex:none;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square;transform:rotate(180deg);transition:transform .15s}
.tc-sec.is-collapsed .tc-chev{transform:none}
@media (min-width:901px){.tc-sec.is-collapsed > :not(.tc-row){display:none !important}}
.tc-row--tog:hover .tc-chev{color:var(--tc-fg-2)}
@media (max-width:900px){
  .tc-app .tc-row--tog .tc-chev{display:none !important}   /* mobile uses tabs; the theme otherwise shows the svg */
  .tc-row--tog{cursor:default}
}
.tc-help{margin:0;font-size:11px;line-height:1.4;color:var(--tc-fg-2)}
.tc-tabs{display:none}
.tc-up-m{display:none}
.tc-hint{position:absolute;left:10px;right:10px;bottom:12px;margin:0;text-align:center;font:500 10px/1.4 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;color:var(--tc-fg-2);pointer-events:none}
.tc-help.is-ok{color:var(--tc-fg)}
.tc-help.is-err{color:#ff8a7a}
.tc-help b{color:var(--tc-fg);font-weight:500}

/* toggle sets */
.tc-toggle{display:flex;border:1px solid var(--tc-line)}
.tc-toggle input{position:absolute;opacity:0;pointer-events:none}
.tc-toggle label{flex:1 1 0;min-width:0;height:36px;display:flex;align-items:center;justify-content:center;padding:0 12px;border-right:1px solid var(--tc-line);background:var(--tc-bg);color:var(--tc-fg);font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;cursor:pointer;user-select:none;transition:background .12s,color .12s}
.tc-toggle label:last-of-type{border-right:0}
.tc-toggle input:checked + label{background:var(--tc-sel-bg);color:var(--tc-sel-fg)}
.tc-toggle input:focus-visible + label{outline:1px solid var(--tc-fg);outline-offset:-4px}
.tc-toggle label:hover{background:#1d1d1d}
.tc-toggle input:checked + label:hover{background:var(--tc-sel-bg)}
.tc-toggle--shapes label{height:72px;flex-direction:column;gap:8px}
/* sport: icon + name on desktop, a 1:1 icon square on mobile */
.tc-toggle--sport label{flex:1 1 auto;gap:6px;padding:0 8px}
.tc-toggle--metric{margin-top:-2px}
.tc-sport-ico{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.tc-sport-ico .f{fill:currentColor;stroke:none}
.tc-sport-txt{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:900px){
  .tc-toggle--sport{align-self:flex-start}
  .tc-toggle--sport label{flex:0 0 auto;width:36px;padding:0}
  .tc-toggle--sport .tc-sport-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}
.tc-size{font:500 10px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.tc-toggle input:disabled + label{opacity:.35;cursor:not-allowed}
.tc-toggle input:disabled + label:hover{background:var(--tc-bg)}
.tc-shape{display:block;background:#d9d9d9}
.tc-shape--square{width:25px;height:25px}
.tc-shape--portrait{width:20px;height:30px}
.tc-shape--landscape{width:30px;height:20px}

/* fields */
.tc-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tc-cols--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tc-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}
.tc-flabel{display:flex;align-items:center;gap:8px;font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;color:var(--tc-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc-flabel{height:14px;overflow:visible}
.tc-info{display:inline-flex;align-items:center;width:18px;height:14px;color:var(--tc-fg);cursor:help;flex:none;overflow:visible}
/* checkbox label with an info icon: icon centred on the text and the box */
.tc-check > span:has(> .tc-info){display:inline-flex;align-items:center;gap:6px}
.tc-check .tc-info{height:18px}
/* tooltip of the info icons (JS shows it after 0.5 s) */
.tc-tooltip{position:fixed;z-index:100001;max-width:260px;padding:8px 10px;background:var(--tc-fg);color:var(--tc-bg);font:400 11px/1.4 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:0;text-transform:none;white-space:normal;pointer-events:none}
.tc-input{display:block;width:100%;height:36px;margin:0;padding:9px 12px 8px 16px;border:1px solid var(--tc-line);border-radius:0;background:var(--tc-field);color:var(--tc-fg);font:400 12px/1.33 "IBM Plex Mono",ui-monospace,monospace;box-shadow:none}
.tc-input::placeholder{color:var(--tc-muted)}
.tc-input:focus{outline:none;border-color:var(--tc-fg);box-shadow:inset 0 0 0 1px var(--tc-fg)}
.tc-input::placeholder{color:var(--tc-fg-2);opacity:1}
/* once the field has a value, its format hint moves next to the label */
.tc-ph{display:none;color:var(--tc-fg-2);text-transform:none;font-weight:400;letter-spacing:0}
.tc-field:has(.tc-input:not(:placeholder-shown)) .tc-ph{display:inline}
.tc-input:disabled{opacity:.45;cursor:not-allowed}
.tc-select{position:relative;display:block}
.tc-select select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer}
.tc-select select option{background:#090909;color:#fff}
.tc-caret{position:absolute;right:12px;top:6px;color:var(--tc-fg);pointer-events:none}
.tc-select select:disabled + .tc-caret{opacity:.45}
.tc-select select:invalid{color:var(--tc-fg-2)} /* "Wybierz…" placeholder */
.tc-select select.is-missing{border-color:#ff8a7a;box-shadow:inset 0 0 0 1px #ff8a7a}
.tc-design-reset{justify-content:center;width:100%;margin-top:4px}
.tc-check.is-disabled{opacity:.45;cursor:not-allowed}
.tc-check.is-disabled em{font-style:normal;text-transform:uppercase;letter-spacing:.045em}

/* terrain scale slider */
.tc-scale{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.tc-scale .tc-flabel{display:flex;justify-content:space-between;align-items:baseline}
.tc-scale-val{color:var(--tc-fg);font-weight:500}
.tc-range{--f:0;-webkit-appearance:none;appearance:none;width:100%;height:16px;margin:0;cursor:pointer;
  /* horizontal line drawn on the input itself: filled (white) up to the thumb, grey after it */
  background:linear-gradient(var(--tc-fg),var(--tc-fg)) 0 50%/calc(8px + (100% - 16px) * var(--f)) 2px no-repeat,linear-gradient(#5a5a5a,#5a5a5a) 0 50%/100% 2px no-repeat}
.tc-range:focus{outline:none}
.tc-range::-webkit-slider-runnable-track{height:2px;background:transparent}
.tc-range::-moz-range-track{height:2px;background:transparent}
.tc-range::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-7px;border:2px solid var(--tc-fg);border-radius:0;background:var(--tc-bg)}
.tc-range::-moz-range-thumb{width:12px;height:12px;border:2px solid var(--tc-fg);border-radius:0;background:var(--tc-bg)}
.tc-range:focus-visible::-webkit-slider-thumb{background:var(--tc-fg)}
.tc-range:focus-visible::-moz-range-thumb{background:var(--tc-fg)}
.tc-scale-ticks{position:relative;display:flex;justify-content:space-between;padding:0 7px;margin-top:-2px}
.tc-scale-ticks i{width:2px;height:6px;background:var(--tc-fg-2)}
.tc-scale-ticks i:first-child,.tc-scale-ticks i:last-child{height:9px;background:var(--tc-fg)}
.tc-scale-labels{display:grid;grid-template-columns:1fr 1fr 1fr;font:500 10px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;color:var(--tc-fg-2)}
.tc-scale-labels span:nth-child(2){text-align:center}
.tc-scale-labels span:last-child{text-align:right}
.tc-alert{margin:4px 0 0;padding:8px 12px;border:1px solid var(--tc-accent);border-left-width:3px;font-size:11px;line-height:1.4;color:var(--tc-fg)}
.tc-alert[hidden]{display:none}
/* route fragment: profile with two handles, km fields and suggested fragments */
.tc-seg{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.tc-seg-body{display:flex;flex-direction:column;gap:10px}
.tc-seg-prof{position:relative;height:72px;border:1px solid #2a2a2a}
.tc-seg-prof svg{position:absolute;inset:0;width:100%;height:100%}
.tc-seg-area{fill:#1d1d1d}
.tc-seg-line{fill:none;stroke:var(--tc-fg-2);stroke-width:1;vector-effect:non-scaling-stroke}
.tc-seg-sel{fill:rgba(232,86,40,.22);stroke:var(--tc-accent);stroke-width:1;vector-effect:non-scaling-stroke}
.tc-seg-r{position:absolute;left:-8px;right:-8px;bottom:-8px;width:calc(100% + 16px);height:16px;margin:0;-webkit-appearance:none;appearance:none;background:transparent;pointer-events:none}
.tc-seg-r:focus{outline:none}
.tc-seg-r::-webkit-slider-runnable-track{height:2px;background:transparent}
.tc-seg-r::-moz-range-track{height:2px;background:transparent}
.tc-seg-r::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:16px;height:16px;margin-top:-7px;border:2px solid var(--tc-fg);border-radius:0;background:var(--tc-bg);cursor:ew-resize}
.tc-seg-r::-moz-range-thumb{pointer-events:auto;width:12px;height:12px;border:2px solid var(--tc-fg);border-radius:0;background:var(--tc-bg);cursor:ew-resize}
.tc-seg-r:focus-visible::-webkit-slider-thumb{background:var(--tc-fg)}
.tc-seg-r:focus-visible::-moz-range-thumb{background:var(--tc-fg)}
.tc-seg-sug{display:flex;gap:8px;flex-wrap:wrap}
.tc-app .tc-seg-btn{flex:1 1 0;justify-content:center;padding:9px 10px;font-size:11px}
.tc-app .tc-seg-btn[aria-pressed="true"],.tc-app .tc-seg-btn[aria-pressed="true"]:focus{background:var(--tc-fg);color:var(--tc-bg)}
.tc-app .tc-seg-btn:disabled{opacity:.35;cursor:not-allowed}
.tc-app .tc-seg-btn:disabled:hover{background:transparent;color:var(--tc-fg)}
@media (max-width:900px){
  .tc-seg-prof{height:56px;margin-bottom:8px}
  .tc-seg-r{height:32px;bottom:-16px}
  .tc-seg-r::-webkit-slider-thumb{box-shadow:0 0 0 12px transparent}
}

/* fixed units (right-aligned inside the field) */
.tc-unit{position:relative;display:block}
.tc-unit .tc-input{padding-right:40px}
.tc-unit--wide .tc-input{padding-right:64px}
.tc-unit-sfx{position:absolute;right:12px;top:50%;transform:translateY(-50%);font:400 12px/1 "IBM Plex Mono",ui-monospace,monospace;color:var(--tc-fg-2);pointer-events:none}

/* checkbox */
.tc-check{position:relative;display:flex;align-items:center;gap:4px;min-height:40px;margin:0;cursor:pointer;font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase}
.tc-check input{position:absolute;opacity:0;width:40px;height:40px;margin:0;left:0;top:0;cursor:pointer}
.tc-box{flex:none;width:40px;height:40px;display:grid;place-items:center}
.tc-box::before{content:"";width:18px;height:18px;border:2px solid var(--tc-line);border-radius:2.3px;box-sizing:border-box}
.tc-check input:checked + .tc-box::before{background:var(--tc-sel-bg);box-shadow:inset 0 0 0 3px var(--tc-bg)}
.tc-check input:focus-visible + .tc-box::before{outline:1px solid var(--tc-fg);outline-offset:2px}
.tc-check em{font-style:normal;color:var(--tc-fg-2);margin-left:6px}

/* file */
.tc-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tc-upload{justify-content:center;width:100%}
.tc-upload-row{display:flex;gap:8px;align-items:stretch}
.tc-upload-row .tc-upload{flex:1 1 auto;width:auto;min-width:0}
.tc-upload-row .tc-icon-btn{height:auto;min-height:42px}
/* small tooltip (left of the button, so it is never clipped by the panel) */
.tc-tip{position:relative}
.tc-tip::after{content:attr(data-tip);position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);padding:6px 8px;background:var(--tc-fg);color:var(--tc-bg);font:500 10px/1.2 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .12s}
.tc-tip:hover::after,.tc-tip:focus-visible::after{opacity:1}
@media (hover:none){.tc-tip::after{display:none}} /* touch: no sticky tooltip after a tap */

/* CTA */
.tc-cta{display:inline-flex;align-items:center;gap:8px;margin:0;padding:12px 20px;border:1px solid var(--tc-line);border-radius:0;background:transparent;color:var(--tc-fg);font:500 12px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;cursor:pointer;text-decoration:none;white-space:nowrap;transition:background .12s,color .12s}
.tc-cta:hover{background:var(--tc-fg);color:var(--tc-bg)}
/* the theme (Hello Elementor reset.css) paints focused buttons #c36 red; a focused button keeps its normal look */
.tc-app .tc-cta:focus:not(:hover){background:transparent;color:var(--tc-fg)}

/* footer with price */
/* stuck to the bottom edge of the configurator (Figma: Cena (fixed)), not to the page */
.tc-footer{position:sticky;bottom:0;z-index:5;flex:none;display:flex;align-items:center;gap:10px;padding:12px 24px;border-top:1px solid var(--tc-line);background:var(--tc-bg)}
.tc-price{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:4px}
/* square icon button (save project) next to add-to-cart */
.tc-app .tc-icon-btn{flex:none;display:grid;place-items:center;width:42px;height:42px;margin:0;padding:0;border:1px solid var(--tc-line);border-radius:0;background:transparent;color:var(--tc-fg);cursor:pointer;transition:background .12s,color .12s}
.tc-app .tc-icon-btn:hover{background:var(--tc-fg);color:var(--tc-bg)}
.tc-app .tc-icon-btn:focus:not(:hover){background:transparent;color:var(--tc-fg)}
.tc-app .tc-icon-btn[aria-busy="true"]{opacity:.5;cursor:progress}
.tc-icon-btn svg{width:20px;height:20px;fill:currentColor}
.tc-save-link{font-size:12px}
.tc-save-link[hidden],#tc-save-dialog [hidden]{display:none}
.tc-price-val{display:flex;align-items:baseline;gap:4px;font-size:12px}
.tc-price-val strong{font:500 36px/1.12 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.005em;font-variant-numeric:tabular-nums}

/* empty-fields dialog */
.tc-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--tc-line);border-radius:0;background:var(--tc-bg);color:var(--tc-fg);font:400 12px/1.33 "IBM Plex Mono",ui-monospace,monospace}
.tc-dialog::backdrop{background:rgba(9,9,9,.72)}
.tc-dialog-body{display:flex;flex-direction:column;gap:12px;padding:24px}
.tc-dialog-text{margin:0;font-size:12px;line-height:1.45}
.tc-dialog-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.tc-dialog-list li{font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase;padding:6px 0;border-bottom:1px solid #2a2a2a}
.tc-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px;border-top:1px solid var(--tc-line)}
.tc-cta--primary{background:var(--tc-fg);color:var(--tc-bg)}
.tc-cta--primary:hover{background:transparent;color:var(--tc-fg)}
.tc-app .tc-cta--primary:focus:not(:hover){background:var(--tc-fg);color:var(--tc-bg)}

/* WooCommerce notices inside the dark panel */
.tc-notices:empty{display:none}
.tc-notices .woocommerce-error,.tc-notices .woocommerce-message,.tc-notices .woocommerce-info{margin:0;padding:10px 12px;list-style:none;background:transparent;color:var(--tc-fg);border:1px solid #ff8a7a;font-size:12px}
.tc-notices .woocommerce-error::before,.tc-notices .woocommerce-message::before,.tc-notices .woocommerce-info::before{display:none}

/* ---------- small screens: preview on top, panel below, price bar sticky ---------- */
@media (max-width:900px){
  /* Mobile (Figma: Konfigurator / mobile): full screen, nothing scrolls except the editing panel.
     Preview on top, then section tabs, one section at a time (200 px), price bar. */
  html.tc-locked,html.tc-locked body{overflow:hidden;overscroll-behavior:none}
  .tc-app{--tc-safe-b:env(safe-area-inset-bottom,0px);--tc-gui-h:304px;position:relative;flex-direction:column;height:100vh;height:var(--tc-vh,100dvh)}
  .tc-stage{flex:1 1 auto;height:auto;min-height:0}
  .tc-panel{flex:none;width:100%;height:auto;border-left:0;border-top:1px solid var(--tc-line)}
  .tc-tabs{display:flex;justify-content:space-between;align-items:center;height:54px;padding:0 10px;border-bottom:1px solid var(--tc-line)}
  .tc-app .tc-tab{display:grid;place-items:center;width:42px;height:36px;margin:0;padding:0;border:1px solid var(--tc-line);border-radius:0;background:var(--tc-bg);color:var(--tc-fg);cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tc-app .tc-tab[aria-pressed="true"],.tc-app .tc-tab[aria-pressed="true"]:focus{background:var(--tc-fg);color:var(--tc-bg)}
  .tc-app .tc-tab[aria-pressed="false"]:focus{background:var(--tc-bg);color:var(--tc-fg)}
  .tc-tab svg{width:24px;height:24px;fill:currentColor}
  .tc-tab-txt{font:700 11px/1 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.02em}
  .tc-scroll{flex:none;height:200px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 10px;gap:12px}
  .tc-app[data-tab] .tc-sec{display:none}
  .tc-app[data-tab="trasa"] .tc-sec[data-tab="trasa"],.tc-app[data-tab="typ"] .tc-sec[data-tab="typ"],.tc-app[data-tab="proporcje"] .tc-sec[data-tab="proporcje"],.tc-app[data-tab="dane"] .tc-sec[data-tab="dane"],.tc-app[data-tab="design"] .tc-sec[data-tab="design"]{display:flex}
  .tc-scroll .tc-row{padding:0 0 4px;border-bottom:0}
  .tc-app .tc-cta{padding-top:10px;padding-bottom:10px}
  .tc-app .tc-icon-btn{width:42px;height:36px}
  .tc-upload-row .tc-icon-btn{min-height:36px}
  .tc-upload{overflow:hidden}
  .tc-up-d{display:none}
  .tc-up-m{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #tc-gpx-info:not(.is-err){display:none}
  /* bigger invisible touch target around the small slider handle */
  .tc-range{height:32px;margin:-8px 0}
  .tc-range::-webkit-slider-thumb{box-shadow:0 0 0 14px transparent}
  /* the 30 mm alert floats at the bottom of the preview, the panel has no room for it */
  .tc-alert{position:absolute;left:10px;right:10px;bottom:calc(var(--tc-gui-h) + var(--tc-safe-b) + 10px);z-index:4;margin:0;background:var(--tc-bg)}
  .tc-footer{position:static;flex:none;height:auto;padding:7px 12px calc(7px + var(--tc-safe-b));gap:10px}
  .tc-price{flex-direction:row;align-items:baseline;gap:12px}
  .tc-price-val strong{font-size:28px}
  .tc-attrib,.tc-reset,.tc-zoom{display:none}
  .tc-hint{bottom:12px}
  /* typing: preview collapses, the panel takes the space above the keyboard */
  .tc-app.tc-kb .tc-stage{flex:0 0 0;height:0}
  .tc-app.tc-kb .tc-panel{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;border-top:0}
  .tc-app.tc-kb .tc-scroll{flex:1 1 auto;height:auto;min-height:0}
  .tc-app.tc-kb .tc-footer,.tc-app.tc-kb .tc-alert{display:none}
}
/* Mobile, configurator page only: no site footer below the app and a black page, so nothing shows
   through Safari's translucent bottom bar (iOS 26). 100dvh already ends above that bar — no extra margin. */
@media (max-width:900px){
  form.tc-app ~ .elementor,form.tc-app ~ footer{display:none !important}
  html:has(form.tc-app),body:has(form.tc-app){background:#090909}
}
/* iPhone/iPad Safari zooms into any field with text smaller than 16px when it gets focus.
   On iOS only, fields use 16px text (everywhere else they stay at 12px). */
@supports (-webkit-touch-callout:none){
  .tc-app .tc-input{font-size:16px;height:40px;padding-top:8px;padding-bottom:8px}
}
/* intro loader: black screen with a 3 s progress bar (pure CSS, so it also goes away without JS) */
.tc-loader{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;background:var(--tc-bg);color:var(--tc-fg);animation:tc-loader-out .4s ease 3s forwards}
.tc-loader-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;opacity:0;transition:opacity .4s ease}
.tc-loader-img.is-on{opacity:1}
/* photo loader: the 3:2 photo covers the screen; text + bar sit under the cutting mat (board bottom at 73.24% of photo height, grid 41.46% of its width, centre +0.34%) */
.tc-loader:has(.tc-loader-img){background:#151318}
.tc-loader:has(.tc-loader-img) .tc-loader-box{position:absolute;left:50%;top:min(calc(50% + max(23.24%, 15.49vw) + 24px), calc(100% - 96px));width:min(max(41.46vw, 62.19vh), calc(100vw - 48px));transform:translateX(calc(-50% + max(.34vw, .51vh)))}
.tc-loader-box{display:flex;flex-direction:column;gap:12px;width:min(320px,calc(100vw - 48px))}
.tc-loader-text{margin:0;font:500 11px/1.3 "IBM Plex Mono",ui-monospace,monospace;letter-spacing:.045em;text-transform:uppercase}
.tc-loader-bar{height:2px;background:#2a2a2a;overflow:hidden}
.tc-loader-bar span{display:block;height:100%;background:var(--tc-fg);transform:scaleX(0);transform-origin:left;animation:tc-loader-fill 3s linear forwards}
.tc-loader-pct{margin:0;align-self:flex-end;font:400 11px/1 "IBM Plex Mono",ui-monospace,monospace;color:var(--tc-fg-2);font-variant-numeric:tabular-nums}
@keyframes tc-loader-fill{to{transform:scaleX(1)}}
@keyframes tc-loader-out{to{opacity:0;visibility:hidden;pointer-events:none}}

@media (prefers-reduced-motion:reduce){.tc-app *{transition:none !important}}
