/* Confirmation receipt only; never changes page/account/admin styling. */
.fx-funding-success {
  --receipt-bg: #141416;
  --receipt-surface: #1c1c20;
  --receipt-line: #333338;
  --receipt-text: #f5f4f6;
  --receipt-muted: #b3b0bb;
  --receipt-green: #6ad8aa;
  --receipt-green-bg: #16392e;
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 11000;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--receipt-line);
  border-radius: 22px;
  background: var(--receipt-bg);
  color: var(--receipt-text);
  box-shadow: 0 20px 80px #0007;
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
  line-height: 1.5;
}
.fx-funding-success:not([open]) { display: none; }
.fx-funding-success[open] { animation: fx-funding-enter .2s ease-out; }
.fx-funding-success::backdrop { background: rgb(0 0 0 / .68); backdrop-filter: blur(4px); }
.fx-funding-success[data-fallback="true"] { outline: 100vmax solid rgb(0 0 0 / .68); }
html.light .fx-funding-success {
  --receipt-bg: #fff;
  --receipt-surface: #f5f5f7;
  --receipt-line: #dfdfe5;
  --receipt-text: #24242c;
  --receipt-muted: #62616e;
  --receipt-green: #167657;
  --receipt-green-bg: #e2f4eb;
  color-scheme: light;
}
.fx-funding-success, .fx-funding-success * { font-family: LINESeed, 'LINE Seed Sans TH', system-ui, sans-serif; }
.fx-funding-success * { box-sizing: border-box; }
.fx-funding-success :is(h2,p,dl,dd) { margin: 0; }
.fx-funding-success__panel { position: relative; display: grid; justify-items: center; gap: 10px; padding: 30px 24px 24px; }
.fx-funding-success__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--receipt-muted);
  background: transparent;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}
.fx-funding-success__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 2px; background: var(--receipt-green-bg); color: var(--receipt-green); }
.fx-funding-success__check svg { width: 34px; height: 34px; }
.fx-funding-success h2 { font-size: 1.5rem; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.fx-funding-success__channel { color: var(--receipt-muted); font-size: .875rem; text-align: center; }
.fx-funding-success__summary { display: grid; gap: 12px; width: 100%; padding: 16px; margin-top: 6px !important; border: 1px solid var(--receipt-line); border-radius: 14px; background: var(--receipt-surface); }
.fx-funding-success__summary > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; min-width: 0; }
.fx-funding-success__summary dt { color: var(--receipt-muted); font-size: .875rem; }
.fx-funding-success__summary dd { font-variant-numeric: tabular-nums; font-size: 1rem; overflow-wrap: anywhere; }
.fx-funding-success__summary .fx-funding-success__added { color: var(--receipt-green); font-weight: 700; }
.fx-funding-success__summary .fx-funding-success__total { padding-top: 12px; border-top: 1px solid var(--receipt-line); }
.fx-funding-success__total dd { font-size: 1.5rem; font-weight: 700; }
.fx-funding-success__total dt { color: var(--receipt-text); }
.fx-funding-success__equation { font-variant-numeric: tabular-nums; font-size: .8125rem; text-align: center; color: var(--receipt-muted); overflow-wrap: anywhere; }
.fx-funding-success__equation span { margin-inline: 3px; }
.fx-funding-success__equation strong { color: var(--receipt-text); font-weight: 400; }
.fx-funding-success__note { color: var(--receipt-muted); text-align: center; font-size: .8125rem; }
.fx-funding-success__confirm { width: 100%; min-height: 48px; margin-top: 8px; padding: 10px 16px; border: 0; border-radius: 12px; background: var(--receipt-green); color: #102a20; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
html.light .fx-funding-success__confirm { color: #fff; }
.fx-funding-success button:focus-visible { outline: 2px solid var(--receipt-green); outline-offset: 3px; }
@media (hover: hover) { .fx-funding-success__close:hover { background: var(--receipt-surface); } .fx-funding-success__confirm:hover { filter: brightness(1.08); } }
@media (max-width: 360px) { .fx-funding-success__panel { padding-inline: 18px; } .fx-funding-success__summary { padding: 12px; } }
@keyframes fx-funding-enter { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx-funding-success[open] { animation: none; } }
