/* ============================================================
   18 — ZĽAVOVÁ KAMPAŇ (vrstva nad webom, vypínateľná)
   Prvky: lišta hore, štítok pri nadpise, cenový blok, termín pod
   tlačidlom, blok s odpočtom nad balíčkami, popup.
   Trieda-prefix mb-cmp-, aby sa nekrížilo s ničím existujúcim.
   Enqueuje si ho campaign/mb-campaign.php — NIE theme-additions.css.
   ============================================================ */

/* --- Lišta úplne hore --- */
.mb-cmp-bar {
  background: #0a0a0a;
  color: #ffffff;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
.mb-cmp-bar-label {
  color: #6ce244;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.mb-cmp-clock {
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* --- Štítok pri nadpise kurzu --- */
.mb-cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f7a24;
  background-color: rgba(108, 226, 68, 0.14);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

/* --- Cenový blok v CTA karte --- */
.cta-element-03 .mb-cmp-old {
  font-family: 'Roboto', sans-serif !important;
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}
.cta-element-03 .mb-cmp-new {
  font-family: 'Roboto', sans-serif !important;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 992px) {
  .cta-element-03 .mb-cmp-new {
    font-size: 3rem;
    line-height: 1;
  }
}
.mb-cmp-pill {
  display: inline-block;
  background: #6ce244;
  color: #0a0a0a;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: 100px;
  margin-left: 10px;
  vertical-align: middle;
  white-space: nowrap;
}
.mb-cmp-pill-big {
  font-size: 20px;
  padding: 7px 18px;
}
.mb-cmp-deadline {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}
.mb-cmp-deadline .mb-cmp-clock {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a0a0a;
  background: #6ce244;
  border-radius: 100px;
  padding: 5px 16px;
}

/* --- Cenové karty balíčkov --- */
.pricing-section .courses-item .mb-cmp-old {
  display: block;
  font-size: 1rem;
  color: rgba(10, 10, 10, 0.45);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.pricing-section .courses-item.highlighted-course .mb-cmp-old {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Sticky lišta so zľavou --- */
.mb-cmp-sticky-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.mb-cmp-sticky-price .mb-cmp-strike {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.mb-cmp-sticky-price b {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mb-cmp-sticky-price .mb-cmp-pill {
  font-size: 10px;
  padding: 2px 8px;
  margin-left: 0;
  align-self: center;
}
.mb-cmp-sticky-meta {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Blok s odpočtom nad balíčkami --- */
.mb-cmp-promo {
  max-width: 1136px;
  margin: 0 auto 20px;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}
.mb-cmp-promo-text {
  flex: 1 1 460px;
  min-width: 0;
}
.mb-cmp-promo-text p {
  max-width: 62ch;
}
.mb-cmp-promo-kicker {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ce244;
}
.mb-cmp-promo h3 {
  font-family: 'Roboto', sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: 1.625rem !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 6px 0 0 !important;
  line-height: 1.12;
}
.mb-cmp-promo p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 8px 0 0;
}

/* --- Odpočet (dlaždice) --- */
.mb-cmp-countdown {
  display: flex;
  gap: 7px;
  flex: none;
}
.mb-cmp-unit {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 9px 0;
  width: 62px;
  text-align: center;
}
.mb-cmp-unit b {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  line-height: 1.1;
}
.mb-cmp-unit span {
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 575.98px) {
  .mb-cmp-promo {
    padding: 20px;
    gap: 18px;
  }
  .mb-cmp-countdown {
    width: 100%;
    justify-content: space-between;
  }
  .mb-cmp-unit {
    flex: 1;
    width: auto;
  }
}

/* --- Popup --- */
.mb-cmp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mb-cmp-popup-overlay[hidden] {
  display: none;
}
.mb-cmp-popup {
  position: relative;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 20px;
  padding: 30px 28px 26px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.mb-cmp-popup h3 {
  font-family: 'Roboto', sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin: 10px 0 !important;
  line-height: 1.15;
}
.mb-cmp-popup > p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 18px;
  line-height: 1.5;
}
.mb-cmp-popup .mb-cmp-countdown {
  justify-content: center;
  margin-bottom: 18px;
}
.mb-cmp-popup .mb-cmp-popup-cta {
  display: block;
  width: 100%;
  text-align: center;
  border: 0;
  cursor: pointer;
}
.mb-cmp-popup-fine {
  font-size: 0.7rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 12px 0 0 !important;
}
.mb-cmp-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.mb-cmp-popup-close:hover,
.mb-cmp-popup-close:focus-visible {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .mb-cmp-popup {
    transition: none;
  }
}

/* --- Poznámka pri cene na checkoute --- */
.mb-cmp-cost-note {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.55);
  margin-top: 4px;
}
.mb-cmp-cost-note .mb-cmp-strike {
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Opravy po prvom náhľade (27. 8.)
   ============================================================ */

/* CTA karta: téma kreslí zelený pás cez .price span::after za KAŽDÝ
   span — pod kampaňovými cenami (old/new/pill) nemá čo robiť. */
.cta-element-03 .element-wrapper .right-wrapper .price-wrapper .price.mb-cmp-price span::after {
  display: none !important;
}
.cta-element-03 .price.mb-cmp-price {
  display: flex !important;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-element-03 .price.mb-cmp-price .mb-cmp-old {
  margin-right: 0;
}
.cta-element-03 .price.mb-cmp-price .mb-cmp-pill {
  margin-left: 0;
  align-self: center;
}

/* Termín „Zľava platí do…" patrí do spodného riadku desktopovej karty
   (right-wrapper je display:contents, bez grid-area padá do prvej
   bunky — preto sa zobrazoval nad nadpisom). */
.cta-element-03 .right-wrapper .mb-cmp-deadline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
@media (min-width: 992px) {
  .cta-element-03 .right-wrapper .mb-cmp-deadline {
    grid-area: trust;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
    margin-top: 24px;
  }
}

/* Sticky lišta: kampaňová cena vo veľkosti pôvodnej ceny, nie drobná */
.fixed-bottom-element .mb-cmp-sticky-price {
  align-items: baseline;
  gap: 10px;
  margin-right: 20px;
}
.fixed-bottom-element .mb-cmp-sticky-price .mb-cmp-strike {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.55);
}
.fixed-bottom-element .mb-cmp-sticky-price b {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.fixed-bottom-element .mb-cmp-sticky-price .mb-cmp-pill {
  font-size: 12px;
  padding: 4px 10px;
  margin-left: 0;
  align-self: center;
}
@media (max-width: 767.98px) {
  .fixed-bottom-element .mb-cmp-sticky-price {
    margin-right: 0;
    gap: 6px;
  }
  .fixed-bottom-element .mb-cmp-sticky-price b {
    font-size: 1.1rem;
  }
  .fixed-bottom-element .mb-cmp-sticky-price .mb-cmp-strike {
    font-size: 0.9rem !important;
  }
}

/* Pôvodný topbar („Trénuj kedykoľvek…") a newsletter blok vo footeri
   („10 % zľava na štart") sa počas kampane nezobrazujú — bili by sa
   s −30 % komunikáciou. Tento súbor sa načítava len pri aktívnej
   kampani, takže po jej konci sa oba samy vrátia. */
.topbar,
.newsletter-footer {
  display: none !important;
}