/* Scoped styling for MBT-managed question source blocks. */
.mbt-question-managed {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 34px 38px 36px;
  border: 1px solid #d9e5ee;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .98)),
    linear-gradient(135deg, #fff8df 0%, #effcff 46%, #fff4f1 100%);
  box-shadow: 0 18px 44px rgba(7, 23, 44, .09);
  direction: rtl;
}

.mbt-question-managed::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, #20b8b2 0%, #e7a914 48%, #f0645f 100%);
}

.mbt-question-managed .masterstudy-course-player-question__header {
  margin-bottom: 22px;
}

.mbt-question-managed .masterstudy-course-player-question__title {
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  color: #1c1033;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
}

.mbt-question-managed .masterstudy-course-player-question-render-title {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #e7a914 0%, #f0645f 100%);
  color: #ffffff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(240, 100, 95, .22);
}

.mbt-question-managed .masterstudy-course-player-question__content {
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid #f2d176;
}

.mbt-question-managed .masterstudy-course-player-question-render-content {
  max-width: 900px;
}

.mbt-question-managed .masterstudy-course-player-question__content label,
.mbt-question-managed .masterstudy-course-player-question__content .masterstudy-course-player-question__answer {
  color: #1c1033;
}

.mbt-question-managed .masterstudy-course-player-answer {
  max-width: 840px;
  margin: 0 auto 12px;
  padding: 13px 16px;
  border: 1px solid #dce7ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 23, 44, .045);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.mbt-question-managed .masterstudy-course-player-answer:hover {
  transform: translateY(-1px);
  background: #f3fbfb;
  border-color: #9edbd9;
  box-shadow: 0 12px 24px rgba(32, 184, 178, .11);
}

.mbt-question-managed .masterstudy-course-player-answer__text {
  color: #1c1033;
  font-size: 16px;
  line-height: 1.7;
}

.mbt-question-managed input[type="radio"],
.mbt-question-managed input[type="checkbox"] {
  accent-color: #20b8b2;
}

.mbt-question-source-wrap {
  width: 100%;
  margin: 0 0 30px;
}

.mbt-question-source {
  width: 100%;
  box-sizing: border-box;
  padding: 26px 30px 28px;
  border: 1px solid #bfe3e8;
  border-right: 6px solid #20b8b2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(239, 252, 255, .94) 0%, rgba(247, 251, 255, .98) 100%),
    linear-gradient(135deg, #e6fbfb 0%, #fff8df 100%);
  color: #07172c;
  direction: rtl;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 24px rgba(7, 23, 44, .06);
}

.mbt-question-source__standards {
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid rgba(32, 184, 178, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.mbt-question-source__label,
.mbt-question-source__standards h5 {
  display: inline-flex;
  margin: 0 0 15px;
  padding: 8px 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #20b8b2 0%, #168e9a 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 8px 18px rgba(32, 184, 178, .2);
}

.mbt-question-source p {
  margin: 0 0 12px;
  color: #07172c;
  font-size: 16px;
  line-height: 1.9;
}

.mbt-question-source p:last-child,
.mbt-question-source__standards p:last-child {
  margin-bottom: 0;
}

.mbt-question-source__text,
.mbt-question-source__instructions {
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid #edd083;
  border-right: 5px solid #e7a914;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf6 0%, #fff8df 100%);
  box-shadow: 0 8px 18px rgba(231, 169, 20, .08);
}

.mbt-question-source__audio-placeholder {
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid #edd083;
  border-right: 5px solid #e7a914;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8df 0%, #fff4f1 100%);
  color: #1c1033;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  box-shadow: 0 10px 22px rgba(231, 169, 20, .1);
}

.mbt-question-source__audio {
  margin: 16px 0 0;
  padding: 18px 20px;
  border: 1px solid #f0c75a;
  border-radius: 8px;
  background: #fffdf6;
}

.mbt-question-source__audio figcaption {
  margin-bottom: 10px;
  color: #001931;
  font-size: 16px;
  font-weight: 700;
}

.mbt-question-source__audio audio {
  width: 100%;
}

.mbt-question-managed .masterstudy-course-player-item-match,
.mbt-question-managed .masterstudy-course-player-image-match {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.mbt-question-managed .masterstudy-course-player-item-match__question-wrapper,
.mbt-question-managed .masterstudy-course-player-image-match__question-wrapper {
  border: 1px solid #d7e4ee;
  border-radius: 8px;
  background: #f3f7fb;
  box-shadow: 0 8px 18px rgba(7, 23, 44, .04);
}

.mbt-question-managed .masterstudy-course-player-item-match__question-content,
.mbt-question-managed .masterstudy-course-player-image-match__question-content {
  color: #001931;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
}

.mbt-question-managed .masterstudy-course-player-item-match__question-answer,
.mbt-question-managed .masterstudy-course-player-image-match__question-answer {
  border: 2px dashed #9fb0c1;
  border-radius: 7px;
  background: #ffffff;
}

.mbt-question-managed .masterstudy-course-player-item-match__answer-item-wrapper,
.mbt-question-managed .masterstudy-course-player-image-match__answer-item-content {
  border: 1px solid #dde7ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 10px 20px rgba(7, 23, 44, .055);
}

.mbt-match-image {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.mbt-match-image img {
  display: block;
  max-width: 210px;
  max-height: 150px;
  width: auto;
  height: auto;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(7, 23, 44, .08);
}

.mbt-match-image figcaption {
  color: #4d5e6f;
  font-size: 13px;
  font-weight: 700;
}

.mbt-manual-review-answer {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 22px;
  border: 1px solid #cae9ef;
  border-right: 5px solid #20b8b2;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #effcff 100%);
  box-shadow: 0 10px 22px rgba(32, 184, 178, .08);
}

.mbt-manual-review-answer__label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 7px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #20b8b2 0%, #168e9a 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.mbt-manual-review-answer__textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 150px;
  padding: 14px 16px;
  border: 1px solid #bfd5e6;
  border-radius: 8px;
  background: #ffffff;
  color: #07172c;
  font-size: 17px;
  line-height: 1.8;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(7, 23, 44, .04);
}

.mbt-manual-review-answer__textarea:focus {
  border-color: #20b8b2;
  outline: 3px solid rgba(32, 184, 178, .18);
}

.mbt-manual-review-answer__note {
  margin-top: 10px;
  color: #4d5e6f;
  font-size: 13px;
  line-height: 1.6;
}

.mbt-manual-review-answer__text {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dde7ee;
  border-radius: 8px;
  background: #ffffff;
  color: #07172c;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 700px) {
  .mbt-question-managed {
    padding: 20px 16px;
  }

  .mbt-question-source {
    padding: 18px 16px;
  }

  .mbt-question-source p {
    font-size: 15px;
  }
}
