.clcr-widget {
	--clcr-primary: #007da3;
	--clcr-teal: #006783;
	--clcr-border: #d9e2e6;
	--clcr-surface: #f6f8f9;
	border: 1px solid var(--clcr-border);
	border-radius: 8px;
	background: #fff;
	padding: 18px;
	margin: 18px 0;
}

.clcr-widget__header h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.clcr-widget__header p {
	margin: 0 0 8px;
}

.clcr-widget__course {
	color: var(--clcr-teal);
	font-weight: 700;
}

.clcr-reviews-summary__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.clcr-reviews-summary__header h2 {
	margin: 0;
	font-size: 1.25rem;
}

.clcr-reviews-summary__course {
	margin: 0;
	color: var(--clcr-teal);
	font-weight: 700;
	text-align: right;
}

.clcr-reviews-summary__rating {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	align-items: center;
	margin-bottom: 12px;
}

.clcr-reviews-summary__score {
	color: var(--clcr-teal);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.clcr-reviews-summary__stars {
	color: #b45309;
	font-size: 1.05rem;
	letter-spacing: 0;
}

.clcr-reviews-summary__count,
.clcr-review-excerpt footer,
.clcr-reviews-summary__empty {
	color: #4b5563;
}

.clcr-reviews-summary__count {
	grid-column: 2;
}

.clcr-reviews-summary__list {
	display: grid;
	gap: 10px;
	margin: 12px 0;
}

.clcr-review-excerpt {
	border-top: 1px solid var(--clcr-border);
	padding-top: 10px;
}

.clcr-review-excerpt header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.clcr-review-excerpt p {
	margin: 6px 0;
}

.clcr-reviews-summary__action {
	margin: 12px 0 0;
}

.clcr-reviews-summary--compact .clcr-review-excerpt:nth-of-type(n+3) {
	display: none;
}

.clcr-field {
	display: block;
	margin-bottom: 14px;
}

.clcr-field span {
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.clcr-field select,
.clcr-field input[type="text"],
.clcr-field textarea {
	width: 100%;
}

.clcr-button {
	border: 0;
	border-radius: 6px;
	background: var(--clcr-primary);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 16px;
	text-decoration: none;
}

.clcr-button:hover,
.clcr-button:focus {
	background: var(--clcr-teal);
	color: #fff;
}

.clcr-notice {
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.clcr-notice--success {
	background: #e5f5ee;
	color: #185c3d;
}

.clcr-notice--error {
	background: #fbe8ef;
	color: #8a1747;
}

.clcr-help {
	color: #4b5563;
	font-size: 0.92rem;
	margin: -4px 0 14px;
}

.clcr-modal[hidden] {
	display: none;
}

.clcr-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
}

.clcr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.58);
}

.clcr-modal__panel {
	position: relative;
	z-index: 1;
	width: min(720px, calc(100vw - 28px));
	max-height: calc(100vh - 44px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	margin: 22px auto;
	padding: 18px;
}

.clcr-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.clcr-modal__panel .clcr-widget {
	border: 0;
	margin: 0;
	padding: 0;
}

@media (max-width: 600px) {
	.clcr-widget {
		padding: 14px;
	}

	.clcr-reviews-summary__header,
	.clcr-review-excerpt header {
		display: block;
	}

	.clcr-reviews-summary__course {
		text-align: left;
		margin-top: 4px;
	}
}
