/*
 * Reign LearnDash Addon: course list widget. Colours and spacing from the theme tokens, so light, dark and RTL follow.
 */

.rld-widget-courses {
	display: grid;
	gap: 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rld-widget-courses li {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin: 0;
}

.rld-widget-courses__image {
	flex: none;
	width: 4rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--reign-global-border-radius-inner, 6px);
	/* Shows as a tinted square when a course has no image and the site set no default. */
	background: var(--reign-site-border-color);
}

.rld-widget-courses__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rld-widget-courses li > span {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.rld-widget-courses__title {
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.rld-widget-courses__price {
	font-size: 0.875rem;
	color: var(--reign-site-body-text-color);
}
