/* Web money demo 共用元件樣式；原封不動複製到 <站>/assets/ */
.wmf-btn {
  position: fixed; z-index: 9000;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  padding: 10px 14px; border: 0; border-radius: 999px;
  background: var(--wm-accent, #222); color: #fff;
  font: 600 13px/1 system-ui, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22); cursor: pointer;
}
.wmf-btn:focus-visible, .wmf-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--wm-accent, #222); }
.wmf-panel {
  position: fixed; z-index: 9001;
  right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 52px);
  width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto;
  background: #fff; color: #1a1a1a; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  font: 14px/1.5 system-ui, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.wmf-panel[hidden] { display: none; }
.wmf-head { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #eee; }
.wmf-plan { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #f1f1f1; }
.wmf-close { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f4f4f4; font-size: 20px; line-height: 1; cursor: pointer; color: #1a1a1a; }
.wmf-list { list-style: none; margin: 0; padding: 6px 16px; }
.wmf-list li { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.wmf-code { grid-row: span 2; font: 600 12px/1.6 ui-monospace, Consolas, monospace; color: #666; }
.wmf-name a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.wmf-price { font-size: 12px; color: #666; }
.wmf-reset { display: block; margin: 8px 16px 0; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; background: #fafafa; color: #1a1a1a; font: 13px/1.2 inherit; cursor: pointer; }
.wmf-note { margin: 0; padding: 10px 16px 14px; font-size: 12px; color: #777; }
@media print { .wmf-btn, .wmf-panel { display: none !important; } }
