/* =========================================================
   JOSPORT.CZ — REDESIGN 2026 / PŘIDÁNO DO KOŠÍKU V2
   Bezpečná CSS varianta. Nemění rozměry ani funkci Colorboxu.
   ========================================================= */

/* Hlavní obsah popupu */
#colorbox .colorbox-html-content .advanced-order {
  padding: 0 20px 26px;
  color: #12263a;
  background: #fff;
}

/* Horní modrý panel */
#colorbox .colorbox-html-content .advanced-order > .h1:first-child {
  position: relative;
  margin: 0 -20px 18px;
  padding: 58px 72px 20px 34px;
  color: #fff;
  background: linear-gradient(135deg, #17385f 0%, #214f86 60%, #2c6aaa 100%);
  text-align: left;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  border: 0;
}

#colorbox .colorbox-html-content .advanced-order > .h1:first-child::before {
  content: "JOsport.cz";
  position: absolute;
  top: 24px;
  left: 34px;
  padding-left: 40px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

#colorbox .colorbox-html-content .advanced-order > .h1:first-child::after {
  content: "";
  position: absolute;
  top: 29px;
  left: 34px;
  width: 28px;
  height: 3px;
  border-radius: 4px;
  background: #28a8e9;
}

/* Název produktu */
#colorbox .colorbox-html-content .advanced-order > .h2 {
  margin: 0 0 14px;
  padding: 15px 18px;
  color: #17385f;
  background: #f4f8fc;
  border: 1px solid #dce8f4;
  border-radius: 12px;
  text-align: left;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

/* Sleva po registraci */
#colorbox .colorbox-html-content .advanced-order .extras-wrap {
  margin: 0 0 16px;
  padding: 12px 16px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #17385f;
  background: #eef7fd;
  border: 1px solid #d4eafa;
  border-radius: 12px;
}

#colorbox .colorbox-html-content .advanced-order .extras-wrap > * {
  margin-top: 0;
  margin-bottom: 0;
}

#colorbox .colorbox-html-content .advanced-order .extras-wrap a {
  color: #145f9c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tlačítka */
#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons {
  margin: 0;
  padding: 2px 0 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .btn {
  min-height: 46px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .next-step-back {
  color: #17385f;
  background: #fff;
  border: 1px solid #cbdbea;
}

#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .next-step-back:hover {
  background: #f3f7fb;
  border-color: #9fbad2;
  transform: translateY(-1px);
}

#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .btn-conversion {
  color: #fff;
  background: #155f9d;
  border: 1px solid #155f9d;
  box-shadow: 0 8px 20px rgba(21, 95, 157, .2);
}

#colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .btn-conversion:hover {
  background: #104f84;
  border-color: #104f84;
  transform: translateY(-1px);
}

/* Nadpis doporučených produktů */
#colorbox .colorbox-html-content .advanced-order .advanced-order-suggestion {
  margin: 0 0 18px;
  padding: 26px 2px 0;
  color: #17385f;
  border-top: 1px solid #e1e9f1;
  text-align: left;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

/* Zavírací křížek – pouze vzhled, bez změny polohy popupu */
#colorbox #cboxClose {
  z-index: 100;
}

/* Mobil */
@media (max-width: 767px) {
  #colorbox .colorbox-html-content .advanced-order {
    padding: 0 12px 20px;
  }

  #colorbox .colorbox-html-content .advanced-order > .h1:first-child {
    margin: 0 -12px 14px;
    padding: 54px 54px 17px 18px;
    font-size: 27px;
  }

  #colorbox .colorbox-html-content .advanced-order > .h1:first-child::before {
    top: 22px;
    left: 18px;
    padding-left: 36px;
  }

  #colorbox .colorbox-html-content .advanced-order > .h1:first-child::after {
    top: 27px;
    left: 18px;
    width: 25px;
  }

  #colorbox .colorbox-html-content .advanced-order > .h2 {
    padding: 13px 14px;
    font-size: 14px;
  }

  #colorbox .colorbox-html-content .advanced-order .extras-wrap {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  #colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons {
    flex-direction: column-reverse;
  }

  #colorbox .colorbox-html-content .advanced-order .advancedOrder__buttons .btn {
    width: 100%;
  }

  #colorbox .colorbox-html-content .advanced-order .advanced-order-suggestion {
    font-size: 21px;
  }
}
