/* LMSable Academy - learner panel tweaks (course pages, My courses). */

/* Course page: no instructor block (the author is a generic admin account) and no wishlist. */
body.single-stm-courses .masterstudy-single-course-instructor,
body.single-stm-courses .masterstudy-single-course-full-width__info-block:has(> .masterstudy-single-course-instructor),
body.single-stm-courses .masterstudy-single-course-wishlist {
	display: none !important;
}
/* Info row left with nothing visible (only instructor + the students count MSSU hides): drop its margin too. */
body.single-stm-courses .masterstudy-single-course-full-width__info:not(:has(> .masterstudy-single-course-full-width__info-block:not(.masterstudy-single-course-full-width__info-block_students):not(:has(> .masterstudy-single-course-instructor)))) {
	display: none;
}

/* Course page: main buttons in sentence case, like the login button. */
body.single-stm-courses .masterstudy-buy-button__title,
body.single-stm-courses .masterstudy-buy-button__link,
body.single-stm-courses .masterstudy-single-course-full-width__cta .masterstudy-button__title {
	text-transform: none;
	letter-spacing: normal;
}

/* My courses: the MSSU grid breaks out with width: 100vw + left: calc(50% - 50vw).
   The theme wrapper is padded on the left for the side bar, so the grid ends 30px
   past the viewport (plus the scrollbar width on desktop browsers) and the page
   scrolls sideways. Clip the overflow; the grid keeps its right padding. */
html:has(.msat-my-courses),
body:has(.msat-my-courses) {
	overflow-x: clip;
}

/* Course page: "Your path to the certificate" box (1.6.0, LMSA_Path). */
.lmsa-path {
	margin: 0 0 28px;
	padding: 18px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.lmsa-path__title {
	margin: 0 0 12px !important;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}
.lmsa-path__steps {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.lmsa-path__step {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.lmsa-path__step::before,
.lmsa-path__step::marker {
	content: none !important;
}
.lmsa-path__num {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	background: #fff;
	border: 2px solid #cbd5e1;
}
.lmsa-path__step--next .lmsa-path__num {
	color: #fff;
	background: #cb7918;
	border-color: #cb7918;
}
.lmsa-path__step--done .lmsa-path__num {
	color: #fff;
	background: #15803d;
	border-color: #15803d;
}
.lmsa-path__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	padding-top: 3px;
}
.lmsa-path__step-title {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
}
.lmsa-path__step--done .lmsa-path__step-title {
	color: #475569;
}
.lmsa-path__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 14px;
}
.lmsa-path__link {
	color: #b45309 !important;
	font-weight: 600;
	text-decoration: none;
}
a.lmsa-path__link:hover {
	text-decoration: underline;
}
.lmsa-path__link--current {
	color: #475569 !important;
	font-weight: 500;
}
.lmsa-path__link--current em {
	font-style: normal;
	color: #64748b;
}
/* 1.16.0: "Build your course in LMSable" step - one line + the SSO button (LMSA_Sso). */
.lmsa-path__hint {
	font-size: 14px;
	color: #475569;
}
.lmsa-path__action {
	display: block;
	margin-top: 6px;
}
.lmsa-path__action .lmsa-learner-notice {
	margin: 0 0 6px;
}

/* My certifications: "Creator points" card (1.7.0, LMSA_Points). Card, button and
   notice base styles come from learner.css (.lmsa-learner-card, .lmsa-btn). */
.lmsa-points__history {
	color: #b45309;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.lmsa-points__history:hover {
	text-decoration: underline;
}
.lmsa-points__balance {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 12px 0 0;
}
.lmsa-points__value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	color: #cb7918;
}
.lmsa-points__unit {
	font-size: 15px;
	font-weight: 600;
	color: #475569;
}
.lmsa-points__ref {
	margin: 18px 0 0;
}
.lmsa-points__ref label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
}
.lmsa-points__ref-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.lmsa-points__ref-input {
	flex: 1 1 260px;
	min-width: 0;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #f8fafc;
	color: #0f172a;
	font: inherit;
	font-size: 15px;
}
.lmsa-points__copy {
	cursor: pointer;
}
.lmsa-points__hint {
	margin: 6px 0 0;
	font-size: 14px;
	color: #64748b;
}
.lmsa-points__subtitle {
	margin: 20px 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}
.lmsa-learner ul.lmsa-points__earn {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.lmsa-learner ul.lmsa-points__earn > li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0 0 6px;
	border-bottom: 1px solid #f1f5f9;
	list-style: none;
	font-size: 15px;
}
.lmsa-learner ul.lmsa-points__earn > li::marker {
	content: "";
}
.lmsa-points__earn strong {
	color: #15803d;
	white-space: nowrap;
}
.lmsa-points__unlock {
	margin: 20px 0 0;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}
.lmsa-points__unlock-title {
	margin: 0 0 10px !important;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}
.lmsa-points__bar {
	height: 10px;
	border-radius: 999px;
	background: #e2e8f0;
	overflow: hidden;
}
.lmsa-points__bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: #cb7918;
}
.lmsa-points__bar-fill.is-full {
	background: #15803d;
}
.lmsa-points__progress {
	margin: 6px 0 12px !important;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
}
.lmsa-points__form {
	margin: 0;
}
.lmsa-points__btn {
	cursor: pointer;
}
.lmsa-points__btn:disabled {
	cursor: not-allowed;
	background: #e2e8f0;
	border-color: #e2e8f0;
	color: #64748b;
}

