/* minutes-buy.css: the "Buy minutes" button and its box (21 Oct 2026), drawn by assets/minutes-buy.js on /custom and on
   every ready-made board. Every value is written out here, not borrowed from the page, so the box looks the same on a
   page with other tokens. The box is the one /custom has shown since 15 Oct. */

/* ══ THE BUTTON ══ the purchase green of the minutes card (#17803F, white text 5.3:1) */
.mbn-btn{all:unset;box-sizing:border-box;cursor:pointer;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  white-space:nowrap;background:#17803F;color:#fff;font:700 14px/1 'DM Sans',system-ui,sans-serif;border-radius:6px;transition:background .15s}
.mbn-btn:hover{background:#126932}
.mbn-btn:focus-visible{outline:2px solid #126932;outline-offset:2px}
.mbn-btn svg{flex:0 0 auto}
/* /custom: the same height and padding as "View my board" beside it (9px 16px, 1px border), the nav's 12px apart */
/* 22 Oct, Rossi: "double the gap between those two buttons on desktop": 12px became 24px */
.mbn-bar.mbn-on-custom{height:34px;padding:0 16px;margin-right:24px}
@media (max-width:980px){ .mbn-bar.mbn-on-custom{display:none} }
/* a narrow computer: the board's name keeps its place, the button gives way (assets/minutes-buy.js fitCustomBar) */
.mbn-s2 > .mbn-on-custom{width:34px;padding:0}
.mbn-s2 > .mbn-on-custom .mbn-lbl{display:none}
.mbn-s3 > .mbn-on-custom{display:none}
/* a board: a 32px pill-height button just before the account, the account 12px to its right */
.mbn-bar.mbn-on-board{height:32px;padding:0 13px 0 11px;font-size:13px;margin-left:auto}
#topbar .mbn-on-board + #topbar-user{margin-left:12px}
/* 23 Oct, Rossi, a red arrow between the button and his picture on a board: "double the gap where I pointed the red
   arrow", on a computer. 12px became 24px, the same gap he asked for on /custom the day before. It sits here, before
   the shrinking states below, so a full bar can still pull the account to the right edge. */
@media (min-width:769px){ #topbar .mbn-on-board + #topbar-user{margin-left:24px} }
body.view-ai-answers #topbar-suggest + .mbn-on-board{margin-left:10px}
#topbar.mbn-s1 .tu-name{display:none}
#topbar.mbn-s2 .mbn-on-board{width:32px;padding:0}
#topbar.mbn-s2 .mbn-on-board .mbn-lbl{display:none}
#topbar.mbn-s3 .mbn-on-board{display:none}
#topbar.mbn-s3 #topbar-user{margin-left:auto}
@media (max-width:768px){ .mbn-bar.mbn-on-board{display:none} }

/* the phone menus: on the first row under "Your boards", on the right, with room on both sides */
.mbn-mrow{display:flex;align-items:center;gap:12px;padding-right:8px}
.mbn-mrow > a{flex:1 1 auto;min-width:0}
.mbn-menu{height:36px;padding:0 14px;font-size:13.5px;border-radius:8px}
.mbn-mrow-sheet{padding-right:12px}
.mbn-msolo{padding:8px 12px 4px}
.mbn-msolo .mbn-menu{width:100%;height:42px}

/* ══ THE BOX ══ scrim, 18px corners, the pop */
@keyframes mbFade{from{opacity:0}to{opacity:1}}
@keyframes mbPop{from{opacity:0;transform:translate(-50%,-46%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.mb-scrim{position:fixed;inset:0;z-index:2147483100;background:rgba(20,24,38,.62);backdrop-filter:blur(2px);animation:mbFade .2s ease both}
.mb{position:fixed;z-index:2147483101;top:50%;left:50%;transform:translate(-50%,-50%);width:min(640px,calc(100vw - 32px));box-sizing:border-box;
  max-height:calc(100vh - 40px);overflow-y:auto;background:#fff;border-radius:18px;
  box-shadow:0 24px 60px rgba(14,18,32,.22),0 6px 12px rgba(14,18,32,.08);
  padding:22px 24px 20px;animation:mbPop .28s cubic-bezier(.2,.9,.3,1.1) both;color:#1a1a1a;font-family:'DM Sans',system-ui,sans-serif;text-align:left}
.mb-scrim[hidden],.mb[hidden],.mb [hidden]{display:none !important}
body.mb-on{overflow:hidden}
.mb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.mb-eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#E89F1F;margin-bottom:7px}
.mb-title{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.25;color:#1a1a1a}
.mb-close{background:none;border:none;font-size:22px;color:#B8BCCC;cursor:pointer;line-height:1;padding:2px 4px;transition:color .15s}
.mb-close:hover{color:#B83246}
.mb-sub{font-size:13.5px;color:#475070;margin:8px 0 0;line-height:1.5}
.mb-sub b{color:#1a1a1a}
.mb-packs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 18px}
.mb-pack{position:relative;display:flex;flex-direction:column;gap:6px;text-align:left;background:#fff;border:1.5px solid #D4D2C9;
  border-radius:14px;padding:20px 16px 16px;cursor:pointer;font-family:'DM Sans',system-ui,sans-serif;color:#1a1a1a;transition:border-color .15s,box-shadow .15s}
.mb-pack:hover{border-color:#344072}
.mb-pack.sel{border-color:#344072;box-shadow:0 0 0 3px #E5E8F2;background:#FBFBFE}
.mb-pack:focus-visible{outline:2px solid #2F7DD1;outline-offset:2px}
.mb-tag{position:absolute;top:-10px;left:14px;background:#FFB83B;color:#344072;font:700 10.5px/1 'DM Sans',system-ui,sans-serif;
  letter-spacing:.04em;padding:5px 9px;border-radius:999px}
.mb-m{font:700 16px/1.2 'DM Sans',system-ui,sans-serif}
.mb-p{font:800 26px/1.1 'DM Sans',system-ui,sans-serif;color:#344072}
.mb-u{font:500 12.5px/1.4 'DM Sans',system-ui,sans-serif;color:#475070}
.mb-err{margin:0 0 12px;font-size:13px;color:#B83246}
.mb-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid #e5e5e5}
.mb-note{margin:0;font-size:12px;color:#888;line-height:1.5}
.mb-go{flex:0 0 auto;appearance:none;border:none;cursor:pointer;font:700 14px/1 'DM Sans',system-ui,sans-serif;padding:13px 18px;border-radius:6px;
  background:#344072;color:#FFB83B;display:inline-flex;align-items:center;gap:8px;transition:background .15s}
.mb-go:hover:not(:disabled){background:#3F4D88}
.mb-go:disabled{opacity:.7;cursor:wait}
@media (max-width:560px){
  .mb{padding:20px 18px 18px}
  /* on a phone the name and the price share a line (they fit), the price per minute under the name */
  .mb-packs{grid-template-columns:1fr;gap:16px;margin:20px 0 16px}
  .mb-pack{display:grid;grid-template-columns:1fr auto;grid-template-areas:"m p" "u p";align-items:center;column-gap:14px;row-gap:4px;padding:16px}
  .mb-m{grid-area:m} .mb-u{grid-area:u} .mb-p{grid-area:p;font-size:24px}
  .mb-foot{flex-direction:column-reverse;align-items:stretch}
  .mb-go{justify-content:center}
}
@media (prefers-reduced-motion:reduce){ .mb,.mb-scrim{animation:none} }
