body:not(.page-template-page-fullscreen, .elementor-page) .site:has(.mst-single-video-page),
body:not(.page-template-page-fullscreen, .elementor-page) .site:has(.mst-video-library-page) {
  overflow: unset !important;
}

.mst-video-library-page {
  @media (min-width: 1200px) {
    padding-inline: 15px !important;
  }
}
.mst-video-library-page__hero {
  margin-block: 40px 16px;

  @media (min-width: 1200px) {
    margin-block-start: 100px;
  }
}

.mst-video-library-page__hero h1 {
  margin: 0;
}

.mst-video-library-page-search {
  display: flex;
  flex-direction: column;
  gap: 8px;

  @media (min-width: 576px) {
    flex-direction: row;
    align-items: center;
  }
}

.mst-video-library-page-search__input {
  padding-block: 6px 3px;
  padding-inline: 42px 12px !important;
  width: 100%;
  max-width: 570px;
  font-size: 12px;
  font-weight: 500;
  line-height: 24px;
  border-radius: 8px;
  height: auto;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2218%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000b26%22%20d%3D%22M17.53%2017.53a.666.666%200%200%200%200-.942l-4.558-4.557a7.335%207.335%200%201%200-.941.941l4.557%204.557c.26.26.681.26.941%200M1.354%207.346a5.992%205.992%200%201%201%205.992%205.992%206%206%200%200%201-5.992-5.992%22%2F%3E%3C%2Fsvg%3E') !important;
  background-size: 18px !important;
  background-position: left 14px center !important;

  &::placeholder {
    color: #9498a4;
  }
}

.mst-video-library-page-search__btn {
  padding-block: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  border-radius: 8px;
  flex-shrink: 0;
}

.mst-video-library-page-tabs {
  margin-block-start: 24px;
}

.mst-video-library-page-tabs__list {
  display: flex;
  position: relative;
  margin: 0;
  list-style: none;
  align-items: center;
  gap: 20px;

  @media (min-width: 576px) {
    justify-content: flex-start;
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #d9dade;
    z-index: 0;
  }
}

.mst-video-library-page-tabs__btn {
  display: flex;
  position: relative;
  margin: 0;
  padding-block-end: 10px;
  border-bottom: 1px solid transparent;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 1;

  input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
}

.mst-video-library-page-tabs__btn:hover .mst-video-library-page-tabs__btn-label {
  color: #2479df;
}

.mst-video-library-page-tabs__btn:has(input:checked) {
  border-color: #2479df;

  .mst-video-library-page-tabs__btn-label {
    color: #2479df;
  }

  .mst-video-library-page-tabs__btn-val {
    background-color: #2479df;
  }
}

.mst-video-library-page-tabs__btn-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #9498a4;
  transition: color 0.2s;
}

.mst-video-library-page-tabs__btn-val {
  padding: 2px 8px 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  color: #f6f6fa;
  background-color: #9498a4;
  border-radius: 6px;
}

.mst-video-library-page__filter-row {
  display: flex;
  margin-block-start: 24px;
  flex-direction: column;
  gap: 10px;

  @media (min-width: 576px) {
    flex-direction: row;
  }
}

.mst-video-library-page__filter-el {
  position: relative;
  width: 100%;

  @media (min-width: 576px) {
    max-width: 270px;
  }
}

.mst-video-library-page__filter-el .select2-selection {
  height: auto !important;
  border-color: #d9dade !important;
  border-radius: 8px !important;
}

.mst-video-library-page__filter-el .select2-selection__rendered {
  padding-block: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 24px !important;
  color: #000b26 !important;
}

.mst-video-library-page__filter-el .select2-container.select2-container--open .select2-selection__arrow {
  rotate: 180deg;
}

.mst-video-library-page__filter-el .select2-selection__arrow b {
  display: none;
}

.mst-video-library-page__filter-el .select2-selection__arrow {
  top: 0 !important;
  right: 14px !important;
  height: 100% !important;
  width: 10px !important;
  background: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%23000b26%22%20d%3D%22M9.82%202.65%205.812%206.863a.4.4%200%200%201-.155.105.5.5%200%200%201-.179.032.5.5%200%200%201-.179-.032.4.4%200%200%201-.155-.106L1.122%202.65a.6.6%200%200%201-.167-.437q0-.263.179-.45a.56.56%200%200%201%20.835%200l3.508%203.675%203.509-3.675a.55.55%200%200%201%20.411-.175q.245%200%20.424.187.18.187.179.438%200%20.25-.18.437%22%2F%3E%3C%2Fsvg%3E')
    no-repeat center top 57% / 10px;
  transition: 0.3s;
}

