/* ZDRAVAMATRACE.CZ - BADGES v4
   Bez globalniho skryvani .flags.
   Systemove Shoptet stitky zustavaji nedotcene.
*/

/* ===== DETAIL - ZAOBLENE KLIKACI BOXY ===== */
.zm-product-badges,
.zm-product-badges *{
  box-sizing:border-box;
}
.zm-product-badges{
  margin:14px 0 18px;
  padding-top:12px;
  border-top:1px solid #dbe5ea;
}
.zm-product-badges__title{
  margin:0 0 9px;
  color:#254e65;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
.zm-product-badges__grid{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:7px;
}
.zm-product-badge{
  display:flex;
  flex:0 0 88px;
  width:88px;
  height:90px;
  padding:6px 4px 5px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #dbe5ea;
  border-radius:9px;
  color:#254e65!important;
  text-align:center;
  text-decoration:none!important;
}
.zm-product-badge__image{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  margin:0 auto 4px;
  flex:0 0 46px;
  border-radius:50%;
  overflow:hidden;
}
.zm-product-badge__image img{
  display:block;
  width:46px;
  height:46px;
  object-fit:contain;
}
.zm-product-badge__text{
  display:block;
  width:100%;
  min-height:22px;
  color:#254e65!important;
  font-family:Arial,Helvetica,sans-serif!important;
  font-size:9.5px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:0!important;
  white-space:normal!important;
  overflow:visible!important;
}

/* ===== PUVODNI CUSTOM FLAGY V PREHLEDU JSOU JEN ZDROJ DAT ===== */
body:not(.type-product) .flag.zm-graphic-flag{
  display:none!important;
}

/* ===== DESKTOP PREHLED - BADGE SVISLE POD SEBOU ===== */
.zm-listing-badges-row{
  position:absolute!important;
  z-index:8!important;
  display:flex!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:46px!important;
  max-width:46px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.zm-listing-badge{
  display:block!important;
  flex:0 0 46px!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  max-width:46px!important;
  max-height:46px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  object-fit:contain!important;
}

/* ===== DETAIL - HORNI KULATE BADGE ===== */
.type-product .flag.zm-graphic-flag{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  align-items:center!important;
  justify-content:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
}
.type-product .flag.zm-graphic-flag img{
  display:block!important;
  width:44px!important;
  height:44px!important;
  object-fit:contain!important;
  border-radius:50%!important;
}
.type-product .zm-graphic-flags-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:4px!important;
  width:max-content!important;
  max-width:none!important;
  margin-top:4px!important;
}

/* ===== DOPRAVA ZDARMA - VLASTNI SVG ===== */
/* Nevnucujeme display:flex vsem Shoptet kopiim - JS vybere jen jednu viditelnou. */
.flag.zm-free-shipping-icon{
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
cursor: pointer;
  overflow:visible!important;
}
.flag.zm-free-shipping-icon:before,
.flag.zm-free-shipping-icon:after{
  content:none!important;
  display:none!important;
}
.flag.zm-free-shipping-icon > *:not(img){
  display:none!important;
}
.flag.zm-free-shipping-icon img{
  display:block!important;
  object-fit:contain!important;
}
.flag.zm-free-shipping-primary{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
.flag.zm-free-shipping-duplicate{
  display:none!important;
  visibility:hidden!important;
}

/* Desktop prehled: 84 px */
body:not(.type-product) .flag.zm-free-shipping-icon,
body:not(.type-product) .flag.zm-free-shipping-icon img{
  width:84px!important;
  height:84px!important;
  min-width:84px!important;
  min-height:84px!important;
  max-width:84px!important;
  max-height:84px!important;
}

/* Desktop detail: 91 px */
.type-product .flag.zm-free-shipping-icon,
.type-product .flag.zm-free-shipping-icon img{
  width:91px!important;
  height:91px!important;
  min-width:91px!important;
  min-height:91px!important;
  max-width:91px!important;
  max-height:91px!important;
}

/* ===== MOBIL ===== */
@media(max-width:767px){

  /* Prehled: vodorovne, stejne velke jako v detailu */
  .zm-listing-badges-row{
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:3px!important;
    width:max-content!important;
    max-width:none!important;
    height:30px!important;
  }
  .zm-listing-badge{
    flex:0 0 30px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }

  /* Detail: stejnych 30 px */
  .type-product .flag.zm-graphic-flag{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
  }
  .type-product .flag.zm-graphic-flag img{
    width:30px!important;
    height:30px!important;
  }
  .type-product .zm-graphic-flags-row{
    flex-direction:row!important;
    gap:3px!important;
  }

  /* Doprava prehled: ponechano 50 px */
  body:not(.type-product) .flag.zm-free-shipping-icon,
  body:not(.type-product) .flag.zm-free-shipping-icon img{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
    max-width:50px!important;
    max-height:50px!important;
  }

  /* Doprava detail: +20 % = 60 px */
  .type-product .flag.zm-free-shipping-icon,
  .type-product .flag.zm-free-shipping-icon img{
    width:60px!important;
    height:60px!important;
    min-width:60px!important;
    min-height:60px!important;
    max-width:60px!important;
    max-height:60px!important;
  }

  .zm-product-badge{
    flex:1 1 0;
    width:auto;
    min-width:0;
    height:80px;
    padding:5px 2px 4px;
  }
  .zm-product-badge__image{
    width:38px;
    height:38px;
    flex-basis:38px;
    margin-bottom:3px;
  }
  .zm-product-badge__image img{
    width:38px;
    height:38px;
  }
  .zm-product-badge__text{
    min-height:20px;
    font-size:8px!important;
    line-height:1.18!important;
  }
}
/* ===== OPRAVA IKON - PORADNA PRO ZADA A SPANEK ===== */

@media (min-width: 768px) {

    .navigation-in .zm-advice-menu img {
        width: auto !important;
        height: auto !important;

        max-width: 76px !important;
        max-height: 54px !important;

        object-fit: contain !important;
        object-position: center center !important;

        flex-shrink: 0 !important;
    }

}
/* ===== PRUVODCE VYBEREM MATRACE – POUZE UVNIT #sleep-advisor ===== */
#sleep-advisor.sa{
  max-width:900px;
  margin:60px auto;
  color:#0e1644;
  font-family:Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
#sleep-advisor .sa-head h1{
  margin:0 0 10px;
  color:#0e1644;
  font-size:42px;
  line-height:1.15;
  font-weight:800;
}
#sleep-advisor .sa-head p{
  color:#617386;
}
#sleep-advisor .progress{
  height:6px;
  margin:20px 0;
  overflow:hidden;
  border-radius:10px;
  background:#edf2f5;
}
#sleep-advisor .bar{
  width:33%;
  height:100%;
  border-radius:10px;
  background:#789cae;
  transition:width .3s ease;
}
#sleep-advisor .trust{
  color:#617386;
  font-size:13px;
  line-height:1.5;
}
#sleep-advisor .step{
  display:none;
}
#sleep-advisor .step.active{
  display:block;
}
#sleep-advisor .step h2,
#sleep-advisor #result > h2{
  margin:0 0 20px;
  color:#254e65;
  font-size:26px;
  line-height:1.25;
  font-weight:800;
}
#sleep-advisor .options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:12px;
}
#sleep-advisor .opt{
  padding:18px;
  border:1px solid #dbe5ea;
  border-radius:14px;
  background:#fff;
  color:#254e65;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease;
}
#sleep-advisor .opt:hover,
#sleep-advisor .opt:focus-visible{
  border-color:#789cae;
  box-shadow:0 6px 18px rgba(37,78,101,.09);
  outline:none;
}
#sleep-advisor .opt.active{
  border:2px solid #254e65;
  background:#f5f9fb;
}
#sleep-advisor .nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:30px;
}
#sleep-advisor .nav button{
  min-height:48px;
  margin:0;
  padding:14px 20px;
  border:0;
  border-radius:12px;
  font:700 15px/1.25 Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  cursor:pointer;
}
#sleep-advisor #next,
#sleep-advisor #finish{
  background:#254e65;
  color:#fff;
}
#sleep-advisor #prev{
  background:#e8eef2;
  color:#254e65;
}
#sleep-advisor #result{
  margin-top:40px;
}
#sleep-advisor .product-card{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:15px;
  padding:18px;
  border:1px solid #dbe5ea;
  border-radius:14px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease;
}
#sleep-advisor .product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px rgba(37,78,101,.08);
}
#sleep-advisor .product-img{
  width:90px;
  height:90px;
  border-radius:10px;
  object-fit:cover;
}
#sleep-advisor .product-title{
  color:#254e65;
  font-weight:700;
}
#sleep-advisor .lead-box{
  margin-top:40px;
}
#sleep-advisor .lead-box h3,
#sleep-advisor .team-box h3{
  margin:0 0 20px;
  color:#254e65;
  font-size:24px;
  line-height:1.3;
}
#sleep-advisor .lead-grid{
  display:grid;
  gap:12px;
}
#sleep-advisor .lead-grid input{
  min-height:50px;
  padding:14px 16px;
  border:1px solid #dbe5ea;
  border-radius:12px;
  font:400 15px/1.4 Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
