/* CM Reviews - the visitor form ([cm-reviews-submit] and the cm-reviews/submit block). Phone first: one column, full-width
   inputs; nothing of a theme is assumed (colours inherit). The [?] icons are styled by cm-alpha ui-tooltips. */
.cm-reviews-submit { display: flex; flex-direction: column; gap: 1.5rem; margin: 0; } /* 1.5.6: more air between the sections (the owner, plan 05.1-09) */
.cm-reviews-submit__field { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.cm-reviews-submit__field > label { font-weight: 600; }
.cm-reviews-submit__req { color: #d32f2f; font-weight: 700; margin-right: 0.15em; } /* the red asterisk left of a required label (the owner, 2026-11-06) */
.cm-reviews-submit__problems { margin: 0; padding-left: 1.2em; } /* the problems toast's list */
/* 1.5.5: the rows (the owner, plan 05.1-09): the stars and the name on one line (a floated legend sits inline in a flex fieldset), the type's
   choices inline with its label, the clip and photo labels inline with their file inputs; everything wraps on a narrow screen */
.cm-reviews-submit__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.cm-reviews-submit__stars { display: flex; align-items: center; gap: 0.5em; border: 0; padding: 0; margin: 0; min-width: 0; }
.cm-reviews-submit__stars legend { float: left; font-weight: 600; padding: 0; margin: 0; }
.cm-reviews-submit__name { flex: 1 1 16em; flex-direction: row; align-items: center; gap: 0.5em; }
.cm-reviews-submit__name input[type="text"] { flex: 1 1 8em; width: auto; min-width: 8em; }
.cm-reviews-submit__clip, .cm-reviews-submit__photo { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.cm-reviews-submit__photo .cm-reviews-submit__preview { flex-basis: 100%; }
.cm-reviews-submit input[type="text"],
.cm-reviews-submit textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: transparent; padding: 0.6em 0.7em; border: 1px solid currentColor; border-radius: 4px; }
.cm-reviews-submit textarea { min-height: 8em; resize: vertical; }
.cm-reviews-submit__counter { font-size: 0.85em; opacity: 0.75; }
.cm-reviews-submit__preview { display: block; max-width: 100%; width: auto; max-height: 12rem; height: auto; border-radius: 4px; }
.cm-reviews-submit__preview[hidden] { display: none; }
.cm-reviews-submit__consent label { display: flex; gap: 0.5em; align-items: flex-start; font-weight: 400; }
.cm-reviews-submit__consent input { margin: 0.3em 0 0; }
.cm-reviews-submit__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.cm-reviews-submit__actions { flex-direction: row; align-items: center; justify-content: center; }
.cm-reviews-submit__button { font: inherit; font-weight: 600; color: inherit; background: transparent; padding: 0.7em 1.4em; border: 2px solid currentColor; border-radius: 4px; cursor: pointer; }
.cm-reviews-submit__button:disabled { opacity: 0.6; cursor: wait; }
.cm-reviews-submit__help { cursor: help; }
.cm-reviews-submit__thanks { font-weight: 600; margin: 0; }
.cm-reviews-submit-notice { margin: 0; padding: 0.75em 1em; border: 1px dashed currentColor; border-radius: 4px; }
/* 1.2.0: the Video / Audio / Text choice and the recorder panel (phone first: stacked; the buttons sit inline from 600px); 1.5.3: the three choices on ONE row; 1.5.5: inline with their label "Testimonial type:" (the owner, plan 05.1-09), wrapping only when they must */
.cm-reviews-submit__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1em; border: 0; padding: 0; margin: 0; min-width: 0; }
.cm-reviews-submit__kind legend { float: left; font-weight: 600; padding: 0; margin: 0; }
.cm-reviews-submit__kind label { display: inline-flex; align-items: center; gap: 0.4em; margin: 0; font-weight: 400; }
.cm-reviews-submit__recorder { padding: 0.75rem; border: 1px dashed currentColor; border-radius: 4px; }
.cm-reviews-submit__recorder[hidden], .cm-reviews-submit__field[hidden] { display: none; }
.cm-reviews-submit__live, .cm-reviews-submit__playback { display: block; width: 100%; max-width: 100%; max-height: 50vh; background: #000; border-radius: 4px; }
/* 1.5.15 (the owner's fourth round): the stand-in, the live picture and the video play-back share ONE fixed 16:9 box (the picture letter- or
   pillar-boxed inside it), so the dialog keeps its size from the moment Video is chosen through the camera coming on and the take playing back */
.cm-reviews-submit__stand-in, .cm-reviews-submit__live, .cm-reviews-submit__playback--video { aspect-ratio: 16 / 9; object-fit: contain; }
.cm-reviews-submit__stand-in { display: flex; align-items: center; justify-content: center; width: 100%; max-height: 50vh; margin: 0; padding: 0 1em; border: 0; border-radius: 4px; background: #bdbdbd; color: #fff; font: inherit; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.8rem); line-height: 1.2; text-align: center; cursor: pointer; } /* the mock's grey and white */
.cm-reviews-submit__stand-in[hidden] { display: none; }
.cm-reviews-submit__playback--audio { background: transparent; max-height: none; }
.cm-reviews-submit__live[hidden], .cm-reviews-submit__playback[hidden] { display: none; }
.cm-reviews-submit__clock { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.cm-reviews-submit__buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.25rem; margin: 0; }
/* 1.5.12 (the owner): a small studio. The device button is a camera (Video) or microphone (Audio) icon, greyed with "Off" under it until it
   is on; Record is a round red button and Stop a square red one, each with its word under it; disabled ones are faded. The countdown
   3, 2, 1 sits over the live picture (Video) or in its place (Audio). The icons are inline SVG in the form's markup. */
.cm-reviews-submit__control { display: inline-flex; align-items: flex-start; }
.cm-reviews-submit__device, .cm-reviews-submit__record, .cm-reviews-submit__stop { display: inline-flex; flex-direction: column; align-items: center; gap: 0.25em; font: inherit; color: inherit; background: transparent; border: 0; padding: 0.25em 0.4em; cursor: pointer; }
.cm-reviews-submit__device:disabled, .cm-reviews-submit__record:disabled, .cm-reviews-submit__stop:disabled { opacity: 0.35; cursor: not-allowed; }
.cm-reviews-submit__control-word { font-size: 0.8em; line-height: 1; }
.cm-reviews-submit__icon { width: 2.5em; height: 2.5em; fill: currentColor; } /* the viewBox is cut to the drawing, so the camera fills the width and the microphone the height of the same box as the red shapes (the owner) */
.cm-reviews-submit__device[aria-pressed="false"] .cm-reviews-submit__icon { opacity: 0.35; }
.cm-reviews-submit__device[aria-pressed="true"] .cm-reviews-submit__icon { color: #2e9e4f; } /* green while the device is on (the owner) */
.cm-reviews-submit__device--retake .cm-reviews-submit__control-word { background: #2e9e4f; color: #fff; padding: 0.25em 0.5em; border-radius: 3px; } /* Retake stands out (the owner); On / Off plain */
/* the take's big play button: the browser's own is small (the owner); it sits centred on the take and goes while it plays */
.cm-reviews-submit__take { position: relative; }
.cm-reviews-submit__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 4.5em; height: 4.5em; padding: 0; border: 3px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, 0.55); cursor: pointer; }
.cm-reviews-submit__play::before { content: ''; display: block; margin: 0 auto; width: 0; height: 0; border-left: 1.6em solid #fff; border-top: 1em solid transparent; border-bottom: 1em solid transparent; transform: translateX(0.2em); }
.cm-reviews-submit__play[hidden] { display: none; }
.cm-reviews-submit__recorder[data-kind="audio"] .cm-reviews-submit__icon--video, .cm-reviews-submit__recorder:not([data-kind="audio"]) .cm-reviews-submit__icon--audio { display: none; }
.cm-reviews-submit__shape { display: block; width: 2.5em; height: 2.5em; box-sizing: border-box; background: #d32f2f; border: 3px solid #fff; box-shadow: 0 0 0 1px currentColor; }
.cm-reviews-submit__record .cm-reviews-submit__shape { border-radius: 50%; }
.cm-reviews-submit__stop .cm-reviews-submit__shape { border-radius: 4px; }
.cm-reviews-submit__stage { position: relative; }
.cm-reviews-submit__count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: min(15em, 40vw); font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 0.15em #000; background: rgba(0, 0, 0, 0.5); border-radius: 4px; } /* three times the first size (the owner); capped by the screen's width so it fits a phone's picture; 1.5.15 (the owner): the number dims the live picture under it so it pops while the picture still shows */
.cm-reviews-submit__live[hidden] + .cm-reviews-submit__count { position: static; color: inherit; text-shadow: none; background: transparent; } /* Audio: no picture, the number stands alone */
.cm-reviews-submit__count[hidden] { display: none; }
.cm-reviews-submit__clip { margin: 0.75rem 0 0; } /* 1.5.12: air between the studio buttons and the upload line (the owner) */
/* 1.5.8 (the owner): "Retakes Allowed [?]" at the right of the button row, maroon; the upload label's [?] for the other kind hidden */
.cm-reviews-submit__retakes { margin-left: auto; align-self: center; color: maroon; } /* standard weight (the owner); 1.5.12: centred on the taller buttons */
.cm-reviews-submit__help[hidden] { display: none; }
.cm-reviews-submit input[type="file"] { max-width: 100%; }
/* 1.4.0: the five-star choice (required): the radios stay in the tab order (clipped, not removed); a label is a star, filled up to the chosen one (and under the pointer) */
.cm-reviews-submit__star-row { display: flex; gap: 0.15em; }
.cm-reviews-submit__star { position: relative; cursor: pointer; font-size: 1.8em; line-height: 1; opacity: 0.35; } /* grey (the page's colour, faded) until chosen; chosen or under the pointer: gold, the reviews block's filled-star gold (--cm-rv-star) (the owner, 2026-11-06) */
.cm-reviews-submit__star input, .cm-reviews-submit__star-words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-reviews-submit__star:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
.cm-reviews-submit__star-row:has(input[value="1"]:checked) .cm-reviews-submit__star:nth-child(-n+1), .cm-reviews-submit__star-row:has(input[value="2"]:checked) .cm-reviews-submit__star:nth-child(-n+2), .cm-reviews-submit__star-row:has(input[value="3"]:checked) .cm-reviews-submit__star:nth-child(-n+3), .cm-reviews-submit__star-row:has(input[value="4"]:checked) .cm-reviews-submit__star:nth-child(-n+4), .cm-reviews-submit__star-row:has(input[value="5"]:checked) .cm-reviews-submit__star:nth-child(-n+5) { opacity: 1; color: #caab71; }
.cm-reviews-submit__star:hover, .cm-reviews-submit__star:has(~ .cm-reviews-submit__star:hover) { opacity: 1; color: #caab71; }
/* 1.5.15 (plan 05.1-11, the owner): the look-at-your-camera band. The script moves it under body: fixed across the top of the screen,
   above every dialog (the dialog library numbers from 9999 up; the toasts sit at 99999), white with red words and arrow whatever the theme
   (the owner's second mock, 2026-11-07: black was not noticeable enough; the red is the mock's). It blinks twice as it appears (the Record press:
   the animation restarts every time the band goes from display none to flex), a second per blink (the owner: half a second was barely noticed),
   so the two end before the countdown reaches 1; one flash per second, under the 3-per-second threshold. No top padding: the arrow's tip touches the top edge, and the arrow, taller than the words, gives them their air.
   It TAKES clicks on purpose: a click falling through to the dialog's backdrop would close the dialog and end the recording. The shadow marks
   the band's edge on a white page (the inline form). The arrow's drawing is 14:20, so at the phone widths the two phrases still fit beside it.
   The two phrases take equal shares of the row (flex: 1 1 0) so the arrow sits at the page's centre whatever their lengths. */
.cm-reviews-submit__reminder { position: fixed; inset: 0 0 auto; z-index: 50000; display: flex; align-items: center; justify-content: center; gap: clamp(0.5rem, 3vw, 2rem); padding: 0 1rem; background: #fff; color: #c03b3b; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); animation: cm-reviews-reminder-blink 1s steps(1, end) 2; }
@keyframes cm-reviews-reminder-blink { 50% { opacity: 0; } }
.cm-reviews-submit__reminder[hidden] { display: none; }
.cm-reviews-submit__reminder-words { flex: 1 1 0; font-weight: 700; text-transform: uppercase; text-align: center; line-height: 1.1; font-size: clamp(1.1rem, 3.2vw, 2rem); max-width: 40%; }
.cm-reviews-submit__reminder-words--left { text-align: right; }
.cm-reviews-submit__reminder-words--right { text-align: left; }
.cm-reviews-submit__reminder-arrow { height: clamp(4rem, 12vw, 7rem); width: auto; fill: currentColor; flex: 0 0 auto; }
