/* Progress bars and status pills shared by the lesson page and the Skill Center. */
.cask-progress {
	background: #e7ebf1;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.cask-progress > span {
	background: linear-gradient(90deg, #1c7a58, #2fa77a);
	border-radius: inherit;
	display: block;
	height: 100%;
	max-width: 100%;
	transition: width .5s ease;
}

.cask-progress--course > span {
	background: linear-gradient(90deg, #1493c7, #3bb4e5);
}

.cask-progress--overall {
	height: 12px;
}

.cask-progress--quiz {
	height: 6px;
}

.cask-status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	gap: 6px;
	line-height: 1.2;
	padding: 4px 10px;
	white-space: nowrap;
}

.cask-status::before {
	background: currentColor;
	border-radius: 50%;
	content: "";
	height: 7px;
	width: 7px;
}

.cask-status--pending,
.cask-status--not_attempted {
	background: #eef1f5;
	color: #5d6b7c;
}

.cask-status--progress,
.cask-status--in_progress {
	background: #fff4dc;
	color: #9a6100;
}

.cask-status--complete,
.cask-status--passed {
	background: #e3f4ea;
	color: #176b45;
}

.cask-status--failed {
	background: #fdecea;
	color: #b42318;
}

@media (prefers-reduced-motion: reduce) {
	.cask-progress > span {
		transition: none;
	}
}