#sleep-advisor .lead-btn{
  margin-top:16px;
  padding:18px;
  border-radius:14px;
  background:#caa713;
  color:#fff;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:opacity .2s ease;
}
#sleep-advisor .lead-btn:hover{
  opacity:.9;
}
#sleep-advisor .team-box{
  margin-top:50px;
}
#sleep-advisor .team-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
#sleep-advisor .person{
  padding:24px;
  border:1px solid #edf1f3;
  border-radius:20px;
  background:#fff;
  text-align:center;
}
#sleep-advisor .person img{
  width:110px;
  height:110px;
  border-radius:50%;
  object-fit:cover;
}
#sleep-advisor .person-name{
  color:#254e65;
  font-weight:700;
}
#sleep-advisor .person-role{
  color:#617386;
  font-size:13px;
}
#sleep-advisor .person-email{
  color:#435363;
  font-size:13px;
}

/* ===== VYBER BALIKOVNY V KOSIKU ===== */
#order-shipping-methods [data-testid="deliveryPoint"]{
  display:block;
  margin-top:10px;
}
#order-shipping-methods [data-testid="deliveryPoint"] a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border:2px solid #0f2c4a;
  border-radius:10px;
  background:#0f2c4a;
  box-shadow:0 2px 6px rgba(15,44,74,.18);
  color:#fff!important;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  text-decoration:none!important;
  white-space:normal;
  transition:background-color .2s ease,border-color .2s ease;
}
#order-shipping-methods [data-testid="deliveryPoint"] a::after{
  content:"›→";
  margin-left:10px;
  font-size:22px;
  line-height:1;
}
#order-shipping-methods [data-testid="deliveryPoint"] a:hover{
  border-color:#183f63;
  background:#183f63;
  color:#fff!important;
}
#order-shipping-methods [data-testid="deliveryPoint"] a:focus-visible{
  outline:3px solid rgba(15,44,74,.3);
  outline-offset:3px;
}