.mst-video-library-page__filter-el .select2-container:has(.select2-dropdown) {
  width: 100%;
}

.mst-video-library-page__filter-el .select2-container .select2-dropdown {
  top: 0;
  width: 100% !important;
  max-width: 100% !important;
}

.mst-video-library-page__filter-title {
  display: block;
  margin-block-end: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: #9498a4;
}

.mst-video-library-page__section {
  margin-block-start: 20px;

  @media (min-width: 1200px) {
    margin-block-start: 0;
  }

  &[data-section='continue-watching'] {
    margin-block-start: 20px;

    @media (min-width: 1200px) {
      margin-block-start: 40px;
    }
  }
}

.mst-video-library-page__title {
  font-size: 18px !important;
  line-height: 28px !important;
  margin: 0 !important;
  margin-block-end: 10px !important;
}

.mst-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;

  @media (min-width: 576px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (min-width: 1200px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }
}
.mst-video-carousel {
  position: relative;
  margin-inline: -20px;
}

.mst-video-carousel .swiper {
  padding: 2px;
  padding-inline: 20px;

  @media (min-width: 1200px) {
    padding-block-end: 30px;
  }
}

.mst-video-carousel .swiper-slide {
  height: auto;
  max-width: 300px;

  @media (min-width: 1200px) {
    max-width: unset;
  }
}

.mst-video-carousel .js-mst-continue-slider:not(.swiper-initialized) .swiper-slide {
  @media (min-width: 1200px) {
    flex: 0 0 auto;
    max-width: 370px;
  }
}

.mst-video-carousel .js-mst-continue-slider:not(.swiper-initialized) .swiper-wrapper {
  gap: 16px;
  @media (min-width: 1200px) {
    gap: 30px;
  }
}

.mst-video-carousel .swiper-slide .mst-video-card {
  height: 100%;
  width: 100%;
}

.mst-video-carousel .swiper-button-prev,
.mst-video-carousel .swiper-button-next {
  display: none;

  @media (min-width: 1200px) {
    display: grid;
    margin-top: 0;
    transform: translateY(-50%);
    padding: 5px;
    width: 36px;
    height: 36px;
    color: #fff;
    background-color: #9498a4;
    border: 0;
    border-radius: 8px;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;

    &:hover {
      background-color: #4d5467;
    }
  }

  &:disabled {
    opacity: 0;
  }
}

.mst-video-carousel .swiper-button-prev {
  left: -46px;
  right: auto;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20d%3D%22M10%204%206%208l4%204%22%2F%3E%3C%2Fsvg%3E');
}

.mst-video-carousel .swiper-button-next {
  right: -46px;
  left: auto;
  background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20d%3D%22m6%2012%204-4-4-4%22%2F%3E%3C%2Fsvg%3E');
}

.mst-video-card {
  border: 1px solid #d9dade;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: 0.2s;

  @media (hover: hover) {
    &:hover {
      box-shadow: 0 4px 20px rgba(9, 72, 134, 0.15);
      border-color: #73bbee;
    }
  }
}

.mst-video-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.mst-video-card__media {
  display: block;
  position: relative;
  background: rgba(0, 0, 0, 0.04);
  height: 139px;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
  }
}

.mst-video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mst-video-card__duration {
  position: absolute;
  right: 24px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  background: rgba(246, 246, 250, 0.2);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  padding-inline: 4px;
}

.mst-video-card__body {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;

  @media (min-width: 1200px) {
    padding-inline: 24px;
  }
}

.mst-video-card__top {
  --_gap: 8px;
  display: flex;
  margin-block-end: 12px;
  align-items: center;
  gap: var(--_gap);
}

.mst-video-card__badge {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #2479df;
}

.mst-video-card__badge--assigned {
  color: #2479df;
}

.mst-video-card__badge--completed {
  color: #06bc69;
}

.mst-video-card__due-date {
  display: flex;
  font-size: 12px !important;
  line-height: 18px !important;
  font-weight: 500 !important;
  margin: 0;
  color: #9498a4;
  align-items: center;
  gap: var(--_gap);

  &::before {
    content: '';
    display: block;
    width: 3px;
    aspect-ratio: 1;
    background-color: #9498a4;
    border-radius: 50vw;
  }
}

