.pcq-toggle-slot {
  display: inline-flex;
  align-items: center;
}

.pcq-toggle-slot--actions {
  margin-left: auto;
}

.pcq-toggle-slot--standalone {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.pcq-inline-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 9px 13px;
  border: 1px solid #0f4f84;
  border-radius: 10px;
  background: #f7fbff;
  color: #0f4f84;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.pcq-inline-toggle[aria-pressed="true"] {
  background: #0f4f84;
  color: #ffffff;
}

.pcq-zh {
  display: block;
  margin-top: 6px;
  color: #617994;
  font-size: 14px;
  line-height: 1.6;
}

.pcq-zh[hidden] {
  display: none !important;
}

.pcquiz-shell {
  position: relative;
  margin-top: 18px;
}

.pcpage-card.pcq-mode-results > p:first-of-type,
.pcpage-card.pcq-mode-results > .pcpage-inline-notes {
  display: none;
}

.pcquiz-shell #timeNag,
#timeNag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #dbe7f4;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
  color: #284c71;
  line-height: 1.7;
}

.pcquiz-shell #timeNagText,
#timeNagText {
  font-weight: 600;
  color: #284c71;
}

.pcquiz-shell [id^="submittingExam"],
#watupro_quiz [id^="submittingExam"] {
  margin: 0 0 16px;
  padding: 14px 16px !important;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: #f8fbff;
  color: #284c71;
}

.pcquiz-shell #watupro_quiz,
#watupro_quiz {
  margin-top: 0;
}

.pcquiz-shell #watupro_quiz > br:first-of-type,
#watupro_quiz > br:first-of-type {
  display: none;
}

.pcquiz-shell .quiz-form,
#watupro_quiz .quiz-form {
  margin: 0;
}

.pcquiz-shell .watupro-progress-container,
#watupro_quiz .watupro-progress-container {
  height: 8px;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f0fa;
}

.pcquiz-shell .watupro-progress-bar,
#watupro_quiz .watupro-progress-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 8px;
  background: linear-gradient(90deg, #165590 0%, #3b86cf 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pcquiz-shell .watu-question,
#watupro_quiz .watu-question {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pcquiz-shell [id^="questionWrap-"],
#watupro_quiz [id^="questionWrap-"] {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pcquiz-shell .question-content,
#watupro_quiz .question-content {
  margin: 0 0 14px;
}

.pcquiz-shell .question-content > div,
#watupro_quiz .question-content > div {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 800;
  line-height: 1.5;
  color: #142f4d;
}

.pcquiz-shell .watupro_num,
#watupro_quiz .watupro_num {
  display: inline-block;
  margin-right: 8px;
  color: #2f689f;
  font-weight: 800;
}

.pcquiz-shell .question-choices,
#watupro_quiz .question-choices {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pcquiz-shell .watupro-question-choice,
#watupro_quiz .watupro-question-choice {
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pcquiz-shell .watupro-question-choice input[type="radio"],
.pcquiz-shell .watupro-question-choice input[type="checkbox"],
#watupro_quiz .watupro-question-choice input[type="radio"],
#watupro_quiz .watupro-question-choice input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pcquiz-shell .watupro-question-choice label,
#watupro_quiz .watupro-question-choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6e2f0;
  border-radius: 12px;
  background: #fff;
  color: #183d62;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pcquiz-shell .watupro-question-choice label::before,
#watupro_quiz .watupro-question-choice label::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 2px solid #96b2ce;
  border-radius: 50%;
  background: #fff;
}

.pcquiz-shell .watupro-question-choice label:hover,
#watupro_quiz .watupro-question-choice label:hover {
  border-color: #aac4df;
  box-shadow: 0 6px 12px rgba(18, 56, 95, 0.04);
}

.pcquiz-shell .watupro-question-choice input:checked + label,
#watupro_quiz .watupro-question-choice input:checked + label {
  border-color: #1b5b97;
  background: #eef6ff;
  box-shadow: 0 6px 12px rgba(20, 78, 138, 0.06);
}

.pcquiz-shell .watupro-question-choice input:checked + label::before,
#watupro_quiz .watupro-question-choice input:checked + label::before {
  border-color: #1b5b97;
  box-shadow: inset 0 0 0 4px #1b5b97;
}

.pcquiz-shell .watupro_buttons,
#watupro_quiz .watupro_buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4edf5;
}

.pcquiz-shell #show-question,
#watupro_quiz #show-question {
  flex-basis: 100%;
  color: #35587d;
  font-size: 15px;
  font-style: italic;
}

