/* TiskFlow CPO design pilot 0.1.3 – only on explicitly whitelisted product. */
body.tfcpo-product-skin {--tfcpo-blue:#0875e9;--tfcpo-dark:#102b52;--tfcpo-muted:#617897;--tfcpo-border:#d9e5f3;--tfcpo-pale:#f6faff;}
body.tfcpo-product-skin .summary.entry-summary > .price,
body.tfcpo-product-skin .summary.entry-summary > p.price{
  color:var(--tfcpo-dark);padding:12px 17px;border-radius:12px;
  border:1px solid #d9e5f3;background:#f7fbff;line-height:1.45;margin-bottom:18px;
}
body.tfcpo-product-skin .summary.entry-summary > .price .amount,
body.tfcpo-product-skin .summary.entry-summary > p.price .amount{color:#102b52;font-weight:750}
/* Header is additive; native fields remain exactly where Uni CPO rendered them. */
form.cart.tfcpo-skin .tfcpo-skin-heading{
  display:flex;align-items:center;gap:12px;padding:18px 19px;margin:0 0 13px;
  background:#f1f7ff;border:1px solid #d4e6f8;border-radius:14px;
  box-sizing:border-box;clear:both
}
form.cart.tfcpo-skin .tfcpo-heading-icon{width:45px;height:45px;display:flex;align-items:center;justify-content:center;
  color:#0869c9;background:#e4f0ff;border-radius:12px;flex:none}
form.cart.tfcpo-skin .tfcpo-heading-copy{display:grid;gap:3px;min-width:0}
form.cart.tfcpo-skin .tfcpo-heading-copy strong{font-size:19px;color:#102b52;font-weight:760;line-height:1.3}
form.cart.tfcpo-skin .tfcpo-heading-copy small{font-size:12.5px;line-height:1.45;color:#5d7696}
form.cart.tfcpo-skin .tfcpo-field{
  box-sizing:border-box;border:1px solid var(--tfcpo-border)!important;
  background:#fff!important;border-radius:12px!important;padding:15px 17px!important;
  margin-bottom:12px!important;box-shadow:0 2px 7px rgba(29,70,110,.035);min-width:0;
  transition:border-color .16s ease,box-shadow .16s ease
}
form.cart.tfcpo-skin .tfcpo-field:focus-within{border-color:#91bbef!important;box-shadow:0 0 0 3px rgba(8,117,233,.07)}
form.cart.tfcpo-skin .tfcpo-field > label,
form.cart.tfcpo-skin .tfcpo-field .uni-cpo-option-label,
form.cart.tfcpo-skin .tfcpo-field [class*="uni-cpo-option-title"]{
  color:#183e70!important;font-weight:720!important;font-size:14px!important;line-height:1.45
}
/* Restyle the ORIGINAL CPO inputs, without replacing any price-calculating widget. */
form.cart.tfcpo-skin .tfcpo-field select,
form.cart.tfcpo-skin .tfcpo-field input[type="number"],
form.cart.tfcpo-skin .tfcpo-field input[type="text"],
form.cart.tfcpo-skin .tfcpo-field input[type="tel"]{
  box-sizing:border-box;max-width:100%;min-height:43px;border:1px solid #cbdbee!important;
  border-radius:8px!important;background-color:#fff!important;color:#132c50!important;
  padding:9px 12px!important;box-shadow:none!important;font-weight:570;font-size:15px
}
form.cart.tfcpo-skin .tfcpo-field select:focus,
form.cart.tfcpo-skin .tfcpo-field input[type="number"]:focus,
form.cart.tfcpo-skin .tfcpo-field input[type="text"]:focus{
  outline:2px solid rgba(8,117,233,.26)!important;outline-offset:1px;border-color:#65a5ef!important
}
/* Existing radio and checkbox controls: design only, no rewritten values. */
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input[type="radio"]),
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input[type="checkbox"]){
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:70px;
  min-height:40px;box-sizing:border-box;border:1px solid #ccdced;border-radius:8px;
  padding:8px 14px;margin:5px 8px 0 0;background:#fff;color:#36516f;
  cursor:pointer;transition:background .12s,border-color .12s;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input:checked){
  border-color:#0875e9;background:#e9f4ff;color:#075db9;font-weight:730
}
form.cart.tfcpo-skin .tfcpo-field-rope input[type="radio"],
form.cart.tfcpo-skin .tfcpo-field-rope input[type="checkbox"]{accent-color:#0875e9}
/* If the native quantity input is alone in its parent, add a real event-driven +/- stepper. */
form.cart.tfcpo-skin .tfcpo-stepper{
  display:inline-flex!important;align-items:stretch;gap:0;max-width:100%;
  border:1px solid #cbdbee;border-radius:9px;overflow:hidden;background:#fff
}
form.cart.tfcpo-skin .tfcpo-stepper input[type="number"],
form.cart.tfcpo-skin .tfcpo-stepper input[type="text"],
form.cart.tfcpo-skin .tfcpo-stepper input[type="tel"]{
  width:84px!important;min-width:60px!important;flex:none!important;max-width:84px!important;
  border:0!important;border-radius:0!important;text-align:center;box-shadow:none!important;min-height:44px;
}
form.cart.tfcpo-skin .tfcpo-stepper-button{
  display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;
  border:0!important;border-radius:0!important;background:#f2f8ff!important;
  color:#0e4b88!important;font-size:22px!important;font-weight:500!important;
  padding:3px 10px!important;margin:0!important;cursor:pointer
}
form.cart.tfcpo-skin .tfcpo-stepper-button:hover{background:#ddecff!important}
form.cart.tfcpo-skin .tfcpo-stepper-button:focus-visible{outline:2px solid #0875e9;outline-offset:-2px}
/* Respect existing responsive two-column layout of width and height. */
@media(max-width:700px){
  form.cart.tfcpo-skin .tfcpo-field{padding:13px 12px!important}
  form.cart.tfcpo-skin .tfcpo-skin-heading{padding:14px 12px;gap:10px}
  form.cart.tfcpo-skin .tfcpo-heading-copy strong{font-size:17px}
  form.cart.tfcpo-skin .tfcpo-heading-icon{width:39px;height:39px}
}
@media(prefers-reduced-motion:reduce){form.cart.tfcpo-skin .tfcpo-field{transition:none}}


/* v0.1.1 – unify the dynamically displayed native CPO options (color, meters,
   notes). Other plugin controls and the DTP upload UI remain untouched. */
form.cart.tfcpo-skin .tfcpo-field-color,
form.cart.tfcpo-skin .tfcpo-field-meters,
form.cart.tfcpo-skin .tfcpo-field-note{
  border:1px solid var(--tfcpo-border)!important;
  background:#fff!important;
  padding:14px 17px!important;
  margin-bottom:11px!important;
  border-radius:12px!important;
  box-shadow:0 2px 7px rgba(29,70,110,.035)
}
form.cart.tfcpo-skin .tfcpo-field-color label,
form.cart.tfcpo-skin .tfcpo-field-meters label,
form.cart.tfcpo-skin .tfcpo-field-note label{
  color:#183e70;font-weight:650;
}
form.cart.tfcpo-skin .tfcpo-field-color input[type="text"],
form.cart.tfcpo-skin .tfcpo-field-meters input:not([type="radio"]):not([type="checkbox"]),
form.cart.tfcpo-skin .tfcpo-field-note textarea{
  min-height:43px;border-radius:8px!important;border:1px solid #cbdbee!important;
  background-color:#fff!important;color:#132c50!important;
  box-sizing:border-box;max-width:100%;box-shadow:none!important
}
form.cart.tfcpo-skin .tfcpo-field-note textarea{min-height:92px;padding:10px 12px!important}
/* When a choice is correctly linked to a native radio input, enhance only its label. */
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;min-width:62px;margin:5px 8px 4px 0!important;
  padding:7px 13px!important;border:1px solid #cbdbee!important;
  border-radius:8px!important;background:#fff!important;
  color:#183e70!important;cursor:pointer;font-size:14px!important;
  box-sizing:border-box;transition:background .15s,border-color .15s;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice-active{
  background:#0875e9!important;color:#fff!important;border-color:#0875e9!important;
}
form.cart.tfcpo-skin .tfcpo-dimensions-hint{
  margin:0 0 13px;padding:10px 13px;
  background:#f6faff;color:#466c9b;border-left:3px solid #6ca8eb;
  border-radius:5px;font-size:13px;line-height:1.5
}
form.cart.tfcpo-skin .tfcpo-dimensions-hint[hidden]{display:none!important}
/* Compact, uniform spacing without changing Uni CPO row layout. */
form.cart.tfcpo-skin .tfcpo-field{margin-bottom:11px!important}
form.cart.tfcpo-skin .tfcpo-skin-heading{margin-bottom:12px}
@media(max-width:700px){
  form.cart.tfcpo-skin .tfcpo-field-color,
  form.cart.tfcpo-skin .tfcpo-field-meters,
  form.cart.tfcpo-skin .tfcpo-field-note{padding:13px 12px!important}
}


/* v0.1.2 – výraznější grafika bližší návrhu, pouze CSS bez změny CPO logiky.
   Nic zde nevyvolává display:none na CPO polích, neskrývá původní inputy a
   neupravuje pravidla, podle nichž Uni CPO zobrazuje jednotlivé volby. */
body.tfcpo-product-skin {
 --tfcpo-blue:#076de0;
 --tfcpo-dark:#0b2448;
 --tfcpo-muted:#577395;
 --tfcpo-border:#cbdbec;
 --tfcpo-pale:#f5f9ff;
}
/* Product title + clearly distinguished live native WooCommerce price. */
body.tfcpo-product-skin .summary.entry-summary h1.product_title,
body.tfcpo-product-skin .summary.entry-summary h1.entry-title{
 color:#0b2448;font-size:clamp(25px,3vw,35px)!important;
 font-weight:800!important;letter-spacing:-.65px;line-height:1.16;
 margin:0 0 13px!important;
}
body.tfcpo-product-skin .summary.entry-summary > .price,
body.tfcpo-product-skin .summary.entry-summary > p.price{
 display:block;color:#183655!important;
 padding:12px 16px!important;background:linear-gradient(100deg,#f1f7ff,#fff 94%)!important;
 border:1px solid #d3e3f4!important;border-left:4px solid #076de0!important;
 border-radius:11px!important;box-sizing:border-box;
 margin:0 0 18px!important;box-shadow:0 4px 15px rgba(15,63,124,.035);
 font-size:14px!important;line-height:1.5!important;
}
body.tfcpo-product-skin .summary.entry-summary > .price .amount,
body.tfcpo-product-skin .summary.entry-summary > p.price .amount{
 color:#0c294f!important;font-size:1.25em;font-weight:800!important;
}
/* Distinct configurator heading, designed for narrow real WooCommerce columns. */
form.cart.tfcpo-skin .tfcpo-skin-heading{
 position:relative;overflow:hidden;isolation:isolate;
 background:linear-gradient(115deg,#eaf3ff 0%,#f7fbff 73%,#fff 100%)!important;
 border:1px solid #c7def7!important;border-left:4px solid #0875e9!important;
 border-radius:13px!important;padding:18px 15px!important;
 gap:14px!important;min-height:82px;
 box-shadow:0 4px 18px rgba(18,65,120,.045);
}
form.cart.tfcpo-skin .tfcpo-skin-heading::after{
 content:"";position:absolute;right:-35px;top:-55px;
 width:155px;height:155px;border:1px solid rgba(44,125,210,.10);
 border-radius:50%;box-shadow:0 0 0 18px rgba(44,125,210,.035),0 0 0 42px rgba(44,125,210,.025);
 pointer-events:none;z-index:-1;
}
form.cart.tfcpo-skin .tfcpo-heading-icon{
 width:48px;height:48px;flex:0 0 48px;
 border-radius:13px;background:#d9eafe!important;color:#076cda!important;
 box-shadow:inset 0 0 0 1px #c8dff9;
}
form.cart.tfcpo-skin .tfcpo-heading-copy strong{
 font-weight:800!important;color:#0b2448!important;
 font-size:18px!important;letter-spacing:-.25px;
}
form.cart.tfcpo-skin .tfcpo-heading-copy small{
 font-size:12.5px!important;color:#537293!important;line-height:1.35!important;
}
/* Every detected CPO option stays a native option, presented as a crisp card. */
form.cart.tfcpo-skin .tfcpo-field{
 border:1px solid #ccdff2!important;
 border-radius:13px!important;
 background:linear-gradient(180deg,#fff 0%,#fff 82%,#fcfdff 100%)!important;
 padding:15px 16px!important;
 margin-bottom:11px!important;
 box-shadow:0 3px 12px rgba(12,60,116,.055)!important;
 transition:border-color .15s,box-shadow .15s;
}
form.cart.tfcpo-skin .tfcpo-field:focus-within{
 border-color:#74b1ef!important;
 box-shadow:0 0 0 3px rgba(8,117,233,.09),0 4px 14px rgba(12,60,116,.04)!important;
}
form.cart.tfcpo-skin .tfcpo-field > label,
form.cart.tfcpo-skin .tfcpo-field .uni-cpo-option-label,
form.cart.tfcpo-skin .tfcpo-field [class*="uni-cpo-option-title"]{
 font-size:14.5px!important;color:#13365f!important;
 font-weight:800!important;letter-spacing:-.08px;
}
/* Input appearance – retain the actual HTML form elements and unit labels. */
form.cart.tfcpo-skin .tfcpo-field select,
form.cart.tfcpo-skin .tfcpo-field input[type="number"],
form.cart.tfcpo-skin .tfcpo-field input[type="text"],
form.cart.tfcpo-skin .tfcpo-field input[type="tel"],
form.cart.tfcpo-skin .tfcpo-field textarea{
 min-height:47px;border-radius:9px!important;
 border:1px solid #c5d7eb!important;
 color:#0b2448!important;background-color:#fff!important;
 font-size:15px!important;font-weight:600!important;
 padding:10px 12px!important;
 box-shadow:inset 0 1px 2px rgba(10,40,80,.015)!important;
 max-width:100%;box-sizing:border-box;
}
form.cart.tfcpo-skin .tfcpo-field select:hover,
form.cart.tfcpo-skin .tfcpo-field input[type="number"]:hover,
form.cart.tfcpo-skin .tfcpo-field input[type="text"]:hover,
form.cart.tfcpo-skin .tfcpo-field textarea:hover{border-color:#8bb9e9!important;}
/* Stronger accent for the primary material choice, not a replacement select. */
form.cart.tfcpo-skin .tfcpo-field-type{
 background:linear-gradient(180deg,#fbfdff,#fff)!important;
 border-color:#bcd7f4!important;
}
form.cart.tfcpo-skin .tfcpo-field-type select{
 border-color:#91bbea!important;
}
/* Height and width remain in the two columns supplied by the shop theme. */
form.cart.tfcpo-skin .tfcpo-field-width,
form.cart.tfcpo-skin .tfcpo-field-height{
 min-height:108px;
}
/* Visually lift quantity from an anonymous text box. */
form.cart.tfcpo-skin .tfcpo-field-quantity{
 background:#f9fcff!important;
}
/* Choice pills remain bound to native Uni CPO labels and radio values. */
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice,
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input[type="radio"]),
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input[type="checkbox"]){
 display:inline-flex;justify-content:center;align-items:center;
 min-height:43px;min-width:76px;padding:8px 15px!important;
 margin:5px 8px 5px 0!important;
 font-weight:700!important;font-size:14px!important;
 color:#173b66!important;background:#f8fbff!important;
 border:1px solid #b8d0ed!important;border-radius:9px!important;
 box-sizing:border-box;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-rope label:has(input:checked),
form.cart.tfcpo-skin .tfcpo-field-color label:has(input:checked){
 color:#fff!important;background:#086bda!important;
 border-color:#086bda!important;
 box-shadow:0 2px 7px rgba(8,107,218,.16)!important;
}
form.cart.tfcpo-skin .tfcpo-stepper{
 border-radius:9px!important;border:1px solid #9bbfe8!important;
}
form.cart.tfcpo-skin .tfcpo-stepper-button{
 min-height:46px!important;min-width:46px!important;
 background:#e9f3ff!important;color:#075fba!important;
 font-weight:700!important;font-size:24px!important;
}
form.cart.tfcpo-skin .tfcpo-stepper input{
 min-height:46px!important;
}
/* Hints clarify conditional fields, without changing their visibility. */
form.cart.tfcpo-skin .tfcpo-conditional-help,
form.cart.tfcpo-skin .tfcpo-dimensions-hint{
 padding:9px 12px;margin:0 0 10px!important;
 border:1px solid #dbe9f8;
 border-left:3px solid #73a9e4!important;
 border-radius:7px;background:#f7fbff!important;
 color:#506f92!important;font-size:12.5px;line-height:1.45;
}
form.cart.tfcpo-skin .tfcpo-conditional-help[hidden],
form.cart.tfcpo-skin .tfcpo-dimensions-hint[hidden]{display:none!important}
/* Keep conditional groups hidden if the ORIGINAL CPO itself hides them. */
@media(max-width:700px){
 form.cart.tfcpo-skin .tfcpo-skin-heading{padding:14px 13px!important;min-height:74px}
 form.cart.tfcpo-skin .tfcpo-field{padding:13px 13px!important;margin-bottom:10px!important}
 form.cart.tfcpo-skin .tfcpo-heading-icon{width:43px;height:43px;flex-basis:43px}
 form.cart.tfcpo-skin .tfcpo-heading-copy strong{font-size:16px!important}
 form.cart.tfcpo-skin .tfcpo-field-width,
 form.cart.tfcpo-skin .tfcpo-field-height{min-height:94px}
}


/* v0.1.3 – real-world narrow-column layout inspired by the visual mockup.
   Original CPO fields, values and visibility stay untouched. */
body.tfcpo-product-skin {
  --tfcpo-blue:#086ad7;
  --tfcpo-dark:#102c55;
  --tfcpo-border:#d3e0ef;
}
/* Keep a distinctive title / live price without adding synthetic amounts. */
body.tfcpo-product-skin .summary.entry-summary h1.product_title{
  font-size:clamp(25px,3.5vw,33px)!important;
  color:#102a50!important;
  font-weight:800!important;
  letter-spacing:-.6px!important;
}
body.tfcpo-product-skin .summary.entry-summary > .price,
body.tfcpo-product-skin .summary.entry-summary > p.price{
  padding:12px 14px!important;
  margin:0 0 14px!important;
  background:linear-gradient(100deg,#f3f8ff,#fff)!important;
  border:1px solid #dce6f2!important;
  border-left:3px solid #0871df!important;
  border-radius:9px!important;
}
/* Header: compact but with a stronger product/configurator hierarchy. */
form.cart.tfcpo-skin .tfcpo-skin-heading{
  padding:15px 16px!important;
  margin-bottom:12px!important;
  min-height:72px!important;
  background:linear-gradient(110deg,#edf5ff,#fff)!important;
  border-radius:12px!important;
}
form.cart.tfcpo-skin .tfcpo-heading-icon{
  width:45px!important;height:45px!important;flex:0 0 45px!important;
}
form.cart.tfcpo-skin .tfcpo-heading-copy strong{font-size:18px!important;}
/* Discard v0.1.2 helper strips: native selects and labels already explain the options.
   We no longer create these strips in JS. */
form.cart.tfcpo-skin .tfcpo-conditional-help,
form.cart.tfcpo-skin .tfcpo-dimensions-hint{display:none!important;}
/* Real card layout: tighter, aligned with the file-upload panel. */
form.cart.tfcpo-skin .tfcpo-field{
  position:relative;
  border-radius:12px!important;
  background:#fff!important;
  border:1px solid #d2e0ef!important;
  padding:15px 15px 14px!important;
  margin-bottom:11px!important;
  min-height:auto!important;
  box-shadow:0 3px 13px rgba(18,56,107,.045)!important;
  transition:border-color .14s,box-shadow .14s!important;
}
form.cart.tfcpo-skin .tfcpo-field:focus-within{
  border-color:#7bafe9!important;
  box-shadow:0 0 0 3px rgba(7,106,215,.08)!important;
}
/* Actual native labels get small consistent navy icons. */
form.cart.tfcpo-skin label.tfcpo-icon-label,
form.cart.tfcpo-skin .tfcpo-icon-label{
  display:flex!important;align-items:center!important;gap:9px!important;
  color:#153861!important;
  font-size:14px!important;
  font-weight:760!important;
  line-height:1.35!important;
  margin-bottom:10px!important;
}
form.cart.tfcpo-skin .tfcpo-label-icon{
  display:inline-flex!important;align-items:center;justify-content:center;
  color:#24629f;background:#eaf3ff;
  width:28px;height:28px;min-width:28px;
  border-radius:7px;flex:none;
}
form.cart.tfcpo-skin .tfcpo-label-icon svg{display:block;}
/* Prevent helper labels nested in radio/checkbox options from being affected. */
form.cart.tfcpo-skin .tfcpo-field select,
form.cart.tfcpo-skin .tfcpo-field input[type="text"],
form.cart.tfcpo-skin .tfcpo-field input[type="number"],
form.cart.tfcpo-skin .tfcpo-field input[type="tel"],
form.cart.tfcpo-skin .tfcpo-field textarea{
  height:auto;min-height:45px!important;
  padding:10px 11px!important;
  border:1px solid #bcd2ea!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#0f2b50!important;
  font-weight:600!important;
  font-size:14px!important;
  width:100%;max-width:100%!important;
  box-shadow:none!important;
}
form.cart.tfcpo-skin .tfcpo-field-type select{
  min-height:49px!important;
  border-color:#8fb8e7!important;
  font-weight:700!important;
}
/* In CPO layouts with adjacent dimensions, trim the excessive column gap. */
form.cart.tfcpo-skin .tfcpo-dimensions-pair{
  column-gap:12px!important;gap:12px!important;
}
form.cart.tfcpo-skin .tfcpo-field-width,
form.cart.tfcpo-skin .tfcpo-field-height{
  padding:13px 12px!important;
}
form.cart.tfcpo-skin .tfcpo-field-width .tfcpo-icon-label,
form.cart.tfcpo-skin .tfcpo-field-height .tfcpo-icon-label{
  font-size:13px!important;gap:6px!important;
}
form.cart.tfcpo-skin .tfcpo-field-width .tfcpo-label-icon,
form.cart.tfcpo-skin .tfcpo-field-height .tfcpo-label-icon{
  width:24px;height:24px;min-width:24px;
}
form.cart.tfcpo-skin .tfcpo-field-width .tfcpo-label-icon svg,
form.cart.tfcpo-skin .tfcpo-field-height .tfcpo-label-icon svg{width:16px;height:16px;}
/* Accessible native-input +/- overlay; buttons are inside the field, no input moved. */
form.cart.tfcpo-skin .tfcpo-field-quantity.tfcpo-stepper-visible input[type="number"],
form.cart.tfcpo-skin .tfcpo-field-quantity.tfcpo-stepper-visible input[type="text"],
form.cart.tfcpo-skin .tfcpo-field-quantity.tfcpo-stepper-visible input[type="tel"]{
  text-align:center!important;
  padding-left:53px!important;padding-right:53px!important;
  appearance:textfield;-moz-appearance:textfield;
}
form.cart.tfcpo-skin .tfcpo-field-quantity.tfcpo-stepper-visible input::-webkit-inner-spin-button,
form.cart.tfcpo-skin .tfcpo-field-quantity.tfcpo-stepper-visible input::-webkit-outer-spin-button{
  -webkit-appearance:none;margin:0;
}
form.cart.tfcpo-skin .tfcpo-qty-button{display:none!important;}
form.cart.tfcpo-skin .tfcpo-stepper-visible .tfcpo-qty-button{
  position:absolute!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  z-index:3;
  top:var(--tfcpo-step-top)!important;
  width:var(--tfcpo-step-width)!important;
  height:var(--tfcpo-step-height)!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:7px!important;
  color:#0b4f93!important;
  background:#eaf4ff!important;
  font-size:23px!important;font-weight:650!important;
  line-height:1!important;cursor:pointer!important;
  box-shadow:none!important;transform:none!important;
}
form.cart.tfcpo-skin .tfcpo-stepper-visible .tfcpo-qty-minus{
  left:var(--tfcpo-step-left)!important;
  border-radius:7px 0 0 7px!important;
  border-right:1px solid #cbdcf0!important;
}
form.cart.tfcpo-skin .tfcpo-stepper-visible .tfcpo-qty-plus{
  right:var(--tfcpo-step-right)!important;
  border-radius:0 7px 7px 0!important;
  border-left:1px solid #cbdcf0!important;
}
form.cart.tfcpo-skin .tfcpo-stepper-visible .tfcpo-qty-button:hover{
  background:#d7eaff!important;color:#0752a9!important;
}
form.cart.tfcpo-skin .tfcpo-stepper-visible .tfcpo-qty-button:focus-visible{
  outline:2px solid #086ad7!important;outline-offset:1px!important;
}
/* Remove the double rectangle caused by theme styles inside the original label. */
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #c1d4e9!important;
  padding:10px 18px!important;
  min-height:45px!important;min-width:90px!important;
  margin:2px 9px 5px 0!important;
  border-radius:9px!important;
  font-size:14px!important;font-weight:700!important;
  color:#193c69!important;background:#fff!important;
  box-shadow:none!important;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice-active,
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice:has(input:checked),
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice:has(input:checked){
  background:#086ad7!important;border-color:#086ad7!important;color:#fff!important;
  box-shadow:0 3px 8px rgba(8,106,215,.17)!important;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice > span,
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice > div,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice > span,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice > div{
  background:transparent!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:0!important;color:inherit!important;
}
/* Check-mark chips instead of radio inputs inside squared nested boxes.
   Inputs stay in the DOM, focusable and controlled by native CPO. */
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice input[type="radio"],
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice input[type="checkbox"],
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice input[type="radio"]{
  position:absolute!important;width:1px!important;height:1px!important;
  opacity:0!important;overflow:hidden!important;
  clip-path:inset(50%)!important;pointer-events:none!important;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice-active::before,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice-active::before{
  content:"✓";display:inline-block;font-size:14px;margin-right:6px;font-weight:800;
}
form.cart.tfcpo-skin .tfcpo-field-rope label.tfcpo-choice:focus-within,
form.cart.tfcpo-skin .tfcpo-field-color label.tfcpo-choice:focus-within{
  outline:2px solid #83b9f3!important;outline-offset:2px!important;
}
/* UI must remain usable in the narrow product detail column. */
@media(max-width:600px){
  form.cart.tfcpo-skin .tfcpo-field{padding:13px 11px!important;}
  form.cart.tfcpo-skin .tfcpo-skin-heading{padding:14px 12px!important;}
  form.cart.tfcpo-skin .tfcpo-heading-copy strong{font-size:16px!important;}
  form.cart.tfcpo-skin .tfcpo-field-width .tfcpo-icon-label,
  form.cart.tfcpo-skin .tfcpo-field-height .tfcpo-icon-label{font-size:12px!important;gap:4px!important;}
  form.cart.tfcpo-skin .tfcpo-field-width .tfcpo-label-icon,
  form.cart.tfcpo-skin .tfcpo-field-height .tfcpo-label-icon{min-width:21px;width:21px;height:21px;}
}
@media(prefers-reduced-motion:reduce){
  form.cart.tfcpo-skin .tfcpo-field{transition:none!important;}
}


/* v0.1.4 – actual WooCommerce price + safe modern material dropdown */
body.tfcpo-product-skin .tfcpo-product-heading{
  font-size:clamp(27px,3vw,35px)!important;
  font-weight:800!important;
  color:#102b53!important;
  letter-spacing:-.6px!important;
  line-height:1.16!important;
  margin-bottom:15px!important;
}
body.tfcpo-product-skin .tfcpo-live-price{
  display:block!important;
  padding:14px 17px!important;
  margin:4px 0 20px!important;
  color:#18375d!important;
  font-size:17px!important;
  line-height:1.5!important;
  background:linear-gradient(110deg,#eaf4ff 0%,#f8fbff 90%)!important;
  border:1px solid #c7def8!important;
  border-left:4px solid #0875e9!important;
  border-radius:11px!important;
  box-shadow:0 3px 12px rgba(10,55,110,.05)!important;
}
body.tfcpo-product-skin .tfcpo-live-price .woocommerce-Price-amount:first-of-type,
body.tfcpo-product-skin .tfcpo-live-price .amount:first-of-type{
  color:#092b58!important;font-weight:800!important;font-size:23px!important;
}
/* Hide only the original, still-active SELECT when the accessible replacement is live.
   It stays in the form, retains its name/value, validation and native listeners. */
form.cart.tfcpo-skin .tfcpo-field-type.tfcpo-material-enhanced select.tfcpo-material-native{
  position:absolute!important;
  width:1px!important;height:1px!important;min-height:1px!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
  clip-path:inset(50%)!important;opacity:0!important;
  pointer-events:none!important;z-index:-1!important;
}
form.cart.tfcpo-skin .tfcpo-material-combobox{
  width:100%;position:relative;box-sizing:border-box;isolation:isolate;
}
form.cart.tfcpo-skin .tfcpo-material-combobox.is-open{z-index:40;}
form.cart.tfcpo-skin .tfcpo-material-trigger{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;min-height:48px!important;gap:12px!important;
  padding:10px 13px!important;margin:0!important;
  border:1px solid #97bfe9!important;border-radius:9px!important;
  background:#fff!important;color:#13365f!important;
  font-family:inherit!important;font-size:14px!important;font-weight:700!important;line-height:1.4!important;text-align:left!important;
  box-shadow:none!important;cursor:pointer!important;
  white-space:normal!important;text-transform:none!important;
}
form.cart.tfcpo-skin .tfcpo-material-trigger:hover,
form.cart.tfcpo-skin .tfcpo-material-combobox.is-open .tfcpo-material-trigger{
  border-color:#0876e8!important;box-shadow:0 0 0 3px rgba(8,117,233,.085)!important;
}
form.cart.tfcpo-skin .tfcpo-material-trigger:focus-visible{
  outline:2px solid #0876e8!important;outline-offset:2px!important;
}
form.cart.tfcpo-skin .tfcpo-material-trigger:disabled{opacity:.55;cursor:not-allowed!important;}
form.cart.tfcpo-skin .tfcpo-material-value{flex:1;min-width:0;}
form.cart.tfcpo-skin .tfcpo-material-combobox.is-placeholder .tfcpo-material-value{
  color:#607794!important;font-weight:500!important;
}
form.cart.tfcpo-skin .tfcpo-material-chevron{flex:none;display:flex;color:#336da8;transition:transform .15s;}
form.cart.tfcpo-skin .tfcpo-material-combobox.is-open .tfcpo-material-chevron{transform:rotate(180deg);}
form.cart.tfcpo-skin .tfcpo-material-list{
  position:absolute!important;top:calc(100% + 5px);left:0;right:0;
  z-index:50!important;max-height:min(340px,55vh);overflow-y:auto;
  background:#fff!important;border:1px solid #c9dcef!important;
  box-shadow:0 14px 32px rgba(16,49,94,.16)!important;
  border-radius:12px!important;padding:5px!important;
  overscroll-behavior:contain;
}
form.cart.tfcpo-skin .tfcpo-material-list[hidden]{display:none!important;}
form.cart.tfcpo-skin .tfcpo-material-option{
  display:flex!important;align-items:center!important;text-align:left!important;
  width:100%!important;min-height:43px!important;
  padding:10px 37px 10px 12px!important;margin:0!important;
  color:#183d69!important;font-family:inherit!important;font-size:14px!important;font-weight:500!important;line-height:1.3!important;
  white-space:normal!important;text-transform:none!important;
  background:transparent!important;border:0!important;border-radius:8px!important;
  cursor:pointer!important;position:relative;
}
form.cart.tfcpo-skin .tfcpo-material-option + .tfcpo-material-option{margin-top:2px!important;}
form.cart.tfcpo-skin .tfcpo-material-option:hover,
form.cart.tfcpo-skin .tfcpo-material-option:focus-visible{
  background:#edf5ff!important;color:#074d97!important;outline:none!important;
}
form.cart.tfcpo-skin .tfcpo-material-option[aria-selected="true"]{
  background:#e5f1ff!important;color:#095cb2!important;font-weight:760!important;
}
form.cart.tfcpo-skin .tfcpo-material-option[aria-selected="true"]::after{
  content:"✓";position:absolute;right:15px;top:50%;transform:translateY(-50%);
  color:#0871df;font-size:17px;font-weight:800;
}
form.cart.tfcpo-skin .tfcpo-material-option:disabled{
  color:#a4b0be!important;cursor:not-allowed!important;
}
@media(max-width:600px){
 body.tfcpo-product-skin .tfcpo-live-price{font-size:15px!important;padding:11px 13px!important;}
 body.tfcpo-product-skin .tfcpo-live-price .woocommerce-Price-amount:first-of-type{font-size:20px!important;}
 form.cart.tfcpo-skin .tfcpo-material-list{max-height:42vh;}
}

/* Open menu must float above subsequent CPO cards. */
form.cart.tfcpo-skin .tfcpo-field-type.tfcpo-material-open{
  z-index:100!important;overflow:visible!important;
}

/* v0.1.5 – better visibility of the original dynamic price, no amount manipulation. */
body.tfcpo-product-skin .tfcpo-live-price {
  box-sizing:border-box!important;
  display:block!important;
  font-size:18px!important;
  font-weight:650!important;
  line-height:1.55!important;
  padding:14px 17px!important;
  margin:9px 0 21px!important;
  color:#132f55!important;
  background:linear-gradient(105deg,#e9f3ff 0%,#f9fcff 100%)!important;
  border:1px solid #c4dcf5!important;
  border-left:4px solid #0875e9!important;
  border-radius:12px!important;
}
body.tfcpo-product-skin .tfcpo-live-price .woocommerce-Price-amount,
body.tfcpo-product-skin .tfcpo-live-price .amount {
  color:#0c305e!important;
  font-weight:800!important;
}

/* v0.1.7 – Real WooCommerce title (independent of Uni CPO).
   Applies to the exact title identified near the actual Woo price, even if
   this theme uses a DIV/H2 or renders it outside the CPO form wrapper. */
body.tfcpo-product-skin .tfcpo-product-heading {
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  min-height:144px!important;
  margin:0 0 12px!important;
  padding:19px 140px 18px 20px!important;
  border:1px solid #d2e3f5!important;
  border-radius:15px!important;
  background-color:#eef6ff!important;
  background-image:url('banner-pvc-bez-loga.svg'),linear-gradient(120deg,#fff 0%,#f1f8ff 53%,#c4e0ff 100%)!important;
  background-repeat:no-repeat,no-repeat!important;
  background-size:156px 130px,cover!important;
  background-position:right -5px center,center!important;
  color:#092b55!important;
  font-family:inherit!important;
  font-size:27px!important;
  font-weight:800!important;
  line-height:1.18!important;
  letter-spacing:-.55px!important;
  text-align:left!important;
  text-transform:none!important;
  box-shadow:0 3px 16px rgba(15,70,125,.05)!important;
}
body.tfcpo-product-skin .tfcpo-product-heading::before {
  content:''!important;
  position:absolute!important;
  display:block!important;
  top:59px!important;
  left:20px!important;
  width:37px!important;
  height:4px!important;
  border-radius:5px!important;
  background:#0878eb!important;
}
body.tfcpo-product-skin .tfcpo-product-heading::after {
  content:'Vyberte materiál, rozměry a dokončení. Cena se přepočítá automaticky.'!important;
  display:block!important;
  margin-top:24px!important;
  color:#385b81!important;
  font-size:12px!important;
  font-weight:450!important;
  line-height:1.48!important;
  letter-spacing:0!important;
  text-align:left!important;
  text-transform:none!important;
}
@media (max-width:520px) {
  body.tfcpo-product-skin .tfcpo-product-heading {
    min-height:140px!important;
    padding:18px 120px 15px 16px!important;
    background-size:142px 117px,cover!important;
    background-position:right -12px center,center!important;
    font-size:25px!important;
    border-radius:13px!important;
  }
  body.tfcpo-product-skin .tfcpo-product-heading::before{left:16px!important;top:55px!important;}
  body.tfcpo-product-skin .tfcpo-product-heading::after{font-size:11.4px!important;margin-top:23px!important;}
}
@media (max-width:370px) {
  body.tfcpo-product-skin .tfcpo-product-heading {
    min-height:136px!important;
    padding-right:105px!important;
    background-size:128px 106px,cover!important;
    font-size:23px!important;
  }
  body.tfcpo-product-skin .tfcpo-product-heading::before{top:52px!important;}
  body.tfcpo-product-skin .tfcpo-product-heading::after{font-size:11px!important;line-height:1.4!important;}
}


/* v0.1.8 – WooCommerce native Add to cart button. Presentation ONLY.
   No event listeners, no mutation of disabled state, no changes in checkout/DTP validation.
   Scoped by body class which is inserted exclusively on product ID 170. */
body.tfcpo-product-skin form.cart .single_add_to_cart_button,
body.tfcpo-product-skin form.cart button[name="add-to-cart"],
body.tfcpo-product-skin form.cart input[type="submit"][name="add-to-cart"] {
  position:relative!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  min-height:56px!important;
  clear:both!important;
  float:none!important;
  margin:16px 0 12px!important;
  padding:13px 48px 13px 20px!important;
  border:1px solid #075bc6!important;
  border-radius:12px!important;
  background:linear-gradient(110deg,#0867d4 0%,#087cef 100%)!important;
  box-shadow:0 7px 18px rgba(7,100,203,.16)!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:760!important;
  line-height:1.35!important;
  text-transform:none!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  white-space:normal!important;
  opacity:1!important;
  transition:background .15s,box-shadow .15s,transform .15s!important;
}
/* Native WooCommerce button remains untouched. The arrow is only decoration. */
body.tfcpo-product-skin form.cart button.single_add_to_cart_button:not(:disabled):not(.disabled):not(.loading):not(.processing):not(.added):not([aria-disabled="true"])::after {
  content:'→'!important;
  position:absolute;
  right:19px;top:50%;transform:translateY(-50%);
  font-size:23px;font-weight:500;line-height:1;
  pointer-events:none;
}
body.tfcpo-product-skin form.cart .single_add_to_cart_button:not(:disabled):not(.disabled):not([aria-disabled="true"]):hover,
body.tfcpo-product-skin form.cart button[name="add-to-cart"]:not(:disabled):not(.disabled):hover {
  background:linear-gradient(110deg,#0759b8 0%,#086fde 100%)!important;
  box-shadow:0 9px 22px rgba(7,100,203,.23)!important;
  transform:translateY(-1px);
}
body.tfcpo-product-skin form.cart .single_add_to_cart_button:focus-visible,
body.tfcpo-product-skin form.cart button[name="add-to-cart"]:focus-visible {
  outline:3px solid #93c7ff!important;
  outline-offset:3px!important;
}
/* If Smart Upload blocks submission pending successful preflight / DTP choice,
   reflect that fact visually; do NOT change whether the button can be clicked. */
body.tfcpo-product-skin form.cart .single_add_to_cart_button:disabled,
body.tfcpo-product-skin form.cart .single_add_to_cart_button.disabled,
body.tfcpo-product-skin form.cart .single_add_to_cart_button[aria-disabled="true"],
body.tfcpo-product-skin form.cart button[name="add-to-cart"]:disabled,
body.tfcpo-product-skin form.cart button[name="add-to-cart"].disabled,
body.tfcpo-product-skin form.cart button[name="add-to-cart"][aria-disabled="true"],
body.tfcpo-product-skin form.cart input[type="submit"][name="add-to-cart"]:disabled {
  color:#647f9f!important;
  background:#e4eef9!important;
  border:1px solid #bed4ed!important;
  box-shadow:none!important;
  opacity:1!important;
  transform:none!important;
  cursor:not-allowed!important;
}
@media(max-width:520px){
  body.tfcpo-product-skin form.cart .single_add_to_cart_button,
  body.tfcpo-product-skin form.cart button[name="add-to-cart"]{
    min-height:52px!important;
    border-radius:10px!important;
    font-size:15px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.tfcpo-product-skin form.cart .single_add_to_cart_button,
  body.tfcpo-product-skin form.cart button[name="add-to-cart"]{transition:none!important;}
}

/* v0.1.9 – customer instruction / link to Úschovna. Real Woo cart field.
   Not conditional on a specific Uni CPO field or CSS class. */
body.tfcpo-product-skin form.cart .tfcpo-customer-note {
  box-sizing:border-box;
  display:block;
  clear:both;
  width:100%;
  padding:17px 17px 15px;
  margin:15px 0 10px;
  border:1px solid #d0e2f6;
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 9px rgba(32,86,145,.04);
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note-heading {
  display:flex;align-items:center;gap:11px;
  margin-bottom:14px;
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note-icon {
  width:37px;height:37px;flex:none;display:flex;align-items:center;justify-content:center;
  border-radius:10px;background:#eaf3ff;color:#0869ce;
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note-heading strong {
  display:block;color:#102d56;font-weight:760;font-size:15px;line-height:1.3;
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note-heading small {
  display:block;color:#657f9d;font-size:11.5px;line-height:1.45;margin-top:3px;
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note > label {
  display:block;margin:0 0 7px;color:#24436c;font-size:12.5px;font-weight:700;
}
body.tfcpo-product-skin form.cart textarea#tfcpo_customer_note {
  box-sizing:border-box!important;display:block!important;
  width:100%!important;max-width:100%!important;min-height:110px!important;
  padding:12px 13px!important;
  background:#fafdff!important;
  color:#173657!important;
  border:1px solid #c3d9f3!important;border-radius:9px!important;
  font-size:14px!important;font-family:inherit!important;line-height:1.5!important;
  resize:vertical!important;box-shadow:none!important;
}
body.tfcpo-product-skin form.cart textarea#tfcpo_customer_note:focus {
  outline:2px solid rgba(8,117,233,.18)!important;outline-offset:1px!important;
  border-color:#0875e9!important;
}
body.tfcpo-product-skin form.cart .tfcpo-customer-note-help {
  margin:9px 0 0!important;font-size:11.5px!important;
  line-height:1.5!important;color:#6d839d!important;
}
@media(max-width:520px) {
  body.tfcpo-product-skin form.cart .tfcpo-customer-note{padding:14px 12px!important;}
}
