/**
    LearnDash Advanced Assignments Custom Stylesheet
**/

#leardash_upload_assignment {
    background-color: #f0f3f6;
}

/**
    Legacy Theme
**/

#learndash_lessons .lessons_list {
    overflow: auto !important;
}


.time_over_msg_box {
    background: #dc3545 !important;
    margin-bottom: 35px;
}

.time_over_msg_box img {
    margin-right: 23px;
}

.time_over_msg_box p {
    background: #dc3545 !important;
    color: #fff;
}

.time_alert_msg_box {
    background-color: #ffc107 !important;
    margin-bottom: 35px;
    padding: 10px;
}

.time_alert_msg_box p {
    background: #ffc107 !important;
    color: #212529;
}

.time_alert_msg_box img {
    margin-right: 23px;
}

.learndash_topic_dots ul {
    overflow: visible !important;
}

/**
    LearnDash 3.0 Theme
**/

.learndash-wrapper .ld-table-list {
    overflow: visible !important;
}

.learndash-wrapper .ld-alert.ld-alert-danger {
    background: #dc3545;
    border: none;
    color: #fff;
}

.learndash-wrapper .ld-alert-content {
    font-size: 17px;
}

.learndash-wrapper .ld-alert .ld-alert-icon {
    background-color: transparent !important;
}

.learndash-wrapper .ld-table-list .ld-table-list-items {
    overflow: initial !important;
}

.learndash-wrapper .time_alert_msg_box {
    color: #212529;
    font-size: 17px;
    margin: 0;
}

.extended_deadline_label {
    display: block;
    color: #e61515;
    text-align: center;
    border-bottom: 2px solid #b2b2b2;
    margin-bottom: 10px;
}


textarea#wooninjas_comment_with_assignment {
    width: 100%;
}








/* LD Template Legacy - UI */
.learndash-template-legacy .learndash_post_sfwd-lessons {
    width: 100%;
    padding: 0px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learndash-template-legacy:has(.learndash_post_sfwd-lessons) header.entry-header {
    width: 100%;
    padding: 0px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learndash-template-legacy #leardash_upload_assignment {
    background-color: transparent;
}

.learndash-template-legacy #wooninjas_comment_content {
    border: none;
}

.learndash-template-legacy #wooninjas_comment_content textarea {
    border-radius: 6px;
}

body.learndash-template-legacy #learndash_lesson_topics_list .learndash_topic_dots ul {
    border: none;
}

body.learndash-template-legacy #learndash_lesson_topics_list div>strong {
    border-radius: 3px 3px 0 0;
}

.learndash-template-legacy #learndash_next_prev_link a {
    text-decoration: none;
}

.learndash-template-legacy .learndash_post_sfwd-lessons br {
    display: none;
}

.learndash-template-legacy #learndash_course_content .expand_collapse {
    top: -20px;
}

.learndash-template-legacy #learndash_course_content :is(#learndash_lessons, #learndash_quizzes) {
    margin-bottom: 10px;
}

.learndash-template-legacy #learndash_course_content :is(#lesson_heading, #quiz_heading) {
    border-radius: 5px 5px 0px 0px;
}

body.learndash-template-legacy #learndash_lessons .lessons_list,
body.learndash-template-legacy #learndash_quizzes #quiz_list {
    border-radius: 0px 0px 5px 5px !important;
}

body.learndash-template-legacy #course_list>div h4>a,
body.learndash-template-legacy #lessons_list>div h4>a,
body.learndash-template-legacy #quiz_list>div h4>a {
    padding-left: 10px;
}

body.learndash-template-legacy #learndash_course_content .learndash_topic_dots ul>li a {
    padding-left: 10px;
}

.learndash-template-legacy .learndash_post_sfwd-topic {
    width: 100%;
    padding: 0px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learndash-template-legacy:has(.learndash_post_sfwd-topic) header.entry-header {
    width: 100%;
    padding: 0px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learndash-template-legacy .entry-meta,
.learndash-template-legacy .entry-meta * {
    font-size: 14px;
    font-weight: 400;
}

.learndash-template-legacy .entry-meta {
    padding-bottom: 10px;
    border-bottom: 1px solid #d8d8d8;
    margin-bottom: 20px;
}

.learndash-template-legacy .sfwd-quiz.type-sfwd-quiz {
    width: 100%;
    padding: 0px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.learndash-template-legacy fieldset.wpProQuiz_question {
    padding: 0px;
    border: none;
}

body.learndash-template-legacy .wpProQuiz_content .wpProQuiz_questionList {
    border: none;
    padding: 0px;
}

.learndash-template-legacy .wpProQuiz_questionListItem label {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 8px;
    border: 2px solid #e2e7ed;
    border-radius: 6px;
    padding: 1em;
    width: 100%;
}

.learndash-template-legacy .wpProQuiz_questionListItem label:has(input:checked) {
    border-color: #235af3;
}

.learndash-template-legacy .wpProQuiz_content .wpProQuiz_question_text p {
    margin-bottom: 5px;
}

.learndash-template-legacy .ld-quiz-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 15px;
}

.learndash-template-legacy .quiz_continue_link {
    margin: 0px;
    display: block;
}

body.learndash-template-legacy a#quiz_continue_link,
.learndash-template-legacy .wpProQuiz_button:is(.wpProQuiz_button_restartQuiz, .wpProQuiz_button_reShowQuestion) {
    font-size: 14px;
    padding: 12px 20px;
    line-height: 140%;
    border-radius: 5px;
    font-weight: 500;
}

.learndash-template-legacy .wpProQuiz_button:is(.wpProQuiz_button_restartQuiz, .wpProQuiz_button_reShowQuestion):not(:hover) {
    background: #495255;
}

body.learndash-template-legacy .wpProQuiz_content .wpProQuiz_questionList[data-type=single] .wpProQuiz_answerCorrect {
    background: transparent;
}

body.learndash-template-legacy .wpProQuiz_content .wpProQuiz_questionList[data-type=single] .wpProQuiz_answerCorrect label {
    color: #fff;
    background: #235af3;
}

body.learndash-template-legacy .wpProQuiz_content .wpProQuiz_correct,
body.learndash-template-legacy .wpProQuiz_content .wpProQuiz_incorrect {
    border-radius: 5px;
}