.woocommerce-account .woocommerce-MyAccount-navigation {
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount {
	display: block !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	clear: both !important;
}

body.kn-moodle-courses-tab.woocommerce-account .woocommerce-MyAccount-content,
body.kn-moodle-courses-tab.woocommerce-account .woocommerce-MyAccount {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.kn-moodle-courses-tab.woocommerce-account .entry-content,
body.kn-moodle-courses-tab.woocommerce-account #primary.site-main,
body.kn-moodle-courses-tab .elementor-widget-woocommerce-my-account,
body.kn-moodle-courses-tab .elementor-widget-woocommerce-my-account > .elementor-widget-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.kn-student-dashboard {
	margin: 1.25rem auto;
	max-width: 1020px;
}

.kn-student-dashboard--courses {
	margin-top: 0;
	padding-top: 0;
}

.kn-student-dashboard--courses > .kn-notch2-wrapper {
	margin: 0;
	padding: 0;
}

.kn-student-dashboard--courses .kn-student-notch-spacer {
	display: block;
	width: 100%;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

.kn-student-dashboard--courses > .kn-notch2-wrapper .kn-notch2-container {
	margin-top: 0;
}

.kn-student-dashboard--courses > .kn-notch2-wrapper .kn-notch2-svg-wrapper img {
	margin-top: 0 !important;
}

.kn-student-dashboard-header h2 {
	margin: 0 0 0.35rem;
	font-size: 1.5rem;
	color: #1d2327;
}

.kn-student-dashboard-header p {
	margin: 0 0 1.25rem;
	color: #646970;
}

.kn-student-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 1px solid #c3c4c7;
	margin-bottom: 1.5rem;
}

.kn-student-courses-intro {
	margin: 2rem 0 2rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #1f2043;
}

.kn-student-tab {
	display: inline-block;
	padding: 0.65rem 1rem;
	margin-bottom: -1px;
	border: 1px solid transparent;
	border-bottom: 0;
	color: #50575e;
	text-decoration: none;
	font-weight: 500;
}

.kn-student-tab:hover,
.kn-student-tab:focus {
	color: #1d2327;
}

.kn-student-tab.is-active {
	background: #fff;
	border-color: #c3c4c7;
	border-bottom-color: #fff;
	color: #1d2327;
}

.kn-student-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0;
	border: 1px solid #c3c4c7;
	margin-bottom: 1.5rem;
	background: #fff;
}

.kn-student-stat {
	padding: 1rem 1.25rem;
	border-right: 1px solid #c3c4c7;
}

.kn-student-stat:last-child {
	border-right: 0;
}

.kn-student-stat-label {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-bottom: 0.35rem;
}

.kn-student-stat-value {
	font-size: 1.5rem;
	color: #1d2327;
	line-height: 1.2;
}

.kn-student-tab-panel h3 {
	margin: 1.5rem 0 1rem;
	font-size: 1.05rem;
	color: #1d2327;
}

.kn-student-tab-panel h3:first-child {
	margin-top: 0;
}

.kn-student-tab-intro {
	color: #646970;
	margin-bottom: 1rem;
}

.kn-student-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.kn-student-filter {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	color: #50575e;
	text-decoration: none;
	font-size: 13px;
}

.kn-student-filter.is-active,
.kn-student-filter:hover {
	border-color: #1d2327;
	color: #1d2327;
}

.kn-student-course-grid.knshop-cards {
	display: flex;
	justify-content: flex-start;
	gap: 50px;
	flex-wrap: wrap;
	margin: 0;
}

/* Legacy card styles kept for any non-shop markup still in use. */
.kn-student-course-card {
	border: 1px solid #c3c4c7;
	background: #fff;
	padding: 1.25rem;
	overflow: hidden;
	box-sizing: border-box;
	max-width: 100%;
}

.kn-student-course-card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.5rem 0.75rem;
	margin-bottom: 0.75rem;
	min-width: 0;
}

.kn-student-course-card h4 {
	margin: 0;
	font-size: 1rem;
	color: #1d2327;
	line-height: 1.35;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.kn-student-badge {
	max-width: 100%;
	font-size: 11px;
	font-weight: 600;
	padding: 0.2rem 0.5rem;
	border: 1px solid #c3c4c7;
	color: #50575e;
	white-space: nowrap;
	box-sizing: border-box;
}

.kn-student-badge--completed {
	border-color: #0e6354;
	color: #0e6354;
}

.kn-student-badge--progress {
	border-color: #996800;
	color: #996800;
}

.kn-student-badge--enrolled {
	border-color: #27ad7a;
	color: #0e6354;
}

.kn-student-badge--shop {
	border-color: #646970;
	color: #646970;
}

.kn-student-course-meta,
.kn-student-course-price {
	margin: 0 0 0.75rem;
	font-size: 13px;
	color: #646970;
}

.kn-student-progress {
	margin-bottom: 1rem;
}

.kn-student-progress-bar {
	height: 8px;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	overflow: hidden;
}

.kn-student-progress-bar span {
	display: block;
	height: 100%;
	background: #27ad7a;
	transition: width 0.3s ease;
}

.kn-student-progress-label {
	margin-top: 0.35rem;
	font-size: 12px;
	color: #646970;
}

.kn-student-course-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.kn-student-course-actions .button {
	margin: 0;
}

.kn-student-empty {
	color: #646970;
	padding: 1rem 0;
}

.kn-student-billing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.kn-student-billing-card {
	border: 1px solid #c3c4c7;
	background: #fff;
	padding: 1.25rem;
}

.kn-student-billing-card h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.kn-student-billing-card address {
	font-style: normal;
	margin-bottom: 0.75rem;
	color: #50575e;
}

.kn-student-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kn-student-link-list li + li {
	margin-top: 0.35rem;
}

.kn-student-orders-table {
	width: 100%;
	margin-top: 0.5rem;
}

.kn-student-orders-table th,
.kn-student-orders-table td {
	font-size: 13px;
	vertical-align: top;
}

@media (max-width: 782px) {
	.kn-student-stats {
		grid-template-columns: 1fr 1fr;
	}

	.kn-student-stat:nth-child(2n) {
		border-right: 0;
	}

	.kn-student-stat:nth-child(-n+2) {
		border-bottom: 1px solid #c3c4c7;
	}

	.kn-student-tabs {
		flex-direction: column;
		border-bottom: 0;
	}

	.kn-student-tab {
		border: 1px solid #c3c4c7;
		margin-bottom: -1px;
	}

	.kn-student-tab.is-active {
		border-bottom-color: #c3c4c7;
		background: #f6f7f7;
	}
}
