/* ============================================================
   Zuma Eats - the review, tip and thank you screens (review-flow.js).

   The glass is the manager console sign in's (.signin-bg and .signin-side
   in console-src/console.css): a photo behind a dark wash, then a pane of
   frosted glass over it, a little stronger here because text sits on it.
   Every animation moves transform and opacity only, so the phone's GPU
   does the work and nothing reflows while it plays.
   ============================================================ */

#rv-host:empty{display:none}
body.rv-open{overflow:hidden}

.rv{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;color:#fff;background:#27272a;overflow:hidden;
  font-family:var(--sf);-webkit-tap-highlight-color:transparent}
.rv-in{animation:rvIn .34s cubic-bezier(.16,1,.3,1) both}
@keyframes rvIn{from{opacity:0;transform:scale(1.04)}to{opacity:1;transform:none}}

.rv-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none;
  background:radial-gradient(120% 70% at 50% 0%,#6b1824 0%,#2a1a1d 55%,#18181b 100%)}
.rv-bg img{position:absolute;inset:-32px;width:calc(100% + 64px);height:calc(100% + 64px);max-width:none;object-fit:cover;
  filter:blur(10px) saturate(1.1);transform:scale(1.04)}
.rv-bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgb(0 0 0 / 40%),rgb(0 0 0 / 50%) 55%,rgb(0 0 0 / 66%))}

