/* ŁadneTorby.pl — Konfigurator kategorii 1.1.1 */
.ltcc{
  --ltcc-red:var(--lt-brand,#9b0000);
  --ltcc-red-dark:var(--lt-brand-dark,#650909);
  --ltcc-dark:#252525;
  --ltcc-muted:#666;
  --ltcc-soft:#f8f5f1;
  --ltcc-border:rgba(0,0,0,.08);

  position:relative;
  z-index:9;
  left:50%;
  width:min(var(--ltcc-max,1600px),calc(100vw - 80px));
  max-width:calc(100vw - 40px);
  margin:10px 0 18px;
  padding:0;
  border:1px solid var(--ltcc-border);
  border-radius:28px;
  background:
    radial-gradient(circle at 92% 8%,rgba(155,0,0,.065),transparent 24%),
    linear-gradient(135deg,#fff 0%,var(--ltcc-soft) 100%);
  box-shadow:0 16px 46px rgba(0,0,0,.055);
  color:var(--ltcc-dark);
  overflow:hidden;
  transform:translateX(-50%);
}
.ltcc,
.ltcc *{box-sizing:border-box}

/* Kompaktowy pasek widoczny po zwinięciu */
.ltcc__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  width:100%;
  min-height:92px;
  margin:0;
  padding:17px 24px;
  list-style:none;
  color:var(--ltcc-dark);
  text-align:left;
  user-select:none;
}
details.ltcc>.ltcc__summary{cursor:pointer}
details.ltcc>.ltcc__summary::-webkit-details-marker{display:none}
details.ltcc>.ltcc__summary::marker{content:""}

.ltcc__summary-main{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.ltcc__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:7px;
  min-height:34px;
  margin:0;
  padding:0 13px;
  border:1px solid rgba(155,0,0,.16);
  border-radius:999px;
  background:#fff3f3;
  color:var(--ltcc-red);
  font-size:12.5px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.ltcc__badge:before{content:"✦";font-size:13px}
.ltcc__summary-copy{
  display:block;
  min-width:0;
}
.ltcc__title{
  display:block;
  margin:0!important;
  color:var(--ltcc-dark)!important;
  font-size:clamp(20px,1.7vw,27px)!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
  font-weight:850!important;
}
.ltcc__intro{
  display:block;
  max-width:880px;
  margin-top:4px;
  overflow:hidden;
  color:var(--ltcc-muted);
  font-size:13.5px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ltcc__active-summary{
  display:block;
  margin-top:4px;
  color:var(--ltcc-red);
  font-size:12px;
  line-height:1.3;
  font-weight:800;
}
.ltcc__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  gap:10px;
  min-height:42px;
  padding:0 16px;
  border:1px solid rgba(155,0,0,.18);
  border-radius:999px;
  background:#fff;
  color:var(--ltcc-red);
  font-size:13px;
  line-height:1;
  font-weight:850;
  box-shadow:0 7px 18px rgba(0,0,0,.035);
}
.ltcc__toggle-close{display:none}
.ltcc__chevron{
  display:block;
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .18s ease;
}
details.ltcc[open] .ltcc__toggle-open{display:none}
details.ltcc[open] .ltcc__toggle-close{display:inline}
details.ltcc[open] .ltcc__chevron{transform:rotate(225deg) translate(-1px,-1px)}
details.ltcc>.ltcc__summary:hover .ltcc__toggle{
  border-color:rgba(155,0,0,.34);
  background:#fffafa;
}
details.ltcc>.ltcc__summary:focus-visible{
  outline:3px solid rgba(155,0,0,.22);
  outline-offset:-3px;
}

/* Rozwinięta zawartość */
.ltcc__panel{
  padding:0 24px 24px;
  border-top:1px solid var(--ltcc-border);
  background:rgba(255,255,255,.4);
}
.ltcc__form{margin:0}
.ltcc__steps{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  padding:20px 0;
}
.ltcc__step{
  min-width:0;
  margin:0;
  padding:18px;
  border:1px solid var(--ltcc-border);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  box-shadow:0 7px 20px rgba(0,0,0,.028);
}
.ltcc__step legend{
  display:flex;
  align-items:center;
  gap:9px;
  width:auto;
  max-width:100%;
  margin:0 0 13px;
  padding:0;
  color:var(--ltcc-dark);
  font-size:15px;
  line-height:1.25;
  font-weight:850;
}
.ltcc__step-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 26px;
  width:26px;
  height:26px;
  border:1px solid rgba(155,0,0,.16);
  border-radius:999px;
  background:#fff3f3;
  color:var(--ltcc-red);
  font-size:12px;
  font-weight:900;
}
.ltcc__cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.ltcc-card{
  position:relative;
  display:block;
  min-width:0;
  margin:0;
  cursor:pointer;
}
.ltcc-card input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.ltcc-card__body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:70px;
  padding:11px 13px;
  border:1px solid var(--ltcc-border);
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 16px rgba(0,0,0,.025);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}
.ltcc-card__body strong{
  display:block;
  color:var(--ltcc-dark);
  font-size:13px;
  line-height:1.25;
  font-weight:850;
}
.ltcc-card__body small{
  display:block;
  margin-top:3px;
  color:var(--ltcc-muted);
  font-size:11.5px;
  line-height:1.35;
}
.ltcc-card:hover .ltcc-card__body{
  transform:translateY(-1px);
  border-color:rgba(155,0,0,.24);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.ltcc-card input:checked + .ltcc-card__body{
  border-color:rgba(155,0,0,.48);
  background:#fff8f7;
  box-shadow:0 0 0 3px rgba(155,0,0,.075),0 8px 22px rgba(0,0,0,.04);
}
.ltcc-card input:focus-visible + .ltcc-card__body{
  outline:2px solid var(--ltcc-red);
  outline-offset:2px;
}

.ltcc__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.ltcc-chip{
  position:relative;
  display:inline-flex;
  margin:0;
  cursor:pointer;
}
.ltcc-chip input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer;
}
.ltcc-chip span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 13px;
  border:1px solid var(--ltcc-border);
  border-radius:999px;
  background:#fff;
  color:var(--ltcc-dark);
  font-size:12.5px;
  line-height:1;
  font-weight:750;
  transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.ltcc-chip:hover span{border-color:rgba(155,0,0,.28)}
.ltcc-chip input:checked + span{
  border-color:var(--ltcc-red);
  background:var(--ltcc-red);
  color:#fff;
  box-shadow:0 7px 17px rgba(155,0,0,.17);
}
.ltcc-chip input:focus-visible + span{
  outline:2px solid var(--ltcc-red);
  outline-offset:2px;
}
.ltcc-chip__swatch{
  display:block;
  width:13px;
  height:13px;
  border:1px solid rgba(0,0,0,.14);
  border-radius:999px;
  background:var(--ltcc-swatch);
}

.ltcc__select-label{
  display:block;
  margin:0;
}
.ltcc__select{
  display:block;
  width:100%!important;
  min-height:44px!important;
  margin:0!important;
  padding:0 42px 0 13px!important;
  border:1px solid var(--ltcc-border)!important;
  border-radius:14px!important;
  background-color:#fff!important;
  color:var(--ltcc-dark)!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:700!important;
  box-shadow:none!important;
  cursor:pointer;
}
.ltcc__select:hover{
  border-color:rgba(155,0,0,.28)!important;
}
.ltcc__select:focus{
  outline:0;
  border-color:rgba(155,0,0,.52)!important;
  box-shadow:0 0 0 3px rgba(155,0,0,.1)!important;
}

.ltcc__custom-dimensions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:11px;
  padding:12px;
  border:1px dashed rgba(155,0,0,.22);
  border-radius:15px;
  background:rgba(255,255,255,.76);
}
.ltcc__custom-dimensions[hidden]{display:none}
.ltcc__custom-dimensions label{display:block;margin:0}
.ltcc__custom-dimensions label>span:first-child{
  display:block;
  margin-bottom:5px;
  color:var(--ltcc-muted);
  font-size:11.5px;
  font-weight:800;
}
.ltcc__input-with-unit{position:relative;display:block}
.ltcc__input-with-unit input{
  width:100%;
  height:42px;
  padding:0 44px 0 11px!important;
  border:1px solid var(--ltcc-border)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--ltcc-dark)!important;
  font-size:13px!important;
  box-shadow:none!important;
}
.ltcc__input-with-unit input:focus{
  outline:0;
  border-color:rgba(155,0,0,.52)!important;
  box-shadow:0 0 0 3px rgba(155,0,0,.1)!important;
}
.ltcc__input-with-unit small{
  position:absolute;
  right:11px;
  top:50%;
  transform:translateY(-50%);
  color:var(--ltcc-muted);
  font-size:11px;
  font-weight:750;
}
.ltcc__help{
  margin:9px 0 0;
  color:var(--ltcc-muted);
  font-size:11.5px;
  line-height:1.45;
}

