/* =============== */
/* Kaprinay Checkout overrides.css */
/* =============== */

/* 0) Felső üres rész csökkentése, célzottan ennél a szekciónál */
#section-1744906803654 .sizer {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
#section-1744906803654 .container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#section-1744906803654.section {
  padding-top: 0 !important;
}

/* 1) Onest font a checkouton (Encore/Sage + embedded checkout) */
html, body {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}
.sage-frame,
.sage-frame *,
.embedded-checkout,
.embedded-checkout *,
[class*="t-sage-"],
input, button, select, textarea, label {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* 2) Kapcsolat (első blokk) cím elrejtése */
fieldset.embedded-checkout__fieldset:first-of-type > legend.embedded-checkout__legend {
  display: none !important;
}
/* kis tér vissza, hogy ne logjon rá semmi */
fieldset.embedded-checkout__fieldset:first-of-type > :not(legend) {
  margin-top: 12px !important;
}

/* 3) Summary: terméksor elrejtése */
.embedded-checkout-offer-list-item-row {
  display: none !important;
}

/* 4) Summary blokk címe (Összegzés) elrejtése */
.embedded-checkout-price-summary > h4.t-sage-heading-4.sage-spacer-bottom-xs {
  display: none !important;
}

/* 5) Felesleges elválasztó vonal(ak) eltüntetése az összegzés blokkban */
.embedded-checkout-price-summary__divider {
  display: none !important;
}
.embedded-checkout-price-summary {
  border-top: 0 !important;
}

/* 6) Alsó bal oldali cím: "Fizetési határidő most" helyett "Összesen" (stabil megoldás) */
#section-1744906803654 .embedded-checkout-price-detail h4.t-sage-heading-4 {
  position: relative !important;
  color: transparent !important;          /* az eredeti szöveg mindig láthatatlan */
  text-shadow: none !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

/* "Összesen" felirat az eredeti helyére */
#section-1744906803654 .embedded-checkout-price-detail h4.t-sage-heading-4::after {
  content: "Összesen" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: rgb(26, 26, 25) !important;
  white-space: nowrap !important;

  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

/* 7) Bal oldali címkék (Tartalom, Céges vásárláshoz) stílus */
#section-1744906803654 h4 > span[style*="color: #ffffff"] {
  font-weight: 600 !important;
}
/* Safari/Chrome újabb: opcionális */
#section-1744906803654 h4:has(> span[style*="color: #ffffff"]) {
  font-weight: 600 !important;
}

/* 8) Checkout fejléc ár: régi ár (piros, áthúzva) + új ár, mindkettő Onest, egy sorban */

/* A) HUF chip elrejtése felül */
#section-1744906803654 .embedded-checkout-price-display .t-sage-badge,
#section-1744906803654 .embedded-checkout-price-display [class*="badge"] {
  display: none !important;
}

/* B) Jobb felső ár terület: egy sor, baseline */
#section-1744906803654 .embedded-checkout-price-display .sage-frame--align-center-right {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

/* C) A tényleges ár elem (Kajabi #offer-price): maradjon tipó, elé tesszük a régi árat */
#section-1744906803654 #offer-price.embedded-checkout-price-display__offer-price {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* D) Régi ár a jelenlegi elé */
#section-1744906803654 #offer-price.embedded-checkout-price-display__offer-price::before {
  content: "29.900 Ft";
  display: inline-block !important;
  margin-right: 14px !important;
  color: #c00000 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
  opacity: 0.9 !important;

  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* 9) Alsó jobb oldali ár: "HUF 14,900.00" helyett "14.900 Ft" */

/* A) HUF badge eltüntetése lent */
#section-1744906803654 .embedded-checkout-price-detail .sage-badge {
  display: none !important;
}

/* B) Az eredeti szöveg elrejtése, és felülírjuk a megjelenített értéket */
#section-1744906803654 .embedded-checkout-price-detail span.t-sage-heading-4.sage-spacer-left-xs {
  position: relative !important;
  display: inline-block !important;
  color: transparent !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

/* C) Csere szöveg ugyanazzal a tipóval (és ugyanakkora, mint az Összesen) */
#section-1744906803654 .embedded-checkout-price-detail span.t-sage-heading-4.sage-spacer-left-xs::after {
  content: "14.900 Ft" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;

  color: rgb(26, 26, 25) !important;
  white-space: nowrap !important;

  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}