/* REZZ MALL new design (2026-12-04, HANDOVER 8e; preview only: _rz.php rz_head loads it, only when rz_on()).
   The live buy dialog (inc.php lc_buy_dialog + app.js, every money rule unchanged) in the look of the mock's .buyd (css/site.css "the buy
   dialog"). js/buyd-live.js puts the live parts in the mock's order (.rzb-m main column, the join box beside it on a wide screen) and adds
   the picture/price row, the sum, the gift name chips, the payment card, the wait line and the done view; this file is only the look.
   Everything is under #buy-dlg.rzb, so the other live dialogs (cart, wishlist, share, 18+) keep live.css. */
.rz #buy-dlg.rzb{width:min(460px,calc(100vw - 32px));padding:0}
.rz #buy-dlg.rzb form.buy-f{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0}
.rz #buy-dlg .rzb-m{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0;padding:26px}
.rz #buy-dlg .buy-x{z-index:2}
/* the heading: the live eyebrow ("Buy now · in Second Life") stands where the mock has its h2 */
.rz #buy-dlg .eyebrow{margin:0 44px 0 0;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.01em;text-transform:none;color:var(--ink)}
/* the piece: its picture, its name (the live h2), its price */
.rz #buy-dlg .rzb-p{display:flex;gap:14px;align-items:center;margin:6px 0 2px}
.rz #buy-dlg .rzb-p img{flex:none;width:96px;height:72px;object-fit:contain;border-radius:6px;background:var(--stone)}
.rz #buy-dlg .rzb-p img[hidden]{display:none}
.rz #buy-dlg .rzb-p>div{min-width:0}
.rz #buy-dlg .rzb-p h2{margin:0;font-size:16.5px;font-weight:500;line-height:1.25;overflow-wrap:anywhere}
.rz #buy-dlg .rzb-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 9px;margin:3px 0 0;font-weight:600;font-size:20px;font-variant-numeric:tabular-nums}
.rz #buy-dlg .rzb-price[hidden]{display:none}
.rz #buy-dlg .rzb-price s{font-weight:400;font-size:16px;color:var(--mute)}
.rz #buy-dlg .rzb-price em{font-style:normal;font-weight:500;font-size:14.5px;color:var(--mute)}
/* the two steps of a visitor: step 1 now; then step 1 done (a check) and step 2 now */
.rz #buy-dlg .buy-steps{display:flex;align-items:center;gap:10px;margin:2px 0 4px;padding:0;list-style:none;font-size:14.5px;font-weight:500;color:var(--mute)}
.rz #buy-dlg .buy-steps[hidden]{display:none}
.rz #buy-dlg .buy-steps li{display:flex;align-items:center;gap:8px;white-space:nowrap;font-weight:500;color:var(--mute)}
.rz #buy-dlg .buy-steps li+li::before{content:"";width:26px;height:1.5px;margin-right:2px;background:var(--line)}
.rz #buy-dlg .buy-steps b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);background:none;color:inherit;font-weight:600;font-size:13.5px;line-height:1}
.rz #buy-dlg .buy-steps[data-on="1"] li[data-s="1"],.rz #buy-dlg .buy-steps[data-on="2"] li{color:var(--ink)}
.rz #buy-dlg .buy-steps[data-on="1"] li[data-s="1"] b,.rz #buy-dlg .buy-steps[data-on="2"] li[data-s="2"] b{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.rz #buy-dlg .buy-steps[data-on="2"] li[data-s="1"] b{border-color:var(--ink);background:none;color:var(--ink);font-size:0}
.rz #buy-dlg .buy-steps[data-on="2"] li[data-s="1"] b::after{content:"";width:13px;height:13px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4l3.1 3.1 6.5-6.8'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4l3.1 3.1 6.5-6.8'/%3E%3C/svg%3E") center/contain no-repeat}
/* what happens, and the 20-second video (the review card says the rest in step 2; a demo has no video) */
.rz #buy-dlg .buy-l{margin:0;font-size:15.5px;line-height:1.45;color:var(--mute);text-wrap:pretty}
.rz #buy-dlg .buy-l b{font-weight:600;color:var(--ink)}
.rz #buy-dlg .buy-how{margin:0 0 4px}
.rz #buy-dlg .hb-link{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:none;color:var(--ink);font:inherit;font-weight:500;font-size:15px;text-decoration:none;text-align:left;cursor:pointer}
.rz #buy-dlg .hb-link{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.rz #buy-dlg .hb-link:hover{text-decoration-color:var(--sun);text-decoration-thickness:3px}
.rz #buy-dlg .hb-link .pi,.rz #buy-dlg .hb-link svg{flex:none;width:22px;height:22px;padding:5px;border-radius:50%;background:var(--ink);color:var(--paper);fill:currentColor;stroke:none}
.rz #buy-dlg.rzb-rev .buy-l,.rz #buy-dlg.rzb-rev .buy-how,.rz #buy-dlg[data-mode="demo"] .buy-how{display:none}
/* signed in: the account as a chip with its picture */
.rz #buy-dlg .buy-as{display:flex;align-items:center;gap:10px;margin:0;padding:8px 14px 8px 8px;border-radius:999px;background:var(--stone);font-size:15.5px;line-height:1.3;color:var(--ink)}
.rz #buy-dlg .buy-as[hidden]{display:none}
.rz #buy-dlg .buy-as b{font-weight:600;color:var(--ink)}
.rz #buy-dlg .buy-as .ava{flex:none;width:32px;height:32px}
/* the username, the gift, a brand's credit, the web balance */
.rz #buy-dlg .buy-me,.rz #buy-dlg .buy-gf{display:grid;gap:8px}
.rz #buy-dlg .buy-me[hidden],.rz #buy-dlg .buy-gf[hidden],.rz #buy-dlg .buy-gift[hidden]{display:none}
.rz #buy-dlg .buy-gift{line-height:1.35}
.rz #buy-dlg .buy-gift b{font-weight:600}
.rz #buy-dlg .buy-gift small{font-weight:400;font-size:14px;color:var(--mute)}
.rz #buy-dlg .rzb-last{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;font-size:14.5px;color:var(--mute)}
.rz #buy-dlg .rzb-last[hidden]{display:none}
.rz #buy-dlg .rzb-last button{height:30px;margin:0;padding:0 12px;border:1.5px solid var(--line);border-radius:999px;background:none;color:var(--ink);font:inherit;font-weight:500;font-size:14.5px;cursor:pointer}
.rz #buy-dlg .rzb-last button:hover{border-color:var(--ink)}
.rz #buy-dlg .rzb-sum{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;padding:10px 16px;border-radius:14px;background:var(--stone);font-size:15.5px}
.rz #buy-dlg .rzb-sum[hidden]{display:none}
.rz #buy-dlg .rzb-sum b{font-weight:600;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
/* "Is this you?": a card for each avatar the shop found */
.rz #buy-dlg .buy-rev{display:grid;gap:12px;padding:16px;border-radius:18px;background:var(--stone);font-size:15px}
.rz #buy-dlg .buy-rev[hidden]{display:none}
.rz #buy-dlg .buy-rev-h{margin:0;font-weight:600;font-size:18px;line-height:1.2}
.rz #buy-dlg .rzb-who{display:flex;align-items:center;gap:14px;margin:0;line-height:1.3}
.rz #buy-dlg .rzb-who[hidden]{display:none}
.rz #buy-dlg .rzb-who img{flex:none;width:96px;height:72px;object-fit:cover;border-radius:8px!important;background:var(--paper)}
.rz #buy-dlg .rzb-who b{display:block;font-weight:600;font-size:18px;overflow-wrap:anywhere}
.rz #buy-dlg .rzb-who br{display:none}
.rz #buy-dlg .rzb-who a{font-size:14.5px;color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.rz #buy-dlg .buy-rev-n{margin:0;font-size:14.5px;line-height:1.45;color:var(--mute);text-wrap:pretty}
.rz #buy-dlg .buy-rev-n b{font-weight:600;color:var(--ink)}
.rz #buy-dlg button[type=submit]{height:50px;margin-top:4px}
.rz #buy-dlg .buy-msg{margin:0;font-size:14.5px;line-height:1.45;color:var(--mute)}
.rz #buy-dlg .buy-msg.ok{color:var(--ink)}
.rz #buy-dlg .buy-msg.bad{color:var(--a,#b3261e);font-weight:500}
/* after the IM (and after the end of a flow) the form goes; the piece and the next step stay */
.rz #buy-dlg.rzb-sent .rzb-m>:not(.eyebrow):not(.rzb-p):not(.buy-msg):not(.buy-ads),
.rz #buy-dlg.rzb-done .rzb-m>:not(.eyebrow):not(.rzb-p):not(.buy-msg){display:none}
.rz #buy-dlg.rzb-done .buy-join,.rz #buy-dlg.rzb-done form.buy-f>.code-in{display:none}
.rz #buy-dlg.rzb-sent .buy-msg{display:grid;gap:10px;font-size:15.5px;color:var(--ink)}
.rz #buy-dlg .rzb-say{margin:0;line-height:1.45;text-wrap:pretty}
.rz #buy-dlg .rzb-pay{display:grid;gap:10px;padding:16px 18px 18px;border-radius:18px;background:var(--sun);color:var(--sun-ink)}
.rz #buy-dlg .rzb-pay p{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 14px;margin:0;font-weight:500;font-size:15px}
.rz #buy-dlg .rzb-pay p b{font-weight:600;font-size:40px;line-height:1.05;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rz #buy-dlg .rzb-pay .buy-copy{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;margin:0;padding:8px 18px;border-radius:999px;border:1.5px solid var(--sun-ink);background:var(--sun-ink);color:var(--sun);font:inherit;font-weight:600;font-size:15px;line-height:1.25;white-space:normal;cursor:pointer}
.rz #buy-dlg .rzb-pay .buy-copy:hover,.rz #buy-dlg .rzb-pay .buy-copy.done{background:transparent;color:var(--sun-ink)}
.rz #buy-dlg a.buy-pay{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-height:50px;margin:0;padding:8px 18px;border-radius:999px;border:1.5px solid var(--ink);background:var(--ink);color:var(--paper);font-weight:600;font-size:16px;line-height:1.25;text-align:center;text-decoration:none;white-space:normal}
.rz #buy-dlg a.buy-pay:hover{background:transparent;color:var(--ink)}
.rz #buy-dlg .buy-pay-h{display:block;margin:0;font-size:14.5px;line-height:1.45;color:var(--mute)}
.rz #buy-dlg .rzb-wait{display:flex;align-items:center;gap:14px;margin:4px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:15px;line-height:1.35;color:var(--ink)}
.rz #buy-dlg .rzb-wait b{display:block;font-weight:600;font-size:16px}
.rz #buy-dlg .rzb-wait i{position:relative;flex:none;width:12px;height:12px;margin:0 6px;border-radius:50%;background:var(--sun)}
.rz #buy-dlg .rzb-wait i::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--sun);animation:rzbRing 1.6s ease-out infinite}
@keyframes rzbRing{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(3)}}
/* paid, paid from the balance, a demo on its way */
.rz #buy-dlg .rzb-done{display:grid;justify-items:start;gap:8px;padding:6px 0 2px;color:var(--ink)}
.rz #buy-dlg .rzb-done>i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--g);color:#fff}
.rz #buy-dlg .rzb-done>i svg{width:24px;height:24px}
.rz #buy-dlg .rzb-done h3{margin:0;font-weight:600;font-size:22px;line-height:1.15;letter-spacing:-.01em}
.rz #buy-dlg .rzb-done p{margin:0;font-size:15.5px;line-height:1.45;text-wrap:pretty}
.rz #buy-dlg .rzb-done .btn{margin-top:8px;height:46px;background:transparent;color:var(--ink)}
.rz #buy-dlg .rzb-done .btn:hover{background:var(--ink);color:var(--paper)}
/* the way to an account, for a visitor: under the form on a phone, beside it on a wide screen */
.rz #buy-dlg .buy-join{display:grid;align-content:start;gap:12px;margin:0;padding:24px 26px 26px;border:0;background:var(--stone)}
.rz #buy-dlg .buy-join[hidden]{display:none}
.rz #buy-dlg .bj-h{margin:0}
.rz #buy-dlg .bj-ic{display:none}
.rz #buy-dlg .bj-h b{font-weight:600;font-size:19px;line-height:1.2;text-wrap:balance}
.rz #buy-dlg .bj-l{display:grid;gap:6px;margin:0;padding:0;list-style:none;font-size:15px;line-height:1.3;color:var(--ink)}
.rz #buy-dlg .bj-l li{position:relative;padding-left:20px}
.rz #buy-dlg .bj-l li::before{content:"";position:absolute;left:2px;top:.45em;width:8px;height:8px;border-radius:50%;background:var(--sun)}
.rz #buy-dlg .bj-l b{font-weight:600}
.rz #buy-dlg .buy-join-b{justify-self:stretch;height:46px;margin-top:6px;padding:0 16px}
/* the 6-digit code from the IM (app.js lcCodeIn puts it where the join box was) */
.rz #buy-dlg form.buy-f>.code-in{display:grid;align-content:start;gap:10px;padding:24px 26px 26px;background:var(--stone);font-size:15px;line-height:1.4}
.rz #buy-dlg .code-in label{font-weight:600}
.rz #buy-dlg .code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.rz #buy-dlg .code-row input{height:46px;padding:0 14px;text-align:center;font-weight:600;font-size:22px;letter-spacing:.32em;font-variant-numeric:tabular-nums}
.rz #buy-dlg .code-row button[type=submit]{height:46px;margin:0;padding:0 18px}
.rz #buy-dlg .code-m{margin:0;font-size:14.5px;color:var(--mute)}
.rz #buy-dlg .code-m.bad{color:var(--a,#b3261e)}
.rz #buy-dlg .code-back{justify-self:start;width:auto;padding:0;text-align:left;border:0;background:none;color:var(--ink);font:inherit;font-size:14.5px;font-weight:500;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@media (min-width:880px){
  .rz #buy-dlg.rzb.rzb-join{width:min(800px,calc(100vw - 32px))}
  .rz #buy-dlg.rzb-join form.buy-f{grid-template-columns:minmax(0,1fr) 318px}
  .rz #buy-dlg.rzb-join .rzb-m{grid-column:1;grid-row:1}
  .rz #buy-dlg.rzb-join .buy-join,.rz #buy-dlg.rzb-join form.buy-f>.code-in{grid-column:2;grid-row:1;padding-top:66px}
}
@media (max-width:480px){
  .rz #buy-dlg .rzb-m{padding:22px 20px}
  .rz #buy-dlg .buy-join,.rz #buy-dlg form.buy-f>.code-in{padding:20px}
  .rz #buy-dlg .buy-steps{flex-direction:column;align-items:flex-start;gap:6px}
  .rz #buy-dlg .buy-steps li+li::before{display:none}
  .rz #buy-dlg .rzb-who img{width:80px;height:60px}
  .rz #buy-dlg .rzb-pay p b{font-size:34px}
}
@media (prefers-reduced-motion:reduce){
  .rz #buy-dlg .rzb-wait i::after{animation:none;opacity:0}
}
.rz #buy-dlg .buy-gift{align-items:flex-start}
.rz #buy-dlg .buy-gift input{margin-top:1px}
.rz #buy-dlg .rzb-ct{min-width:0;padding-top:1px}
