/* BB-104 build standards: maps the vendored bug-report styles onto the Buffet Bliss palette,
   plus the debug modal and environment badge. Uses the page's existing colour variables. */

/* The library's tokens, defined only inside the bug report widget (no global resets). */
.lp-bug{
  --brand:var(--gold,#D4AF37);--brand-dark:#B8892A;
  --bg-2:var(--bg2,#161310);--surface:var(--dk2,#1E1E1E);--border:var(--bdr,rgba(212,175,55,.35));
  --text:var(--txt,#F5EFE0);--text-2:var(--txt2,#D8CBA8);
  --ok:var(--grn,#2D9B5A);--warn:var(--gold,#D4AF37);--err:#E5534B;
  --font-head:'DM Sans',system-ui,sans-serif;
  --tap:44px;--radius:10px;--radius-lg:14px;
}
.lp-bug *{box-sizing:border-box}
.lp-bug input,.lp-bug textarea{font-size:16px;width:100%;font-family:inherit}
.lp-bug textarea{min-height:96px}
.lp-bug input{min-height:44px}
.lp-bug-btn.primary{color:#0C0C0C}
/* Floating report button: a true 44x44 circle (visible control = tap area), bottom right, with safe-area insets.
   Under the item modal (z 200). */
.lp-bug .lp-bug-fab{right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));z-index:60;
  width:44px;min-width:44px;height:44px;min-height:44px;padding:0;justify-content:center;gap:0;
  border-radius:50%}
.lp-bug .lp-bug-fab > span:first-child{width:22px;height:22px}
/* Staff screens have a fixed "Switch view" button (bottom 28px, right 20px, about 36px tall): sit above it. */
.lp-bug.bb-staffscr .lp-bug-fab{bottom:calc(80px + env(safe-area-inset-bottom))}
/* Address screen: its Continue footer (about 85px) sits at the bottom edge, so the button rides above it. */
.lp-bug.bb-footer .lp-bug-fab{bottom:calc(100px + env(safe-area-inset-bottom))}
/* Menu: the last row's "+" must clear the button at the end of the list (list padding 40px -> 72px). */
.menu-body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
/* Basket and payment screens: no floating button, a text link under the totals instead. */
.lp-bug.bb-nofab .lp-bug-fab{display:none}
.bb-report-link{display:block;min-height:44px;min-width:44px;margin:0 8px;padding:0 12px;border:0;background:none;
  color:var(--gold,#D4AF37);font-size:.8rem;font-weight:600;font-family:inherit;text-decoration:underline;text-align:left}
#bEmpty .bb-report-link{margin:12px auto 0}
.lp-bug-sheet{max-height:calc(100dvh - 8px);max-height:min(90vh,calc(100dvh - 8px))}

#bbEnvBadge{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:9000;pointer-events:none;
  padding:2px 10px;border-radius:0 0 8px 8px;background:var(--amb,#C4750A);color:#fff;
  font:700 10px/16px system-ui,sans-serif;letter-spacing:.06em;white-space:nowrap}

#bbDebug{position:fixed;inset:0;z-index:9500;background:rgba(0,0,0,.75);display:flex;align-items:center;justify-content:center;padding:16px}
.bbd-card{width:100%;max-width:340px;background:var(--bg2,#161310);color:var(--txt,#F5EFE0);border:1px solid var(--bdr,rgba(212,175,55,.35));border-radius:14px;padding:20px}
.bbd-title{font-weight:700;font-size:1.05rem;color:var(--gold,#D4AF37);margin-bottom:12px}
.bbd-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--bdr,rgba(212,175,55,.35));font-size:.85rem}
.bbd-row span{color:var(--mut,#8C8270)}
.bbd-row b{text-align:right;word-break:break-word}
.bbd-row b.ok{color:#2D9B5A}
.bbd-row b.bad{color:#E5534B}
.bbd-close{margin-top:14px;width:100%;min-height:44px;border:0;border-radius:10px;background:var(--gold,#D4AF37);color:#0C0C0C;font-weight:700}
