/* "How do you want it?" buy chooser (RackBuyDrawer.tsx): dark, with the plushy's yellow as the accent. */
.rbd{--y:#ffcc38;--y2:#f0b01a;--bg:#0c0c0d;--card:#141416;--line:#2a2a2e;--ink:#f4f1ea;--mute:#9b978f;
  padding:0;margin:auto;border:0;background:transparent;color:var(--ink);max-width:none;max-height:none;overflow:visible;
  font-family:-apple-system,"SF Pro Text",Inter,Arial,sans-serif}
.rbd::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:rbd-fade .25s ease both}
.rbd.is-closing::backdrop{animation:rbd-fade .25s ease reverse both}
@keyframes rbd-fade{from{opacity:0}}

.rbd-card{position:relative;width:min(920px,calc(100vw - 48px));max-height:calc(100dvh - 48px);overflow:auto;box-sizing:border-box;
  padding:40px 48px 26px;border-radius:32px;background:radial-gradient(120% 70% at 50% 0%,#1d1a12 0%,var(--bg) 55%);
  border:1px solid var(--line);box-shadow:0 40px 120px rgba(0,0,0,.6);text-align:center;animation:rbd-pop .32s cubic-bezier(.2,.9,.25,1.1) both}
.rbd.is-closing .rbd-card{animation:rbd-pop .22s ease reverse both}
@keyframes rbd-pop{from{opacity:0;transform:translateY(16px) scale(.97)}}
.rbd-grab{display:none}
.rbd-close{position:absolute;top:20px;right:20px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  border:1px solid var(--line);background:#18181b;color:var(--ink)}
.rbd-close svg{width:20px;height:20px}
.rbd-close:hover{border-color:#44444a}
.rbd-kicker{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:15px;color:var(--mute)}
.rbd-kicker i{width:8px;height:8px;border-radius:50%;background:var(--y);box-shadow:0 0 0 4px rgba(255,204,56,.15)}
.rbd-head h2{margin:10px 0 30px;font-size:clamp(34px,4.4vw,58px);font-weight:800;letter-spacing:-.05em;line-height:1}

/* desktop cards */
.rbd-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:stretch}
.rbd-plan{position:relative;display:flex;flex-direction:column;text-align:left;padding:30px 30px 28px;border-radius:26px;
  background:var(--card);border:1px solid var(--line)}
.rbd-plan.is-featured{border:2px solid var(--y);background:linear-gradient(180deg,#1c190f,var(--card) 60%);box-shadow:0 20px 60px rgba(255,204,56,.08);
  transform:translateY(-8px)}
.rbd-badge{position:absolute;top:-17px;left:50%;translate:-50% 0;white-space:nowrap;padding:8px 16px;border-radius:999px;
  background:var(--y);color:#111;font-weight:700;font-size:14px;box-shadow:0 6px 18px rgba(255,204,56,.25)}
.rbd-art{height:clamp(140px,calc(100dvh - 670px),210px);margin:0 -8px 20px;border-radius:16px;overflow:hidden;background:#000}
.rbd-art img{width:100%;height:100%;object-fit:cover}
.rbd-art{position:relative}
.rbd-art.is-plushy,.rbd-thumb.is-plushy{background:radial-gradient(60% 70% at 50% 60%,#3a2f10,#000 75%)}
.rbd-art.is-plushy img,.rbd-thumb.is-plushy img{object-fit:contain;padding:12px 0 4px;box-sizing:border-box}
.rbd-art img.rbd-plush{position:absolute;right:8px;bottom:6px;width:34%;height:auto;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.6))}
.rbd-plan h3{margin:0 0 12px;font-size:25px;font-weight:700;letter-spacing:-.02em}
.rbd-price{margin:0 0 20px;font-size:56px;font-weight:800;letter-spacing:-.04em;line-height:1;display:flex;align-items:baseline;gap:8px}
.rbd-price small{font-size:17px;font-weight:500;letter-spacing:0;color:var(--mute)}
.rbd-plan ul{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:12px;flex:1}
.rbd-plan li{display:flex;align-items:center;gap:12px;font-size:16.5px;color:#d9d5cc}
.rbd-plan li svg{width:18px;height:18px;flex:none;color:var(--y);stroke-width:3}

.rbd-buy,.rbd-go{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:62px;border-radius:999px;cursor:pointer;
  font:700 17px/1 -apple-system,"SF Pro Text",Inter,Arial,sans-serif;letter-spacing:-.01em;transition:transform .15s,filter .2s,opacity .2s}
.rbd-buy{border:1px solid #3a3a40;background:#1f1f23;color:var(--ink)}
.rbd-buy span,.rbd-go span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rbd-buy b,.rbd-go b{display:grid;place-items:center}
.rbd-buy b svg{width:20px;height:20px}
.rbd-buy.is-featured,.rbd-go{border:0;background:linear-gradient(180deg,#ffd75a,var(--y) 55%,var(--y2));color:#111;
  box-shadow:0 14px 34px rgba(255,204,56,.25),inset 0 1px rgba(255,255,255,.5);justify-content:space-between;padding:0 8px 0 26px}
.rbd-buy.is-featured b,.rbd-go b{width:44px;height:44px;border-radius:50%;background:#111;color:var(--y)}
.rbd-buy.is-featured b svg,.rbd-go b svg{width:20px;height:20px}
.rbd-buy:hover:not(:disabled),.rbd-go:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.05)}
.rbd-buy:disabled,.rbd-go:disabled{opacity:.45;cursor:default}
.rbd-buy.is-featured{padding:0 8px 0 24px}
.rbd-note{margin:22px 0 0;font-size:14px;font-weight:600;color:var(--mute)}
.rbd-note.is-error{color:#ff8a8a}

/* phone rows (hidden on desktop) */
.rbd-rows,.rbd-go{display:none}

@media(max-width:760px){
  .rbd{margin:auto 0 0;width:100%}
  .rbd-card{width:100%;max-height:92dvh;padding:12px 18px calc(18px + env(safe-area-inset-bottom));border-radius:30px 30px 0 0;
    border-width:1px 0 0;text-align:left;animation:rbd-up .34s cubic-bezier(.2,.9,.25,1) both}
  .rbd.is-closing .rbd-card{animation:rbd-up .24s ease reverse both}
  @keyframes rbd-up{from{transform:translateY(100%)}}
  .rbd-grab{display:block;width:44px;height:5px;margin:0 auto 14px;border-radius:3px;background:#3a3a40}
  .rbd-close{top:14px;right:14px;width:40px;height:40px}
  .rbd-kicker{font-size:13px}
  .rbd-head h2{margin:8px 0 18px;font-size:36px;max-width:9ch}
  .rbd-cards{display:none}
  .rbd-rows{display:grid;gap:12px}
  .rbd-row{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:'thumb text' 'thumb price';align-items:center;column-gap:14px;row-gap:6px;width:100%;padding:12px 16px 12px 12px;
    border-radius:20px;border:1px solid var(--line);background:var(--card);color:var(--ink);text-align:left;cursor:pointer;font:inherit}
  .rbd-row.is-picked{border:2px solid var(--y);padding:11px 15px 11px 11px;background:linear-gradient(90deg,#1c190f,var(--card))}
  .rbd-thumb{grid-area:thumb;align-self:center;width:96px;height:96px;border-radius:16px;overflow:hidden;background:#000}
  .rbd-thumb{position:relative}
  .rbd-thumb img{width:100%;height:100%;object-fit:cover}
  .rbd-thumb.is-plushy img{padding:6px 2px 2px}
  .rbd-thumb img.rbd-plush{position:absolute;right:1px;bottom:1px;width:46%;height:auto;object-fit:contain;filter:drop-shadow(0 3px 5px rgba(0,0,0,.6))}
  .rbd-row-text{grid-area:text;align-self:end;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
  .rbd-row-text strong{font-size:18px;font-weight:700;letter-spacing:-.01em}
  .rbd-row-text em{font-style:normal;font-size:12px;font-weight:700;color:var(--y);background:rgba(255,204,56,.12);padding:4px 9px;border-radius:999px}
  .rbd-row-text small{font-size:13px;color:var(--mute)}
  .rbd-row-price{grid-area:price;align-self:start;display:flex;align-items:baseline;gap:6px}
  .rbd-row-price strong{font-size:26px;font-weight:800;letter-spacing:-.03em}
  .rbd-row-price small{font-size:12.5px;color:var(--mute)}
  .rbd-go{display:flex;margin-top:16px;min-height:62px}
  .rbd-note{text-align:center;margin-top:14px;font-size:12.5px}
}
@media(prefers-reduced-motion:reduce){.rbd-card,.rbd::backdrop{animation:none!important}}

/* phones: sticky Buy Now bar (StickyBuyBar in PluginLandingPage) */
.rbd-sticky{display:none}
@media(max-width:760px){
  .rbd-sticky{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:12px;
    padding:10px 10px 10px 18px;border-radius:22px;background:rgba(20,20,22,.92);border:1px solid #2a2a2e;
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 16px 40px rgba(0,0,0,.55);
    transform:translateY(140%);transition:transform .35s cubic-bezier(.2,.9,.25,1)}
  .rbd-sticky.is-on{transform:none}
  .rbd-sticky span{flex:1;display:flex;flex-direction:column;color:#f4f1ea;font:700 16px/1.2 -apple-system,"SF Pro Text",Inter,Arial,sans-serif}
  .rbd-sticky small{font-size:12.5px;font-weight:500;color:#9b978f}
  .rbd-sticky button{flex:none;min-height:50px;padding:0 24px;border:0;border-radius:999px;cursor:pointer;color:#111;
    font:800 16px/1 -apple-system,"SF Pro Text",Inter,Arial,sans-serif;background:linear-gradient(180deg,#ffd75a,#ffcc38 55%,#f0b01a);
    box-shadow:0 10px 26px rgba(255,204,56,.25)}
}

/* Reset hero-only global element rules inside the restored store modal. */
#rack-purchase{width:auto;box-shadow:none;--y:#f5ffff;--y2:#dce8e8;--ink:#f5f7f6;--mute:#a3acab}
#rack-purchase .rbd-head{position:static;display:block;inset:auto;gap:0}
#rack-purchase small{display:inline;margin:0;color:var(--mute)}
#rack-purchase .rbd-card{background:radial-gradient(120% 70% at 50% 0%,#202929 0%,#0c0e0f 55%)}
#rack-purchase .rbd-plan.is-featured,#rack-purchase .rbd-row.is-picked{background:linear-gradient(180deg,#1d2727,#141416 60%);box-shadow:0 0 28px #dfffff12}
#rack-purchase .rbd-badge{background:#f3ffff;box-shadow:0 0 20px #dfffff35}
#rack-purchase .rbd-kicker i{box-shadow:0 0 12px #deffff80}
#rack-purchase .rbd-row-text em{background:#ffffff15;color:#fff}
#rack-purchase .rbd-art img{display:block}
@media(max-width:760px){#rack-purchase{width:100%;margin:auto 0 0}}
@media(min-width:761px){#rack-purchase{width:max-content;max-width:100vw;margin:auto}}

/* Place the full robot bust into the lower outside corner of each artwork. */
.rbd-art img.rbd-plush{width:52%;right:-18px;bottom:-32px;padding:0}
.rbd-thumb img.rbd-plush{width:70%;right:-9px;bottom:-14px;padding:0}
