/* Responsive course shell shared by native, PDF, video, SCORM and URL courses. */
.tffsp-course-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8cadd;
  border-radius: 18px;
  background: #f7f3f8;
  box-shadow: 0 18px 45px rgba(42, 24, 48, .12);
}

.tffsp-course-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .85rem .75rem 1rem;
  color: #fff;
  background: #2c1d31;
}

.tffsp-course-toolbar > span {
  display: grid;
  min-width: 0;
  gap: .1rem;
}

.tffsp-course-toolbar strong,
.tffsp-course-toolbar small {
  overflow-wrap: anywhere;
}

.tffsp-course-toolbar small {
  color: rgba(255, 255, 255, .78);
}

.tffsp .tffsp-course-fullscreen {
  flex: 0 0 auto;
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: .55rem 1rem;
  border: 1px solid rgba(255, 255, 255, .5);
  color: #5f2674 !important;
  background: #fff;
  box-shadow: none;
}

.tffsp .tffsp-course-fullscreen:hover,
.tffsp .tffsp-course-fullscreen:focus {
  color: #3f164f !important;
  background: #f3eaf6;
}

.tffsp-course-shell-body {
  min-width: 0;
}

.tffsp-course-shell .tffsp-panel {
  margin: 1rem;
}

.tffsp-course-player {
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
}

.tffsp-course-player img,
.tffsp-course-player svg,
.tffsp-course-player video {
  max-width: 100%;
  height: auto;
}

.tffsp-course-player table,
.tffsp-course-player pre {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.tffsp-learning-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.tffsp .tffsp-learning-frame {
  display: block;
  width: 100%;
  height: min(78svh, 960px);
  min-height: 560px;
  border: 1px solid #dfd4e2;
  border-radius: 14px;
  background: #fff;
}

.tffsp .tffsp-learning-video {
  display: block;
  width: 100%;
  max-height: 78svh;
  border-radius: 14px;
  background: #111;
}

.tffsp-course-shell:fullscreen,
.tffsp-course-shell:-webkit-full-screen,
.tffsp-course-shell.is-fullscreen-fallback {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: #f7f3f8;
}

.tffsp-course-shell.is-fullscreen-fallback {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
}

html.tffsp-fullscreen-lock,
body.tffsp-fullscreen-lock {
  overflow: hidden !important;
}

.tffsp-course-shell:fullscreen .tffsp-course-shell-body,
.tffsp-course-shell:-webkit-full-screen .tffsp-course-shell-body,
.tffsp-course-shell.is-fullscreen-fallback .tffsp-course-shell-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tffsp-course-shell:fullscreen .tffsp-learning-frame,
.tffsp-course-shell:-webkit-full-screen .tffsp-learning-frame,
.tffsp-course-shell.is-fullscreen-fallback .tffsp-learning-frame {
  height: calc(100dvh - 10rem);
  min-height: 420px;
}

@media (max-width: 700px) {
  .tffsp-course-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tffsp .tffsp-course-fullscreen,
  .tffsp-learning-actions .button,
  .tffsp-course-complete button,
  .tffsp-course-quiz > button {
    width: 100%;
  }

  .tffsp-course-shell .tffsp-panel {
    margin: .6rem;
    padding: 1rem;
  }

  .tffsp .tffsp-learning-frame {
    height: 72svh;
    min-height: 420px;
    border-radius: 10px;
  }

  .tffsp-course-player {
    font-size: 1rem;
    line-height: 1.6;
  }
}
