/*
 * LearnDash legacy theme compatibility.
 *
 * Recovered from the former hello-theme-child-master theme and its
 * WordPress Additional CSS entry (custom_css post 825). Keep these rules
 * scoped to LearnDash so the legacy body/list styles do not leak into v2.
 */

body.single-sfwd-courses,
body.single-sfwd-lessons,
body.single-sfwd-topic,
body.single-sfwd-quiz {
	color: #525252;
	font-size: 17px;
}

/*
 * The legacy lesson HTML uses H4 for the visible content headings (for
 * example: "Czego dowiesz się z tego odcinka?" and "Spis treści"). Some
 * older lessons were edited with H1/H2 instead, so keep the same treatment
 * for all heading levels inside LearnDash content only.
 */
.ld-tab-content h1,
.ld-tab-content h2,
.ld-tab-content h3,
.ld-tab-content h4,
.ld-tab-bar__panel h1,
.ld-tab-bar__panel h2,
.ld-tab-bar__panel h3,
.ld-tab-bar__panel h4,
.single-sfwd-courses .learndash-wrapper .ld-tab-content h1,
.single-sfwd-courses .learndash-wrapper .ld-tab-content h2,
.single-sfwd-courses .learndash-wrapper .ld-tab-content h3,
.single-sfwd-courses .learndash-wrapper .ld-tab-content h4,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel h1,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel h2,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel h3,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel h4,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content h1,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content h2,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content h3,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content h4,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel h1,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel h2,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel h3,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel h4,
.single-sfwd-topic .learndash-wrapper .ld-tab-content h1,
.single-sfwd-topic .learndash-wrapper .ld-tab-content h2,
.single-sfwd-topic .learndash-wrapper .ld-tab-content h3,
.single-sfwd-topic .learndash-wrapper .ld-tab-content h4,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel h1,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel h2,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel h3,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel h4,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content h1,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content h2,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content h3,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content h4,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel h1,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel h2,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel h3,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel h4 {
	margin: 0.3em 0 10px !important;
	padding: 5px 10px;
	background-color: #00a2e8 !important;
	color: #fff !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

/* Elementor's single-content widget can sit outside the LearnDash tabs. */
body.single-sfwd-lessons .elementor-widget-theme-post-content h1,
body.single-sfwd-lessons .elementor-widget-theme-post-content h2,
body.single-sfwd-lessons .elementor-widget-theme-post-content h3,
body.single-sfwd-lessons .elementor-widget-theme-post-content h4,
body.single-sfwd-lessons .learndash_post_sfwd-lessons h1,
body.single-sfwd-lessons .learndash_post_sfwd-lessons h2,
body.single-sfwd-lessons .learndash_post_sfwd-lessons h3,
body.single-sfwd-lessons .learndash_post_sfwd-lessons h4 {
	margin: 0.3em 0 10px !important;
	padding: 5px 10px;
	background-color: #00a2e8 !important;
	color: #fff !important;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.35;
}

/* Course 166 used the red heading variant in the former theme. */
.learndash-cpt-sfwd-courses-166-parent .ld-tab-content h1,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-content h2,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-content h3,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-content h4 {
	padding: 5px 10px;
	background-color: #e83b3c !important;
	color: #fff !important;
}

.learndash-cpt-sfwd-courses-166-parent .ld-tab-bar__panel h1,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-bar__panel h2,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-bar__panel h3,
.learndash-cpt-sfwd-courses-166-parent .ld-tab-bar__panel h4 {
	padding: 5px 10px;
	background-color: #e83b3c !important;
	color: #fff !important;
}

.ld-tab-content a,
.ld-tab-content a:visited,
.ld-tab-bar__panel a,
.ld-tab-bar__panel a:visited,
.single-sfwd-courses .learndash-wrapper .ld-tab-content a,
.single-sfwd-courses .learndash-wrapper .ld-tab-content a:visited,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel a,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel a:visited,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content a,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content a:visited,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel a,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel a:visited,
.single-sfwd-topic .learndash-wrapper .ld-tab-content a,
.single-sfwd-topic .learndash-wrapper .ld-tab-content a:visited,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel a,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel a:visited,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content a,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content a:visited,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel a,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel a:visited {
	color: #378bc5;
}

body.single-sfwd-lessons .elementor-widget-theme-post-content a,
body.single-sfwd-lessons .learndash_post_sfwd-lessons a {
	color: #378bc5;
}

.ld-tab-content a:hover,
.ld-tab-content a:focus,
.ld-tab-bar__panel a:hover,
.ld-tab-bar__panel a:focus,
.single-sfwd-courses .learndash-wrapper .ld-tab-content a:hover,
.single-sfwd-courses .learndash-wrapper .ld-tab-content a:focus,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel a:hover,
.single-sfwd-courses .learndash-wrapper .ld-tab-bar__panel a:focus,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content a:hover,
.single-sfwd-lessons .learndash-wrapper .ld-tab-content a:focus,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel a:hover,
.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel a:focus,
.single-sfwd-topic .learndash-wrapper .ld-tab-content a:hover,
.single-sfwd-topic .learndash-wrapper .ld-tab-content a:focus,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel a:hover,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel a:focus,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content a:hover,
.single-sfwd-quiz .learndash-wrapper .ld-tab-content a:focus,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel a:hover,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel a:focus {
	color: #2d466f;
}

.ld-tab-content p {
	padding-left: 0.8em;
}

.single-sfwd-lessons .learndash-wrapper .ld-tab-bar__panel p,
.single-sfwd-topic .learndash-wrapper .ld-tab-bar__panel p,
.single-sfwd-quiz .learndash-wrapper .ld-tab-bar__panel p {
	padding-left: 0.8em;
}

/*
 * Hello's reset removes the list indentation used by the old lesson pages.
 * Restore it only inside course content: markers stay in the content column,
 * while wrapped lines remain aligned with the list text.
 */
.ld-tab-content ul,
.ld-tab-content ol,
.ld-tab-bar__panel ul,
.ld-tab-bar__panel ol,
body.single-sfwd-courses .elementor-widget-theme-post-content ul,
body.single-sfwd-courses .elementor-widget-theme-post-content ol,
body.single-sfwd-lessons .elementor-widget-theme-post-content ul,
body.single-sfwd-lessons .elementor-widget-theme-post-content ol,
body.single-sfwd-topic .elementor-widget-theme-post-content ul,
body.single-sfwd-topic .elementor-widget-theme-post-content ol,
body.single-sfwd-quiz .elementor-widget-theme-post-content ul,
body.single-sfwd-quiz .elementor-widget-theme-post-content ol,
body.single-sfwd-courses .learndash_post_sfwd-courses ul,
body.single-sfwd-courses .learndash_post_sfwd-courses ol,
body.single-sfwd-lessons .learndash_post_sfwd-lessons ul,
body.single-sfwd-lessons .learndash_post_sfwd-lessons ol,
body.single-sfwd-topic .learndash_post_sfwd-topic ul,
body.single-sfwd-topic .learndash_post_sfwd-topic ol,
body.single-sfwd-quiz .learndash_post_sfwd-quiz ul,
body.single-sfwd-quiz .learndash_post_sfwd-quiz ol {
	margin: 0 0 0.9rem !important;
	margin-left: 0 !important;
	padding-left: 1.5rem !important;
	padding-inline-start: 1.5rem !important;
	list-style-position: outside !important;
}

.learndash-wrapper .ld-button {
	background-color: #2d466f;
}

.learndash-wrapper .ld-button:hover,
.learndash-wrapper .ld-button:focus {
	background-color: #2d466f !important;
	color: #eaeaea !important;
	opacity: 0.75;
}

.learndash-wrapper .ld-course-status.ld-course-status-not-enrolled > * {
	border-right-width: 0;
}

.learndash-wrapper .ld-content-actions {
	border-top: 2px solid #e2e7ed !important;
	border-bottom: 2px solid #e2e7ed !important;
}

a.ld-course-step-back {
	display: inline-block;
	margin-top: 20px !important;
	padding: 16px !important;
	border-radius: 20px !important;
	background-color: #e83b3c;
	color: #fff;
	font-family: "Lato", sans-serif;
	font-size: 16px;
	font-weight: 700;
}

a.ld-course-step-back:hover,
a.ld-course-step-back:focus {
	color: #fff;
}

.ld-course-list-items .ld_course_grid .thumbnail.course .ribbon {
	background: #f00 !important;
}

.ld-course-list-items .ld_course_grid .thumbnail.course .ribbon.enrolled {
	background: #5cb85c !important;
}

.nt-note-wrapper,
.nt-note-tab {
	position: fixed;
	right: 30px;
	z-index: 9000;
	background: #2d466f;
}

table.notes-listing a {
	color: #2d466f;
}

@media (min-width: 1025px) {
	#wideo {
		scroll-margin-top: 132px;
	}
}
