/* Em Tax Companion: components the plugin adds to student pages (always loaded). *//* Em Tax Companion: student-facing styles for Tutor LMS pages. */
:root {
	--emtax-navy: #1b2a6b;
	--emtax-gold: #f2c200;
	--emtax-ink: #1d2433;
	--emtax-muted: #5b6478;
	--emtax-line: #e3e7ef;
	--emtax-soft: #f6f7fb;
	--emtax-accent: var(--tutor-color-primary, #4f5bd5);
}

/* Access notice above the dashboard. */
.emtax-dash-notice {
	max-width: 1200px;
	margin: 16px auto;
	padding: 12px 18px;
	font-size: 15px;
	line-height: 1.5;
	background: #fff8db;
	border: 1px solid #f2dc8a;
	border-radius: 12px;
	color: #5c4500;
}
.emtax-dash-notice strong { color: #5c4500; }
.emtax-dash-notice ul { margin: 4px 0 0 18px; padding: 0; }
.emtax-dash-notice li { margin: 0; }

.emtax-reg-intro { text-align: center; margin-bottom: 28px; }
.emtax-reg-brand { display: inline-flex; gap: 6px; margin-bottom: 14px; }
.emtax-reg-brand i { width: 14px; height: 14px; border-radius: 3px; background: var(--emtax-navy); display: block; }
.emtax-reg-brand i + i { background: var(--emtax-gold); }
.emtax-reg-intro h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; color: var(--emtax-navy) !important; }
.emtax-reg-intro p { margin: 0; color: var(--emtax-muted) !important; }
.emtax-reg-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: left; }
@media (max-width: 640px) { .emtax-reg-steps { grid-template-columns: 1fr; } }
.emtax-reg-steps li { display: flex; gap: 10px; align-items: center; background: var(--emtax-soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--emtax-ink); margin: 0; }
.emtax-reg-steps li::before { content: none; }
.emtax-reg-steps span { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--emtax-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.emtax-reg-login { margin-top: 16px !important; font-size: 14px; }
.emtax-reg-login a { color: var(--emtax-navy) !important; font-weight: 600; }
.emtax-reg-section { margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid var(--emtax-line); }
.emtax-reg-section strong { display: block; color: var(--emtax-navy); font-size: 16px; }
.emtax-reg-section span { color: var(--emtax-muted); font-size: 13px; }
.emtax-field-help { color: var(--emtax-muted); font-size: 12px; margin-top: 4px; display: block; }

/* ---------- Course page term box ---------- */
.emtax-term-box {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #eef1fa;
	color: var(--emtax-ink);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}
.emtax-term-box strong { color: var(--emtax-navy); }
.emtax-term-box .emtax-term-you { font-weight: 600; color: var(--emtax-navy); }

/* Access notice inside the Tutor 4 dashboard body. */
.tutor-dashboard-page .emtax-dash-notice { max-width: none; margin: 0 0 20px; }

/* ---------- Student "Payments" page ---------- */
.emtax-billing { color: var(--emtax-ink); display: flex; flex-direction: column; gap: 20px; font-size: 14px; }
.emtax-billing h2, .emtax-billing h3 { color: var(--emtax-ink); margin: 0; line-height: 1.3; }
.emtax-billing h2 { font-size: 22px; font-weight: 700; }
.emtax-billing h3 { font-size: 16px; font-weight: 600; }
.emtax-billing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.emtax-billing-head p { margin: 4px 0 0; color: var(--emtax-muted); }
.emtax-billing-total { background: #fff; border: 1px solid var(--emtax-line); border-radius: 12px; padding: 12px 18px; text-align: right; }
.emtax-billing-total span { display: block; font-size: 12px; color: var(--emtax-muted); }
.emtax-billing-total strong { font-size: 22px; color: var(--emtax-navy); }
.emtax-billing-card { background: #fff; border: 1px solid var(--emtax-line); border-radius: 12px; padding: 20px 22px; }
.emtax-billing-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.emtax-billing-card-head a { color: var(--emtax-accent); font-weight: 600; text-decoration: none; }
.emtax-billing-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.emtax-billing-details dt { font-size: 12px; color: var(--emtax-muted); margin: 0 0 2px; }
.emtax-billing-details dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 782px) { .emtax-billing-details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .emtax-billing-details { grid-template-columns: 1fr; } }
.emtax-billing-list { display: flex; flex-direction: column; }
.emtax-billing-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--emtax-line); }
.emtax-billing-row:first-child { border-top: 0; padding-top: 0; }
.emtax-billing-courses a { display: block; font-weight: 600; color: var(--emtax-ink); text-decoration: none; }
.emtax-billing-courses a:hover { color: var(--emtax-accent); }
.emtax-billing-meta { color: var(--emtax-muted); font-size: 13px; margin-top: 4px; }
.emtax-billing-meta code { background: var(--emtax-soft); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.emtax-billing-amount { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.emtax-billing-amount strong { font-size: 16px; }
.emtax-billing-pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eef0f4; color: #4b5563; }
.emtax-billing-pill.good { background: #e7f6ec; color: #18794e; }
.emtax-billing-pill.warn { background: #fff4d6; color: #8a5a00; }
.emtax-billing-pill.bad { background: #fde8e8; color: #b42318; }
.emtax-billing-empty { text-align: center; padding: 20px 0; color: var(--emtax-muted); }
.emtax-billing-btn { display: inline-block; background: var(--emtax-navy); color: #fff !important; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.emtax-billing-note { margin: 16px 0 0; font-size: 12px; color: var(--emtax-muted); }

/* [emtax_account_links] shortcode. */
.emtax-links { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.emtax-link { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--emtax-navy); color: var(--emtax-navy); }
.emtax-link-primary { background: var(--emtax-navy); color: #fff !important; }

/* ---------- Browse courses (student dashboard) ---------- */
.emtax-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.emtax-course-card { background: #fff; border: 1px solid var(--emtax-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.emtax-course-thumb { display: block; aspect-ratio: 16 / 9; background: var(--emtax-soft); }
.emtax-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emtax-course-thumb-blank { display: flex; height: 100%; align-items: center; justify-content: center; gap: 6px; background: #eef1fa; }
.emtax-course-thumb-blank i { width: 18px; height: 18px; border-radius: 4px; background: var(--emtax-navy); display: block; }
.emtax-course-thumb-blank i + i { background: var(--emtax-gold); }
.emtax-course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.emtax-course-body h3 { font-size: 16px; margin: 0; color: var(--emtax-ink); }
.emtax-course-body p { margin: 0; color: var(--emtax-muted); font-size: 13px; line-height: 1.5; }
.emtax-course-term { font-size: 12px; font-weight: 600; color: var(--emtax-navy); }
.emtax-course-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emtax-course-price { font-size: 16px; color: var(--emtax-ink); }
.emtax-browse-sub { margin: 8px 0 0 !important; }
.emtax-course-foot .emtax-billing-btn{white-space:nowrap;padding:9px 14px}
