/* KNX24 Academy BF — NO selectors for CRM, modal, player, native buttons or gallery. */
#knxbf-top,#knxbf-top *,.knxbf-reminder,.knxbf-reminder *,#knxbf-widget,#knxbf-widget *,.knxbf-sticker {box-sizing:border-box}
#knxbf-top[hidden],#knxbf-widget[hidden]{display:none!important}
#knxbf-top{position:sticky;top:0;z-index:85;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 15px;min-height:47px;padding:8px 14px;background:linear-gradient(110deg,#050e1e,#082f72 68%,#0750b5);border-block:1px solid #1364ff;color:#fff;font:750 clamp(12px,1.25vw,16px)/1.35 Manrope,'Golos Text',Arial,sans-serif;text-align:center;box-shadow:0 5px 16px rgba(0,15,45,.24)}
#knxbf-top .knxbf-brand{color:#fff;font-weight:850;white-space:nowrap}
#knxbf-top .knxbf-discount{display:inline-block;background:#1364ff;color:#fff;border:1px solid #63a7ff;border-radius:7px;padding:3px 10px;font:900 16px/1.25 Manrope,Arial,sans-serif;white-space:nowrap}
#knxbf-top .knxbf-end{white-space:nowrap;color:#e3eaff;font-weight:700}
#knxbf-top .knxbf-link{display:inline-block;background:#fff;color:#092d69!important;text-decoration:none!important;border-radius:20px;padding:5px 13px;font:800 12px/1.2 Manrope,Arial,sans-serif;white-space:nowrap}
.knxbf-sale-active .knxbf-sticker{pointer-events:none;object-fit:contain;display:block;position:absolute;z-index:2;right:clamp(16px,4%,65px);bottom:clamp(10px,4%,35px);width:clamp(185px,23%,320px);height:auto;aspect-ratio:960/515;max-width:45%;margin:0;filter:drop-shadow(0 12px 16px rgba(0,19,70,.24))}
/* Place the graphic inside the EXISTING hero, avoiding an extra white promo section. */
#ud-firststep .ud-hero,#knxc-course .knxc-hero,#eom-course .eom-hero,#kpm-course .kpm-hero,#knx-fast-start .course-hero,#knx24-dali-course #rec703918623{position:relative;isolation:isolate}
/* Existing right hero artwork may remain fully visible behind the small promotional sticker. */
#knx24-dali-course #rec703918623 .knxbf-sticker{right:3%;bottom:4%;width:clamp(160px,19%,260px);max-width:26%}
#kpm-course .kpm-hero .knxbf-sticker{right:7%;bottom:16%;width:clamp(185px,27%,300px)}
#eom-course .eom-hero .knxbf-sticker{right:3%;bottom:4%;width:clamp(180px,20%,295px)}
#knxc-course .knxc-hero .knxbf-sticker{right:3%;bottom:3%;width:clamp(170px,22%,290px)}
#knx-fast-start .course-hero .knxbf-sticker{right:5%;bottom:4%;width:clamp(175px,22%,290px)}
#ud-firststep .ud-hero .knxbf-sticker{right:2%;bottom:3%;width:clamp(160px,21%,270px)}
.knxbf-reminder{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;min-width:0;width:100%;max-width:100%;min-height:49px;margin:0;padding:11px clamp(12px,3vw,30px);gap:6px 13px;color:#fff!important;background:linear-gradient(105deg,#081428,#0a367a 65%,#0860c7);border-top:1px solid #1464ca;border-bottom:1px solid #1153b3;text-align:center;font:700 clamp(12px,1.28vw,16px)/1.35 Manrope,Arial,sans-serif;overflow-wrap:break-word}
.knxbf-reminder strong.knxbf-reminder-title{color:#fff!important;font-weight:850}
.knxbf-reminder .knxbf-reminder-discount{display:inline-block;color:#fff;background:#1364ff;border:1px solid #70aaff;padding:2px 8px;border-radius:6px;font-weight:900;white-space:nowrap}
.knxbf-reminder .knxbf-reminder-copy{color:#deecff!important}
.knxbf-reminder .knxbf-reminder-cost{display:inline-flex;gap:6px;align-items:baseline;min-width:0}
.knxbf-price-pair{display:inline-flex;align-items:baseline;justify-content:inherit;flex-wrap:wrap;gap:2px 9px;vertical-align:baseline;max-width:100%;min-width:0;line-height:1.25;text-align:inherit}
.knxbf-old-price{font-weight:600!important;text-decoration:line-through!important;color:#8495b5!important;font-size:.70em!important;white-space:nowrap}
.knxbf-new-price{font-weight:850!important;color:#1364ff!important;font-size:1em!important;white-space:nowrap}
.knxbf-reminder .knxbf-old-price{color:#bdcde9!important;font-size:12px!important}
.knxbf-reminder .knxbf-new-price{color:#fff!important;font-size:17px!important}
.knxbf-tilda-new-price{color:#1364ff!important}
.knxbf-price-embedded,.knxbf-price-phrase,.knxbf-cta-price{min-width:0;white-space:normal!important;overflow-wrap:break-word}
.knxbf-target{display:block;position:relative;top:-80px;height:0;width:0;pointer-events:none;visibility:hidden}
/* Tariff-specific price alignment, without touching their native CTA or form classes. */
#ud-firststep.knxbf-sale-active .ud-tariff__full{white-space:normal;overflow-wrap:break-word}
#ud-firststep.knxbf-sale-active .ud-tariff__full b{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%;min-width:0}
#knxc-course.knxbf-sale-active .knxc-tariff-price{display:flex;flex-wrap:wrap;gap:3px 9px;align-items:baseline;max-width:100%;min-width:0;overflow-wrap:normal}
#knxc-course.knxbf-sale-active .knxc-tariff-price .knxbf-old-price{font-size:17px!important}
#knxc-course.knxbf-sale-active .knxc-tariff-price .knxbf-new-price{font-size:clamp(23px,2.3vw,30px)!important}
#eom-course.knxbf-sale-active .eom-price__monthly{min-width:0}
#eom-course.knxbf-sale-active .eom-price__monthly .knxbf-price-phrase{display:block;text-align:right;max-width:100%}
#eom-course.knxbf-sale-active .eom-price__monthly .knxbf-price-pair{display:inline-flex;justify-content:flex-end;flex-wrap:wrap}
#eom-course.knxbf-sale-active .eom-price__monthly .knxbf-new-price{font-size:clamp(17px,2vw,22px)!important}
#kpm-course.knxbf-sale-active .kpm-cost>div>span.knxbf-price-phrase{white-space:normal;overflow-wrap:normal}
#knx-fast-start.knxbf-sale-active .course-banner-price small,#knx-fast-start.knxbf-sale-active .course-offer-price small{display:block;white-space:normal}
#knx-fast-start.knxbf-sale-active .course-banner-price small strong,#knx-fast-start.knxbf-sale-active .course-offer-price small b{display:inline-flex;max-width:100%;flex-wrap:wrap}
#knxbf-widget{position:fixed;right:20px;bottom:150px;z-index:30;display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;align-items:center;max-width:calc(100vw - 34px);width:252px;padding:10px 16px 10px 8px;border:1px solid #358dff;border-radius:16px;background:linear-gradient(120deg,#05142d,#073777);box-shadow:0 12px 40px rgba(1,13,44,.27);color:#fff;font:700 12px/1.3 Manrope,Arial,sans-serif}
#knxbf-widget img{width:82px;height:auto;max-width:100%;object-fit:contain}
#knxbf-widget .knxbf-widget-text{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
#knxbf-widget .knxbf-widget-text strong{color:#fff;font-size:12px;font-weight:900}
#knxbf-widget .knxbf-widget-text span{color:#b5d9ff;font-size:15px;font-weight:900}
#knxbf-widget .knxbf-widget-text a{color:#fff!important;font-size:11px;text-decoration:underline!important}
#knxbf-widget .knxbf-widget-close{position:absolute;top:-12px;right:-9px;padding:0;width:26px;height:26px;line-height:22px;border-radius:50%;background:#09244d;border:1px solid #3a8aff;color:#fff;font:22px/1 Arial,sans-serif;cursor:pointer}
@media(max-width:1099px){#knxbf-widget{display:none!important}}
@media(max-width:767px){
 #knxbf-top{gap:4px 8px;min-height:0;padding:7px 8px}
 #knxbf-top .knxbf-brand{font-size:12px}
 #knxbf-top .knxbf-discount{font-size:14px;padding:2px 8px}
 #knxbf-top .knxbf-end{font-size:11px}
 #knxbf-top .knxbf-link{font-size:10px;padding:3px 9px}
 .knxbf-reminder{gap:6px 10px;min-height:0;padding:11px 10px}
 /* In-flow image is appended AFTER native hero content: no overlays on mobile texts/buttons. */
 #ud-firststep .ud-hero .knxbf-sticker,#knxc-course .knxc-hero .knxbf-sticker,#eom-course .eom-hero .knxbf-sticker,#kpm-course .kpm-hero .knxbf-sticker,#knx-fast-start .course-hero .knxbf-sticker,#knx24-dali-course #rec703918623 .knxbf-sticker{
  position:relative;z-index:1;display:block;inset:auto;transform:none;margin:10px auto 14px;width:min(250px,75vw);max-width:80%;height:auto;filter:none;
 }
 /* DALI Zero Block's artboard has a fixed height, but the badge stays OUTSIDE that artboard. */
 #knx24-dali-course #rec703918623{background-color:#050505}
}
@media(prefers-reduced-motion:reduce){#knxbf-top *,#knxbf-widget *,.knxbf-reminder *{animation:none!important;transition:none!important}}

/* Safe fallback at intermediate widths: remain INSIDE the original hero, never overlap text. */
.knxbf-sale-active .knxbf-sticker.knxbf-sticker--inflow{position:relative!important;inset:auto!important;display:block!important;z-index:1;max-width:min(90%,340px)!important;width:min(320px,75vw)!important;height:auto!important;margin:12px auto 18px!important;grid-column:1/-1;flex:0 0 auto;transform:none!important;filter:none!important;clear:both}

/* Native dialogs must always appear above the floating sale reminder. */
body:has([role="dialog"][aria-modal="true"]:not([hidden]):not([aria-hidden="true"])) #knxbf-widget{display:none!important}

/* Sale-only old/new monthly payment presentation. Do not alter original layout ancestors. */
.knxbf-sale-active .knxbf-monthly-host{min-width:0;max-width:100%;height:auto!important;white-space:normal!important;overflow-wrap:normal}
.knxbf-sale-active .knxbf-monthly-offer{display:inline-flex;vertical-align:baseline;align-items:baseline;justify-content:inherit;flex-wrap:wrap;column-gap:9px;row-gap:3px;max-width:100%;min-width:0;line-height:1.3;text-align:inherit}
.knxbf-sale-active .knxbf-monthly-old{display:inline-block;text-decoration:line-through!important;text-decoration-thickness:1.3px!important;color:#8493a9!important;font-size:.69em!important;font-weight:600!important;white-space:nowrap}
.knxbf-sale-active .knxbf-monthly-new{display:inline-block;color:#1364ff!important;font-weight:900!important;white-space:nowrap}
@media(max-width:479px){.knxbf-sale-active .knxbf-monthly-offer{column-gap:7px;row-gap:2px}}

/* V3: a complete crossed-out and promotional minimum-price pair on each campaign reminder. */
.knxbf-reminder .knxbf-reminder-cost{display:flex;align-items:baseline;justify-content:center;min-width:0;max-width:100%;flex-wrap:wrap}
.knxbf-reminder .knxbf-reminder-cost .knxbf-price-pair{display:inline-flex;flex-wrap:wrap;gap:4px 10px;justify-content:center;max-width:100%;min-width:0}
@media(max-width:479px){.knxbf-reminder .knxbf-reminder-cost{flex-basis:100%}.knxbf-reminder .knxbf-reminder-cost .knxbf-old-price{font-size:12px!important}.knxbf-reminder .knxbf-reminder-cost .knxbf-new-price{font-size:17px!important}}

/* Mobile content must never be covered by a second campaign floating widget. The top sale band is retained. */
@media(max-width:1099px){#knxbf-widget{display:none!important}}

/* Leaders course: keep full-price old/new separate from the installment line. */
#knx24-leader.knxbf-sale-active .kpm-cost .knxbf-price-pair{display:inline-flex;flex-wrap:wrap;gap:3px 9px;max-width:100%;vertical-align:baseline}


/* Anchor sale illustration to the actual hero container, never to the page flow. */
@media(min-width:768px){
 #kpm-course .kpm-hero .knxbf-sticker,
 #kpm-course .kpm-hero .knxbf-sticker.knxbf-sticker--inflow{
   display:block!important;position:absolute!important;inset:auto clamp(14px,3vw,48px) clamp(12px,2vw,30px) auto!important;
   left:auto!important;top:auto!important;right:clamp(14px,3vw,48px)!important;bottom:clamp(12px,2vw,30px)!important;
   transform:none!important;width:clamp(155px,18vw,255px)!important;max-width:25%!important;
   height:auto!important;object-fit:contain!important;margin:0!important;
   pointer-events:none!important;clear:none!important;filter:drop-shadow(0 8px 12px #09193722)!important;
 }
}
@media(max-width:767px){
 #kpm-course .kpm-hero .knxbf-sticker,
 #kpm-course .kpm-hero .knxbf-sticker.knxbf-sticker--inflow{
   position:relative!important;inset:auto!important;top:auto!important;left:auto!important;
   width:min(250px,75vw)!important;max-width:85%!important;height:auto!important;
   margin:12px auto 18px!important;transform:none!important;display:block!important;clear:both!important;
 }
}
