/* Replaces the state styling the LearnWorlds runtime applied with JavaScript. */

/* submenus */
.lw-topbar-option { position: relative; }
.lw-topbar-submenu { display: none; }
.lw-topbar-option:hover > .lw-topbar-submenu,
.lw-topbar-option.fb-open > .lw-topbar-submenu { display: block; }
.js-with-submenu-list { cursor: pointer; }

/* accordions */
.collapsible-panel.collapsed > .collapsible-panel__content { display: none !important; }
.collapsible-panel:not(.collapsed) > .collapsible-panel__content { display: flex !important; }
.collapsible-panel__header { cursor: pointer; }

/* popups */
section.fb-popup { display: none !important; }
section.fb-popup.fb-popup-open {
  display: flex !important;
  position: fixed !important; inset: 0; z-index: 1001 !important;
  align-items: center; justify-content: center;
  background: transparent !important; pointer-events: none;
}
section.fb-popup.fb-popup-open > * { pointer-events: auto; max-height: 90vh; overflow: auto; }
.fb-backdrop { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 30, .6); }
.fb-backdrop.fb-open { display: block; }
.fb-form-note { margin: 8px 0 0; font: 14px/1.5 "Noto Sans JP", Arial, sans-serif; }

/* mobile menu */
.fb-burger { display: none; }
.fb-mobile-menu { display: none; }
@media (max-width: 959px) {
  .lw-topbar .lw-h-row { position: relative; }
  .lw-topbar .js-lw-topbar-hamburger-wrapper {
    position: absolute; top: 0; right: 16px; height: 100%; max-height: 75px;
    display: flex; align-items: center; background: transparent !important; z-index: 5;
  }
  .fb-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-left: auto;
    background: none; border: 0; cursor: pointer;
  }
  .fb-burger span { display: block; height: 2px; background: #1b1b4b; border-radius: 2px; }
  .lw-topbar.fb-menu-open { flex-wrap: wrap; align-items: flex-start !important; }
  .lw-topbar.fb-menu-open > .lw-h-row { flex: 0 0 100%; }
  .lw-topbar.fb-menu-open .fb-mobile-menu {
    display: block; flex: 0 0 100%; order: 2; box-sizing: border-box;
    background: #fff; padding: 8px 16px 16px; border-top: 1px solid #eee;
  }
  .fb-mobile-menu { font: 16px/1.4 "Poppins", Arial, sans-serif; }
  .fb-mobile-menu a { color: #12105a; text-decoration: none; }
  .fb-mm-link, .fb-mm-group { display: block; padding: 12px 0; border-bottom: 1px solid #f0f0f4; }
  .fb-mm-label { display: block; font-weight: 700; color: #12105a; margin-bottom: 4px; }
  .fb-mm-sub { display: block; padding: 8px 0 8px 14px; }
  .fb-mm-cta {
    display: block; margin-top: 14px; padding: 12px; text-align: center; font-weight: 700;
    border: 2px solid #12105a; border-radius: 30px;
  }
}

/* cookie consent */
.fb-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 820px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px;
  background: #4f24c4; color: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  font: 14px/1.5 "Noto Sans JP", Arial, sans-serif;
}
.fb-consent p { margin: 0; flex: 1 1 320px; color: #fff; }
.fb-consent a { color: #fff; text-decoration: underline; }
.fb-consent-actions { display: flex; gap: 10px; }
.fb-consent button {
  padding: 8px 16px; border-radius: 6px; border: 1px solid #fff; background: transparent; color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.fb-consent .fb-consent-accept { background: #fff; color: #1b1464; }

/* the rebuilt "Get 20% off" form inside the offer popup */
.fb-offer-form { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; text-align: left; }
.fb-offer-form label { display: flex; flex-direction: column; gap: 4px; font: 12px/1.4 "Noto Sans JP", Arial, sans-serif; color: #151515; }
.fb-offer-form input {
  padding: 10px 12px; border: 1px solid #e3e3ea; border-radius: 6px; background: #f6f6f9;
  font: 14px "Noto Sans JP", Arial, sans-serif; color: #151515;
}
.fb-offer-form button {
  margin-top: 6px; padding: 12px; border: 0; border-radius: 6px; background: #12105a; color: #fff;
  font: 700 14px "Poppins", Arial, sans-serif; cursor: pointer;
}
.fb-form-done { font-weight: 700; color: #12105a; }

/* "Notify me" forms: name + e-mail + phone (a Sales CRM lead needs a phone) */
.fb-lead-fields { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fb-lead-fields input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #c9c9dc; border-radius: 8px;
  background: #fff; font: 15px "Noto Sans JP", Arial, sans-serif; color: #151515;
}
.fb-lead-fields input:focus { outline: 2px solid #4f24c4; outline-offset: 1px; border-color: transparent; }
.fb-lead-fields button { width: 100%; justify-content: center; cursor: pointer; }
.fb-lead-fields button:disabled, .fb-offer-form button:disabled { opacity: .6; cursor: wait; }

/* Next cohorts (site.js): shown only when the LMS has a USD cohort open for this page's programme */
.fb-cohorts { background: #f4f3fb; padding: 56px 16px; scroll-margin-top: 80px; }
.fb-cohorts-inner { max-width: 1120px; margin: 0 auto; }
.fb-cohorts-eyebrow { margin: 0 0 6px; font: 700 13px/1.4 "Poppins", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #4f24c4; }
.fb-cohorts-title { margin: 0 0 24px; font: 700 34px/1.2 "Poppins", Arial, sans-serif; color: #12105a; }
.fb-cohorts-list { display: grid; gap: 14px; }
.fb-cohort {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 22px 24px; border: 1px solid #dcdaf0; border-radius: 12px; background: #fff;
}
.fb-cohort-when { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 15px/1.5 "Noto Sans JP", Arial, sans-serif; color: #3c3c55; }
.fb-cohort-when strong { font: 700 19px/1.3 "Poppins", Arial, sans-serif; color: #12105a; }
.fb-cohort-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fb-cohort-price { font: 700 28px/1 "Poppins", Arial, sans-serif; color: #12105a; font-variant-numeric: tabular-nums; }
.fb-cohort-seats { padding: 4px 10px; border-radius: 999px; background: #fff1e6; color: #a2470d; font: 600 13px/1.4 "Noto Sans JP", Arial, sans-serif; }
.fb-cohort-enroll { margin: 0; }
.fb-cohort-btn {
  min-height: 48px; padding: 12px 28px; border: 0; border-radius: 8px; background: #12105a; color: #fff;
  font: 700 16px "Poppins", Arial, sans-serif; cursor: pointer;
}
.fb-cohort-btn:hover { background: #4f24c4; }
.fb-cohort-btn:focus-visible { outline: 3px solid #4f24c4; outline-offset: 2px; }
.fb-cohort-btn:disabled { opacity: .7; cursor: wait; }
.fb-cohorts-note { margin: 18px 0 0; font: 14px/1.5 "Noto Sans JP", Arial, sans-serif; color: #5d5d75; }
@media (max-width: 600px) {
  .fb-cohorts { padding: 40px 16px; }
  .fb-cohorts-title { font-size: 26px; }
  .fb-cohort-buy, .fb-cohort-enroll, .fb-cohort-btn { width: 100%; }
}