/* ===== ODKAZ DOPRAVA A PLATBA V DETAILU PRODUKTU ===== */
.zm-delivery-payment,
.zm-delivery-payment *{
  box-sizing:border-box;
}
.zm-delivery-payment{
  display:grid;
  grid-template-columns:30px 1fr auto;
  align-items:center;
  gap:12px;
  min-height:56px;
  margin:14px 0 18px;
  padding:12px 2px;
  border-top:1px solid #dbe5ee;
  border-bottom:1px solid #dbe5ee;
  color:#254e65!important;
  font-family:Roboto,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  text-decoration:none!important;
  transition:color .2s ease,border-color .2s ease;
}
.zm-delivery-payment:hover,
.zm-delivery-payment:focus{
  border-color:#789cae;
  color:#caa713!important;
  text-decoration:none!important;
}
.zm-delivery-payment:focus-visible{
  outline:3px solid rgba(202,167,19,.42);
  outline-offset:3px;
}
.zm-delivery-payment__icon{
  display:block;
  width:28px;
  height:28px;
  color:#789cae;
}
.zm-delivery-payment__icon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.zm-delivery-payment__title{
  display:block;
  color:inherit;
  font-size:15px;
  line-height:1.3;
  font-weight:700;
}
.zm-delivery-payment__text{
  display:block;
  margin-top:2px;
  color:#617386;
  font-size:13px;
  line-height:1.4;
}
.zm-delivery-payment__arrow{
  font-size:22px;
  line-height:1;
}

@media(max-width:767px){
  #sleep-advisor.sa{
    margin:34px auto;
  }
  #sleep-advisor .sa-head h1{
    font-size:32px;
  }
  #sleep-advisor .options{
    grid-template-columns:1fr;
  }
  #sleep-advisor .nav button{
    flex:1 1 140px;
  }
  #sleep-advisor .team-grid{
    grid-template-columns:1fr;
  }
  #order-shipping-methods [data-testid="deliveryPoint"]{
    margin-top:8px;
  }
  #order-shipping-methods [data-testid="deliveryPoint"] a{
    width:100%;
    min-height:46px;
    padding:11px 14px;
    font-size:15px;
  }
  .zm-delivery-payment{
    grid-template-columns:28px 1fr auto;
    min-height:62px;
    margin:13px 0 16px;
    padding:11px 2px;
  }
  .zm-delivery-payment__title{
    font-size:16px;
  }
}