.mst-video-card__due-date.is-overdue {
  color: #ff0000;

  &::before {
    background-color: #ff0000;
  }
}

.mst-video-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.mst-video-card__title {
  font-size: 18px !important;
  line-height: 28px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  color: #000b26;
}

.mst-video-card__progress {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.mst-video-card__progress.is-completed {
  border-radius: 50%;
  background: #07bc68;
}

.mst-video-card__progress-circle {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.mst-video-card__progress-circle-bar {
  stroke-linecap: round;
  stroke-dasharray: 100.53;
  stroke-dashoffset: calc(100.53 - (100.53 * var(--_percent)) / 100);
  transform: rotate(-90deg);
  transform-origin: center;
}

.mst-video-card__progress-text {
  font-size: 12px !important;
  line-height: 18px !important;
  margin: 0;
  margin-block-start: 2px;
  margin-inline-start: 1px;
  color: #000b26;
  font-weight: 600 !important;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.mst-video-card__description {
  display: -webkit-box;
  font-size: 14px;
  line-height: 24px;
  color: #000b26;
  margin: 0;
  margin-block-start: 4px;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mst-video-card__tags {
  --_col-gap: 8px;
  --_row-gap: 4px;
  display: flex;
  margin: 0;
  margin-block-start: 12px;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--_row-gap) var(--_col-gap);
  list-style: none;
  z-index: 4;

  &:not(:has(.mst-video-card__tag--tag)) {
    .mst-video-card__tags-spacer {
      display: none;
    }
  }

  &.is-expanded {
    .mst-video-card__tags-show {
      background-color: #f6f6fa;

      svg {
        rotate: 180deg;
      }
    }
  }
}

.mst-video-card__tags-spacer {
  display: block;
  width: 3px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background-color: #9498a4;
  border-radius: 50vw;
}

.mst-video-card__tag {
  display: block;
  align-items: center;
  border-radius: 6px;
  background-color: #f6f6fa;
  color: #9498a4;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  padding-inline: 8px;
}

.mst-video-card__tag[hidden],
.mst-video-card__tags-spacer[hidden],
.mst-video-card__tags-show[hidden] {
  display: none;
}

.mst-video-card__tags-show,
.buddypress .buddypress-wrap button[type='button'].mst-video-card__tags-show {
  display: grid;
  place-items: center;
  padding: 2px 8px;
  width: fit-content;
  flex-shrink: 0;
  line-height: 14px;
  border: 0;
  border-radius: 6px;
  background: #f6f6fa;
  cursor: pointer;
  flex-shrink: 0;

  &:hover {
    background-color: #094886;

    svg {
      path {
        stroke: #fff;
      }
    }
  }

  svg {
    transition: 0.2s;

    path {
      transition: 0.2s;
    }
  }
}

.mst-video-card__footer {
  display: flex;
  margin-block-start: 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mst-video-card__footer-delimer {
  display: block;
  width: 3px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background-color: #9498a4;
  border-radius: 50vw;
}

.mst-video-card__assigned-by {
  display: block;
  margin: 0;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  color: #9498a4;

  span {
    color: #000b26;
  }
}

.mst-video-card__message {
  display: grid;
  position: relative;
  width: 16px;
  place-items: center;
  flex-shrink: 0;

  &.not-read {
    &::after {
      opacity: 1;
    }
  }

  &::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    aspect-ratio: 1;
    background-color: tomato;
    border-radius: 50vw;
    opacity: 0;
  }

  svg {
    width: 100%;
  }
}

/* The base display: flex below would otherwise override the hidden attribute. */
.mst-video-library-page__show-more[hidden] {
  display: none;
}

.mst-video-library-page__show-more,
#mst-profile-video-show-more.mst-video-library-page__show-more {
  display: flex;
  margin-block-start: 20px;
  margin-inline: auto;
  padding: 7px;
  width: 100%;
  max-width: 370px;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  color: #2479df;
  background-color: transparent;
  border: 1px solid #d9dade;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 4px;

  @media (min-width: 1200px) {
    margin-block-start: 30px;
  }

  &:hover {
    color: #fff;

    background-color: #2479df !important;
    border-color: #2479df !important;

    svg path {
      stroke: #fff;
    }
  }

  svg {
    width: 16px;
    aspect-ratio: 1;

    path {
      transition: all linear 0.2s;
    }
  }
}

.mst-single-video-page {
  margin-block-start: 20px;

  @media (min-width: 1200px) {
    margin-block-start: 30px;
    padding-inline: 15px !important;
  }
}

.mst-single-video-page__article-inner {
  display: grid;

  @media (min-width: 1200px) {
    display: grid;
    grid-template-columns: 1fr 370px;
    align-items: start;
    gap: 30px;
  }
}

.mst-single-video-page__article-content {
  display: contents;

  @media (min-width: 1200px) {
    display: block;
  }
}

.mst-single-video-page__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 6px;
  overflow: hidden;
  order: 1;
}

.mst-single-video-page__player #mst-video-player {
  width: 100%;
  height: 100%;
}

