/* C.L.E.A.N Books: reviews, review page and the #IKEPTGOING story wall. Builds on cwo-base.css. */

/* Shared bits */
.cbc-stars { display: inline-flex; gap: 2px; color: #d6d6d6; font-size: 18px; line-height: 1; }
.cbc-stars i { font-style: normal; }
.cbc-stars i.is-on { color: var(--cwo-gold-2); }
.cbc-stars i.is-half { background: linear-gradient(90deg, var(--cwo-gold-2) 50%, #d6d6d6 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cbc-more { text-align: center; margin: 28px 0 0; }
.cwo .cbc-btn-ghost { background: transparent; color: var(--cwo-green); border-color: var(--cwo-green); }
.cwo .cbc-btn-ghost:hover { background: var(--cwo-green-tint); }
.cwo .cbc-btn-orange { background: #f29a1f; border-color: #f29a1f; color: #000; }
.cwo .cbc-btn-orange:hover { background: #ffb045; border-color: #ffb045; }
.cwo .cbc-btn-outline { background: transparent; color: #f29a1f; border-color: #f29a1f; }
.cbc-field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.cbc-field label, .cbc-field legend { display: block; font-family: var(--cwo-sub); font-weight: 600; font-size: 14px; margin-bottom: 6px; padding: 0; }
.cbc-field small { font-family: var(--cwo-body); font-weight: 400; color: var(--cwo-muted); font-size: 13px; }
.cbc-field input, .cbc-field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #b9bcc4; border-radius: var(--cwo-r); background: #fff; color: var(--cwo-ink); }
.cbc-field textarea { resize: vertical; }
.cbc-field.is-invalid input, .cbc-field.is-invalid textarea { border-color: var(--cwo-err); }
.cbc-field.is-off { opacity: .45; }
.cbc-err { display: block; color: var(--cwo-err); font-size: 14px; font-weight: 600; margin-top: 4px; }
.cbc-error { color: var(--cwo-err); font-weight: 600; }
.cbc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cbc-count { display: block; text-align: right; font-size: 13px; color: var(--cwo-muted); margin-top: 2px; }
.cbc-thanks:focus { outline: none; }

/* Reviews on the book page */
.cbc-reviews { padding: clamp(64px, 8vw, 104px) 0; background: var(--cwo-ground); }
.cbc-reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 36px; margin-bottom: 28px; }
.cbc-reviews__head .cwo-h2 { margin: 0; }
.cbc-reviews__head .cwo-btn { margin-left: auto; }
.cbc-score { display: flex; align-items: center; gap: 12px; }
.cbc-score strong { font-family: var(--cwo-display); font-size: 52px; line-height: 1; color: var(--cwo-ink); }
.cbc-score div { display: flex; flex-direction: column; gap: 4px; }
.cbc-score .cbc-stars { font-size: 22px; }
.cbc-score span:not(.cbc-stars) { color: var(--cwo-muted); font-size: 15px; }
.cbc-empty { font-size: 18px; }
.cbc-review-grid { columns: 3 300px; column-gap: 20px; }
.cbc-review { break-inside: avoid; background: #fff; border-radius: 6px; padding: 22px 24px; margin: 0 0 20px; box-shadow: 0 10px 30px -24px rgba(27, 31, 41, .5); border-top: 4px solid var(--cwo-gold); }
.cbc-review blockquote { margin: 12px 0 14px; padding: 0; border: 0; font-size: 17px; color: var(--cwo-ink); font-style: normal; }
.cbc-review blockquote p { margin: 0 0 .7em; }
.cbc-review footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.cbc-review footer span { color: var(--cwo-muted); }
.cbc-verified { font-style: normal; font-family: var(--cwo-sub); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cwo-green); background: var(--cwo-green-tint); padding: 2px 8px; border-radius: 99px; }

/* Review page (/ikg-review) */
.cbc-review-hero { padding: clamp(40px, 6vw, 72px) 0; }
.cbc-review-hero__inner { display: flex; gap: 28px; align-items: center; }
.cbc-review-hero img { width: 120px; flex-shrink: 0; border-radius: 3px; transform: rotate(-4deg); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.cbc-review-hero .cwo-h2 { margin-bottom: 8px; }
.cbc-review-hero p:last-child { margin: 0; color: var(--cwo-on-dark-muted); }
.cbc-review-form-wrap { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); background: var(--cwo-green-tint); }
.cbc-review-form, .cbc-review-form-wrap .cbc-thanks { max-width: 720px; margin: 0 auto; }
.cbc-rate { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.cbc-rate input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cbc-review-page .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cbc-rate label { font-size: 44px; line-height: 1; color: #d0d0d0; cursor: pointer; margin: 0; transition: color .1s, transform .1s; }
.cbc-rate label:hover, .cbc-rate label:hover ~ label, .cbc-rate input:checked ~ label { color: var(--cwo-gold-2); }
.cbc-rate input:focus-visible + label { outline: 3px solid var(--cwo-gold); outline-offset: 2px; border-radius: 4px; }
.cbc-rate label:active { transform: scale(.9); }

/* #IKEPTGOING story wall */
.cbc-wall { padding: clamp(64px, 8vw, 110px) 0; background: #000; color: #fff; scroll-margin-top: 70px; }
.cbc-wall__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.cbc-wall__kicker { margin: 0 0 6px; font-family: var(--cwo-sub); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #ffb045; }
.cwo .cbc-wall__title { margin: 0; font-family: var(--cwo-sub); font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; color: #fff; }
.cbc-wall__title span { color: #f29a1f; }
.cbc-wall__prompt { margin: 12px 0 0; font-family: var(--cwo-sub); font-weight: 700; font-size: clamp(16px, 1.8vw, 21px); color: #f29a1f; }
.cbc-wall__prompt b { color: #f29a1f; }
.cbc-wall__empty { border: 4px solid #f29a1f; border-radius: 20px; padding: 48px 24px; text-align: center; font-size: 20px; color: #ffb045; }
.cbc-notes { columns: 4 230px; column-gap: 14px; border: 5px solid #f29a1f; border-radius: 22px; padding: 16px; }
.cbc-note { break-inside: avoid; background: #fff; color: #1b1f29; border-radius: 8px; padding: 16px 16px 12px; margin: 0 0 14px; font-size: 16px; line-height: 1.4; }
.cbc-note p { margin: 0 0 8px; }
.cbc-note span { display: block; font-family: var(--cwo-sub); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #b06200; margin-bottom: 2px; }
.cbc-note footer { font-size: 14px; font-weight: 600; color: var(--cwo-muted); }
.cbc-share { margin-top: 40px; scroll-margin-top: 80px; }
.cbc-share__form, .cbc-share .cbc-thanks { max-width: 760px; margin: 0 auto; background: #111; border: 2px solid #f29a1f; border-radius: 18px; padding: clamp(22px, 4vw, 40px); }
.cbc-share h3 { margin: 0 0 18px; font-family: var(--cwo-sub); font-weight: 800; font-size: 24px; color: #fff; }
.cbc-share .cbc-field label { color: #ffb045; }
.cbc-share .cbc-field small, .cbc-share .cbc-count, .cbc-note-small { color: #b8b8b8; }
.cbc-share .cbc-err, .cbc-share .cbc-error { color: #ff8a80; }
.cbc-check { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; cursor: pointer; }
.cbc-check input { width: 20px; height: 20px; accent-color: #f29a1f; }
.cbc-note-small { font-size: 14px; }
.cbc-share .cbc-thanks p { color: #e6e6e6; }
.cbc-share canvas { display: block; width: min(100%, 360px); height: auto; margin: 18px auto; border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(242, 154, 31, .5); }
.cbc-share .cbc-thanks { text-align: center; }
.cbc-review-page .cbc-thanks { text-align: center; }
.cbc-review-page .cbc-thanks canvas { display: block; width: min(100%, 360px); height: auto; margin: 18px auto; border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); }
.cbc-review-page .cbc-note-small { color: var(--cwo-muted); }

/* Share any review or story as an image */
.cwo .cbc-share-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 99px; background: transparent !important; box-shadow: none; text-transform: none; font: 600 13px/1.2 var(--cwo-sub); letter-spacing: .02em; cursor: pointer; }
.cbc-share-btn::before { content: "\2913"; font-size: 14px; }
.cwo .cbc-review .cbc-share-btn { color: var(--cwo-green) !important; border-color: var(--cwo-green) !important; }
.cwo .cbc-note .cbc-share-btn { color: #b06200 !important; border-color: #b06200 !important; }
.cwo .cbc-share-btn:hover, .cwo .cbc-share-btn:focus { background: rgba(242, 154, 31, .14) !important; }
.cbc-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(0, 0, 0, .78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cbc-modal[hidden] { display: none; }
.cbc-modal__box { position: relative; background: #111; border: 2px solid #f29a1f; border-radius: 18px; padding: 22px; max-width: 440px; width: 100%; max-height: 100%; overflow: auto; text-align: center; outline: none; }
.cbc-modal canvas { display: block; width: 100%; max-width: 360px; height: auto; margin: 6px auto 16px; border-radius: 10px; }
.cwo .cbc-modal__close { position: absolute; top: 6px; right: 10px; width: 40px; height: 40px; padding: 0; background: none !important; border: 0; box-shadow: none; color: #fff !important; font-size: 32px; line-height: 1; cursor: pointer; }
.cbc-modal__note { color: #b8b8b8; font-size: 14px; margin: 4px 0 0; }
.cbc-modal .cwo-btn { margin: 0; }
html.cbc-modal-open { overflow: hidden; }

@media (max-width: 640px) {
	.cbc-row { grid-template-columns: 1fr; }
	.cbc-reviews__head .cwo-btn { margin-left: 0; width: 100%; }
	.cbc-review-hero__inner { flex-direction: column; align-items: flex-start; }
	.cbc-review-hero img { width: 90px; }
	.cbc-notes { padding: 10px; border-width: 4px; }
	.cbc-wall__head .cwo-btn { width: 100%; }
}
