.agae-guide-points {
	padding: 1.25rem;
	border: 1px solid #e2e6e9;
	background: #fff;
}

.agae-guide-points__title,
.agae-guide-points__courses h3 {
	margin: 0 0 1rem;
}

.agae-guide-points__loading {
	display: flex;
	align-items: center;
	gap: .6rem;
	min-height: 4rem;
}

.agae-guide-points__spinner {
	width: 1.2rem;
	height: 1.2rem;
	border: 3px solid #d9e0e5;
	border-top-color: #277c9b;
	border-radius: 50%;
	animation: agae-guide-points-spin .8s linear infinite;
}

.agae-guide-points__balance {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 1rem;
	margin-bottom: 1.25rem;
	background: #f4f8fa;
}

.agae-guide-points__balance strong {
	color: #277c9b;
	font-size: 2rem;
}

.agae-guide-points__courses table {
	width: 100%;
}

.agae-guide-points__latest-course {
	margin-top: 1.25rem;
}

.agae-guide-points__courses td:nth-child(2) {
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}

.agae-guide-points__courses th,
.agae-guide-points__courses td {
	padding: 8px 12px;
	border: 1px solid #ddd;
}

.agae-guide-points__courses th {
	background: #f4f4f4;
	text-align: left;
}

.agae-guide-points__courses th:not(:first-child),
.agae-guide-points__courses td:nth-child(2),
.agae-guide-points__courses td:nth-child(3),
.agae-guide-points__courses td:nth-child(4),
.agae-guide-points__courses td:nth-child(5) {
	text-align: center;
}

.agae-guide-points__courses td:nth-child(2) {
	font-weight: 700;
	white-space: nowrap;
}

.agae-guide-points__row--expiring {
	background: #fff8e1;
}

.agae-guide-points__expiry-badge {
	display: inline-block;
	padding: .2rem .45rem;
	margin-left: .35rem;
	color: #7a4d00;
	background: #ffe0a3;
	border-radius: 3px;
	font-size: .75rem;
	font-weight: 600;
}

.agae-guide-points__message--error {
	color: #a12622;
	white-space: pre-line;
}

.agae-guide-points__debug {
	padding: .75rem;
	margin-bottom: 1rem;
	border: 1px solid #d97706;
	background: #fffbeb;
	font: 13px/1.4 monospace;
}

.agae-guide-points__debug dl {
	display: grid;
	grid-template-columns: minmax(9rem, auto) 1fr;
	gap: .2rem .75rem;
	margin: .75rem 0 0;
}

.agae-guide-points__debug dt {
	font-weight: 700;
}

.agae-guide-points__debug dd {
	margin: 0;
	word-break: break-word;
}

.agae-guide-points__debug-json {
	overflow: auto;
	padding: .75rem;
	margin-top: 1rem;
	background: #111827;
	color: #d1fae5;
	font-size: 12px;
}

@keyframes agae-guide-points-spin {
	to { transform: rotate(360deg); }
}