.mst-single-video-page__player:not(.is-player-active) #mst-video-player {
  visibility: hidden;
}

.mst-single-video-page__player.is-player-active #mst-video-player,
.mst-single-video-page__player.is-player-active #mst-video-player .plyr {
  visibility: visible;
}

.mst-single-video-page__player #mst-video-player .plyr {
  width: 100%;
  height: 100%;
}

.mst-single-video-page__player #mst-video-player .plyr__video-wrapper video {
  width: 100%;
  height: 100%;
}

.plyr__control--overlaid {
  opacity: .8;
}

.mst-single-video-page__player-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.mst-single-video-page__player.is-player-active .mst-single-video-page__player-poster {
  display: none;
}

.mst-single-video-page__player-overlay {
  display: flex;
  position: absolute;
  padding: 0;
  inset: 0;
  z-index: 4;
  border: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: default;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(0, 11, 38, 0.4);
  }
}

.mst-single-video-page__player-overlay-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.mst-single-video-page__player-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(36, 121, 223, 0.8);
  cursor: pointer;
  transition: background-color linear 0.2s;

  svg {
    width: 24px;
    aspect-ratio: 1;

    path {
      fill: #fff;
    }
  }
}

.mst-single-video-page__player-overlay:hover .mst-single-video-page__player-play,
.mst-single-video-page__player-play:hover {
  background-color: rgba(36, 121, 223, 1)
}

p.mst-single-video-page__player-continue-label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  text-align: center;
}

.mst-single-video-page__player-continue-label[hidden] {
  display: none !important;
}

.mst-single-video-page__player #mst-video-player .plyr {
  outline: none;
}

.mst-single-video-page__player #mst-video-player .plyr:focus-visible {
  box-shadow: inset 0 0 0 2px #2479df;
}

.mst-single-video-page__player-duration {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: #fff;
  background: rgba(0, 11, 38, 0.4);
  border-radius: 4px;
}

.mst-video-seek-indicator {
  position: absolute;
  left: 16px;
  bottom: 50px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 0px 4px;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 12px rgb(0 0 0 / 24%);
  cursor: pointer;
  transition: background-color linear 0.2s;
}

.mst-video-seek-indicator[hidden] {
  display: none !important;
}

.mst-video-seek-indicator:hover {
  background: rgba(36, 121, 223, 0.8);
  color: #fff;

  svg path {
    stroke: currentColor;
  }
}

.mst-video-seek-indicator svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.mst-video-player__native {
  width: 100%;
  height: 100%;
  background: #000;
}

.mst-video-player__error {
  margin: 0;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.mst-single-video-page__summary {
  margin-top: 24px;
  order: 2;

  @media (min-width: 576px) {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap: 24px;
  }
}

.mst-single-video-page__summary-inner {
  @media (min-width: 576px) {
    width: 100%;
    max-width: 570px;
  }
}

.mst-single-video-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 20px;
  width: fit-content;
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 24px;
  color: #2479df !important;
  transition: color 0.2s;

  &:hover {
    color: #094886 !important;

    svg {
      path {
        fill: #094886;
      }
    }
  }

  svg {
    flex-shrink: 0;

    path {
      transition: fill 0.2s;
    }
  }
}

.mst-single-video-page__title {
  margin: 0;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
}

.mst-single-video-page__description {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 24px !important;

  > * {
    margin-block-start: rem(14);
    margin-block-end: unset;
  }
}

.mst-single-video-page__author {
  margin: 0;
  margin-block-start: 8px;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 22px !important;
  color: #9498a4;
}

