/* FastMarket demo badge. Uses the shop's own tokens (--primary,
   --card, --text…) so it follows its light / dark theme. */
.fmd-badge {
  position: fixed; z-index: 2000;
  right: 12px; bottom: calc(var(--nav-h, 62px) + env(safe-area-inset-bottom, 0px) + 10px);
  display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 6px 6px 6px 8px; border-radius: 999px;
  background: var(--card, #fff); color: var(--text, #1a2333);
  border: 1px solid var(--border, #e4eaf4);
  box-shadow: 0 6px 24px rgba(10, 20, 40, .16);
  font: 500 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 900px) { .fmd-badge { bottom: 16px; right: 16px; } }
.fmd-tag {
  flex: none; padding: 3px 7px; border-radius: 999px;
  background: #F5A524; color: #1a1300; font-weight: 800; font-size: 10px; letter-spacing: .08em;
}
.fmd-line { color: var(--text2, #6a7b99); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fmd-btn {
  flex: none; appearance: none; border: 0; cursor: pointer; text-decoration: none;
  padding: 6px 10px; border-radius: 999px; font: inherit; font-weight: 600;
  background: var(--bg, #edf2f9); color: var(--text, #1a2333);
}
.fmd-btn:hover { filter: brightness(.96); }
.fmd-back { background: var(--primary, #1a7ae5); color: #fff; }
@media (max-width: 420px) { .fmd-line { display: none; } }

.fmd-code-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: #B7791F; font-weight: 600; }
