/* The review page /review/ (theme 0.36.0, Rayan 10 Oct 2026: direction C). Phone first: one column, five progress
   squares, the rating as five big voxels (real radio buttons: they light without the script too, through :has), the
   steps, the photos. Without the script every step shows, one under the other. */

.rp [hidden] { display: none !important; }
.rp { background: var(--ecc-canvas); color: var(--ecc-ink); }
.rp__main { max-width: 520px; margin: 0 auto; padding: var(--ecc-s-5) 16px var(--ecc-s-7); display: grid; gap: 20px; }

/* the progress: five squares, the steps done light up */
.rp__led { display: flex; gap: 6px; }
.rp__led i { width: 18px; height: 18px; border-radius: var(--ecc-r-voxel); background: var(--ecc-line-strong); transition: background var(--ecc-d-fast); }
.rp__led i.on { background: var(--ecc-lime); }
.rp:not(.is-js) .rp__led { display: none; }

.rp__form { display: grid; gap: 28px; }
.rp__step { display: grid; gap: 16px; align-content: start; }
.rp:not(.is-js) .rp__step + .rp__step { padding-top: 28px; border-top: 1px solid var(--ecc-line); }

.rp__q { margin: 0; font-size: var(--ecc-t-h3); line-height: var(--ecc-lh-heading); }
.rp__q:focus { outline: none; } /* the question takes the focus when a step opens (for a screen reader); a heading is not a control */
.rp__small, .rp__hint { margin: 0; color: var(--ecc-ink-2); font-size: var(--ecc-t-small); }
.rp__hint--mid { text-align: center; }
.rp__lead { margin: 0; max-width: 34ch; color: var(--ecc-ink-2); }
.rp__note { margin: 0; padding: 12px 14px; border: 1px solid var(--ecc-warning-line); border-radius: var(--ecc-r-sm); background: var(--ecc-warning-bg); color: var(--ecc-warning-fg); }
.rp__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* the product */
.rp__prod { display: flex; gap: 12px; align-items: center; }
.rp__prod img { flex: none; width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--ecc-line); border-radius: var(--ecc-r-sm); background: #fff; }
.rp__prod b { display: block; }

/* fields */
.rp__field { display: grid; gap: 6px; }
.rp__field label { font-weight: var(--ecc-fw-medium); }
.rp__field input:not([type="radio"]):not([type="file"]), .rp__field textarea, .rp__field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ecc-control-line); border-radius: var(--ecc-r-sm); background: var(--ecc-field-bg); color: var(--ecc-ink); font: inherit; box-sizing: border-box; }
.rp__field textarea { min-height: 120px; resize: vertical; }
.rp__field input:focus-visible, .rp__field textarea:focus-visible, .rp__field select:focus-visible { outline: var(--ecc-focus-ring); outline-offset: -1px; border-color: var(--ecc-focus); box-shadow: var(--ecc-focus-halo); }
.rp__field [aria-invalid="true"] { border-color: var(--ecc-danger-fg); }

/* the rating: five voxels; the one picked and those before it light (the script adds .is-lit; :has does it without) */
.rp__voxrate { display: flex; justify-content: center; gap: 12px; }
.rp__vox { position: relative; display: block; width: 52px; height: 52px; border-radius: var(--ecc-r-voxel); background: var(--ecc-line-strong); cursor: pointer; transition: transform var(--ecc-d-fast) var(--ecc-ease-pixel), background var(--ecc-d-fast), box-shadow var(--ecc-d-fast); }
.rp__vox:hover { background: color-mix(in srgb, var(--ecc-lime) 40%, var(--ecc-line-strong)); }
.rp__vox.is-lit,
.rp__voxrate:has(input[value="1"]:checked) .rp__vox:nth-child(-n+1),
.rp__voxrate:has(input[value="2"]:checked) .rp__vox:nth-child(-n+2),
.rp__voxrate:has(input[value="3"]:checked) .rp__vox:nth-child(-n+3),
.rp__voxrate:has(input[value="4"]:checked) .rp__vox:nth-child(-n+4),
.rp__voxrate:has(input[value="5"]:checked) .rp__vox:nth-child(-n+5) { background: var(--ecc-lime); box-shadow: 0 0 18px color-mix(in srgb, var(--ecc-lime) 55%, transparent); transform: translateY(-3px); }
.rp__vox:has(input:focus-visible) { outline: var(--ecc-focus-ring); outline-offset: var(--ecc-focus-offset); }
.rp__voxrate[aria-invalid="true"] .rp__vox { box-shadow: inset 0 0 0 2px var(--ecc-danger-fg); }
.rp__voxwords { display: flex; justify-content: space-between; max-width: 308px; width: 100%; margin: -6px auto 0; color: var(--ecc-ink-2); font-family: var(--ecc-f-mono); font-size: var(--ecc-t-micro); letter-spacing: var(--ecc-ls-label); text-transform: uppercase; }

