
/* =========================
   STEP2 – karta/layout
   ========================= */



.cart-step2-wrap{
  max-width: 720px;
  margin: 15px auto;
  padding: 0;
}
@media (max-width: 900px){
  .cart-step2-wrap{ max-width: 100%; }
}

.cart-step2,
.cart-step2 *{ box-sizing: border-box; }

.cart-step2{
  margin-top: 0;
  padding: 0;
}

/* grid jen pro row, které jsou skutečně layout řádky */
.cart-step2 .row:not(.g-3){
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 12px;
  margin: 0 0 12px 0;
}
@media (max-width: 820px){
  .cart-step2 .row:not(.g-3){ grid-template-columns: 1fr; }
}
.cart-step2 .row.js-companyFields{
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 820px){
  .cart-step2 .row.js-companyFields{ grid-template-columns: 1fr; }
}
/* Bootstrap col-* jen pro GRID řádky (nechci rozbít .row.g-3) */
.cart-step2 .row:not(.g-3) > [class*="col-"]{
  width: auto !important;
  max-width: none !important;
  flex: initial !important;
  padding: 0 !important;
}

/* registrace .fp reset */
.cart-step2 .fp{
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Label + error */
.cart-step2 .form-label{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  opacity: .85;
}
.cart-step2 .errreg{
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #b91c1c;
}

/* Inputy */
.cart-step2 .form-control{
  width: 100% !important;
  max-width: none !important;
  height: 35px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #0f172a;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cart-step2 .form-control:hover{ border-color: rgba(15,23,42,.22); }
.cart-step2 .form-control:focus{
  border-color: rgba(2,132,199,.55);
  box-shadow: 0 0 0 3px rgba(2,132,199,.18);
}

/* Firemní blok přes celou šířku + oddělovač */
.cart-step2 .js-companyFields{ grid-column: 1 / -1; }
.cart-step2 .row.reg-ohraniceni{
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(15,23,42,.08);
}

/* ÚČET – checkbox + hint (bez duplicit) */
.cart-step2 .account-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin: 8px 0 10px 0;
  flex-wrap: wrap;
}
.cart-step2 .account-hint{
  font-size:12px;
  opacity:.7;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 820px){
  .cart-step2 .account-hint{
    white-space: normal;
    flex: 0 0 100%;
  }
}

/* Heslo oko */
.cart-step2 .password-field{ position: relative; }
.cart-step2 .password-toggle{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  min-width: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Submit bar */
.cart-step2 .cart-submitbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.08);
}
@media (max-width: 820px){
  .cart-step2 .cart-submitbar{ flex-direction: column; align-items: stretch; }
  .cart-step2 .cart-submitbar .cart-back{ justify-content:center; }
  .cart-step2 .btn_reg{ width: 100%; }
}
/* STEP1 – spodní lišta akcí: vedle sebe */
.pdp-card .cart-actions{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 14px;
}

/* levá + pravá část ať nejsou 100% */
.pdp-card .cart-actions-left,
.pdp-card .cart-actions-right{
  flex: 0 0 auto;
}

/* ať tlačítko není block / full width */
.pdp-card .cart-actions-right .cart-next{
  display:inline-flex;
  white-space:nowrap;
}

/* mobil: klidně pod sebe */
@media (max-width: 820px){
  .pdp-card .cart-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .pdp-card .cart-actions-right .cart-next{
    width:100%;
    justify-content:center;
  }
  .pdp-card .cart-actions-left .cart-back{
    justify-content:center;
  }
}
/* =========================
   BUTTONS – sjednocení (step1 + step2)
   ========================= */
.cart-step2 .cart-submitbar .cart-back,
.pdp-card .cart-actions a.cart-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  font-weight:600;
  line-height:34px;
  justify-content:space-between;

}
.cart-step2 .cart-submitbar .cart-back:hover,
.pdp-card .cart-actions a.cart-back:hover{
  background: rgba(2,132,199,.08);
  border-color: rgba(2,132,199,.25);
  text-decoration:none;
}
.pdp-card .cart-actions a.cart-back:active{ transform: translateY(1px); }