/* ---- 1.11.0: /account/ overview for learners (Creator points instead of a second course list) ---- */
.lmsa-account {
	max-width: 880px;
}
.lmsa-account .lmsa-account__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 4px;
}
.lmsa-account__title {
	margin: 0 !important;
	font-size: 32px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
}
.lmsa-account__btn,
.lmsa-account__btn:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 10px;
	background: #f7941d;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.lmsa-account__btn:hover {
	background: #cb7918;
}
.lmsa-account__btn:focus-visible {
	outline: 3px solid rgba(247, 148, 29, 0.45);
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.lmsa-account__title {
		font-size: 26px !important;
	}
	.lmsa-account__btn {
		width: 100%;
		justify-content: center;
	}
}

/* Path box: status of the project form, e.g. "In review" (1.14.0). */
.lmsa-path__label {
	margin-left: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

/* "Submit your final project" page, [lmsa_project] (1.14.0, LMSA_Project). */
.lmsa-project {
	max-width: 880px;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #0f172a;
}
.lmsa-project__intro h2 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.3;
}
.lmsa-project__intro p {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.6;
}
.lmsa-project__hint {
	color: #475569;
}
/* 1.17.0: Gravity Forms prints "Label(Required)" without a space. */
.lmsa-project__form .gfield_required {
	margin-left: 0.25em;
}
.lmsa-project > .lmsa-page-title {
	margin-bottom: 16px !important;
}
.lmsa-project__status {
	margin: 0 0 20px;
	padding: 16px 18px;
	border: 1px solid #e2e8f0;
	border-left: 4px solid #f7941d;
	border-radius: 10px;
	background: #f8fafc;
	font-size: 16px;
	line-height: 1.6;
}
.lmsa-project__status p {
	margin: 0 0 8px;
}
.lmsa-project__status p:last-child {
	margin-bottom: 0;
}
.lmsa-project__status--accepted {
	border-left-color: #15803d;
}
.lmsa-project__comment {
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff7ed;
	white-space: normal;
}
.lmsa-project__form {
	margin: 20px 0 0;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-top: 4px solid #f7941d;
	border-radius: 10px;
	background: #fff;
}
.lmsa-project__form .gform_wrapper input[type="url"],
.lmsa-project__form .gform_wrapper textarea {
	border-radius: 10px;
}
.lmsa-project__form .gform_wrapper .gform_footer input[type="submit"],
.lmsa-project__form .gform_wrapper .gform_footer button {
	padding: 12px 22px;
	border: 1px solid #f7941d;
	border-radius: 10px;
	background: #f7941d;
	color: #0f172a;
	font-weight: 700;
	cursor: pointer;
}
.lmsa-project__form .gform_wrapper .gform_footer input[type="submit"]:hover,
.lmsa-project__form .gform_wrapper .gform_footer button:hover {
	background: #e8850f;
}
.lmsa-project__note {
	margin: 14px 0 0;
	font-size: 14px;
	color: #64748b;
}
@media (max-width: 600px) {
	.lmsa-project__form {
		padding: 16px;
	}
}

/* ---- 1.14.1: project form - Academy button and compact answer boxes ---- */
.lmsa-project__form .gform_wrapper textarea {
	min-height: 110px !important;
	height: 110px;
	resize: vertical;
}
.lmsa-project__form .gform_wrapper .gform_footer input[type="submit"],
.lmsa-project__form .gform_wrapper .gform_footer button,
.lmsa-project__form .gform_wrapper .gform_button {
	min-height: 48px;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #f7941d !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	box-shadow: 0 6px 16px rgba(247, 148, 29, 0.28);
	cursor: pointer;
}
.lmsa-project__form .gform_wrapper .gform_footer input[type="submit"]:hover,
.lmsa-project__form .gform_wrapper .gform_button:hover {
	background: #cb7918 !important;
}
.lmsa-project__form .gform_wrapper input[type="checkbox"] {
	accent-color: #f7941d;
}

/* ---- 1.15.0: /account/ "Your data" card (LMSA_Privacy) ---- */
.lmsa-privacy {
	margin-top: 24px;
}
.lmsa-privacy__block .lmsa-points__hint {
	margin: 0 0 10px;
}
.lmsa-privacy__status {
	font-weight: 600;
	color: #0f172a;
}
.lmsa-btn.lmsa-privacy__danger {
	background: #fff;
	border-color: #b91c1c;
	color: #b91c1c;
}
.lmsa-btn.lmsa-privacy__danger:hover,
.lmsa-btn.lmsa-privacy__danger:focus {
	background: #fef2f2;
	color: #991b1b;
}
.lmsa-privacy__warning {
	color: #b91c1c;
}
.lmsa-privacy__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.lmsa-btn.lmsa-privacy__secondary {
	background: #fff;
	border-color: #cbd5e1;
	color: #0f172a;
}
.lmsa-btn.lmsa-privacy__secondary:hover,
.lmsa-btn.lmsa-privacy__secondary:focus {
	background: #f1f5f9;
	color: #0f172a;
}

/* Settings (/account/settings/, 1.16.0): the display name is set from first + last name
   (LMSA_Registration), so the "Display name publicly as" select is hidden. */
.masterstudy-account-settings__field:has(#display_name) {
	display: none !important;
}
