/* Proces zakupu ebooka: ikona koszyka, podsumowanie zamowienia, wyroznienie pakietu (ladowane na wszystkich stronach, takze Elementor Canvas) */
/* Ikona koszyka w naglowku */
.krasti-koszyk {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgb(162 112 75);
}
.krasti-koszyk:hover {
  color: rgb(92 51 93);
}
.krasti-koszyk--mobile svg {
  width: 26px;
  height: 26px;
}
.krasti-koszyk__licznik {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #C96A7B;
  color: #fff;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
}
.krasti-koszyk__licznik[hidden],
.krasti-koszyk[hidden] {
  display: none !important;
}
/* Zamowienie: podsumowanie zawsze rozwiniete (takze na telefonie) */
.wc-block-components-checkout-order-summary__content {
  display: block !important;
}
.wc-block-components-checkout-order-summary__title {
  pointer-events: none;
}
.wc-block-components-checkout-order-summary__title-icon {
  display: none !important;
}
.krasti-zmien {
  margin: 0 0 16px;
  font-size: 15px;
}
.krasti-zmien a {
  color: rgb(92 51 93);
  text-decoration: underline;
}

/* Strona ebooka: pakiet z bonusami (1218) jako polecany, sam e-book (1064) jako opcja dodatkowa */
.elementor a.elementor-button[href*="add-to-cart=1218"] {
  position: relative;
  overflow: visible;
  background-color: #C96A7B !important;
  border-color: #C96A7B !important;
  color: #fff !important;
  margin-top: 16px;
}
.elementor a.elementor-button[href*="add-to-cart=1218"]:hover {
  background-color: #213D50 !important;
  border-color: #213D50 !important;
}
.elementor a.elementor-button[href*="add-to-cart=1218"]::before {
  content: "★ Polecany · oszczędzasz 66 zł";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 12px;
  background: #213D50;
  color: #F4E7D7;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.elementor a.elementor-button[href*="add-to-cart=1064"] {
  background-color: transparent !important;
  color: #213D50 !important;
  border: 2px solid #213D50 !important;
  box-shadow: none !important;
}
.elementor a.elementor-button[href*="add-to-cart=1064"]:hover {
  background-color: #213D50 !important;
  color: #F4E7D7 !important;
}
@media (max-width: 767px) {
  .elementor a.elementor-button[href*="add-to-cart"] {
    white-space: normal;
  }
}

/* Naglowek (desktop): ikony social i koszyk w jednym rozmiarze, rowne odstepy, wysrodkowane w pionie */
#main-header ul.inline-block {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
}
#main-header ul.inline-block li {
  display: flex;
  padding: 0 !important;
}
#main-header ul.inline-block li a {
  display: flex;
  align-items: center;
  float: none;
}
#main-header ul.inline-block li img,
#main-header ul.inline-block li svg {
  width: 15px;
  height: 15px;
}
#main-header ul.inline-block .krasti-koszyk svg {
  stroke-width: 2;
}
#main-header ul.inline-block .krasti-koszyk__licznik {
  top: -8px;
  right: -10px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 9px;
  line-height: 14px;
}

/* Strona ebooka: waski pasek z logo i koszykiem (bez menu) */
.krasti-pasek {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #F5DFC7;
}
.krasti-pasek__logo img {
  display: block;
  width: auto;
  height: 38px;
}
.krasti-pasek .krasti-koszyk svg {
  width: 24px;
  height: 24px;
}

/* Strona ebooka: przyklejony pasek zakupu na telefonie */
.krasti-cta {
  display: none;
}
@media (max-width: 767px) {
  .krasti-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, .18);
    font-family: "Montserrat", sans-serif;
    color: #213D50;
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .krasti-cta.is-visible {
    transform: translateY(0);
  }
  .krasti-cta__tekst {
    font-size: 15px;
    line-height: 1.25;
  }
  .krasti-cta__tekst strong {
    color: #C96A7B;
    font-size: 17px;
    white-space: nowrap;
  }
  .krasti-cta__przycisk {
    flex-shrink: 0;
    padding: 12px 22px;
    border-radius: 24px;
    background: #C96A7B;
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
  }
}

/* Zamowienie i koszyk: mniej pustego miejsca nad formularzem, bez sekcji bloga pod spodem */
.post-content-page:has(.wp-block-woocommerce-checkout),
.post-content-page:has(.wp-block-woocommerce-cart) {
  padding-top: 24px !important;
}
.post-content-page:has(.wp-block-woocommerce-checkout) > h1,
.post-content-page:has(.wp-block-woocommerce-cart) > h1 {
  padding-bottom: 8px !important;
}
body:has(.wp-block-woocommerce-checkout) section.blog,
body:has(.wp-block-woocommerce-cart) section.blog {
  display: none;
}

/* Zamowienie: kraj ukryty - sprzedaz tylko do Polski (domyslnie PL, wymuszone tez w functions.php) */
.wc-block-checkout .wc-block-components-address-form__country {
  display: none !important;
}