.ltcc__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:18px;
  border-top:1px solid var(--ltcc-border);
}
.ltcc__status{
  min-height:20px;
  color:var(--ltcc-dark);
  font-size:13.5px;
  line-height:1.4;
  font-weight:850;
}
.ltcc__status.is-loading{
  color:var(--ltcc-muted);
  font-weight:650;
}
.ltcc__status.is-zero{color:var(--ltcc-red)}
.ltcc__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
}
.ltcc__reset,
.ltcc__submit{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:0 19px!important;
  border-radius:999px!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:850!important;
  text-decoration:none!important;
  cursor:pointer;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.ltcc__reset{
  border:1px solid var(--ltcc-border)!important;
  background:#fff!important;
  color:var(--ltcc-dark)!important;
  box-shadow:none!important;
}
.ltcc__reset:hover{
  border-color:rgba(155,0,0,.28)!important;
  color:var(--ltcc-red)!important;
}
.ltcc__submit{
  border:1px solid var(--ltcc-red)!important;
  background:var(--ltcc-red)!important;
  color:#fff!important;
  box-shadow:0 9px 20px rgba(155,0,0,.25)!important;
}
.ltcc__submit:hover{
  border-color:var(--ltcc-red-dark)!important;
  background:var(--ltcc-red-dark)!important;
  transform:translateY(-1px);
  box-shadow:0 12px 25px rgba(155,0,0,.31)!important;
}
.ltcc__submit:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none!important;
}
.ltcc__messages{display:none}

