/* ==========================================================================
   Identity Design — My Account (/tai-khoan/)
   Branded shell for page-templates/tai-khoan.php + WooCommerce My Account
   endpoints (dashboard, thông tin tài khoản, bài học của tôi, đơn hàng,
   địa chỉ). Own CSS, separate from auth.css (login/register) and lms.css
   (public course/lesson pages) even though it reuses their tokens.
   ========================================================================== */

.id21-account-page {
	background: #f4f5f8;
}

.id21-account-shell {
	padding: 40px 24px 80px;
}
/* WooCommerce wraps nav + content in one <div class="woocommerce"> — THAT is the
   real grid container, not .id21-account-shell itself (which only has that one child). */
.id21-account-shell .woocommerce {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 28px;
	align-items: start;
}

/* WooCommerce wraps everything in .woocommerce-account's content; our shell IS that content area. */
.id21-account-shell .woocommerce-notices-wrapper:empty {
	display: none;
}
.id21-account-shell .woocommerce-MyAccount-content {
	background: #fff;
	border: 1px solid #dfe1e8;
	border-radius: 12px;
	padding: 32px;
}

/* Sidebar navigation */
.woocommerce-MyAccount-navigation {
	background: #fff;
	border: 1px solid #dfe1e8;
	border-radius: 12px;
	padding: 10px;
	position: sticky;
	top: 24px;
}
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid #eef0f4;
}
.woocommerce-MyAccount-navigation li:last-child {
	border-bottom: none;
}
.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 12px 14px;
	color: #101116;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
}
.woocommerce-MyAccount-navigation li:not(.is-active) a:hover {
	background: #f4f5f8;
}
.woocommerce-MyAccount-navigation li.is-active a {
	background: #1432ff;
	color: #fff;
}

/* Dashboard */
.id21-dash-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}
.id21-dash-card {
	background: #f4f5f8;
	border-radius: 10px;
	padding: 22px;
}
.id21-dash-card-label {
	display: inline-block;
	background: #1432ff;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 99px;
	margin-bottom: 10px;
}
.id21-dash-card h3 {
	font-size: 16px;
	margin: 0 0 10px;
}
.id21-dash-card .id21-progress-bar {
	background: #dfe1e8;
	height: 8px;
	border-radius: 99px;
	overflow: hidden;
	margin: 8px 0;
}
.id21-dash-card .id21-progress-bar span {
	display: block;
	height: 100%;
	background: #35d12f;
}
.id21-dash-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.id21-dash-links a {
	color: #1432ff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

/* "Bài học của tôi" */
.id21-my-course-block {
	border: 1px solid #dfe1e8;
	border-radius: 10px;
	padding: 24px;
	margin-bottom: 20px;
}
.id21-my-course-block:last-child {
	margin-bottom: 0;
}
.id21-my-course-head h3 {
	margin: 0 0 8px;
	font-size: 18px;
}
.id21-my-course-head .id21-progress-bar {
	background: #dfe1e8;
	height: 8px;
	border-radius: 99px;
	overflow: hidden;
	margin: 8px 0;
}
.id21-my-course-head .id21-progress-bar span {
	display: block;
	height: 100%;
	background: #35d12f;
}
.id21-my-lesson-list {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.id21-my-lesson-topic strong {
	display: block;
	font-size: 13px;
	color: #5f6270;
	margin-bottom: 8px;
}
.id21-my-lesson-topic ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.id21-my-lesson-topic li {
	font-size: 14px;
	padding: 4px 0;
}
.id21-my-lesson-topic li a {
	color: #101116;
	text-decoration: none;
}
.id21-my-lesson-topic li.is-done a {
	color: #35d12f;
}

.id21-avatar-field {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}
.id21-avatar-preview {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
	background: var(--panel);
	flex-shrink: 0;
}
.id21-avatar-field label {
	font-weight: 600;
	font-size: 13px;
	display: block;
	margin-bottom: 6px;
}
.id21-avatar-field input[type="file"] {
	font-size: 13px;
}
.id21-avatar-field .description {
	font-size: 12px;
	color: var(--muted);
	margin: 6px 0 0;
}

/* "Thông tin tài khoản" (edit-account) */
.woocommerce-EditAccountForm .form-row {
	margin-bottom: 16px;
}
.woocommerce-EditAccountForm label {
	font-weight: 600;
	font-size: 13px;
	display: block;
	margin-bottom: 6px;
}
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #dfe1e8;
	border-radius: 8px;
	font-size: 14px;
	box-sizing: border-box;
}
.woocommerce-EditAccountForm fieldset {
	border: 1px solid #dfe1e8;
	border-radius: 10px;
	padding: 20px;
	margin-top: 8px;
}
.woocommerce-EditAccountForm fieldset legend {
	font-weight: 700;
	padding: 0 8px;
}
.woocommerce-EditAccountForm .id21-password-toggle-wrap input {
	width: 100%;
}
.woocommerce-EditAccountForm button[type="submit"] {
	background: #1432ff;
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 4px #071bb5;
	margin-top: 12px;
}

/* Orders / addresses / downloads tables (default WC markup, brand the essentials) */
.woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	border-collapse: collapse;
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table td {
	padding: 12px;
	border-bottom: 1px solid #eef0f4;
	text-align: left;
	font-size: 14px;
}
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content a.button {
	display: inline-block;
	background: #1432ff;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 700;
	text-decoration: none;
	font-size: 13px;
}
.woocommerce-MyAccount-content mark.order-status {
	background: #f4f5f8;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 800px) {
	.id21-account-shell {
		padding: 24px 16px 60px;
	}
	.id21-account-shell .woocommerce {
		grid-template-columns: 1fr;
	}
	.woocommerce-MyAccount-navigation {
		position: static;
	}
}