.mst-single-video-page__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.mst-single-video-page__tags-spacer {
  display: block;
  width: 3px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background-color: #9498a4;
  border-radius: 50vw;
}

.mst-single-video-page__tag {
  display: inline-flex;
  padding: 3px 7px 1px;
  font-size: 12px;
  line-height: 22px;
  color: #9498a4;
  border: 1px solid #9498a4;
  border-radius: 6px;
  align-items: center;
}

.mst-video-progress-wrap {
  margin-top: 20px;
  padding: 30px 20px 24px;
  max-width: 400px;
  background-color: #fff;
  border: 1px solid #d9dade;
  border-radius: 6px;
  order: 3;

  @media (min-width: 1200px) {
    margin-block-start: unset;
    padding: 30px 30px 24px;
    max-width: unset;
  }
}

.mst-video-progress__title {
  margin: 0 0 24px;
  padding-block-end: 23px;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
  border-bottom: 1px solid #d9dade;
}

.mst-video-progress__assigned-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 16px;
}

.mst-video-progress__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  color: #2479df;

  &:not(:last-child)::after {
    content: '';
    display: block;
    width: 3px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #9498a4;
  }
}

.mst-video-progress__due-date {
  margin: 0;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 12px !important;
  color: #9498a4;
}

.mst-video-progress__due-date.is-overdue {
  color: #ff0000;
}

.mst-video-progress__status {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mst-video-progress__circle {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  flex-shrink: 0;

  > * {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }
}

.mst-video-progress__circle-svg {
  width: 100%;
  aspect-ratio: 1;
}

.mst-video-progress__circle-bar {
  stroke-linecap: round;
  stroke-dasharray: 207.35;
  stroke-dashoffset: calc(207.35 - (207.35 * var(--_percent)) / 100);
  transform: rotate(-90deg);
  transform-origin: center;
}

.mst-video-progress__circle-check {
  display: none;
  width: 40px;
  height: 40px;
}

.mst-video-progress__circle.is-completed {
  border-radius: 50%;
  background: #07bc68;

  .mst-video-progress__circle-svg,
  .mst-video-progress__percent {
    display: none;
  }

  .mst-video-progress__circle-check {
    display: block;
  }
}

.mst-video-progress__percent {
  margin: 0;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 34px !important;
  color: #000b26;
}

.mst-video-progress__hint {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #4a5464;
}

.mst-video-progress__quote {
  margin: 16px 0 0;
  padding: 15px;
  font-style: normal;
  border: 1px solid #d9dade;
  border-radius: 6px;
}

.mst-video-progress__quote-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mst-video-progress__quote-avatar {
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.mst-video-progress__quote-author {
  margin: 0;
  font-size: 12px !important;
  line-height: 12px !important;
  color: #9498a4;

  > span {
    display: block;
  }
}

.mst-video-progress__quote-name {
  margin-block-start: 4px;
  color: #000b26;
}

.mst-video-progress__quote-text {
  margin: 8px 0 0;
  padding: 16px;
  font-size: 14px !important;
  line-height: 24px !important;
  color: #000b26;
  background-color: #f6f6fa;
  border-radius: 6px;
}

.mst-single-video-page__learning {
  margin-top: 20px;
  padding: 30px 20px;
  background-color: #fff;
  border: 1px solid #d9dade;
  border-radius: 6px;
  order: 4;

  @media (min-width: 1200px) {
    margin-block-start: 30px;
    padding: 30px;
  }
}

.tabs-nav {
  display: flex;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 20px;

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #d9dade;
    z-index: 0;
  }
}

.tabs-nav__btn {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: #9498a4 !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  z-index: 1;
}

.tabs-nav__btn:hover {
  color: #2479df !important;
}

.tabs-nav__btn[aria-selected='true'] {
  color: #2479df !important;
  border-color: #2479df;
}

.tabs-panels {
  margin-top: 24px;
}

.tabs-panel[hidden] {
  display: none;
}

.mst-single-video-page__takeaways ol,
.mst-single-video-page__prompts ul {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
  gap: 16px;
}

.mst-single-video-page__takeaways ol {
  li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
}

.mst-single-video-page__takeaways-num {
  display: grid;
  margin-block-start: 4px;
  margin-inline-start: 4px;
  width: 16px;
  aspect-ratio: 1;
  color: #fff;
  background-color: #2479df;
  border-radius: 50vw;
  flex-shrink: 0;
  place-items: center;

  &::before {
    counter-increment: item;
    content: counter(item);
    position: relative;
    top: 1px;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
  }
}

.mst-single-video-page__takeaways.is-collapsed ol li:nth-child(n + 6) {
  display: none;
}

.mst-single-video-page__takeaways-more {
  margin-block-start: 16px;
  padding: 0;
  padding-block-start: 16px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #2479df;
  background: none;
  border: none;
  border-top: 1px solid #d9dade;
  cursor: pointer;
  border-radius: 0;

  &:hover {
    border-color: #d9dade;
  }
}

.mst-single-video-page__prompts ul {
  li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    &::before {
      content: '';
      display: block;
      width: 24px;
      aspect-ratio: 1;
      background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%232479df%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%221.5%22%20d%3D%22M12%209.444c0-.648-.253-1.27-.703-1.728A2.38%202.38%200%200%200%209.6%207H6v9.167h4.2c.477%200%20.935.193%201.273.537.337.343.527.81.527%201.296m0-8.556V18m0-8.556c0-.648.253-1.27.703-1.728A2.38%202.38%200%200%201%2014.4%207H18v9.167h-4.2c-.477%200-.935.193-1.273.537A1.85%201.85%200%200%200%2012%2018%22%2F%3E%3C%2Fsvg%3E');
      background-size: 100% auto;
      background-position: center center;
      background-repeat: no-repeat;
      flex-shrink: 0;
    }
  }

  q {
    quotes: '“' '”';
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
  }
}

