/**
 * EGP Shop member-facing styles: course pages, account tabs, cart credit offer.
 * Scoped classes, theme fonts inherited, same navy/gold/cream tokens as the
 * quick navigation.
 */

.egp-course,
.egp-module,
.egp-account-credits,
.egp-account-courses,
.egp-credit-offer {
	--egp-navy: #1a2f4a;
	--egp-navy-deep: #14243a;
	--egp-gold: #c9a961;
	--egp-gold-deep: #b08d3e;
	--egp-cream: #faf6ef;
	--egp-line: rgba(26, 47, 74, 0.14);
}

/* ---- Course overview ---- */
.egp-course {
	margin-top: 28px;
}

.egp-course__bar {
	height: 8px;
	border-radius: 999px;
	background: rgba(26, 47, 74, 0.1);
	overflow: hidden;
}

.egp-course__bar span {
	display: block;
	height: 100%;
	background: var(--egp-gold, #c9a961);
	border-radius: 999px;
}

.egp-course__pct {
	margin: 6px 0 0;
	font-size: 0.82rem;
	opacity: 0.75;
}

.egp-course__modules {
	margin: 20px 0 0;
	padding-left: 22px;
}

.egp-course__modules li {
	margin-bottom: 8px;
}

.egp-course__modules li.is-done a {
	opacity: 0.7;
}

.egp-check {
	color: var(--egp-gold-deep, #b08d3e);
	font-weight: 700;
}

/* ---- Module footer ---- */
.egp-module {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--egp-line, rgba(26, 47, 74, 0.14));
}

.egp-module__btn {
	display: inline-block;
	padding: 11px 20px;
	border: none;
	border-radius: 999px;
	background: var(--egp-navy, #1a2f4a);
	color: var(--egp-cream, #faf6ef);
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
}

.egp-module__btn.is-done {
	background: var(--egp-gold, #c9a961);
	color: var(--egp-navy-deep, #14243a);
}

.egp-module__nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
	font-size: 0.9rem;
	font-weight: 600;
}

/* ---- Cart / checkout credit offer ---- */
.egp-credit-offer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 18px;
	padding: 13px 16px;
	border-radius: 12px;
	background: var(--egp-cream, #faf6ef);
	border: 1.5px solid var(--egp-gold, #c9a961);
	font-size: 0.92rem;
}

.egp-credit-offer a {
	font-weight: 700;
	color: var(--egp-gold-deep, #b08d3e);
	text-decoration: none;
}

.egp-credit-offer.is-applied {
	background: var(--egp-navy, #1a2f4a);
	color: var(--egp-cream, #faf6ef);
	border-color: var(--egp-navy, #1a2f4a);
}

.egp-credit-offer.is-applied a {
	color: var(--egp-gold, #c9a961);
}

/* ---- Account tabs ---- */
.egp-balance {
	margin: 0 0 6px;
	font-size: 0.95rem;
}

.egp-balance__num {
	font-size: 2rem;
	font-weight: 700;
	color: var(--egp-navy, #1a2f4a);
}

.egp-balance__how {
	font-size: 0.9rem;
	opacity: 0.8;
	max-width: 52ch;
}

.egp-member-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--egp-gold, #c9a961);
	color: var(--egp-navy-deep, #14243a);
	font-size: 0.8rem;
	font-weight: 700;
}

.egp-credit-log {
	width: 100%;
	margin: 8px 0 18px;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.egp-credit-log td {
	padding: 7px 8px;
	border-bottom: 1px solid var(--egp-line, rgba(26, 47, 74, 0.14));
}

.egp-course-card {
	margin-bottom: 20px;
	padding: 16px;
	border: 1px solid var(--egp-line, rgba(26, 47, 74, 0.14));
	border-radius: 12px;
}

.egp-course-card h3 {
	margin: 0 0 10px;
}

/* ---- Learning dashboard ---- */
.egp-dash {
	--egp-navy: #1a2f4a;
	--egp-navy-deep: #14243a;
	--egp-gold: #c9a961;
	--egp-gold-deep: #b08d3e;
	--egp-cream: #faf6ef;
	--egp-line: rgba(26, 47, 74, 0.14);
}

.egp-dash__title {
	margin: 0 0 6px;
	color: var(--egp-navy);
}

.egp-dash__hello {
	margin: 0 0 18px;
	font-size: 0.95rem;
	opacity: 0.8;
}

.egp-dash__continue {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 22px;
	padding: 15px 18px;
	border-radius: 12px;
	background: var(--egp-navy);
	color: var(--egp-cream);
}

.egp-dash__continue-label {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	opacity: 0.75;
}

.egp-dash__continue a {
	color: var(--egp-cream);
	font-weight: 700;
	text-decoration: none;
	font-size: 1.02rem;
}

.egp-dash__continue a:hover {
	color: var(--egp-gold);
}

.egp-dash__continue em {
	font-style: normal;
	font-weight: 400;
	opacity: 0.7;
	font-size: 0.88rem;
}

.egp-dash__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 640px) {
	.egp-dash__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.egp-dash__card {
	padding: 18px;
	border: 1px solid var(--egp-line);
	border-radius: 14px;
	background: #fff;
}

.egp-dash__card h3 {
	margin: 0 0 10px;
	font-size: 1.08rem;
}

.egp-dash__card h3 a {
	color: var(--egp-navy);
	text-decoration: none;
}

.egp-dash__thumb {
	width: 100%;
	height: auto;
	border-radius: 10px;
	margin-bottom: 12px;
}

.egp-dash__btn {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--egp-navy, #1a2f4a);
	color: var(--egp-cream, #faf6ef) !important;
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.egp-dash__btn:hover {
	background: var(--egp-gold-deep, #b08d3e);
}