.pcquiz-shell .watupro-qnum-info,
#watupro_quiz .watupro-qnum-info {
  margin: 12px 0 0;
  color: #35587d;
  font-size: 15px;
  font-style: italic;
}

.pcquiz-shell #next-question,
.pcquiz-shell #view-results,
.pcquiz-shell .watupro_buttons > div,
#watupro_quiz #next-question,
#watupro_quiz #view-results,
#watupro_quiz .watupro_buttons > div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pcq-watu-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0f4f84 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 1px solid #0f4f84 !important;
}

.pcq-watu-button:hover {
  background: #0a3f67 !important;
  border-color: #0a3f67 !important;
}

.pcquiz-shell input[type="button"],
.pcquiz-shell input[type="submit"],
.pcquiz-shell button,
#watupro_quiz input[type="button"],
#watupro_quiz input[type="submit"],
#watupro_quiz button {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #0f4f84 !important;
  border-radius: 12px;
  background: #0f4f84 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(15, 79, 132, 0.16);
  cursor: pointer;
}

.pcquiz-shell input[type="button"]:hover,
.pcquiz-shell input[type="submit"]:hover,
.pcquiz-shell button:hover,
#watupro_quiz input[type="button"]:hover,
#watupro_quiz input[type="submit"]:hover,
#watupro_quiz button:hover {
  background: #0a3f67 !important;
  border-color: #0a3f67 !important;
}

.pcquiz-shell input[type="button"]:disabled,
.pcquiz-shell input[type="submit"]:disabled,
.pcquiz-shell button:disabled,
#watupro_quiz input[type="button"]:disabled,
#watupro_quiz input[type="submit"]:disabled,
#watupro_quiz button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.pcquiz-shell .pcq-result-summary,
#watupro_quiz .pcq-result-summary {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid #dbe7f4;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
  color: #183d62;
}

.pcquiz-shell .pcq-result-summary__eyebrow,
#watupro_quiz .pcq-result-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 79, 132, 0.1);
  color: #1d5c97;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pcquiz-shell .pcq-result-summary h3,
#watupro_quiz .pcq-result-summary h3 {
  margin: 14px 0 10px;
  color: #143555;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.3;
}

.pcquiz-shell .pcq-result-summary > p,
#watupro_quiz .pcq-result-summary > p {
  margin: 0;
  color: #45617f;
  font-size: 16px;
  line-height: 1.8;
}

.pcquiz-shell .pcq-result-summary__metrics,
#watupro_quiz .pcq-result-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.pcquiz-shell .pcq-result-summary__metric,
#watupro_quiz .pcq-result-summary__metric {
  padding: 16px 18px;
  border: 1px solid #d6e5f3;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.pcquiz-shell .pcq-result-summary__metric strong,
#watupro_quiz .pcq-result-summary__metric strong {
  display: block;
  color: #143555;
  font-size: 28px;
  line-height: 1.1;
}

.pcquiz-shell .pcq-result-summary__metric span,
#watupro_quiz .pcq-result-summary__metric span {
  display: block;
  margin-top: 6px;
  color: #56718d;
  font-size: 13px;
  font-weight: 600;
}

.pcquiz-shell .pcq-result-summary__actions,
#watupro_quiz .pcq-result-summary__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pcquiz-shell .pcq-result-summary__badge,
#watupro_quiz .pcq-result-summary__badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #dfeefe;
  color: #17578f;
  font-size: 13px;
  font-weight: 700;
}

.pcquiz-shell .pcq-result-link,
#watupro_quiz .pcq-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cfe0f1;
  border-radius: 12px;
  background: #ffffff;
  color: #1a517f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pcquiz-shell .pcq-result-link:hover,
#watupro_quiz .pcq-result-link:hover {
  border-color: #0f4f84;
  color: #0f4f84;
}

.pcquiz-shell .pcq-result-link--main,
#watupro_quiz .pcq-result-link--main {
  border-color: #0f4f84;
  background: #0f4f84;
  color: #ffffff;
}

.pcquiz-shell .pcq-result-link--main:hover,
#watupro_quiz .pcq-result-link--main:hover {
  background: #0a3f67;
  border-color: #0a3f67;
  color: #ffffff;
}

.pcquiz-shell .pcq-result-review,
#watupro_quiz .pcq-result-review {
  display: grid;
  gap: 16px;
}

.pcquiz-shell .pcq-result-review__head,
#watupro_quiz .pcq-result-review__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.pcquiz-shell .pcq-result-review__head h4,
#watupro_quiz .pcq-result-review__head h4 {
  margin: 0;
  color: #143555;
  font-size: 24px;
  line-height: 1.2;
}