/* yes / no: real radio buttons dressed as the identity's chips */
.rp__yesno { display: flex; gap: 8px; }
.rp__chip { min-height: var(--ecc-hit); cursor: pointer; }
.rp__chip:has(input:checked) { background: var(--ecc-selected-bg); color: var(--ecc-selected-fg); border-color: var(--ecc-selected-line); }
.rp__chip:has(input:checked)::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: var(--ecc-r-voxel); background: var(--ecc-lime); }
.rp__chip:has(input:focus-visible) { outline: var(--ecc-focus-ring); outline-offset: var(--ecc-focus-offset); }

/* photos */
.rp__drop { display: grid; place-items: center; gap: 6px; min-height: 104px; padding: 14px; border: 1px dashed var(--ecc-line-strong); border-radius: var(--ecc-r-sm); color: var(--ecc-ink-2); text-align: center; cursor: pointer; font-weight: 400 !important; }
.rp__drop b { color: var(--ecc-ink); }
.rp__drop:hover { border-color: var(--ecc-ink); }
.rp__field:has(input[type="file"]:focus-visible) .rp__drop { outline: var(--ecc-focus-ring); outline-offset: var(--ecc-focus-offset); }
.rp__thumbs { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.rp__thumb { position: relative; width: 72px; height: 72px; }
.rp__thumb img { display: block; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--ecc-line); border-radius: var(--ecc-r-sm); background: var(--ecc-surface-2); }
.rp__thumb.is-file img { display: none; }
.rp__thumb.is-file::before { content: attr(data-name); display: grid; place-items: center; width: 72px; height: 72px; padding: 6px; box-sizing: border-box; overflow: hidden; border: 1px solid var(--ecc-line); border-radius: var(--ecc-r-sm); background: var(--ecc-surface-2); color: var(--ecc-ink-2); font-family: var(--ecc-f-mono); font-size: 10px; line-height: 1.2; word-break: break-all; text-align: center; }
.rp__x { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: var(--ecc-r-sm); background: var(--ecc-ink); color: var(--ecc-canvas); cursor: pointer; }
.rp__x::after { content: ""; position: absolute; inset: -9px; } /* a 44px target around the small square */
.rp__x svg { width: 14px; height: 14px; }

/* the product search (counter card visitors) */
.rp__hits { display: grid; gap: 2px; max-height: 320px; margin: 0; padding: 4px; overflow: auto; border: 1px solid var(--ecc-line-strong); border-radius: var(--ecc-r-sm); background: var(--ecc-surface); list-style: none; }
.rp__hit { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--ecc-hit); padding: 6px 8px; border: 0; border-radius: var(--ecc-r-sm); background: none; color: var(--ecc-ink); font: inherit; text-align: left; cursor: pointer; }
.rp__hit:hover { background: var(--ecc-wash); }
.rp__hit:focus-visible { background: var(--ecc-wash); outline: var(--ecc-focus-ring); outline-offset: -2px; }
.rp__hit img { flex: none; width: 40px; height: 40px; object-fit: contain; border-radius: var(--ecc-r-voxel); background: #fff; }
.rp__none { padding: 8px; }
.rp__chosen { padding: 8px; border: 1px solid var(--ecc-line-strong); border-radius: var(--ecc-r-sm); }
.rp__change { margin-left: auto; min-height: var(--ecc-hit); padding: 0 8px; border: 0; background: none; color: var(--ecc-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.rp__nav { display: flex; justify-content: space-between; gap: 12px; }
.rp__err { margin: 0; }

/* done: the five squares light, a thank-you */
.rp__done { display: grid; justify-items: center; gap: 12px; padding: 30px 10px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.rp__vox, .rp__led i { transition: none; }
	.rp__vox.is-lit, .rp__voxrate:has(input:checked) .rp__vox { transform: none !important; }
}