/* Szerokość zgodna z nagłówkiem kategorii */
@media(max-width:991px){
  .ltcc{
    width:min(var(--ltcc-max,1600px),calc(100vw - 48px));
    max-width:calc(100vw - 32px);
  }
  .ltcc__summary{padding:16px 20px}
  .ltcc__panel{padding:0 20px 20px}
  .ltcc__steps{grid-template-columns:1fr}
}

@media(max-width:767px){
  .ltcc__summary{
    min-height:84px;
    gap:12px;
  }
  .ltcc__summary-main{gap:11px}
  .ltcc__badge{
    min-height:31px;
    padding:0 10px;
    font-size:11px;
  }
  .ltcc__title{font-size:19px!important}
  .ltcc__intro{
    max-width:58vw;
    font-size:12px;
  }
  .ltcc__active-summary{font-size:11px}
  .ltcc__toggle{
    width:42px;
    min-width:42px;
    height:42px;
    padding:0;
  }
  .ltcc__toggle-open,
  .ltcc__toggle-close{display:none!important}
  .ltcc__panel{padding:0 16px 18px}
  .ltcc__steps{gap:12px;padding:16px 0}
  .ltcc__step{padding:15px;border-radius:17px}
  .ltcc__cards{grid-template-columns:1fr}
  .ltcc__custom-dimensions{grid-template-columns:1fr}
  .ltcc__footer{
    align-items:stretch;
    flex-direction:column;
    padding-top:15px;
  }
  .ltcc__actions{display:grid;grid-template-columns:1fr}
  .ltcc__reset,
  .ltcc__submit{width:100%}
  .ltcc__submit{grid-row:1}
  .ltcc__status{text-align:center}
}

@media(max-width:575px){
  .ltcc{
    left:auto;
    width:100%;
    max-width:100%;
    margin:8px 0 14px;
    border-radius:22px;
    transform:none;
  }
  .ltcc__summary{
    min-height:78px;
    padding:13px 14px;
  }
  .ltcc__badge{display:none}
  .ltcc__intro{display:none}
  .ltcc__title{font-size:18px!important}
  .ltcc__active-summary{margin-top:3px}
}
