/* CoinFlow Finance – Shop Polish · v1.3.0 */

/* ---------- Kursseite ---------- */
/* Fallback, falls ein Block nicht serverseitig entfernt wurde */
body.cff-sp-course .wp-block-learnpress-course-student,
body.cff-sp-course .wp-block-learnpress-course-quiz,
body.cff-sp-course .wp-block-learnpress-course-level{ display:none !important; }
/* Lektionsdauer („5 MINUTES“) ist nicht gepflegt → ausblenden */
body.cff-sp-course .course-item__right .duration{ display:none !important; }
/* „43 Sections“ doppelt zu „43 Lessons“ */
body.cff-sp-course .course-curriculum-info .course-count-section{ display:none !important; }
body.cff-sp-course .cff-sp-hide{ display:none !important; }

/* Lernpfad als eine Liste: Abschnitts-Köpfe (je 1 Lektion) ausblenden, Lektionen immer sichtbar,
   Modul-Überschriften setzt das Skript. In LearnPress selbst wird nichts geändert. */
body.cff-sp-course .course-sections .course-section{ border:0 !important; margin:0 !important; padding:0 !important; background:transparent !important; box-shadow:none !important; }
body.cff-sp-course .course-sections .course-section-header{ display:none !important; }
body.cff-sp-course .course-sections .course-section__items{ display:block !important; margin:0 !important; padding:0 !important; }
body.cff-sp-course .course-sections .course-item{ border:1px solid #1C2721 !important; border-top:0 !important; margin:0 !important; background:#0A0F0C; }
body.cff-sp-course .course-sections .cff-sp-mod + .course-section .course-item{ border-top:1px solid #1C2721 !important; border-radius:6px 6px 0 0; }
body.cff-sp-course .course-curriculum-info__right{ display:none !important; }
body.cff-sp-course .cff-sp-mod{ list-style:none; display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .9rem; margin:2.2rem 0 .7rem !important; padding:0 !important; }
body.cff-sp-course .cff-sp-mod:first-child{ margin-top:.4rem !important; }
body.cff-sp-course .cff-sp-mod .k{ font-family:ui-monospace,Menlo,monospace; font-size:.75rem; letter-spacing:.16em; text-transform:uppercase; color:#3DDC97; }
body.cff-sp-course .cff-sp-mod .t{ font-size:1.25rem; font-weight:600; color:#F3F5F2; letter-spacing:-.01em; }
body.cff-sp-course .cff-sp-mod .n{ margin-left:auto; font-size:.9rem; color:#8A968F; }

/* ---------- Kursübersicht (nur ab zwei Kursen sichtbar, sonst Weiterleitung) ---------- */
body.cff-sp-courses .lp-form-course-filter,
body.cff-sp-courses .widget_course_filter,
body.cff-sp-courses .wp-block-learnpress-course-filter{ display:none !important; }

/* ---------- Checkout ---------- */
/* IONOS-SSO gehört nicht in den Checkout */
body.cff-sp-checkout #checkout-account-login .sso-login-or,
body.cff-sp-checkout #checkout-account-login .sso-login-link{ display:none !important; }
/* Freitextfeld „Hinweis an den Administrator“ */
body.cff-sp-checkout .learn-press-checkout-comment{ display:none !important; }
/* Login-Button im CFF-Stil statt WordPress-Blau */
body.cff-sp-checkout #checkout-account-login #sso_default_login{
  width:100%; min-height:48px; padding:.8rem 1.2rem !important; margin:0;
  background:#3DDC97 !important; border:1px solid #3DDC97 !important; border-radius:6px !important;
  color:#050806 !important; font:600 1rem/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  box-shadow:none !important; text-shadow:none !important; cursor:pointer;
}
body.cff-sp-checkout #checkout-account-login #sso_default_login:hover{ background:#2BC27B !important; }
body.cff-sp-checkout .lp-checkout-sign-up-link{ margin-top:1rem; }
body.cff-sp-checkout .lp-checkout-sign-up-link a{ color:#3DDC97 !important; font-weight:600; }
/* Hinweisbox oben ruhiger */
body.cff-sp-checkout #learn-press-checkout > .learn-press-message.error{
  border-left-color:#3DDC97 !important; color:#F3F5F2 !important;
}
/* Stripe-Frames ohne weißen Kasten (Testmodus-Badge) */
body.cff-sp-checkout iframe[name^="__privateStripeFrame"]{ background:transparent !important; }

/* Bestellübersicht: Kurstitel nicht abschneiden, Beträge rechtsbündig */
body.cff-sp-checkout #checkout-order td.course-name,
body.cff-sp-checkout #checkout-order td.course-name *{ white-space:normal !important; overflow:visible !important; text-overflow:clip !important; }
body.cff-sp-checkout #checkout-order .col-number{ text-align:right !important; white-space:nowrap; }

/* ---------- Profil ---------- */
body.cff-sp-profile #profile-nav li.quizzes,
body.cff-sp-profile .cff-sp-hide{ display:none !important; }

/* Profil 1.1.1: keine Rahmen um einzelne Werte in der Kurstabelle */
body.cff-sp-profile main table td *,
body.cff-sp-profile main table th *{ border:0 !important; box-shadow:none !important; background:transparent !important; outline:0 !important; }
body.cff-sp-profile main table td a{ color:#F3F5F2 !important; }
body.cff-sp-profile main table td a:hover{ color:#3DDC97 !important; }
