.has-results-modal-open {
  overflow: hidden;
}

.test-results-modal {
  align-items: center;
  box-sizing: border-box;
  display: none;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1400;
}

.test-results-modal.is-visible {
  display: flex;
}

.test-results-modal__backdrop {
  background: rgba(0, 0, 0, 0.3);
  inset: 0;
  position: absolute;
}

.test-results-modal__dialog {
  border-radius: 16px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 410px;
  max-width: calc(100vw - 48px);
  overflow: visible;
  position: relative;
  width: 856px;
}

.test-results-modal__left {
  background: #ffa194;
  border-radius: 16px 0 0 16px;
  flex: 0 0 428px;
}

.test-results-modal.is-passed .test-results-modal__left {
  background: #c5ffcc;
}

.test-results-modal__confetti {
  display: none;
  height: 418px;
  left: -97px;
  pointer-events: none;
  position: absolute;
  top: -123px;
  width: 582px;
  z-index: 4;
}

.test-results-modal__confetti-image {
  height: 100%;
  max-width: none;
  width: 100%;
}

.test-results-modal__bull {
  border-radius: 16px 16px 0 0;
  height: 516px;
  left: -111px;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: -105px;
  width: 539px;
  z-index: 2;
}

.test-results-modal__bull--passed {
  display: none;
}

.test-results-modal__bull-image {
  max-width: none;
  object-fit: cover;
  position: absolute;
}

.test-results-modal__bull-image--failed {
  height: 626px;
  left: 17px;
  top: 11px;
  width: 626px;
}

.test-results-modal__bull-image--passed {
  height: 686px;
  left: -53px;
  top: -24px;
  width: 686px;
}

.test-results-modal.is-passed .test-results-modal__confetti {
  display: block;
}

.test-results-modal.is-passed .test-results-modal__bull--failed {
  display: none;
}

.test-results-modal.is-passed .test-results-modal__bull--passed {
  display: block;
}

.test-results-modal.is-failed .test-results-modal__bull--failed {
  display: block;
}

.test-results-modal.is-failed .test-results-modal__bull--passed,
.test-results-modal.is-failed .test-results-modal__confetti {
  display: none;
}

.test-results-modal__content {
  align-items: center;
  background: #fff;
  border-radius: 0 16px 16px 0;
  display: flex;
  flex: 0 0 428px;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 3;
}

.test-results-modal__text-block {
  align-items: center;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  width: 380px;
}

.test-results-modal__title {
  font-feature-settings: "case" 1;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
  width: 100%;
}

.test-results-modal__subtitle {
  font-feature-settings: "case" 1;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  opacity: 0.5;
  width: 100%;
}

.test-results-modal__divider {
  border-top: 1px solid #dedede;
  height: 0;
  width: 380px;
}

.test-results-modal__stats {
  align-items: center;
  display: flex;
  gap: 48px;
  justify-content: center;
  min-height: 132px;
  text-align: center;
  width: 288px;
}

.test-results-modal__stat {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.test-results-modal__stat--correct {
  width: 115px;
}

.test-results-modal__stat--incorrect {
  width: 125px;
}

.test-results-modal__count {
  font-feature-settings: "case" 1;
  font-size: 80px;
  font-style: normal;
  font-weight: 500;
  line-height: 90px;
  margin: 0;
  width: 100%;
}

.test-results-modal__stat--correct .test-results-modal__count {
  color: #48b525;
}

.test-results-modal__stat--incorrect .test-results-modal__count {
  color: #fa5e2f;
}

.test-results-modal__label {
  font-feature-settings: "case" 1;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
  width: 100%;
}

.test-results-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 380px;
}

.test-results-modal__btn {
  align-items: center;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-feature-settings: "case" 1;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  height: 40px;
  justify-content: center;
  line-height: 16px;
  padding: 12px 16px;
  width: 100%;
}

.test-results-modal__btn--secondary {
  background: #fff;
  border: 1px solid #dedede;
  color: #000;
}

.test-results-modal__btn--primary {
  background: #000;
  border: 1px solid #000;
  color: #fff;
}

@media (max-width: 920px) {
  .test-results-modal {
    padding: 12px;
  }

  .test-results-modal__dialog {
    display: block;
    height: auto;
    max-width: calc(100vw - 24px);
    width: 428px;
  }

  .test-results-modal__left {
    border-radius: 16px 16px 0 0;
    height: 136px;
    width: 100%;
  }

  .test-results-modal__bull {
    height: 316px;
    left: 50%;
    top: -142px;
    transform: translateX(-50%);
    width: 330px;
  }

  .test-results-modal__confetti {
    height: 188px;
    left: 50%;
    top: -186px;
    transform: translateX(-50%);
    width: 262px;
  }

  .test-results-modal__bull-image--failed {
    height: 380px;
    left: -20px;
    top: 0;
    width: 380px;
  }

  .test-results-modal__bull-image--passed {
    height: 410px;
    left: -32px;
    top: -16px;
    width: 410px;
  }

  .test-results-modal__content {
    border-radius: 0 0 16px 16px;
    flex: 1 1 auto;
    padding: 20px 16px 16px;
  }

  .test-results-modal__text-block,
  .test-results-modal__divider,
  .test-results-modal__actions,
  .test-results-modal__stats {
    width: 100%;
  }

  .test-results-modal__stats {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .test-results-modal__count {
    font-size: 68px;
    line-height: 76px;
  }
}


