/* Stars, rating summary and review list. Used on the sales page, course cards and the course comment box. */
.ll-stars { --ll-fill: 100%; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; }
.ll-stars > span { background: linear-gradient(90deg, #f5a524 var(--ll-fill), #ddd6c6 var(--ll-fill)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ll-stars.is-large { font-size: 26px; }
.ll-card-rating { margin: 0 0 8px; font-size: 14px; color: #5b6578; }
.ll-card-rating .ll-stars { font-size: 15px; margin-right: 4px; }
.ll-card-rating strong { color: #14213d; }

.ll-reviews { order: 5; margin: 8px 0 0; scroll-margin-top: 24px; }
.ll-reviews > h2 { margin: 0 0 14px; font-size: 22px; }
.ll-rating-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 0 0 18px; padding: 16px 22px; background: #fffaf0; border: 1px solid #f1e3c4; border-radius: 14px; }
.ll-rating-score { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; }
.ll-rating-number { font-size: 34px; font-weight: 800; line-height: 1; color: #14213d; }
.ll-rating-score .ll-stars.is-large { font-size: 18px; }
.ll-rating-count { font-size: 13px; color: #5b6578; }
.ll-rating-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.ll-rating-bars li { display: grid; grid-template-columns: 12px 1fr 24px; gap: 10px; align-items: center; font-size: 13px; color: #5b6578; line-height: 1.2; }
.ll-bar-track { height: 7px; background: #efe6d2; border-radius: 99px; overflow: hidden; }
.ll-bar-value { display: block; height: 100%; background: #f5a524; border-radius: 99px; }
.ll-bar-n { text-align: right; }
.ll-title-rating { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 15px; color: #5b6578; text-decoration: none; }
.ll-title-rating:hover span { text-decoration: underline; }
.ll-title-rating strong { color: #14213d; }
.ll-title-rating .ll-stars { font-size: 17px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.ll-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ll-review { padding: 16px 20px; background: #fff; border: 1px solid #e3e8ee; border-radius: 14px; }
.ll-review.is-extra { display: none; }
.ll-review-list.is-open .ll-review.is-extra { display: block; }
.ll-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; }
.ll-review-head .ll-stars { font-size: 16px; }
.ll-review-date { font-size: 14px; color: #5b6578; }
.ll-review-text p { margin: 0 0 8px; }
.ll-review-text > *:last-child { margin-bottom: 0; }
.ll-reviews-empty { padding: 20px 24px; background: #f6f8fb; border: 1px dashed #cfd6e2; border-radius: 14px; color: #5b6578; }

/* The star picker above the comment box */
.ll-rate { margin: 0 0 16px; padding: 0; border: 0; }
.ll-rate legend { padding: 0; margin: 0 0 6px; font-weight: 600; }
.ll-rate-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.ll-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ll-rate-stars label { margin: 0; padding: 2px 3px; font-size: 34px; line-height: 1; color: #ddd6c6; cursor: pointer; transition: color .12s; }
.ll-rate-stars label:hover, .ll-rate-stars label:hover ~ label, .ll-rate-stars input:checked ~ label { color: #f5a524; }
.ll-rate-stars input:focus-visible + label { outline: 3px solid #0f766e; outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
	.ll-rating-card { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
	.ll-rating-score { align-items: flex-start; }
}