.rv-top{position:relative;z-index:1;display:flex;align-items:center;gap:14px;padding:max(14px,env(safe-area-inset-top)) 16px 4px}
.rv-x{flex:none;width:42px;height:42px;border-radius:50%;border:1px solid rgb(255 255 255 / 22%);background:rgb(255 255 255 / 10%);
  color:#fff;display:grid;place-items:center;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.rv-x svg{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rv-prog-wrap{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
.rv-prog{flex:1;display:flex;gap:6px}
.rv-prog span{flex:1;height:4px;border-radius:4px;background:rgb(255 255 255 / 24%)}
.rv-prog span.on{background:#fff}
.rv-count{font-size:.8rem;font-weight:700;color:rgb(255 255 255 / 85%);white-space:nowrap}

.rv-stage{position:relative;z-index:1;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  display:flex;flex-direction:column;padding:12px 16px max(16px,env(safe-area-inset-bottom))}
.rv-glass{margin:auto 0;width:100%;max-width:460px;align-self:center;padding:24px 18px 18px;border-radius:26px;
  background:rgb(255 255 255 / 9%);border:1px solid rgb(255 255 255 / 18%);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);backdrop-filter:blur(18px) saturate(1.15);
  box-shadow:0 24px 60px rgb(0 0 0 / 35%)}
.rv-fwd{animation:rvFwd .36s cubic-bezier(.16,1,.3,1) both}
.rv-rev{animation:rvRev .36s cubic-bezier(.16,1,.3,1) both}
@keyframes rvFwd{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes rvRev{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}

.rv-head{text-align:center;display:flex;flex-direction:column;align-items:center}
.rv-face{width:58px;height:58px;border-radius:50%;background:#fff;color:#ED1732;display:grid;place-items:center;
  font:800 1.5rem var(--sf);box-shadow:0 8px 24px rgb(0 0 0 / 25%);margin-bottom:12px}
.rv-face-store svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rv-kick{margin:0 0 6px;font-size:.86rem;font-weight:600;color:rgb(255 255 255 / 80%);line-height:1.4}
.rv-q{margin:0;font-size:1.6rem;line-height:1.15;letter-spacing:-.03em;color:#fff;outline:0}

.rv-stars{display:flex;justify-content:center;gap:4px;margin:18px 0 4px}
.rv-star{width:54px;height:54px;padding:5px;border:0;border-radius:14px;background:none;color:#fff;display:grid;place-items:center}
.rv-star svg{width:100%;height:100%;fill:none;stroke:rgb(255 255 255 / 55%);stroke-width:1.6;stroke-linejoin:round;
  transition:transform .18s cubic-bezier(.34,1.56,.64,1),fill .15s,stroke .15s}
.rv-star.on svg{fill:#ED1732;stroke:#ff6b7d}
.rv-star.pop svg{animation:rvPop .38s cubic-bezier(.34,1.56,.64,1)}
.rv-star:active svg{transform:scale(.9)}
.rv-star:focus-visible{outline:3px solid rgb(255 255 255 / 70%);outline-offset:0}
@keyframes rvPop{40%{transform:scale(1.22)}100%{transform:none}}
.rv-word{margin:0 0 14px;text-align:center;font-weight:700;font-size:.95rem;color:rgb(255 255 255 / 88%);min-height:1.3em}

.rv-sub{margin:0 0 9px;font-size:.82rem;font-weight:700;color:rgb(255 255 255 / 78%)}
.rv-tagbox{margin:4px 0 14px}
.rv-tags{display:flex;flex-wrap:wrap;gap:8px}
.rv-tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:9px 13px;font-size:.86rem;font-weight:700;
  color:#fff;background:rgb(255 255 255 / 10%);border:1px solid rgb(255 255 255 / 24%)}
.rv-tag.on{background:#fff;color:#141414;border-color:#fff}
.rv-tag svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

.rv-note{display:block;margin:0 0 12px}
.rv-note textarea{width:100%;resize:none;border-radius:14px;padding:12px 14px;font-size:16px;line-height:1.4;color:#fff;
  background:rgb(255 255 255 / 10%);border:1px solid rgb(255 255 255 / 24%);outline:0}
.rv-note textarea::placeholder{color:rgb(255 255 255 / 62%)}
.rv-note textarea:focus{border-color:rgb(255 255 255 / 70%)}
.rv-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rv-fine{margin:0 0 14px;font-size:.78rem;line-height:1.5;color:rgb(255 255 255 / 70%);text-align:center;text-wrap:balance}

/* ---- tip ---- */
.rv-amt{margin:16px 0 14px;text-align:center;font:800 2.6rem/1 var(--sf);letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.rv-chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.rv-chip{height:50px;padding:0 4px;border-radius:14px;font-weight:800;font-size:1rem;color:#fff;background:rgb(255 255 255 / 10%);
  border:1px solid rgb(255 255 255 / 26%)}
.rv-chip.on{background:#fff;color:#141414;border-color:#fff;box-shadow:0 0 0 3px rgb(255 255 255 / 25%)}
.rv-chip-none{grid-column:1 / -1;height:44px;font-size:.92rem}
.rv-custom{display:flex;align-items:center;gap:6px;margin-top:10px;height:52px;padding:0 14px;border-radius:14px;background:#fff;color:#141414;
  font-weight:800;font-size:1.15rem}
.rv-custom[hidden]{display:none}
.rv-custom input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:1.15rem;color:#141414}
.rv-custom-msg{margin:6px 2px 0;font-size:.82rem;font-weight:600;color:#fff;min-height:0}
.rv-custom-msg:empty{display:none}
.rv-pay{margin-top:14px}
.rv-pay:empty{display:none}
.rv-methods{display:flex;flex-wrap:wrap;gap:8px}
.rv-m{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:8px 14px 8px 10px;border-radius:14px;
  font-weight:700;font-size:.88rem;color:#fff;background:rgb(255 255 255 / 10%);border:1px solid rgb(255 255 255 / 26%)}
.rv-m>svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rv-m.on{background:#fff;color:#141414;border-color:#fff}
.rv-m-tick{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ED1732;color:#fff;margin-left:2px}
.rv-m-tick svg{width:12px;height:12px;stroke:currentColor;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rv-cardbox{margin-top:12px}
.rv-cardbox[hidden]{display:none}
.rv-card{background:#fff;border-radius:14px;padding:16px 14px;min-height:52px}
.rv-test{margin:8px 2px 0;font-size:.76rem;line-height:1.45;color:rgb(255 255 255 / 75%)}

/* ---- buttons and errors ---- */
.rv-err{display:flex;gap:9px;align-items:flex-start;margin:14px 0 0;padding:11px 13px;border-radius:12px;background:#fff;color:#a3283a;
  font-size:.88rem;line-height:1.45;font-weight:600}
.rv-err[hidden]{display:none}
.rv-err svg{flex:none;width:18px;height:18px;margin-top:1px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.rv-acts{display:flex;gap:10px;margin-top:16px}
.rv-go{flex:1;height:54px;border:0;border-radius:15px;background:#ED1732;color:#fff;font-weight:800;font-size:1rem;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 10px 24px rgb(237 23 50 / 35%);transition:transform .15s}
.rv-go:active{transform:scale(.98)}
.rv-go:disabled{opacity:.75}
.rv-ghost{flex:none;min-width:96px;height:54px;padding:0 18px;border-radius:15px;background:transparent;color:#fff;font-weight:800;
  border:1px solid rgb(255 255 255 / 34%)}
.rv-go .spin{width:16px;height:16px;border-radius:50%;border:2px solid rgb(255 255 255 / 35%);border-top-color:#fff;animation:rvSpin .7s linear infinite}
@keyframes rvSpin{to{transform:rotate(360deg)}}
.rv button:focus-visible{outline:3px solid rgb(255 255 255 / 75%);outline-offset:2px}

/* ---- thank you ----
   Zuma red rises over everything, the mark lands, the words come up under
   it, and after a few seconds the whole sheet swipes away upwards. */
.rv-ty{position:fixed;inset:0;z-index:1010;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;
  background:#ED1732;color:#fff;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent;
  animation:tyIn .5s cubic-bezier(.16,1,.3,1) both;will-change:transform}
@keyframes tyIn{from{transform:translateY(100%)}to{transform:none}}
.rv-ty-in{position:relative;display:flex;flex-direction:column;align-items:center}
.rv-ty-mark{position:relative;z-index:1;width:92px;height:92px;border-radius:28px;background:#fff;display:grid;place-items:center;
  box-shadow:0 18px 40px rgb(110 0 14 / 35%);animation:tyMark .7s .28s cubic-bezier(.34,1.56,.64,1) both}
.rv-ty-mark img{width:66px;height:66px;border-radius:18px}
.rv-ty-ring{position:absolute;top:0;left:50%;width:92px;height:92px;margin-left:-46px;border-radius:30px;border:2px solid rgb(255 255 255 / 60%);
  opacity:0;animation:tyRing 1.5s .75s ease-out 2}
.rv-ty-a,.rv-ty-b{position:relative;z-index:1}
.rv-ty-a{margin:30px 0 8px;font:800 2.6rem/1.05 var(--sf);letter-spacing:-.04em;animation:tyUp .6s .5s cubic-bezier(.16,1,.3,1) both}
.rv-ty-b{margin:0;font-size:1.15rem;font-weight:600;color:rgb(255 255 255 / 92%);animation:tyUp .6s .66s cubic-bezier(.16,1,.3,1) both}
.rv-ty-tap{position:absolute;left:0;right:0;bottom:max(30px,env(safe-area-inset-bottom));margin:0;font-size:.85rem;font-weight:600;
  opacity:0;animation:tyTap .5s 1.6s both}
@keyframes tyMark{from{opacity:0;transform:scale(.55) rotate(-10deg)}to{opacity:1;transform:none}}
@keyframes tyRing{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.9)}}
@keyframes tyUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes tyTap{to{opacity:.75}}
.rv-ty.out{animation:tyOut .6s cubic-bezier(.7,0,.84,0) both}
.rv-ty.out .rv-ty-in{animation:tyShrink .6s cubic-bezier(.7,0,.84,0) both}
@keyframes tyOut{from{transform:none}to{transform:translateY(-100%)}}
@keyframes tyShrink{to{opacity:0;transform:scale(.94)}}

/* Reduced motion: a still red screen with the words, then a plain fade.
   The app's own reduced motion rule (styles.css) shortens every transition
   to nothing, so the fade is named here with enough weight to survive it. */
.rv-ty.still,.rv-ty.still *{animation:none!important}
.rv-ty.still .rv-ty-ring{display:none}
.rv-ty.still .rv-ty-tap{opacity:.75}
#rv-ty.still{transition:opacity .35s linear!important}
#rv-ty.still.out{opacity:0}
@media (prefers-reduced-motion:reduce){
  .rv-in,.rv-fwd,.rv-rev,.rv-star.pop svg{animation:none!important}
}