.pcquiz-shell .pcq-result-review__head p,
#watupro_quiz .pcq-result-review__head p {
  margin: 0;
  color: #5a728d;
  font-size: 14px;
  line-height: 1.7;
}

.pcquiz-shell .pcq-result-card,
#watupro_quiz .pcq-result-card {
  padding: 20px 22px;
  border: 1px solid #dbe7f4;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(19, 58, 95, 0.04);
}

.pcquiz-shell .pcq-result-card .show-question-content,
#watupro_quiz .pcq-result-card .show-question-content {
  margin-bottom: 12px;
  color: #143555;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
}

.pcquiz-shell .pcq-result-card .show-question-choices ul,
#watupro_quiz .pcq-result-card .show-question-choices ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pcquiz-shell .pcq-result-card .show-question-choices li,
#watupro_quiz .pcq-result-card .show-question-choices li {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #f9fbfe;
  color: #294968;
  line-height: 1.7;
}

.pcquiz-shell .pcq-result-card .show-question-choices li.user-answer,
#watupro_quiz .pcq-result-card .show-question-choices li.user-answer {
  border-color: #c7dcf0;
  background: #edf5fd;
}

.pcquiz-shell .pcq-result-card .show-question-choices li.correct-answer,
#watupro_quiz .pcq-result-card .show-question-choices li.correct-answer {
  border-color: #cfe6d6;
  background: #edf8f0;
  color: #1f6440;
}

.pcquiz-shell .pcq-result-card .show-question-choices li.user-answer.correct-answer,
#watupro_quiz .pcq-result-card .show-question-choices li.user-answer.correct-answer {
  border-color: #abd2ba;
  background: #e6f6ea;
}

.pcquiz-shell .pcq-result-card .show-question-choices li.user-answer:not(.correct-answer),
#watupro_quiz .pcq-result-card .show-question-choices li.user-answer:not(.correct-answer) {
  border-color: #efd3d3;
  background: #fff4f4;
  color: #874444;
}

.pcquiz-shell .pcq-result-card .watupro-main-feedback,
#watupro_quiz .pcq-result-card .watupro-main-feedback {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: #f7fbff;
  color: #35587d;
  line-height: 1.8;
}

html.pcq-show-zh .pcq-zh {
  display: block;
}

@media (max-width: 767px) {
  .pcq-toggle-slot--actions {
    width: 100%;
    margin-left: 0;
  }

  .pcq-inline-toggle {
    width: 100%;
    min-width: 0;
  }

  .pcq-zh {
    font-size: 13px;
  }

  .pcquiz-shell #timeNag,
  #timeNag {
    padding: 14px 16px;
  }

  .pcquiz-shell .watu-question,
  #watupro_quiz .watu-question {
    padding: 0;
    border-radius: 0;
  }

  .pcquiz-shell .question-content > div,
  #watupro_quiz .question-content > div {
    font-size: 18px;
  }

  .pcquiz-shell .watupro-question-choice label,
  #watupro_quiz .watupro-question-choice label {
    padding: 12px 13px;
    font-size: 15px;
  }

  .pcquiz-shell .watupro_buttons,
  #watupro_quiz .watupro_buttons {
    align-items: stretch;
  }

  .pcquiz-shell .pcq-result-summary,
  #watupro_quiz .pcq-result-summary,
  .pcquiz-shell .pcq-result-card,
  #watupro_quiz .pcq-result-card {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .pcquiz-shell .pcq-result-summary__metrics,
  #watupro_quiz .pcq-result-summary__metrics {
    grid-template-columns: 1fr;
  }

  .pcquiz-shell .pcq-result-summary__actions,
  #watupro_quiz .pcq-result-summary__actions {
    align-items: stretch;
  }

  .pcquiz-shell .pcq-result-summary__badge,
  #watupro_quiz .pcq-result-summary__badge,
  .pcquiz-shell .pcq-result-link,
  #watupro_quiz .pcq-result-link {
    width: 100%;
    justify-content: center;
  }

  .pcquiz-shell .pcq-result-review__head,
  #watupro_quiz .pcq-result-review__head {
    padding: 0;
  }

  .pcquiz-shell #next-question,
  .pcquiz-shell #view-results,
  .pcquiz-shell .watupro_buttons > div,
  #watupro_quiz #next-question,
  #watupro_quiz #view-results,
  #watupro_quiz .watupro_buttons > div {
    width: 100%;
  }

  .pcquiz-shell input[type="button"],
  .pcquiz-shell input[type="submit"],
  .pcquiz-shell button,
  #watupro_quiz input[type="button"],
  #watupro_quiz input[type="submit"],
  #watupro_quiz button {
    width: 100%;
  }
}