.mst-single-video-page__resources ul {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: item;
  gap: 8px;
}

.mst-single-video-page__resources-item {
  display: flex;
  padding: 15px 19px;
  border: 1px solid #d9dade;
  border-radius: 6px;
  align-items: center;
  gap: 10px;
}

.mst-single-video-page__resources-item-icon {
  flex-shrink: 0;
}

.mst-single-video-page__resources-item-inner {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
}

.mst-single-video-page__resource-size {
  display: block;
  font-size: 12px;
  line-height: 22px;
  color: #9498a4;
  white-space: nowrap;
}

.mst-single-video-page__resources-link {
  margin-inline-start: auto;
  flex-shrink: 0;

  svg {
    path {
      transition: 0.2s;
    }
  }

  @media (hover: hover) {
    &:hover {
      svg {
        path {
          stroke: #2479df;
        }
      }
    }
  }
}

.mst-video-progress {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
}

.mst-single-video-page__rating {
  position: relative;

  @media (min-width: 576px) {
    width: 100%;
    max-width: 124px;
  }
}

.mst-video-rating-card {
  display: flex;
  margin: 0;
  margin-block-end: 20px;
  padding: 7px;
  width: 100%;
  background: #fff;
  border: 1px solid #d9dade;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  &[hidden] {
    display: none;
  }

  @media (min-width: 576px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.mst-video-rating-card__head {
  display: flex;
  align-items: center;
  gap: 10px;

  @media (min-width: 576px) {
    width: 100%;
    justify-content: space-between;
  }
}

.mst-video-rating-card__title {
  margin-block-start: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: #000b26;

  @media (min-width: 576px) {
    line-height: 12px;
  }
}

.mst-video-rating-card__stars {
  display: flex;
  gap: 2px;
  color: #d9dade;

  svg {
    width: 20px;
    aspect-ratio: 1;
  }
}

.mst-video-rating-card__star {
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* Neutralize the theme button focus/active styles so a clicked star keeps the
   star color instead of turning blue. */
.mst-video-rating-card__star:focus,
.mst-video-rating-card__star:focus-visible,
.mst-video-rating-card__star:active {
  color: inherit;
  background: none;
  outline: none;
  box-shadow: none;
}

.mst-video-rating-card__star.is-filled {
  color: #f7b500;
}

/* Stars are interactive only until a rating has been submitted. */
.mst-video-rating-card:not(.is-rated) .mst-video-rating-card__star {
  cursor: pointer;
}

.mst-video-rating-card:not(.is-rated) .mst-video-rating-card__star:hover,
.mst-video-rating-card:not(.is-rated) .mst-video-rating-card__star:has(~ .mst-video-rating-card__star:hover) {
  color: #f7b500;
}

/* Once rated, stars are static: no hover, no pointer interaction. */
.mst-video-rating-card.is-rated .mst-video-rating-card__star {
  pointer-events: none;
  cursor: default;
}

.mst-video-rating-card__feedback {
  margin: 0.5rem 0 0;
  color: #475467;
  font-size: 0.875rem;
  line-height: 1.4;

  &[hidden] {
    display: none;
  }
}

.mst-video-rating-card__edit {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  width: 16px;
  height: 16px;
  border: 0;
  background: none;
  cursor: pointer;

  &[hidden] {
    display: none;
  }
}

.mst-video-rating-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  &[hidden] {
    display: none;
  }
}

.mst-video-rating-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 38, 0.6);
}

