.qsm_special_result_page select,
.qsm_special_result_page textarea,
.qsm_special_result_page input[type="text"],
.qsm_special_result_page input[type="email"],
.qsm_special_result_page input[type="url"],
.qsm_special_result_page input[type="number"] {
  width: 70%;
  min-height: 35px;
  display: inline-block;
  padding: 10px 8px 10px 8px;
  font-size: 14px;
  color: #555;
  background: #fff;
  border: 1px solid #e3e3e3;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

.qsm_special_result_page select.qsm_select.qsm_dropdown {
  height: auto;
  margin-bottom: 5px;
}
.qsm_special_result_page select:hover,
.qsm_special_result_page textarea:hover,
.qsm_special_result_page input[type="text"]:hover,
.qsm_special_result_page input[type="email"]:hover,
.qsm_special_result_page input[type="url"]:hover,
.qsm_special_result_page input[type="number"]:hover,
.qsm_special_result_page select:focus,
.qsm_special_result_page textarea:focus,
.qsm_special_result_page input[type="text"]:focus,
.qsm_special_result_page input[type="email"]:focus,
.qsm_special_result_page input[type="url"]:focus,
.qsm_special_result_page input[type="number"]:focus {
  outline: 0;
  background: #f7f7f7;
  border: 1px solid #bdc3c7;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
.qsm_special_result_page label, .qsm_special_result_page .mlw_qmn_question {
    display: block;
    margin: 0 0 5px 0;
    font-weight: bold;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.qsm-submit-quiz-anytime .qmn_pagination {
  gap: 10px;
}
.qsm-submit-quiz-anytime:not(.qsm-quiz-navigator-enable) .qsm-submit-btn, 
.qsm-submit-quiz-anytime:not(.qsm-quiz-navigator-enable) .mlw_custom_next,
.qsm-submit-quiz-anytime:not(.qsm-quiz-navigator-enable) .mlw_previous {
	flex: 1;
}
.qsm-submit-quiz-anytime:not(.qsm-quiz-navigator-enable) .qsm-submit-btn {
	order: 3;
}
@media (max-width: 500px) {
  .qsm-submit-quiz-anytime .qsm-submit-btn {
    order: 3;
  }
}
.quiz_theme_qsm-theme-pixel .mlw_previous {
	display: none;
}
.qsm-quiz-container .qsm-results-page .qmn_question_answer .mlw_qmn_question .qsm-ultimate-user-response{
	  display: block;
    color: #808080;
    margin-bottom: 5px;
    padding-left: 10px;
}
.qsm-quiz-container .qsm-results-page .qmn_question_answer .mlw_qmn_question .qsm-ultimate-user-response:before{
    content: "\f159";
    font-family: dashicons;
    color: #808080;
    position: relative;
    top: 3px;
    left: -10px;
    background: #808080;
    border-radius: 50%;
}

/* ========================================
   QSM Ultimate - Vertical Progress Bar (Left / Right)
   ======================================== */

.qsm-quiz-container.qsm-new-renderer:has(.qsm-ultimate-vertical-progress-bar-wrapper) {
    position: relative;
    min-height: 375px;
}

.qsm-quiz-container.qsm-ultimate-vbar-active:has(.qsm-ultimate-progress-bar-left) {
    padding-left: 54px;
}
.qsm-quiz-container.qsm-ultimate-vbar-active:has(.qsm-ultimate-progress-bar-right) {
    padding-right: 54px;
}

.qsm-quiz-container:not(.qsm-ultimate-vbar-active) .qsm-ultimate-vertical-progress-bar-wrapper {
    display: none;
}

.qsm-ultimate-vertical-progress-bar-wrapper {
    position: sticky;
    top: 50px;
    width: 44px;
    z-index: 10;
    pointer-events: none;
    height: 50vh;
    align-self: flex-start;
    overflow: hidden;
}

.qsm-ultimate-vertical-progress-bar-wrapper > * {
    pointer-events: auto;
}

.qsm-ultimate-vertical-progress-bar-wrapper:has(.qsm-ultimate-progress-bar-left) {
    float: left;
    margin-left: -54px;
}

.qsm-ultimate-vertical-progress-bar-wrapper:has(.qsm-ultimate-progress-bar-right) {
    float: right;
    margin-right: -54px;
}

.qsm-progress-bar.qsm-ultimate-progress-bar-vertical {
    position: absolute;
    width: 300px;
    top: 160px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    flex-shrink: 0;
}

.qsm-progress-bar.qsm-ultimate-progress-bar-vertical .progressbar-text {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    white-space: nowrap;
    font-size: 11px;
    z-index: 2;
    pointer-events: none;
}

/* Review status — surfaced on the user-facing result page when the quiz has
   at least one descriptive question with grading_mode=2 (manual grading). */
.qsm-ultimate-result-status-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 16px;
    border-radius: 4px;
    border-left: 4px solid #c5d0d6;
    background: #f7f9fa;
    font-size: 14px;
}
.qsm-ultimate-result-status-banner.qsm-ultimate-result-status-pending {
    border-left-color: #f0c040;
    background: #fffaeb;
    color: #8a6d00;
}
.qsm-ultimate-result-status-banner.qsm-ultimate-result-status-graded {
    border-left-color: #5cb377;
    background: #f1faf3;
    color: #1f7a3a;
}
.qsm-ultimate-result-status-banner .qsm-ultimate-result-status-text {
    flex: 1;
}

.qsm-ultimate-review-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    text-transform: uppercase;
    border-radius: 10px;
    vertical-align: middle;
}
.qsm-ultimate-review-badge-pending {
    background: #fff5d6;
    color: #8a6d00;
    border: 1px solid #f0c040;
}
.qsm-ultimate-review-badge-graded {
    background: #e1f5e8;
    color: #1f7a3a;
    border: 1px solid #5cb377;
}

/* Inline pill rendered next to the question title for manually-graded
   descriptive questions. Matches the admin results-list badge styling. */
.qsm-ultimate-question-review-badge {
    margin-left: 8px;
    vertical-align: middle;
}

/* Reviewer feedback card rendered under a graded question/answer. */
.qsm-ultimate-admin-feedback {
    margin: 16px 0 18px;
    padding: 14px 18px;
    border: 1px solid #b8d4ea;
    border-radius: 10px;
    background: #eaf3fa;
}
.qsm-ultimate-admin-feedback__title {
    display: block;
    margin: 0 0 8px;
    color: #2271b1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.qsm-ultimate-admin-feedback-text {
    color: #1e3a5f;
    font-size: 13px;
    line-height: 1.55;
}

/* Minimum Questions Required — Counter */
.qsm-min-questions-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    margin: 10px 0;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Minimum Questions Required — Popup */
.qsm-mq-popup-overlay {
    display: none;
}
.qsm-mq-popup-overlay.is-open {
    display: block !important;
}
.qsm-mq-popup__container {
    max-width: 610px;
    width: 100%;
    padding: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 8px;
    overflow: hidden;
}
.qsm-mq-popup__header {
    padding: 18px 22px;
    background: #2980b9;
    color: #fff;
}
.qsm-mq-popup__header .qsm-popup__title {
    color: #fff;
    font-size: 18px;
}
.qsm-mq-popup__close {
    cursor: pointer;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    background: transparent;
    border: 0;
}
.qsm-mq-popup__content {
    padding: 30px 28px 24px;
    margin: 0;
    text-align: center;
}
.qsm-mq-popup-icon {
    margin: 0 0 16px;
}
.qsm-mq-popup-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #f59e0b;
    transform: rotate(180deg);
}
.qsm-mq-popup-message {
    margin: 0 0 8px;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.5;
}
.qsm-mq-popup-submessage {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.qsm-mq-popup__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 16px 22px !important;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.qsm-mq-popup__footer .qsm-popup__btn {
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    flex: 1;
    text-align: center;
}
.qsm-mq-popup__footer .qsm-mq-popup-review {
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}
.qsm-mq-popup__footer .qsm-mq-popup-review:hover,
.qsm-mq-popup__footer .qsm-mq-popup-submit-anyways:hover,
.qsm-mq-popup__footer .qsm-mq-popup-review.qsm-mq-popup-review-only:hover {
    background: #2980b9;
    border-color: #2980b9;
}
.qsm-mq-popup__footer .qsm-mq-popup-submit-anyways,
.qsm-mq-popup__footer .qsm-mq-popup-review.qsm-mq-popup-review-only {
    background: #3498db;
    color: #fff;
    border: 2px solid #3498db;
}
.qsm-mq-popup__footer .qsm-mq-popup-submit-anyways:hover,
.qsm-mq-popup__footer .qsm-mq-popup-review.qsm-mq-popup-review-only:hover {
    color: #fff;
}