/* Customer reviews: stars, summary, list, form, and the star line on product cards. */
.cb-stars { --cb-rating: 0; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 1px; vertical-align: middle; white-space: nowrap; }
.cb-stars::before { content: "\2605\2605\2605\2605\2605"; background: linear-gradient(90deg, #f59e0b calc(var(--cb-rating) / 5 * 100%), #d1d5db calc(var(--cb-rating) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.cb-card-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #64748b; text-decoration: none; margin: 2px 0 4px; }
.cb-card-rating .cb-stars { font-size: 14px; }

.cb-reviews { margin-top: 48px; max-width: 900px; scroll-margin-top: 24px; }
.cb-reviews h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.cb-review-notice { padding: 10px 14px; border-radius: 8px; margin: 0 0 16px; font-size: 14px; }
.cb-review-notice-ok { background: #ecfdf5; color: #065f46; }
.cb-review-notice-err { background: #fef2f2; color: #991b1b; }

.cb-review-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.cb-review-avg-number { font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.cb-review-count { color: #64748b; font-size: 13px; margin-top: 4px; }
.cb-review-none { color: #64748b; margin: 0; }
.cb-review-bars { list-style: none; margin: 0; padding: 0; }
.cb-review-bars a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 3px 0; text-decoration: none; color: #475569; font-size: 13px; }
.cb-review-bars a:hover .cb-bar-label, .cb-review-bars a.is-active .cb-bar-label { color: var(--cb-primary, #1d4ed8); font-weight: 600; }
.cb-bar { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.cb-bar-fill { display: block; height: 100%; background: #f59e0b; }
.cb-bar-pct { text-align: right; color: #94a3b8; }
.cb-review-write { text-align: right; }
.cb-review-hint { color: #64748b; font-size: 13px; margin: 6px 0; }

.cb-review-form-wrap { text-align: left; }
.cb-review-form-wrap > summary { display: inline-block; cursor: pointer; list-style: none; }
.cb-review-form-wrap > summary::-webkit-details-marker { display: none; }
.cb-review-write:has(> .cb-review-form-wrap[open]) { grid-column: 1 / -1; text-align: left; }
.cb-review-form { margin-top: 14px; max-width: 560px; }
.cb-review-form input[type="text"], .cb-review-form textarea { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.cb-star-input { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.cb-star-input legend { order: 99; float: none; width: auto; align-self: center; margin-right: 10px; font-size: 14px; color: #475569; }
.cb-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb-star-input label { font-size: 30px; line-height: 1; color: #d1d5db; cursor: pointer; }
.cb-star-input input:checked ~ label, .cb-star-input label:hover, .cb-star-input label:hover ~ label { color: #f59e0b; }
.cb-star-input input:focus-visible + label { outline: 2px solid var(--cb-primary, #1d4ed8); outline-offset: 2px; }
.cb-review-delete { background: none; border: 0; color: #b91c1c; cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }

.cb-review-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 6px; font-size: 14px; color: #64748b; }
.cb-review-toolbar select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 6px 26px 6px 10px; font-size: 14px; background-color: #fff; }
.cb-review { padding: 18px 0; border-bottom: 1px solid #eef2f7; }
.cb-review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cb-review-title { font-size: 15px; }
.cb-review-meta { margin: 4px 0 8px; font-size: 13px; color: #64748b; }
.cb-verified { color: #047857; font-weight: 600; margin-left: 8px; }
.cb-review-body { margin: 0; font-size: 15px; line-height: 1.55; color: #1e293b; overflow-wrap: anywhere; }
.cb-review-reply { margin: 12px 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--cb-primary, #1d4ed8); background: #f8fafc; border-radius: 0 8px 8px 0; font-size: 14px; }
.cb-review-reply p { margin: 4px 0 0; }
.cb-review-pages { display: flex; gap: 6px; margin-top: 18px; }
.cb-review-pages a { min-width: 34px; text-align: center; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; text-decoration: none; color: #334155; font-size: 14px; }
.cb-review-pages a.is-current { background: var(--cb-primary, #1d4ed8); border-color: var(--cb-primary, #1d4ed8); color: #fff; }

.cb-review-reply-form { margin-top: 10px; }
.cb-review-reply-form textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; margin-bottom: 6px; }
.cb-portal-reviews { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.cb-portal-reviews li { margin: 3px 0; }

@media (max-width: 720px) {
	.cb-review-summary { grid-template-columns: 1fr; gap: 14px; }
	.cb-review-write { text-align: left; }
}
