/* "Đánh giá" on the product page (and the photo lightbox). Only site.css tokens (var(--ground|tile|ink|ink-2|wood|ok|line ...)), so light and dark follow the theme. */
.rvs{margin:clamp(56px,7vw,112px) auto clamp(64px,8vw,128px)}
.rvs .head{margin-bottom:clamp(20px,3vw,32px)}
.rv-sum{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin-bottom:22px}
.rv-avg{font-family:var(--f-display);font-size:clamp(2.5rem,2rem + 2vw,3.5rem);line-height:1;color:var(--ink)}
.rv-cnt{color:var(--ink-2);font-size:var(--s-small)}

.rv-st{display:inline-flex;flex:none;letter-spacing:.06em;font-size:15px;line-height:1;white-space:nowrap}
.rv-st .on{color:var(--wood)}
.rv-st .off{color:var(--line)}
.rv-st--lg{font-size:22px}

.rv-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.rv-chips button{min-height:40px;padding:0 16px;border:1px solid var(--in-line);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:var(--s-small);cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
@media (hover:hover) and (pointer:fine){.rv-chips button:hover:not(:disabled){background:var(--tile)}}
.rv-chips button[aria-pressed=true]{background:var(--ink);color:var(--ground);border-color:var(--ink)}
.rv-chips button:disabled{opacity:.4;cursor:default}

.rv-list{display:block}
.rv{padding:22px 0;border-top:1px solid var(--line)}
.rv:first-child{border-top:0}
.rv-h{display:flex;align-items:center;gap:12px}
.rv-av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--tile-2);color:var(--ink);font-size:13px;font-weight:500;letter-spacing:.02em}
.rv-who{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}
.rv-who b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-ok{font-size:12.5px;color:var(--ok);line-height:1.3}
.rv-var{margin:12px 0 0;font-size:var(--s-small);color:var(--ink-2)}
.rv-t{margin:10px 0 0;max-width:68ch;white-space:pre-line;overflow-wrap:anywhere}
.rv-ph{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.rv-ph button{display:block;padding:0;border:0;background:var(--tile);width:84px;height:84px;overflow:hidden;cursor:zoom-in}
.rv-ph img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
@media (hover:hover) and (pointer:fine){.rv-ph button:hover img{transform:scale(1.04)}}
.rv-re{margin:14px 0 0;padding:12px 14px;background:var(--tile);font-size:var(--s-small)}
.rv-re b{font-weight:500}
.rv-re p{margin:4px 0 0;color:var(--ink-2);white-space:pre-line}
.rv-src{margin:14px 0 0;font-size:12.5px;color:var(--ink-2)}
.rv-empty{color:var(--ink-2);padding:24px 0}
.rv-more-w{margin:16px 0 0}
.rv-more[hidden]{display:none}
.rv-more{cursor:pointer;background:transparent;border:0;color:var(--ink)}
.rv-more[aria-busy=true]{opacity:.55;pointer-events:none}
.rv-note{margin:28px 0 0;max-width:62ch;font-size:var(--s-small);color:var(--ink-2)}
@media(max-width:640px){
  .rv-ph button{width:72px;height:72px}
  .rv-t{max-width:none}
}

/* photo lightbox */
.rvl{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;background:rgba(var(--sh-rgb),.92);padding:20px}
.rvl.on{display:flex}
.rvl img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;-webkit-user-drag:none}
.rvl-b{position:absolute;width:48px;height:48px;border:0;border-radius:999px;display:grid;place-items:center;background:rgba(var(--ink-rgb),.14);color:var(--on-field);cursor:pointer;font:inherit;font-size:22px;line-height:1}
@media (hover:hover) and (pointer:fine){.rvl-b:hover{background:rgba(var(--ink-rgb),.28)}}
.rvl-b:focus-visible{outline:2px solid var(--on-field);outline-offset:3px}
.rvl-b[hidden]{display:none}
.rvl-x{top:16px;right:16px}
.rvl-p{left:16px;top:50%;margin-top:-24px}
.rvl-n{right:16px;top:50%;margin-top:-24px}
.rvl-c{position:absolute;left:0;right:0;bottom:16px;text-align:center;color:var(--on-field-2);font-size:var(--s-small)}