.cart-next{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(2,132,199,.25);
  background: rgba(2,132,199,.10);
  color:#075985;
  font-weight:600;
  cursor:pointer;
  line-height:34px;
}
.cart-next:hover{
  background: rgba(2,132,199,.16);
  border-color: rgba(2,132,199,.35);
}
.cart-next:active{ transform: translateY(1px); }

.cart-step2 .btn_reg{
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(2,132,199,.25);
  background: rgba(2,132,199,.10);
  color:#075985;
  font-weight: 600;
  cursor: pointer;
}
.cart-step2 .btn_reg:hover{
  background: rgba(2,132,199,.16);
  border-color: rgba(2,132,199,.35);
}

/* =========================
   RFQ CART – STEP1 + STEP2
   CLEAN (jedna definice)
   ========================= */

/* --- helpers (sjednocené) --- */
.rfq-muted{ opacity:.75; }
.rfq-dot{ opacity:.45; }

.rfq-pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  font-weight:800;
}
.rfq-pill--green{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.08);
  color: #166534;
}
/* =========================
   STEP1 – sticky summary bar (DE CENT)
   ========================= */
.rfq-sumbar{
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  gap:14px;

  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 18px rgba(15,23,42,.05);

  position: sticky;
  top: 10px;
  z-index: 20;
  margin-top: 12px;
  margin-bottom: 12px;

  backdrop-filter: blur(8px);
}

.rfq-sum-title{
  font-weight: 700;              /* bylo 900 */
  font-size: 12px;
  color: rgba(15,23,42,.70);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.rfq-sum-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size: 13px;
  color: rgba(15,23,42,.78);
}

.rfq-sum-right{
  display:flex;
  flex-direction: column;
  align-items:flex-end;
  gap:6px;
  flex:0 0 auto;
  padding-top: 2px;

  align-self: stretch;      /* ✅ natáhne pravý sloupec */
}

.rfq-sum-actions{
  display:flex;
  align-items:center;
  gap:10px;

  margin-top: auto;          /* <-- tlačítka do středu */
  margin-bottom: auto;       /* <-- tlačítka do středu */
}
.rfq-sum-id{
  font-size: 11px;
  opacity: .6;
  line-height: 1;
  margin: 0;
}
@media (max-width: 920px){
  .rfq-sum-right{ align-items: stretch; }
  .rfq-sum-id{ text-align:left; }
  .rfq-sum-actions{ width:100%; }
}

/* pilulky zjemnit */
.rfq-pill{
  display:inline-flex;
  align-items:center;
  height:24px;                   /* bylo 26 */
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  font-weight:700;               /* bylo 800 */
  font-size: 12px;
}

.rfq-pill--green{
  border-color: rgba(22,163,74,.18);
  background: rgba(22,163,74,.06);
  color: rgba(22,101,52,.92);
}

/* tlačítka v sumbaru – menší a klidnější */
.rfq-sum-save{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 32px;                  /* bylo 34 */
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  color: rgba(15,23,42,.85);
  font-weight: 600;              /* bylo 800 */
  cursor:pointer;
}
.rfq-sum-save:hover{
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.16);
}

/* i "Pokračovat" ať není hero (když ho chceš stejně decentní) */
.rfq-sumbar .cart-next{
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  font-weight: 650;
}

/* mobil */
@media (max-width: 920px){
  .rfq-sumbar{ position: static; }
  .rfq-sum-right{ width:100%; }
  .rfq-sum-save, .cart-next{ flex:1; justify-content:center; }
}
/* =========================
   STEP1 – cenová pásma
   (používáš v rfq-summary, ale můžeš je kdykoli přesunout i do sumbaru)
   ========================= */
.rfq-bands{ margin-top:10px; }
.rfq-band-top{
  display:flex; flex-wrap:wrap; gap:10px; align-items:baseline;
  font-size:13px;
}
.rfq-band-name{
  font-weight:600;   /* bylo default bold, zjemní */
}
.rfq-band-label{ opacity:.7; }
.rfq-band-next{ opacity:.8; }

