.msm-per-hidden-default {
  display: none !important;
}

.msm-per-active .stm-lms-quiz-result [class*="percent"],
.msm-per-active .stm_lms_quiz_result [class*="percent"],
.msm-per-active .stm-lms-result [class*="percent"],
.msm-per-active .stm_lms_result [class*="percent"],
.msm-per-active .stm-lms-quiz-result [class*="circle"],
.msm-per-active .stm_lms_quiz_result [class*="circle"],
.msm-per-active .stm-lms-result [class*="circle"],
.msm-per-active .stm_lms_result [class*="circle"] {
  display: none !important;
}

body.msm-per-popup-open {
  overflow: hidden;
}

.msm-per-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(30, 36, 45, 0.42);
}

.msm-per-popup {
  width: min(100%, 540px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 34px 30px 28px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(18, 28, 45, 0.18);
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.msm-per-popup__title {
  margin: 0 0 22px;
  color: #444a56;
  font-size: clamp(38px, 5vw, 56px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.msm-per-popup__status {
  margin-bottom: 22px;
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  line-height: 1.1;
}

.msm-per-popup__status.is-passed {
  color: #1f7a3f;
}

.msm-per-popup__status.is-failed {
  color: #eb3223;
}

.msm-per-popup__body {
  color: #39404c;
  font-size: 22px;
  line-height: 1.45;
}

.msm-per-popup__line {
  margin: 7px 0;
}

.msm-per-popup__line--total,
.msm-per-popup__line--threshold {
  font-weight: 700;
}

.msm-per-popup__cross {
  color: #eb3223;
  font-weight: 800;
}

.msm-per-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.msm-per-popup__button {
  min-width: min(100%, 320px);
  padding: 18px 26px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #4c89d8 0%, #2e67b4 100%);
  color: #ffffff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.msm-per-popup__button:hover,
.msm-per-popup__button:focus {
  background: linear-gradient(180deg, #5a95e2 0%, #315fa0 100%);
  outline: none;
}

@media (max-width: 640px) {
  .msm-per-popup-overlay {
    padding: 14px;
  }

  .msm-per-popup {
    padding: 28px 18px 22px;
  }

  .msm-per-popup__body {
    font-size: 17px;
  }

  .msm-per-popup__button {
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    font-size: 14px;
  }
}
