﻿/* === Průvodce krok za krokem === */


.step-guide,
.step-guide *{
  box-sizing:border-box;
}




/* Proměnné komponenty */
.step-guide{
  --sg-pad-x: 18px;     /* běžné vodorovné odsazení obsahu */
  --sg-pad-y: 16px;     /* svislé odsazení kroku */
  --sg-bleed-x: 18px;   /* o kolik se má krok roztáhnout do stran */
  --sg-gap: 12px;
}




/* Reset jen toho, co Shoptet často rozhází v blogu */
.step-guide ol,
.step-guide ul{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}


.step-guide li{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}


.step-guide p{
  margin:0 !important;
}




/* Karta */
.step-guide__card{
  background:#ffffff;
  border:1px solid #d9deea;
  border-radius:4px;
  overflow:hidden;
  box-shadow:0 1px 0 rgba(15,64,93,.05);
  width:100%;
}




/* Hlavička */
.step-guide__head{
  padding:14px var(--sg-pad-x) !important;
  background:#edeff7;
  border-bottom:1px solid #d9deea;
}




/* Hlavní nadpis – bere styl z webu */
.step-guide__title{
  margin:0 !important;
  padding:0 !important;
}




/* Text pod nadpisem – zarovnán stejně jako nadpis, jen mini mezera */
.step-guide__subtitle{
  margin:2px 0 0 !important;
  padding:0 !important;
  font-size:14px;
  line-height:1.45;
  color:#76798a;
}




/* Seznam kroků */
.step-guide__list{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}




/* Krok */
.step-guide__list > .step{
  display:grid;
  grid-template-columns:34px 1fr;
  gap:var(--sg-gap);
  position:relative;
  background:#fcfdff;


  margin-left:calc(var(--sg-bleed-x) * -1) !important;
  margin-right:calc(var(--sg-bleed-x) * -1) !important;


  padding-top:var(--sg-pad-y) !important;
  padding-bottom:var(--sg-pad-y) !important;
  padding-left:calc(var(--sg-pad-x) + var(--sg-bleed-x)) !important;
  padding-right:calc(var(--sg-pad-x) + var(--sg-bleed-x)) !important;


  /* full-width oddělovací linka bez posunu layoutu */
  box-shadow:inset 0 -1px 0 #f8f9fc;
}


.step-guide__list > .step:last-child{
  box-shadow:none;
}




/* Číslo + linka */
.step__index{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}


.step__badge{
  width:28px;
  height:28px;
  border-radius:999px;
  background:#eceef7;
  border:1px solid #dce0ec;
  color:#323546;
  font-weight:700;
  font-size:13px;
  display:flex;
  align-items:center;
  justify-content:center;
}




/* Svislá spojnice */
.step__index:after{
  content:"";
  position:absolute;
  top:34px;
  left:50%;
  transform:translateX(-50%);
  width:2px;
  height:calc(100% - 34px);
  background:#dce0ec;
}


.step-guide__list > .step:last-child .step__index:after{
  display:none;
}




/* Obsah kroku */
.step__topline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}


.step__heading{
  margin:0 !important;
  font-size:14px;
  line-height:1.35;
  font-weight:700;
  color:#323546;
}


.step__tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:#eceef7;
  color:#323546;
  font-size:12px;
  line-height:1.2;
  border:1px solid #dce0ec;
  white-space:nowrap;
  text-decoration:none;
}


.step__text{
  margin:6px 0 0 !important;
  font-size:14px;
  line-height:1.5;
  color:#323546;
}




/* Volitelně “hotovo” */
.step-guide__list > .step.is-done .step__badge{
  background:#eceef7;
  border-color:#dce0ec;
}




/* Mobil */
@media (max-width:640px){
  .step-guide{
    --sg-pad-x: 14px;
    --sg-pad-y: 14px;
    --sg-bleed-x: 14px;
    --sg-gap: 10px;
  }


  .step-guide__head{
    padding:12px var(--sg-pad-x) !important;
  }


  .step-guide__list > .step{
    grid-template-columns:32px 1fr;
  }


  .step-guide__subtitle{
    margin-top:2px !important;
  }
}