.rfq-band-bar{
  height:10px; border-radius:999px;
  background: rgba(15,23,42,.08);
  overflow:hidden;
  margin-top:8px;
}
.rfq-band-fill{
  height:100%;
  background: rgba(2,132,199,.55);
  border-radius:999px;
}
.rfq-band-steps{
  display:flex; gap:8px; flex-wrap:wrap;
  margin-top:8px;
  font-size:12px;
}
.rfq-step{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  opacity:.65;
  font-weight:600;

}
.rfq-step.is-active{
  opacity:1;
  border-color: rgba(2,132,199,.30);
  background: rgba(2,132,199,.10);
  font-weight:700;  
}
.rfq-step.is-done{
  opacity:1;
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.08);
}


/* =========================
   STEP1 – cart cards (decent B2B)
   ========================= */
.rfq-cart{ margin-top:14px; }
.rfq-cart *{ box-sizing:border-box; }

/* hlavička tabulky – méně křiku */
.rfq-cart-head{
  display:grid;
  grid-template-columns: 1.6fr .9fr .7fr .4fr;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
  background: rgba(2,132,199,.04);
  color: rgba(15,23,42,.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rfq-cart-head .is-right{ text-align:right; }
.rfq-cart-head .is-center{ text-align:center; }

.rfq-cart-list{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* řádek – jemnější border + menší shadow */
.rfq-row{
  display:grid;
  grid-template-columns: 1.6fr .9fr .7fr .4fr;
  gap: 12px;
  align-items:center;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 16px;
  background:#fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.05);
}

/* produkt */
.rfq-prod{
  display:flex;
  gap:12px;
  align-items:center;
  min-width:0;
}
.rfq-img{
  width:100px;
  height:100px;
  flex:0 0 100px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(15,23,42,.06);
  background: rgba(15,23,42,.02);
  display:flex;
  align-items:center;
  justify-content:center;
}
.rfq-img img{
  width:100%;
  height:100%;
  object-fit: cover;      /* <- důležitý */
  object-position: center;
  display:block;
}

.rfq-img-empty{ font-size:11px; opacity:.6; }

.rfq-prod-meta{ min-width:0; }
.rfq-title{
  display:block;
  color: rgba(15,23,42,.92);
  text-decoration:none;
  font-weight: 600;     /* méně tučné */
  font-size: 14px;
  line-height: 1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}
.rfq-title:hover{ text-decoration:underline; }
.rfq-sub{
  margin-top:6px;
  font-size:12px;
  color: rgba(15,23,42,.55);
}

/* cena – menší a decentní, hierarchie */
.rfq-price{
  text-align:right;
  font-size: 13px;
  color: rgba(15,23,42,.82);
}
.rfq-price-main{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  align-items:baseline;
  line-height: 1.15;
}
.rfq-price-prefix{
  font-size: 12px;
  color: rgba(15,23,42,.55);
}
.rfq-price-num{
  font-weight: 700;                 /* bylo 800 */
  color: rgba(22,163,74,.85);       /* méně agresivní zelená */
}
.rfq-price-note{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  margin-left: 6px;
  white-space:nowrap;
}
.rfq-price-vat{
  margin-top: 2px;
  font-size: 12px;                  /* bylo 13 */
  color: rgba(15,23,42,.70);
  opacity: 1;                       /* nech opacity řídit barvou */
}

/* Vaše cena – už není “hero”, jen doplňková */
.rfq-your{
  margin-top:8px;
  padding-top:8px;
  border-top: 1px dashed rgba(15,23,42,.10);
}
.rfq-your-label{
  font-size: 11px;
  font-weight: 600;
  color: rgba(15,23,42,.65);
  margin-bottom: 3px;
}
.rfq-your-main{
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.88);
}

/* cena na dotaz */
.rfq-na{
  text-align:right;
  color: rgba(15,23,42,.55);
  font-weight: 600;
}

/* qty + akce */
.rfq-qty{
  display:flex;
  justify-content:flex-end;
  padding-right: 8px;
}
.rfq-act{
  display:flex;
  justify-content:flex-end;
}
/* buttons – ještě decentnější (hlavně Smazat) */
.rfq-row .btn{
  border-radius: 10px;
  padding: 7px 10px;                 /* menší */
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  color: rgba(15,23,42,.82);
  font-weight: 600;                  /* ne bold */
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}

.rfq-row .btn--danger{
  border-color: rgba(239,68,68,.16);
  background: rgba(239,68,68,.04);   /* méně růžový */
  color: rgba(185,28,28,.80);
}
.rfq-row .btn--danger:hover{
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.22);
}
/* buttons – méně alarm */
.rfq-row .btn:hover{
  background: rgba(15,23,42,.03);
  border-color: rgba(15,23,42,.16);
}


/* mobil */
@media (max-width: 920px){
  .rfq-cart-head{ display:none; }

  .rfq-row{
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rfq-img{ width:56px; height:56px; flex-basis:56px; }

  .rfq-price{ text-align:left; }
  .rfq-price-main{ justify-content:flex-start; }

  .rfq-qty{ justify-content:flex-start; padding-right:0; }
  .rfq-act{ justify-content:flex-start; }
}




/* =========================
   QTY – compact (modern B2B)
   ========================= */
.rfq-qty .qtybox{
  display:inline-flex;
  align-items:center;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.rfq-qty .qtybtn{
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.80);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.rfq-qty .qtybtn:hover{
  background: rgba(15,23,42,.08);
}

.rfq-qty input.cart-qty{
  width: 52px;
  height: 32px;
  border: 0;
  border-left: 1px solid rgba(15,23,42,.08);
  border-right: 1px solid rgba(15,23,42,.08);
  background: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color:#0f172a;
  outline: none;
}

/* schovej šipky v inputu */
.rfq-qty input.cart-qty::-webkit-outer-spin-button,
.rfq-qty input.cart-qty::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.rfq-qty input.cart-qty{ -moz-appearance: textfield; }

/* mobil: trochu větší (tap friendly) */
@media (max-width: 920px){
  .rfq-qty .qtybox{ height: 36px; }
  .rfq-qty .qtybtn{ width: 36px; height: 36px; }
  .rfq-qty input.cart-qty{ height: 36px; width: 60px; }
}


/* STEP2 – karta + top hláška musí mít IDENTICKÝ box model */
.pdp-card.rfq-step2{
  box-sizing: border-box;   /* ✅ tohle je ten klíč */
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 26px;
  padding-right: 26px;
}

.rfq-top-hlaska.rfq-step2{
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 12px auto;
  
  
}


@media (max-width: 900px){
  .pdp-card.rfq-step2,
  .rfq-top-hlaska.rfq-step2{
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
.cart-step2 textarea.form-control{
  height: 90px !important;
  line-height: 1.35;
}
/* message/pole přes celou šířku (span přes oba sloupce gridu) */
.cart-step2 .row.row-full > [class*="col-"]{
  grid-column: 1 / -1;
}


.rfq-savehint{
  display:inline-flex;
  align-items:center;
  min-height: 16px;
  font-size: 12px;
  opacity: .75;
  margin-right: 8px;
  white-space: nowrap;
}
.rfq-savehint.is-saving{ opacity: .85; }
.rfq-savehint.is-ok{ color: rgba(22,101,52,.92); opacity: .9; }
.rfq-savehint.is-err{ color: rgba(185,28,28,.90); opacity: .95; }

.cart-step2 .is-err{
  border: 1px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.field-err{ font-size:12px; color:#ef4444; margin-top:6px; }

/* disabled tlačítka v RFQ košíku */
.rfq-sum-actions button[disabled],
.cart-actions button[disabled]{
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none; /* pro jistotu i kdyby něco přebíjelo */
  filter: grayscale(0.2);
}

.link_do_katalogu{
  margin-left: 10px;
  text-decoration: none;
  font-weight: 600;
  color: #0b74c8;      /* klidně změň na tvoji primary */
  opacity: .9;
}

.link_do_katalogu:hover{
  text-decoration: underline;
  opacity: 1;
}

.link_do_katalogu:focus{
  outline: none;
}

.link_do_katalogu:focus-visible{
  text-decoration: underline;
}