.mst-video-rating-modal__card {
  position: relative;

  width: 100%;
  max-width: 370px;
  padding: 29px;
  border: 1px solid #d9dade;
  border-radius: 6px;
  background: #fff;
}

.mst-video-rating-modal__title {
  margin: 0;
  padding-block-end: 24px;
  font-size: 22px !important;
  line-height: 34px !important;
  border-bottom: 1px solid #d9dade;
}

.mst-video-rating-modal form {
  margin: 0;
}

.mst-video-rating-modal__stars {
  display: flex;
  margin-block-start: 24px;
  gap: 2px;
  color: #d9dade;
}

.mst-video-rating-modal__star {
  margin: 0;
  color: #d9dade;
  cursor: pointer;

  input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  svg {
    display: block;
    width: 20px;
    aspect-ratio: 1;
    transition: color linear 0.2s;
  }
}

.mst-video-rating-modal__star:has(input:checked),
.mst-video-rating-modal__star:has(~ .mst-video-rating-modal__star input:checked) {
  color: #f7b500;
}

/* While hovering the row, ignore the saved selection and preview the hovered
   value: reset every star to grey, then fill up to the hovered one. The extra
   .mst-video-rating-modal ancestor keeps these rules above the :checked rule,
   whose :has(... input:checked) is otherwise more specific. */
.mst-video-rating-modal .mst-video-rating-modal__stars:hover .mst-video-rating-modal__star {
  color: #d9dade;
}

.mst-video-rating-modal .mst-video-rating-modal__stars:hover .mst-video-rating-modal__star:hover,
.mst-video-rating-modal
  .mst-video-rating-modal__stars:hover
  .mst-video-rating-modal__star:has(~ .mst-video-rating-modal__star:hover) {
  color: #f7b500;
}

.mst-video-rating-modal__feedback {
  width: 100%;
  padding: 9px;
  margin-block-start: 24px;

  font-size: 14px;
  line-height: 24px;

  border: 1px solid #d9dade;
  border-radius: 6px;
  resize: vertical;
  min-height: 68px;

  &::placeholder {
    color: #9498a4;
  }
}

.mst-video-rating-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-block-start: 24px;
}

.mst-video-rating-modal__cancel {
  color: #094886;
  background: transparent;
  border-color: #094886;

  &:hover {
    color: #fff;
    background: #094886;
  }
}

.mst-video-rating-modal__submit {
  color: #fff;
  background-color: #094886;
  border-color: #094886;
}

.mst-single-video-page__related {
  margin-top: 20px;

  @media (min-width: 1200px) {
    margin-block-start: 30px;
  }
}

.mst-single-video-page__related h2 {
  margin: 0 0 10px;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 28px !important;

  @media (min-width: 1200px) {
    font-size: 22px !important;
    line-height: 34px !important;
  }
}

.mst-single-video-page__related-inner {
  padding: 0 !important;
  margin-inline: -20px;
  overflow-x: auto;

  @media (min-width: 1200px) {
    margin-inline: unset;
    overflow-x: unset;
  }

  &::-webkit-scrollbar {
    width: 1px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: transparent;
  }
}

.mst-single-video-page__related .mst-video-grid {
  padding-inline: 20px;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  width: fit-content;
  min-width: 100%;
  gap: 10px;

  @media (min-width: 1200px) {
    padding-inline: unset;
    height: auto;
    gap: 30px;
  }

  .mst-video-card {
    height: 100%;
  }
}

.mst-video-widget-wrapper.mst-home-video-widget .mst-video-widget-holder {
  margin-inline: -5px;
}

.mst-video-widget-wrapper.mst-home-widget .bs-header-item {
  margin-bottom: 30px !important;
}

.mst-profile-videos .mst-profile-videos__header {
  margin-bottom: 10px;
}
