/* Reviews: "Write a review" panel (product page), the personal review link page (/r/CODE) and the small
   parts they share (stars, photo picker). Same colours as the shop: brown text, orange buttons, cream cards. */

/* ---------- button + reply in the review list ---------- */
.tm-rv-write{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;max-width:360px;margin:4px 0 12px;padding:11px 16px;border:0;border-radius:999px;background:#c94c0a;color:#fff;font:600 14px/1.2 Fredoka,"Varela Round",system-ui,sans-serif;cursor:pointer;-webkit-tap-highlight-color:transparent}
.tm-rv-write:hover{background:#b0420a}
.tm-rv-write:focus-visible{outline:3px solid #f6b640;outline-offset:2px}
.tm-rv-reply{margin:8px 0 4px!important;padding:7px 10px;background:#fff8f0;border-left:3px solid #c94c0a;border-radius:6px;font-size:12.5px}

/* ---------- stars + photos (review-kit.js) ---------- */
.rvk-stars{display:flex;align-items:center;gap:2px;flex-wrap:wrap}
.rvk-stars button{border:0;background:none;padding:2px 3px;font-size:34px;line-height:1;color:#e6d8c8;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s}
.rvk-stars button.on{color:#f5b301}
.rvk-stars button:active{transform:scale(.9)}
.rvk-stars button:focus-visible{outline:2px solid #c94c0a;outline-offset:1px;border-radius:6px}
.rvk-word{margin-left:8px;font-size:13px;color:#7a5a48;min-width:70px}
.rvk-photos{display:flex;gap:8px;flex-wrap:wrap}
.rvk-ph{position:relative;width:64px;height:64px}
.rvk-ph img{width:64px;height:64px;object-fit:cover;border-radius:10px;border:1px solid #f1d9c2;display:block}
.rvk-ph button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#3a2418;color:#fff;font-size:11px;line-height:22px;padding:0;cursor:pointer}
.rvk-add{width:64px;height:64px;border-radius:10px;border:1.5px dashed #d9b597;background:#fff;color:#c94c0a;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-family:Fredoka,"Varela Round",system-ui,sans-serif}
.rvk-add span{font-size:22px;line-height:1}
.rvk-add small{font-size:10.5px;color:#7a5a48}
.rvk-add:focus-within{outline:2px solid #c94c0a}

/* ---------- the panel (review-form.js) ---------- */
html.rvf-open,html.rvf-open body{overflow:hidden}
.rvf{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;justify-content:center;font-family:Fredoka,"Varela Round",system-ui,sans-serif;color:#3a2418}
.rvf[hidden]{display:none}
.rvf-scrim{position:absolute;inset:0;background:rgba(40,20,10,.5)}
.rvf-sheet{position:relative;width:100%;max-width:480px;max-height:92vh;max-height:92dvh;overflow:auto;background:#fdf8f1;border-radius:20px 20px 0 0;padding:16px 18px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;animation:rvfUp .25s cubic-bezier(.2,.8,.2,1)}
@keyframes rvfUp{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.rvf-sheet{animation:none}}
@media (min-width:700px){.rvf{align-items:center}.rvf-sheet{border-radius:20px;max-height:88vh}}
.rvf-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.rvf-top h2{margin:0;font-size:19px;font-weight:600;text-transform:none;letter-spacing:0}
.rvf-x{border:0;background:#fff;width:34px;height:34px;border-radius:50%;font-size:15px;color:#7a5a48;cursor:pointer;flex-shrink:0}
.rvf-prod{margin:2px 0 10px;font-size:13px;color:#7a5a48}
.rvf-err,.rvl-err{background:#fde4e1;color:#a3221a;border-radius:10px;padding:8px 11px;font-size:13px;margin:0 0 10px}
.rvf-err[hidden],.rvl-err[hidden]{display:none}
.rvf-form{display:flex;flex-direction:column;gap:8px}
.rvf-lab{font-size:13px;font-weight:600;margin-top:4px}
.rvf-lab small{font-weight:400;color:#a3836f}
.rvf-in,.rvf-code{width:100%;box-sizing:border-box;border:1px solid #e3c9b2;border-radius:12px;background:#fff;padding:11px 12px;font:15px/1.4 Fredoka,"Varela Round",system-ui,sans-serif;color:#3a2418}
textarea.rvf-in{resize:vertical;min-height:96px}
.rvf-in:focus,.rvf-code:focus,.rvf-phone:focus-within{outline:2px solid #f6b640;outline-offset:0;border-color:#e2703f}
.rvf-code{letter-spacing:.5em;text-align:center;font-size:20px}
.rvf-phone{display:flex;align-items:center;border:1px solid #e3c9b2;border-radius:12px;background:#fff;overflow:hidden}
.rvf-phone span{padding:0 10px 0 12px;color:#7a5a48;font-size:15px}
.rvf-phone input{flex:1;min-width:0;border:0;padding:11px 12px 11px 0;font:15px/1.4 Fredoka,"Varela Round",system-ui,sans-serif;background:transparent;color:#3a2418;outline:none}
.rvf-btn{margin-top:8px;border:0;border-radius:999px;background:#c94c0a;color:#fff;padding:13px 18px;font:600 15px/1.2 Fredoka,"Varela Round",system-ui,sans-serif;cursor:pointer}
.rvf-btn:disabled{opacity:.6;cursor:wait}
.rvf-btn--ghost{background:#fff;color:#c94c0a;border:1.5px solid #c94c0a}
.rvf-btn:focus-visible{outline:3px solid #f6b640;outline-offset:2px}
.rvf-link{border:0;background:none;color:#c94c0a;font:inherit;text-decoration:underline;cursor:pointer;padding:0}
.rvf-note{margin:0 0 4px;font-size:13px;line-height:1.5;color:#7a5a48}
.rvf-wait{color:#7a5a48;font-size:14px}
.rvf-me{margin:0 0 4px;background:#e6f6ec;color:#0f5f31;border-radius:10px;padding:8px 11px;font-size:13px;line-height:1.5}
.rvf-me span{color:#3a2418}
.rvf-me .rvf-me-no{color:#7a5a48}
.rvf-resend{margin:2px 0 0;font-size:12.5px;color:#7a5a48;text-align:center}
.rvf-done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:18px 0 4px}
.rvf-done h3{margin:4px 0 0;font-size:19px;font-weight:600;text-transform:none;letter-spacing:0}
.rvf-done p{margin:0;max-width:320px;font-size:14px;line-height:1.5;color:#7a5a48}
.rvf-done .rvf-btn{min-width:180px}
.rvf-tick{width:64px;height:64px;border-radius:50%;background:#e6f6ec;color:#0f7a3d;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700}

/* ---------- the personal link page (review-link.js) ---------- */
.rvl{padding:24px 16px 110px;font-family:Fredoka,"Varela Round",system-ui,sans-serif;color:#3a2418}
.rvl-wrap{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.rvl h1{margin:0;font-size:24px;font-weight:600;line-height:1.25;text-transform:none;letter-spacing:0}
.rvl-sub{margin:0;color:#7a5a48;font-size:14px}
.rvl-item{background:#fff;border:1px solid #f1d9c2;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.rvl-head{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.rvl-head img,.rvl-noimg{width:56px;height:56px;border-radius:12px;object-fit:cover;border:1px solid #f1d9c2;background:#fff3e6;display:block}
.rvl-head b{font-size:15px;line-height:1.3;font-weight:600}
.rvl-more{display:flex;flex-direction:column;gap:8px}
.rvl-more[hidden]{display:none}
.rvl-badge{font-size:12.5px;color:#0f5f31;text-align:center;margin:0}
.rvl-loading{color:#7a5a48}
