/*
 * User reviews section of a card page and its form dialog ("Đánh giá từ người dùng" of the card review design). Loaded
 * only by pages that carry the section. Values follow the design's own styles; widths of bars and star fills come
 * from the .v2-rv-wN classes at the end (no inline style under the static CSP).
 */
.v2-rv { max-width: 1280px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 48px) 0; box-sizing: border-box; color: #2B1838; }
.v2-rv-in { max-width: 880px; display: flex; flex-direction: column; gap: 16px; }
.v2-rv-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.v2-rv-head h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.25; color: #2B1838; }
.v2-rv-head span { font-size: 13px; color: #6B5A73; }
.v2-rv-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 28px; align-items: center; padding: clamp(16px, 2.2vw, 22px); border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px #EBDCCD; }
.v2-rv-sum { display: flex; flex-direction: column; gap: 6px; }
.v2-rv-avg { display: flex; align-items: baseline; gap: 6px; }
.v2-rv-avg b { font-size: 44px; font-weight: 700; line-height: 1; color: #2B1838; }
.v2-rv-avg span { font-size: 14px; color: #6B5A73; }
.v2-rv-count, .v2-rv-empty { font-size: 13.5px; color: #6B5A73; }
.v2-rv-empty { margin: 0; line-height: 1.55; }
.v2-rv-stars { position: relative; display: inline-block; width: max-content; font-size: 18px; letter-spacing: 1px; line-height: 1; color: #E6D6C6; white-space: nowrap; }
.v2-rv-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #F5821F; }
.v2-rv-stars-s { font-size: 13px; }
.v2-rv-btn { font: inherit; align-self: flex-start; margin-top: 6px; padding: 9px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px #E6D6C6; color: #2B1838; border: 0; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.4; }
.v2-rv-btn:hover { box-shadow: inset 0 0 0 1px #F5821F; color: #B4520E; }
.v2-rv button:focus-visible, .v2-rv-dlg :is(button, input, select, textarea):focus-visible { outline: 3px solid #2B1838; outline-offset: 2px; }
.v2-rv-dist { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; }
.v2-rv-dist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; color: #6B5A73; }
.v2-rv-dist li > span:last-child { text-align: right; }
.v2-rv-track { display: block; height: 8px; border-radius: 8px; background: #F1E4D7; overflow: hidden; }
.v2-rv-track > span { display: block; height: 100%; background: #F5821F; border-radius: 8px; }
.v2-rv-crit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(max(180px, calc((100% - 10px) / 2)), 1fr)); gap: 10px; padding-top: 16px; border-top: 1px solid #F1E4D7; }
.v2-rv-crit > div { display: flex; flex-direction: column; gap: 6px; }
.v2-rv-crit > div > span:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: #4A3A55; }
.v2-rv-crit b { font-weight: 700; color: #2B1838; }
.v2-rv-crit .v2-rv-track { height: 6px; }
.v2-rv-sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-rv-sorts[hidden], .v2-rv [hidden], .v2-rv-dlg [hidden] { display: none; }
.v2-rv-chip { padding: 7px 14px; border: 0; border-radius: 999px; background: #fff; color: #4A3A55; box-shadow: inset 0 0 0 1px #E6D6C6; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.v2-rv-chip[aria-pressed="true"] { background: #2B1838; color: #fff; box-shadow: none; }
.v2-rv-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.v2-rv-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid #F1E4D7; }
.v2-rv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.v2-rv-meta b { font-size: 15px; font-weight: 600; color: #2B1838; overflow-wrap: anywhere; }
.v2-rv-meta > span:last-child { font-size: 12.5px; color: #6B5A73; }
.v2-rv-scores { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v2-rv-scores li { padding: 3px 9px; border-radius: 999px; background: #FFF8F1; font-size: 12.5px; color: #4A3A55; white-space: nowrap; }
.v2-rv-scores b { color: #B4520E; }
.v2-rv-text { margin: 0; font-size: 15px; line-height: 1.65; color: #4A3A55; white-space: pre-line; overflow-wrap: anywhere; }
.v2-rv-all { align-self: center; padding: 10px 20px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E6D6C6; color: #2B1838; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.v2-rv-all:hover { box-shadow: inset 0 0 0 1px #F5821F; color: #B4520E; }
.v2-rv-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: #6B5A73; }

/* Form dialog: the design's overlay (rgba(43,24,56,.45)) and panel. */
.v2-rv-dlg { width: calc(100% - 32px); max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; padding: 24px; border: 0; border-radius: 20px; background: #fff; color: #2B1838; box-shadow: 0 14px 32px -14px rgba(43, 24, 56, .45); font-family: 'Lexend', system-ui, sans-serif; }
.v2-rv-dlg::backdrop { background: rgba(43, 24, 56, .45); }
.v2-rv-dlg-in { display: flex; flex-direction: column; gap: 16px; }
.v2-rv-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v2-rv-dlg-head > div { display: flex; flex-direction: column; gap: 4px; }
.v2-rv-dlg-head h2 { margin: 0; font-size: 20px; font-weight: 600; color: #2B1838; }
.v2-rv-dlg-head span { font-size: 13.5px; color: #6B5A73; }
.v2-rv-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #FFF8F1; color: #2B1838; font-size: 18px; cursor: pointer; }
.v2-rv-x:hover { background: #FFE7D3; }
.v2-rv-form { display: flex; flex-direction: column; gap: 14px; }
.v2-rv-set { margin: 0; padding: 14px; border: 0; border-radius: 12px; background: #FFF8F1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2-rv-set legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #2B1838; }
.v2-rv-req { color: #B4520E; }
/* The four criterion rows share one layout decided by the form's width, not by each label's length: label and stars on
   one line when the longest label and the five stars fit, otherwise every row puts its stars under its label. */
.v2-rv-form { container-type: inline-size; }
.v2-rv-row { clear: both; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; gap: 4px 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
@container (max-width: 419px) { .v2-rv-row { grid-template-columns: minmax(0, 1fr); } }
.v2-rv-row > span:first-child { font-size: 14px; color: #4A3A55; }
.v2-rv-pick { display: flex; }
.v2-rv-pick input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.v2-rv-pick label { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; font-size: 20px; line-height: 1; color: #E6D6C6; cursor: pointer; }
/* The checked star and every star before it light up (radio inputs in DOM order 1–5). */
.v2-rv-pick:has(input[value="1"]:checked) label:nth-of-type(-n+1),
.v2-rv-pick:has(input[value="2"]:checked) label:nth-of-type(-n+2),
.v2-rv-pick:has(input[value="3"]:checked) label:nth-of-type(-n+3),
.v2-rv-pick:has(input[value="4"]:checked) label:nth-of-type(-n+4),
.v2-rv-pick:has(input[value="5"]:checked) label:nth-of-type(-n+5) { color: #F5821F; }
.v2-rv-pick label:hover { color: #B4520E; }
.v2-rv-pick input:focus-visible + label { outline: 3px solid #2B1838; outline-offset: -2px; border-radius: 8px; }
.v2-rv-total { clear: both; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid #F1E4D7; }
.v2-rv-total > span { display: flex; flex-direction: column; gap: 2px; }
.v2-rv-total > span b { font-size: 14px; color: #2B1838; }
.v2-rv-total > span span { font-size: 12.5px; color: #6B5A73; }
.v2-rv-total > b { font-size: 24px; font-weight: 700; color: #6B5A73; }
.v2-rv-total > b.is-set { color: #B4520E; }
.v2-rv-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #2B1838; }
.v2-rv-field > span > span { font-weight: 400; color: #6B5A73; }
.v2-rv-field :is(select, textarea, input[type="text"]) { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6D6C6; font: inherit; font-size: 15px; font-weight: 400; color: #2B1838; }
.v2-rv-field textarea { resize: vertical; }
.v2-rv-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #9C3A2A; }
.v2-rv-err { font-size: 13px; font-weight: 400; color: #9C3A2A; }
.v2-rv-warn { margin: 0; font-size: 12.5px; line-height: 1.55; color: #6B5A73; }
.v2-rv-consent a { color: #B4520E; text-decoration: underline; text-underline-offset: 2px; }
.v2-rv-consent a:focus-visible { outline: 2px solid #B4520E; outline-offset: 2px; border-radius: 2px; }
.v2-rv-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: #2B1838; cursor: pointer; }
.v2-rv-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #B4520E; }
.v2-rv-consent input[aria-invalid="true"] { outline: 2px solid #9C3A2A; outline-offset: 2px; }
.v2-rv-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.v2-rv-fail { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FBEDEA; color: #9C3A2A; font-size: 14px; line-height: 1.5; }
.v2-rv-acts { display: flex; justify-content: flex-end; gap: 8px; }
.v2-rv-cancel { padding: 11px 18px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #E6D6C6; color: #2B1838; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.v2-rv-send { padding: 11px 20px; border: 0; border-radius: 12px; background: #F5821F; color: #2B1838; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.v2-rv-send:hover { background: #E87414; }
.v2-rv-send:disabled { opacity: .6; cursor: progress; }
.v2-rv-sent { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: #E8F3EE; color: #1E7356; }
.v2-rv-sent b { font-size: 16px; }
.v2-rv-sent span { font-size: 14px; line-height: 1.6; }
.v2-rv-sent button { align-self: flex-start; padding: 9px 16px; border: 0; border-radius: 12px; background: #1E7356; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Bar and star-fill widths, 0–100 %. */
.v2-rv-w0{width:0%}.v2-rv-w1{width:1%}.v2-rv-w2{width:2%}.v2-rv-w3{width:3%}.v2-rv-w4{width:4%}.v2-rv-w5{width:5%}.v2-rv-w6{width:6%}.v2-rv-w7{width:7%}.v2-rv-w8{width:8%}.v2-rv-w9{width:9%}.v2-rv-w10{width:10%}.v2-rv-w11{width:11%}.v2-rv-w12{width:12%}.v2-rv-w13{width:13%}.v2-rv-w14{width:14%}.v2-rv-w15{width:15%}.v2-rv-w16{width:16%}.v2-rv-w17{width:17%}.v2-rv-w18{width:18%}.v2-rv-w19{width:19%}.v2-rv-w20{width:20%}.v2-rv-w21{width:21%}.v2-rv-w22{width:22%}.v2-rv-w23{width:23%}.v2-rv-w24{width:24%}.v2-rv-w25{width:25%}.v2-rv-w26{width:26%}.v2-rv-w27{width:27%}.v2-rv-w28{width:28%}.v2-rv-w29{width:29%}.v2-rv-w30{width:30%}.v2-rv-w31{width:31%}.v2-rv-w32{width:32%}.v2-rv-w33{width:33%}.v2-rv-w34{width:34%}.v2-rv-w35{width:35%}.v2-rv-w36{width:36%}.v2-rv-w37{width:37%}.v2-rv-w38{width:38%}.v2-rv-w39{width:39%}.v2-rv-w40{width:40%}.v2-rv-w41{width:41%}.v2-rv-w42{width:42%}.v2-rv-w43{width:43%}.v2-rv-w44{width:44%}.v2-rv-w45{width:45%}.v2-rv-w46{width:46%}.v2-rv-w47{width:47%}.v2-rv-w48{width:48%}.v2-rv-w49{width:49%}.v2-rv-w50{width:50%}.v2-rv-w51{width:51%}.v2-rv-w52{width:52%}.v2-rv-w53{width:53%}.v2-rv-w54{width:54%}.v2-rv-w55{width:55%}.v2-rv-w56{width:56%}.v2-rv-w57{width:57%}.v2-rv-w58{width:58%}.v2-rv-w59{width:59%}.v2-rv-w60{width:60%}.v2-rv-w61{width:61%}.v2-rv-w62{width:62%}.v2-rv-w63{width:63%}.v2-rv-w64{width:64%}.v2-rv-w65{width:65%}.v2-rv-w66{width:66%}.v2-rv-w67{width:67%}.v2-rv-w68{width:68%}.v2-rv-w69{width:69%}.v2-rv-w70{width:70%}.v2-rv-w71{width:71%}.v2-rv-w72{width:72%}.v2-rv-w73{width:73%}.v2-rv-w74{width:74%}.v2-rv-w75{width:75%}.v2-rv-w76{width:76%}.v2-rv-w77{width:77%}.v2-rv-w78{width:78%}.v2-rv-w79{width:79%}.v2-rv-w80{width:80%}.v2-rv-w81{width:81%}.v2-rv-w82{width:82%}.v2-rv-w83{width:83%}.v2-rv-w84{width:84%}.v2-rv-w85{width:85%}.v2-rv-w86{width:86%}.v2-rv-w87{width:87%}.v2-rv-w88{width:88%}.v2-rv-w89{width:89%}.v2-rv-w90{width:90%}.v2-rv-w91{width:91%}.v2-rv-w92{width:92%}.v2-rv-w93{width:93%}.v2-rv-w94{width:94%}.v2-rv-w95{width:95%}.v2-rv-w96{width:96%}.v2-rv-w97{width:97%}.v2-rv-w98{width:98%}.v2-rv-w99{width:99%}.v2-rv-w100{width:100%}
