/* ============================================================
   Flashi Connect widget
   Fonts: "Sons"
   ============================================================ */

@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Thin.38a2c4ca.ttf") format("truetype");      font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Light.c6e4ecb5.ttf") format("truetype");     font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Regular.a9422c81.ttf") format("truetype");   font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Medium.7170defe.ttf") format("truetype");    font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Semibold.149a0dc9.ttf") format("truetype");  font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Sons"; src:url("assets/fonts/Sons-Bold.b4d846cf.ttf") format("truetype");      font-weight:700; font-style:normal; font-display:swap; }

/* Open Sauce One — the brand typeface used by Polymarket (OFL, bundled locally) */
@font-face { font-family:"Open Sauce One"; src:url("assets/fonts/OpenSauceOne-600.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Open Sauce One"; src:url("assets/fonts/OpenSauceOne-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }

/* ---------- design tokens (exact dark theme) ---------- */
:root{
  --uf-dialog-bg:#0a0a0a;                      /* monochrome modal       */
  --uf-card:#121212;                           /* row / control surface  */
  --uf-card-hover:#1c1c1c;                     /* row hover              */
  --uf-border:rgba(255,255,255,.09);           /* hairline               */
  --uf-border-strong:rgba(255,255,255,.2);     /* hover hairline         */
  --uf-border-secondary:rgba(255,255,255,.12); /* modal edge             */
  --uf-fg:#ffffff;                             /* white text             */
  --uf-muted:#9a9a9a;                          /* mid gray               */
  --uf-icon:#d6d6d6;                           /* light row icons        */
  --uf-blue:#ffffff;                           /* accent = white         */
  --uf-green:#e8e8e8;                          /* success (mono)         */
  --uf-amber:#bdbdbd;                          /* unverified (mono)      */
  --uf-muted-btn:#1a1a1a;                      /* disabled button        */
  --uf-accent:#ffffff;                         /* primary action (themeable) */
  --uf-accent-fg:#000000;                      /* text on accent         */
  --uf-code-bg:#000000;                        /* address / code surface */
  --uf-error:#f87171;                          /* error text             */
  --uf-radius-lg:8px;                          /* card / button radius   */
  --uf-radius:0.375rem;                          /* rounded-lg             */
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{ height:100%; }
body{
  margin:0;
  font-family:"Sons",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif;
  background:#18181b;
  color:var(--uf-fg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:76px 24px 24px;
}

/* every widget element gets Sons, just like the real build ([class*=uf-]) */
[class*="uf-"]{ font-family:var(--uf-font,"Sons"),-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Helvetica Neue",sans-serif; }

img{ display:block; }
button{ font-family:inherit; background:none; border:none; padding:0; margin:0; cursor:pointer; color:inherit; }

/* ============================================================
   Dialog shell
   ============================================================ */
.uf-dialog{
  position:relative;
  width:400px;            /* fixed — the widget's size/aspect never changes; it zoom-fits on narrow screens (see fitWidget in app.js) */
  max-width:400px;
  background-color:var(--uf-dialog-bg);
  border:1px solid var(--uf-border-secondary);
  border-radius:10px;
  padding:24px;
  overflow:hidden;
  letter-spacing:-.011em;
  box-shadow:0 24px 70px -24px rgba(0,0,0,.7);
  color:var(--uf-fg);
  animation:uf-pop .28s cubic-bezier(.16,1,.3,1) both;
}
@keyframes uf-pop{
  from{ opacity:0; transform:translateY(8px) scale(.96); }
  to  { opacity:1; transform:translateY(0)   scale(1);   }
}

/* ---------- header ---------- */
.uf-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-bottom:24px;
}
.uf-header-spacer{ width:20px; height:20px; visibility:hidden; }
.uf-header-titles{ display:flex; flex-direction:column; align-items:center; }
.uf-title{
  margin:0;
  font-family:var(--uf-font,"Sons"),-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:17px;
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.01em;
  text-align:center;
  color:var(--uf-fg);
}
.uf-subtitle{
  font-size:12px;
  font-weight:500;
  line-height:1rem;
  margin-top:5px;
  color:var(--uf-muted);
}
.uf-iconbtn{
  display:flex; align-items:center; justify-content:center;
  width:28px; height:28px;
  border-radius:var(--uf-radius);
  color:var(--uf-fg);
  transition:background-color .15s ease;
}
.uf-iconbtn:hover{ background-color:var(--uf-card-hover); }
.uf-iconbtn svg{ width:20px; height:20px; }

/* ============================================================
   Body + screen transition (fluid fade · rise · settle)
   ============================================================ */
.uf-body{ display:flex; flex-direction:column; gap:6px; }

.uf-stage{
  position:relative;
  background-color:transparent;
  transition:min-height .42s cubic-bezier(.22,1,.36,1);
}
.uf-screen{
  transition:opacity .3s ease, transform .42s cubic-bezier(.22,1,.36,1);
  opacity:0;
  transform:translateY(9px) scale(.985);
  pointer-events:none;
  position:absolute;
  inset:0;
}
.uf-screen.is-active{
  opacity:1;
  transform:none;
  pointer-events:auto;
  position:relative;
  inset:auto;
}

/* ---------- footer (Powered by flashi) ---------- */
.uf-footer{ padding-top:12px; }
.uf-powered{
  display:flex; align-items:center; justify-content:center; gap:6px;
  flex-shrink:0;
  text-decoration:none;
  line-height:1;
}
.uf-powered-by{ font-size:12px; color:var(--uf-muted); }
.uf-flashi{ display:inline-flex; align-items:center; gap:3px; }
.uf-flashi-mark{ width:21px; height:21px; display:block; color:var(--uf-fg); overflow:visible; }
.uf-flashi[data-flow]{ cursor:pointer; }
.uf-flashi-mark .spark{ transform-box:view-box; transform-origin:12px 12px; }
.uf-flashi-word{
  font-family:"Open Sauce One",-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:16px; font-weight:700; letter-spacing:-.035em;
  color:var(--uf-fg);
}

/* ============================================================
   Method rows (initial screen)
   ============================================================ */
.uf-methods{ display:flex; flex-direction:column; }
.uf-methods > * + *{ margin-top:8px; }

.uf-method{
  width:100%;
  position:relative; overflow:hidden;   /* clip the sliding content */
  display:flex; align-items:center; justify-content:space-between;
  padding:12px;
  background-color:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:8px;
  transition:background-color .15s ease, border-color .15s ease;
}
.uf-method:hover{ background-color:var(--uf-card-hover); border-color:var(--uf-border-strong); }
.uf-method-left{ display:flex; align-items:center; gap:12px; }
.uf-method-ic{ border-radius:var(--uf-radius); padding:8px; display:flex; }
.uf-method-ic svg{ width:20px; height:20px; color:var(--uf-icon); }
.uf-method-text{ text-align:left; }
.uf-method-title{ font-size:14px; font-weight:500; letter-spacing:-.01em; margin-bottom:2px; color:var(--uf-fg); }
.uf-method-sub{ font-size:12px; font-weight:400; color:var(--uf-muted); }
/* Hover reveal — on hover the brand cluster slides right + fades out while a
   chevron slides in from the left + fades in, pinned to the right edge.
   Timing/transforms mirror the embedded-wallet row interaction:
   300ms cubic-bezier(.4,0,.2,1); content +24px; arrow -40px -> 0. */
.uf-method-right{
  display:flex; align-items:center; gap:8px;
  transition:transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1);
}
.uf-method:hover .uf-method-right{ transform:translateX(24px); opacity:0; }
.uf-method-arrow{
  position:absolute; right:12px; top:50%;
  width:24px; height:24px; pointer-events:none;
  transform:translate(-40px,-50%); opacity:0;
  transition:transform .3s cubic-bezier(.4,0,.2,1), opacity .3s cubic-bezier(.4,0,.2,1);
}
.uf-method:hover .uf-method-arrow{ transform:translate(0,-50%); opacity:1; }
.uf-chev{ width:16px; height:16px; color:var(--uf-muted); transition:color .15s ease; }

/* overlapping network badges */
.uf-badge-stack{ display:flex; }
.uf-badge-stack > * + *{ margin-left:-8px; }
.uf-badge-stack img{
  width:20px; height:20px;
  border-radius:9999px;
  border:2px solid var(--uf-card);
  background:var(--uf-card);
}
/* card brand logos */
.uf-cards{ display:flex; align-items:center; gap:6px; }
.uf-cards img{ width:32px; height:32px; border-radius:4px; }
/* exchange logos — rounded-square tiles like the wallet stack; the circular
   brand marks are scaled past the tile corners so they fill it edge to edge */
.uf-exlogos{ display:flex; align-items:center; gap:4px; }
.uf-ex-tile{
  width:22px; height:22px; border-radius:6px; overflow:hidden;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.uf-ex-tile img{ width:32px; height:32px; max-width:none; }
/* Coinbase's C reads oversized when bled — tile takes its flat brand blue
   instead, with the mark shrunk inside it */
.uf-ex-tile-cb{ background:#0052ff; }
.uf-ex-tile-cb img{ width:24px; height:24px; }
/* wallet logos — uniform square tiles, spaced apart (not overlapping) */
.uf-wallet-stack{ display:flex; align-items:center; gap:4px; }
.uf-wallet-stack img{ width:18px; height:18px; object-fit:contain; border-radius:5px; }

/* ============================================================
   Exchange list screen
   ============================================================ */
.uf-list{ display:flex; flex-direction:column; gap:8px; padding-top:8px; min-height:200px; }
.uf-ex-row{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px;
  background-color:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:8px;
  transition:background-color .15s ease, border-color .15s ease;
}
.uf-ex-row:not(:disabled):hover{ background-color:var(--uf-card-hover); border-color:var(--uf-border-strong); }
.uf-ex-row:disabled{ opacity:.45; cursor:not-allowed; }
.uf-ex-left{ display:flex; align-items:center; gap:12px; }
.uf-ex-ic{ width:40px; height:40px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.uf-ex-ic img{
  width:40px; height:40px; border-radius:9999px;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
  transition:transform .15s ease;
}
.uf-ex-row:not(:disabled):hover .uf-ex-ic img{ transform:scale(1.05); }
.uf-ex-ic img.gray{ filter:grayscale(1); }
.uf-ex-text{ text-align:left; }
.uf-ex-name{ font-size:14px; font-weight:500; color:var(--uf-fg); }
.uf-ex-row .uf-chev{ transition:color .15s ease, transform .15s ease; }
.uf-ex-row:not(:disabled):hover .uf-chev{ color:var(--uf-fg); transform:translateX(2px); }
/* rows settle in one after another when the screen opens
   (no `to` opacity — disabled rows must land on their own .45) */
@keyframes uf-row-in{ from{ opacity:0; transform:translateY(6px); } }
.uf-screen.is-active .uf-ex-row{ animation:uf-row-in .3s ease both; }
.uf-screen.is-active .uf-ex-row:nth-child(2){ animation-delay:.05s; }
.uf-screen.is-active .uf-ex-row:nth-child(3){ animation-delay:.1s; }
.uf-soon{
  display:inline-flex; align-items:center; gap:4px;
  font-size:11px; font-weight:500; white-space:nowrap; color:var(--uf-muted);
  background:rgba(255,255,255,.06);
  border:1px solid var(--uf-border);
  padding:3px 9px 3px 7px; border-radius:9999px;
}
.uf-soon-ic{ width:11px; height:11px; flex-shrink:0; }

/* ============================================================
   Card screen
   ============================================================ */
.uf-card-screen{ min-height:420px; }
.uf-cur-wrap{ display:flex; justify-content:center; margin-bottom:16px; padding-top:16px; }
.uf-cur-pill{
  display:flex; align-items:center; gap:6px;
  padding:6px 12px;
  background-color:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:8px;
  transition:background-color .15s ease, border-color .15s ease;
}
.uf-cur-pill:hover{ background-color:var(--uf-card-hover); }
.uf-cur-pill img{ width:16px; height:16px; border-radius:9999px; }
.uf-cur-pill span{ font-size:14px; font-weight:500; color:var(--uf-fg); }
.uf-cur-pill .uf-chev-d{ width:14px; height:14px; color:var(--uf-muted); }

.uf-amount-wrap{ text-align:center; margin-bottom:16px; padding:0 32px; }
.uf-amount{
  width:100%;
  background:transparent; border:none; outline:none; padding:0;
  text-align:center;
  font-weight:400;
  font-size:2.9rem;
  color:var(--uf-fg);
  caret-color:var(--uf-fg);
}
.uf-amount::placeholder{ color:var(--uf-fg); }

.uf-quick{ display:flex; gap:12px; justify-content:center; }
.uf-quick button{
  width:96px; padding:8px 0;
  background-color:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:8px;
  font-size:14px; font-weight:500;
  color:var(--uf-fg);
  transition:background-color .15s ease, border-color .15s ease;
}
.uf-quick button:hover{ background-color:var(--uf-card-hover); }

.uf-provider{ margin-top:24px; margin-bottom:24px; }
.uf-provider-label{ font-size:12px; font-weight:500; color:var(--uf-muted); margin-bottom:8px; padding:0 4px; }
.uf-provider-box{
  width:100%; padding:16px; text-align:left;
  background-color:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:8px;
}
.uf-skeleton{ animation:uf-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.uf-sk-line{ height:12px; border-radius:4px; width:112px; margin-bottom:12px; background-color:var(--uf-card-hover); }
.uf-sk-row{ display:flex; align-items:center; gap:8px; }
.uf-sk-dot{ width:32px; height:32px; border-radius:9999px; background-color:var(--uf-card-hover); }
.uf-sk-line2{ height:16px; border-radius:4px; width:128px; background-color:var(--uf-card-hover); }
@keyframes uf-pulse{ 50%{ opacity:.5; } }

.uf-continue{
  width:100%; padding:16px 0;
  font-weight:600; font-size:16px; letter-spacing:-.01em;
  border-radius:8px;
  background-color:var(--uf-blue);
  color:#fff;
  transition:opacity .15s ease, background-color .15s ease;
}
.uf-continue:hover{ opacity:.92; }
.uf-continue:disabled{
  background-color:var(--uf-muted-btn);
  color:var(--uf-muted);
  opacity:.5;
  cursor:not-allowed;
}

/* ============================================================
   Transfer-crypto screen
   ============================================================ */
.uf-crypto{ min-height:0; }   /* was 420px — forced phantom height on short screens */
.uf-grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.uf-field-label{ font-size:14px; color:var(--uf-muted); margin-bottom:8px; display:flex; align-items:baseline; }
.uf-field-label .min{ color:var(--uf-muted); font-weight:500; margin-left:auto; }
.uf-select{
  width:100%;
  display:flex; align-items:center; gap:8px;
  padding:12px;
  background-color:var(--uf-card);
  border-radius:8px;
  transition:background-color .15s ease;
}
.uf-select:hover{ background-color:var(--uf-card-hover); }
.uf-select img{ width:24px; height:24px; border-radius:9999px; }
.uf-select .nm{ font-size:16px; color:var(--uf-fg); flex:1; text-align:left; }
.uf-select .uf-chev-d{ width:18px; height:18px; color:var(--uf-muted); }

.uf-intent{ text-align:center; color:var(--uf-muted); font-size:14px; margin:24px 0 14px; }
.uf-qr-wrap{ display:flex; justify-content:center; }
.uf-qr{
  position:relative;
  width:230px; height:230px;
  background:#fff;
  border-radius:8px;
  padding:6px;
}
.uf-qr svg{ width:100%; height:100%; display:block; }
.uf-qr-logo{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:46px; height:46px; border-radius:9999px;
  background:#fff; padding:5px;
  display:flex; align-items:center; justify-content:center;
}
.uf-qr-logo img{ width:100%; height:100%; }
.uf-addr{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:14px; }
.uf-addr span{ font-size:18px; color:var(--uf-fg); }
.uf-addr svg{ width:18px; height:18px; color:var(--uf-muted); cursor:pointer; }

.uf-proc{
  margin-top:8px;
  background-color:var(--uf-card);
  border-radius:8px;
  overflow:hidden;
}
.uf-proc-head{
  width:100%;
  display:flex; align-items:center; gap:10px;
  padding:13px 14px;
  text-align:left; font-size:15px; color:var(--uf-muted);
}
.uf-proc-ic{
  flex-shrink:0; width:28px; height:28px;
  display:flex; align-items:center; justify-content:center;
  border-radius:9999px;
  background:rgba(255,255,255,.05);
  color:var(--uf-blue);
}
.uf-proc-ic svg{ width:15px; height:15px; }
.uf-proc-label{ color:var(--uf-muted); white-space:nowrap; }
.uf-proc-val{ color:var(--uf-fg); font-weight:500; white-space:nowrap; }
.uf-proc-head .uf-proc-val{ margin-right:auto; }
.uf-proc-chev{ flex-shrink:0; width:18px; height:18px; color:var(--uf-muted); transition:transform .22s ease; }
.uf-proc.is-open .uf-proc-chev{ transform:rotate(180deg); }
.uf-proc-more{
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .26s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.uf-proc.is-open .uf-proc-more{ max-height:240px; opacity:1; }
.uf-proc-item{
  display:flex; align-items:center; gap:10px;
  padding:0 14px 13px; font-size:15px; color:var(--uf-muted);
}
.uf-proc-copy{ flex-shrink:0; margin-left:auto; width:16px; height:16px; color:var(--uf-muted); cursor:pointer; }
.uf-proc-copy:hover{ color:var(--uf-fg); }
.uf-proc-link{ color:var(--uf-blue); text-decoration:none; font-weight:500; }
.uf-proc-link:hover{ text-decoration:underline; }

.uf-links{ display:flex; align-items:center; gap:8px; margin-top:16px; }
.uf-checking{
  display:inline-flex; align-items:center; gap:7px;
  font-size:14px; color:var(--uf-muted);
  opacity:0; transition:opacity .25s ease;
}
.uf-checking.is-on{ opacity:1; }
.uf-spin-ic{ width:15px; height:15px; color:var(--uf-blue); animation:uf-spin .9s linear infinite; }
.uf-links a{ margin-left:auto; color:var(--uf-blue); text-decoration:none; font-size:14px; }
.uf-links a + a{ margin-left:8px; }
.uf-links a:hover{ text-decoration:underline; }
.uf-links .sep{ color:var(--uf-muted); }

/* ============================================================
   Connecting screen (after picking an exchange)
   ============================================================ */
.uf-connect{
  min-height:200px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:24px 8px 8px;
}
.uf-connect-logo{
  width:64px; height:64px; border-radius:9999px;
  position:relative; margin-bottom:20px;
}
.uf-connect-logo img{ width:64px; height:64px; border-radius:9999px; }
.uf-connect-logo img.uf-logo-pad{ background:#fff; object-fit:contain; padding:9px; }
.uf-connect-spin{
  position:absolute; inset:-6px;
  border-radius:9999px;
  border:2px solid transparent;
  border-top-color:var(--uf-blue);
  animation:uf-spin 1s linear infinite;
}
@keyframes uf-spin{ to{ transform:rotate(1turn); } }
.uf-connect h3{ margin:0 0 8px; font-size:16px; font-weight:500; color:var(--uf-fg); }
.uf-connect p{ margin:0; font-size:13px; color:var(--uf-muted); max-width:260px; }

/* ============================================================
   Currency picker — dimmed backdrop + compact panel (card screen)
   ============================================================ */
.uf-picker{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  background-color:rgba(8,8,10,.5);
  opacity:0; pointer-events:none;
  transition:opacity .18s ease;
  z-index:5;
}
.uf-picker.is-open{ opacity:1; pointer-events:auto; }
.uf-picker-panel{
  display:flex; flex-direction:column;
  max-height:336px;
  padding:8px;
  background-color:var(--uf-dialog-bg);
  border:1px solid var(--uf-border-secondary);
  border-radius:10px;
  box-shadow:0 18px 40px -12px rgba(0,0,0,.6);
  transform:translateY(-6px);
  transition:transform .18s ease;
}
.uf-picker.is-open .uf-picker-panel{ transform:translateY(0); }
.uf-picker-search{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; margin-bottom:8px;
  background-color:var(--uf-card);
  border-radius:8px;
}
.uf-picker-search svg{ width:16px; height:16px; color:var(--uf-muted); }
.uf-picker-search input{
  flex:1; background:transparent; border:none; outline:none;
  color:var(--uf-fg); font-size:14px;
}
.uf-picker-search input::placeholder{ color:var(--uf-muted); }
.uf-picker-list{ flex:1; min-height:0; display:flex; flex-direction:column; gap:4px; overflow-y:auto; scrollbar-width:none; }
.uf-picker-list::-webkit-scrollbar{ display:none; }
.uf-picker-item{
  display:flex; align-items:center; gap:10px;
  padding:10px; border-radius:10px;
  transition:background-color .15s ease;
}
.uf-picker-item:hover{ background-color:var(--uf-card); }
.uf-picker-item.is-sel{ background-color:var(--uf-card); }
.uf-picker-item img{ width:22px; height:22px; border-radius:9999px; }
.uf-picker-item .code{ font-size:14px; font-weight:500; color:var(--uf-fg); }
.uf-picker-item .name{ font-size:12px; color:var(--uf-muted); margin-left:auto; }

/* ============================================================
   Token / chain dropdown — anchored under the selector, same width
   ============================================================ */
.uf-sel{ position:relative; }
.uf-dd{
  position:absolute; top:calc(100% + 6px); left:0; right:auto;
  width:max-content; min-width:100%; max-width:230px;
  z-index:20;
  padding:6px;
  background-color:var(--uf-dialog-bg);
  border:1px solid var(--uf-border-secondary);
  border-radius:8px;
  box-shadow:0 18px 40px -12px rgba(0,0,0,.6);
  opacity:0; pointer-events:none; transform:translateY(-6px);
  transition:opacity .15s ease, transform .15s ease;
}
.uf-dd.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
.uf-dd-list{ max-height:248px; overflow-y:auto; scrollbar-width:none; display:flex; flex-direction:column; gap:2px; }
.uf-dd-list::-webkit-scrollbar{ display:none; }
.uf-dd-item{
  width:100%; display:flex; align-items:center; gap:6px;
  padding:7px 8px; border-radius:8px; text-align:left;
  transition:background-color .15s ease;
}
.uf-dd-item:hover{ background-color:var(--uf-card); }
.uf-dd-item.is-sel{ background-color:var(--uf-card); }
.uf-dd-ck-slot{ width:13px; flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--uf-fg); }
.uf-dd-ck{ width:11px; height:11px; }
.uf-dd-item img{ width:20px; height:20px; border-radius:9999px; flex-shrink:0; }
.uf-dd-sym{ flex:1; font-size:13px; color:var(--uf-fg); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uf-dd-min{ padding-left:4px; font-size:12px; font-weight:500; color:var(--uf-muted); flex-shrink:0; }

/* toast slot (matches real widget's absolute toast region) */
.uf-toast-slot{ position:absolute; bottom:0; left:0; right:0; z-index:9999; pointer-events:none; }

/* ============================================================
   Merchant configuration panel (outside the widget)
   ============================================================ */
body{ flex-wrap:wrap; gap:24px; align-content:center; }

.fl-config{
  width:100%;
  max-width:320px;
  background:var(--uf-dialog-bg);
  border:1px solid var(--uf-border-secondary);
  border-radius:10px;
  padding:22px;
  color:var(--uf-fg);
  box-shadow:0 24px 70px -24px rgba(0,0,0,.7);
  font-family:"Sons",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto",sans-serif;
  letter-spacing:-.011em;
}
.fl-config h2{ margin:0 0 6px; font-size:16px; font-weight:600; }
.fl-config-sub{ margin:0 0 16px; font-size:12.5px; line-height:1.45; color:var(--uf-muted); }

.fl-field{ display:block; margin-bottom:12px; }
.fl-field span{ display:block; font-size:11.5px; font-weight:500; color:var(--uf-muted); margin-bottom:5px; }
.fl-field input,.fl-field select{
  width:100%;
  background:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:var(--uf-radius);
  color:var(--uf-fg);
  font:inherit;
  font-size:13px;
  padding:9px 10px;
  outline:none;
}
.fl-field input:focus,.fl-field select:focus{ border-color:var(--uf-border-strong); }
.fl-field select{ appearance:auto; }

.fl-save{
  width:100%;
  background:var(--uf-blue);
  color:#fff;
  font-weight:600;
  font-size:13.5px;
  border-radius:var(--uf-radius);
  padding:10px 0;
  margin-top:2px;
  transition:filter .15s;
}
.fl-save:hover{ filter:brightness(1.1); }

.fl-config-status{ margin-top:10px; font-size:12px; line-height:1.45; color:var(--uf-green); min-height:16px; }
.fl-config-status.err{ color:#f87171; }
.fl-config-warn{
  margin-top:12px;
  font-size:11.5px;
  line-height:1.5;
  color:var(--uf-amber);
  background:rgba(245,166,35,.07);
  border:1px solid rgba(245,166,35,.18);
  border-radius:var(--uf-radius);
  padding:9px 10px;
}

/* live QR + destination note inside the widget */
#uf-qr-svg svg{ width:100%; height:100%; }
.uf-dest-note{
  text-align:center;
  font-size:11.5px;
  color:var(--uf-muted);
  margin:8px 0 0;
  min-height:14px;
}
.uf-dest-note b{ color:var(--uf-fg); font-weight:500; }
.uf-checking.is-done{ color:var(--uf-green); }
.uf-checking.is-done .uf-spin-ic{ display:none; }
.uf-checking.is-err{ color:#f87171; }
.uf-checking.is-err .uf-spin-ic{ display:none; }

/* ============================================================
   Wallet deposit screen
   ============================================================ */
.uf-w-chip{
  display:flex; align-items:center; gap:8px;
  background:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:var(--uf-radius);
  padding:8px 12px;
  margin-bottom:14px;
  font-size:12.5px;
}
.uf-w-dot{ width:8px; height:8px; border-radius:50%; background:var(--uf-green); flex:none; }
.uf-w-account{ color:var(--uf-fg); font-weight:500; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.uf-w-disconnect{ color:var(--uf-muted); font-size:11.5px; }
.uf-w-disconnect:hover{ color:var(--uf-fg); }

.uf-w-amountrow{
  display:flex; align-items:center; gap:10px;
  background:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:var(--uf-radius);
  padding:11px 12px;
  margin-top:6px;
}
.uf-w-amountrow input{
  flex:1; min-width:0;
  background:none; border:none; outline:none;
  color:var(--uf-fg);
  font:inherit; font-size:16px; font-weight:500;
}
.uf-w-amountrow span{ color:var(--uf-muted); font-size:13px; font-weight:500; }

.uf-w-quote{
  min-height:16px;
  margin:8px 2px 0;
  font-size:12px;
  color:var(--uf-muted);
}
.uf-w-quote b{ color:var(--uf-fg); font-weight:500; }
.uf-w-quote.err{ color:#f87171; }

.uf-w-btn{
  width:100%;
  margin-top:12px;
  background:var(--uf-blue);
  color:#fff;
  font-weight:600;
  font-size:14px;
  border-radius:var(--uf-radius);
  padding:12px 0;
  transition:filter .15s, opacity .15s;
}
.uf-w-btn:hover:not(:disabled){ filter:brightness(1.1); }
.uf-w-btn:disabled{ background:var(--uf-muted-btn); color:var(--uf-muted); cursor:not-allowed; }

/* ============================================================
   Wallet picker screen
   ============================================================ */
.uf-wal-row{
  display:flex; align-items:center; gap:12px;
  width:100%;
  background:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:var(--uf-radius);
  padding:11px 12px;
  margin-bottom:8px;
  transition:background .12s, border-color .12s;
  text-align:left;
}
.uf-wal-row:hover:not(:disabled){ background:var(--uf-card-hover); border-color:var(--uf-border-strong); }
.uf-wal-row img{ width:30px; height:30px; border-radius:8px; flex:none; }
.uf-wal-name{ flex:1; font-size:13.5px; font-weight:500; color:var(--uf-fg); }
.uf-wal-vms{ font-size:10.5px; color:var(--uf-muted); margin-top:2px; }
.uf-wal-state{ font-size:11.5px; color:var(--uf-green); font-weight:500; }
.uf-wal-row.is-missing img{ filter:grayscale(1); opacity:.5; }
.uf-wal-row.is-missing .uf-wal-name{ color:var(--uf-muted); }
.uf-wal-row.is-missing .uf-wal-state{ color:var(--uf-blue); }
.uf-wal-fallback{
  width:30px; height:30px; border-radius:8px; flex:none;
  background:var(--uf-muted-btn); color:var(--uf-muted);
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:600;
}

/* wallet picker: cap height, scroll inside the list */
[data-screen="wallets"] .uf-list{
  max-height:340px;
  overflow-y:auto;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.14) transparent;
}
[data-screen="wallets"] .uf-list::-webkit-scrollbar{ width:5px; }
[data-screen="wallets"] .uf-list::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.14); border-radius:3px; }

/* ============================================================
   Wallet holdings: balances, Max, discovered (unverified) tokens
   ============================================================ */
.uf-w-balline{
  display:flex; align-items:center; gap:8px;
  margin:6px 2px 0;
  font-size:11.5px; color:var(--uf-muted);
}
.uf-w-balline button{
  font-size:11px; font-weight:600;
  color:var(--uf-blue);
  padding:2px 8px;
  border:1px solid var(--uf-border);
  border-radius:6px;
  background:var(--uf-card);
}
.uf-w-balline button:hover{ border-color:var(--uf-border-strong); }

.uf-dd-bal{ margin-left:auto; font-size:11px; color:var(--uf-muted); padding-right:6px; }

.uf-dd-divider{
  display:flex; align-items:center; gap:8px;
  padding:9px 10px 5px;
  font-size:10.5px; font-weight:600; letter-spacing:.04em;
  color:var(--uf-muted); text-transform:uppercase;
}
.uf-dd-divider::after{ content:""; flex:1; height:1px; background:var(--uf-border); }

.uf-dd-sub{ display:block; font-size:10px; color:var(--uf-muted); margin-top:1px; }
.uf-unv{ color:var(--uf-amber); }
.uf-unv-dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--uf-amber);
  display:inline-block; margin-right:4px; vertical-align:1px;
}
.uf-dd-avatar{
  width:22px; height:22px; border-radius:50%; flex:none;
  background:var(--uf-muted-btn); color:var(--uf-muted);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:10px; font-weight:600;
}
.uf-dd-empty{
  padding:14px 12px; font-size:12px; color:var(--uf-muted); line-height:1.5;
}

/* ============================================================
   Monochrome theme + slimmer layout
   ============================================================ */
.uf-dialog{ max-width:340px; padding:16px 20px; }
.fl-config{ max-width:280px; padding:16px 18px; }

/* white-accent buttons need dark text */
.fl-save, .uf-w-btn{ background:#fff; color:#000; }
.fl-save:hover, .uf-w-btn:hover:not(:disabled){ filter:brightness(.85); }
.uf-w-btn:disabled{ background:var(--uf-muted-btn); color:var(--uf-muted); }
.uf-w-balline button{ color:var(--uf-fg); }

/* monochrome status/error states */
.fl-config-status{ color:#e8e8e8; }
.fl-config-status.err{ color:#fff; font-weight:600; }
.uf-checking.is-err, .uf-w-quote.err{ color:#fff; font-weight:600; }
.fl-config-warn{
  color:#cfcfcf;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
}

/* icons/logos keep their original brand colors */

/* QR screen: wallet-only combos hand off to Connect Wallet */
.uf-cta-wallet{
  display:inline-block;
  margin-top:2px;
  background:#fff; color:#000;
  font-size:12px; font-weight:600;
  border-radius:var(--uf-radius);
  padding:8px 14px;
  transition:filter .15s;
}
.uf-cta-wallet:hover{ filter:brightness(.85); }

/* inline connect-wallet list (crypto screen): same capped scroll as the wallets screen */
#uf-crypto-wallets{
  margin-top:14px;
  max-height:340px;
  overflow-y:auto;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.14) transparent;
}
#uf-crypto-wallets::-webkit-scrollbar{ width:5px; }
#uf-crypto-wallets::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.14); border-radius:3px; }

/* ============================================================
   Deposit address block (full address + copy button)
   ============================================================ */
.uf-addr-head{
  display:flex; align-items:center; justify-content:space-between;
  margin:14px 2px 8px;
}
.uf-addr-label{
  display:inline-flex; align-items:center; gap:5px;
  font-size:12.5px; font-weight:500; color:var(--uf-fg);
}
.uf-addr-label svg{ width:12px; height:12px; color:var(--uf-muted); }
.uf-terms{ font-size:12px; color:var(--uf-fg); text-decoration:underline; text-underline-offset:2px; }
.uf-terms:hover{ color:var(--uf-muted); }

.uf-addr-box{
  background:var(--uf-code-bg);
  border:1px solid var(--uf-border-strong);
  border-radius:6px;
  padding:11px 12px;
  font-size:11.5px;
  letter-spacing:.015em;
  color:var(--uf-fg);
  word-break:break-all;
  line-height:1.35;
}

.uf-copy-btn{
  width:100%;
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:8px;
  background:var(--uf-card);
  border:1px solid var(--uf-border);
  border-radius:6px;
  padding:10px 0;
  font-size:13px; font-weight:500; color:var(--uf-fg);
  transition:background-color .15s, border-color .15s;
}
.uf-copy-btn:hover{ background:var(--uf-card-hover); border-color:var(--uf-border-strong); }

/* icon morph: copy scales/rotates out, check springs in */
.uf-copy-icwrap{ position:relative; width:15px; height:15px; flex:none; }
.uf-copy-icwrap svg{ position:absolute; inset:0; width:15px; height:15px; transition:opacity .5s, transform .65s cubic-bezier(.34,1.4,.64,1); }
.uf-copy-ic{ opacity:1; transform:scale(1); }
.uf-check-ic{ opacity:0; transform:scale(.4) rotate(-12deg); }
.uf-copy-btn.is-copied .uf-copy-ic{ opacity:0; transform:scale(.4) rotate(12deg); }
.uf-copy-btn.is-copied .uf-check-ic{ opacity:1; transform:scale(1) rotate(0deg); }
.uf-copy-btn.is-copied{ border-color:var(--uf-border-strong); }

/* ============================================================
   Vertical compaction — shorter widget, slimmer bubbles
   ============================================================ */
.uf-header{ padding-bottom:16px; }
.uf-footer{ padding-top:9px; }

.uf-method{ padding:9px 12px; }
.uf-methods > * + *{ margin-top:6px; }
.uf-method-ic{ padding:6px; }

.uf-select{ padding:9px 12px; }
.uf-wal-row{ padding:8px 12px; margin-bottom:6px; }
.uf-wal-row img{ width:26px; height:26px; }
.uf-ex-row{ padding:9px 12px; }

.uf-addr-head{ margin:10px 2px 6px; }
.uf-addr-box{ padding:9px 11px; }
.uf-copy-btn{ padding:8px 0; margin-top:6px; }
.uf-proc-head, .uf-proc-item{ padding-top:8px; padding-bottom:8px; }

.uf-w-chip{ padding:7px 12px; margin-bottom:10px; }
.uf-w-amountrow{ padding:9px 12px; }
.uf-w-btn{ padding:10px 0; margin-top:10px; }

.fl-field{ margin-bottom:9px; }
.fl-field input,.fl-field select{ padding:8px 10px; }
.fl-save{ padding:9px 0; }

/* the copied state holds a moment longer to match the slower morph */

/* breathing room between the token/chain selectors and the QR */
#uf-qr-section .uf-qr-wrap{ margin-top:14px; }

/* ============================================================
   Tighter rhythm: 12px between sections, slimmer internals,
   smaller QR; "Checking for deposit" pill removed
   ============================================================ */
/* hide the status pill row on the QR screen */
.uf-screen[data-screen="crypto"] .uf-links{ display:none; }

/* normalize section gaps to 12px */
.uf-header{ padding-bottom:12px; }
#uf-qr-section .uf-qr-wrap{ margin-top:12px; }
.uf-addr-head{ margin:12px 2px 6px; }
.uf-proc{ margin-top:12px; }
#uf-crypto-wallets{ margin-top:12px; }
.uf-w-chip{ margin-bottom:12px; }
.uf-w-btn{ margin-top:12px; }
.uf-footer{ padding-top:8px; }

/* slimmer internals */
.uf-qr{ width:200px; height:200px; padding:6px; }
.uf-qr-logo{ width:40px; height:40px; }
.uf-method{ padding:8px 12px; }
.uf-select{ padding:8px 12px; }
.uf-wal-row{ padding:7px 12px; }
.uf-copy-btn{ padding:8px 0; }
.uf-proc-head, .uf-proc-item{ padding-top:7px; padding-bottom:7px; }
.uf-w-amountrow{ padding:8px 12px; }
.uf-connect{ padding:18px 0; }

/* copy button -> price impact: exactly 16px (the empty dest-note was
   silently adding ~22px of phantom space) */
.uf-dest-note:empty{ display:none; }
.uf-dest-note{ margin:12px 0 0; min-height:0; }
.uf-proc{ margin-top:16px; }

/* connect wallet page: compact rows, no more whitespace tower */
[data-screen="wallets"] .uf-list{ max-height:300px; }
.uf-wal-row{ padding:6px 10px; margin-bottom:6px; gap:10px; }
.uf-wal-row img, .uf-wal-fallback{ width:24px; height:24px; }
.uf-wal-name{ font-size:13px; }
.uf-wal-vms{ font-size:10px; margin-top:1px; }
.uf-wal-state{ font-size:11px; }

/* wallet deposit screen: collapse empty quote/status space */
.uf-w-quote{ min-height:0; margin:10px 2px 0; }
.uf-w-quote:empty{ display:none; }
.uf-screen[data-screen="wallet"] .uf-links{ margin-top:12px; min-height:0; }
.uf-w-balline{ margin-top:8px; }

/* standalone wallet status line; terms link sits in the Amount label row */
.uf-w-statusline{ display:flex; margin-top:12px; }
.uf-field-label .min .uf-terms{ font-size:11.5px; }

/* wallet rows match the home-page method bubbles */
.uf-wal-row{ padding:8px 12px; margin-bottom:6px; gap:12px; }
.uf-wal-row img, .uf-wal-fallback{ width:30px; height:30px; }
.uf-wal-name{ font-size:14px; }
.uf-wal-vms{ font-size:11px; margin-top:2px; }
.uf-wal-state{ font-size:12px; }



/* ---------- "deposit address coming soon" — reuses the live deposit layout, locked ---------- */
.uf-qr-soon #uf-soon-qr{ width:100%; height:100%; opacity:.14; filter:grayscale(1); }
.uf-qr-soon #uf-soon-qr svg{ width:100%; height:100%; display:block; }
.uf-qr-lock{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:54px; height:54px; border-radius:15px;
  background:#0a0a0a; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.4);
}
.uf-qr-lock svg{ width:23px; height:23px; }
.uf-soon-tag{ font-size:12px; font-weight:500; color:var(--uf-muted); }
.uf-soon-box{ color:var(--uf-muted); }
.uf-soon-connect{
  width:100%; margin-top:10px;
  background:#fff; color:#000;
  font-size:14px; font-weight:600; border:0; border-radius:8px;
  padding:13px 0; cursor:pointer; transition:filter .12s ease;
}
.uf-soon-connect:hover{ filter:brightness(.88); }

/* match the live QR screen: breathing room between the selectors and the (locked) QR */
#uf-addr-soon .uf-qr-wrap{ margin-top:12px; }

/* ---------- Route coverage panel ---------- */
.fl-coverage .fl-cov-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fl-coverage h2{ margin:0; }
.fl-cov-refresh{
  width:30px; height:30px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center;
  background:var(--uf-card); color:var(--uf-muted);
  border:1px solid var(--uf-border); border-radius:8px; cursor:pointer;
  transition:color .12s ease, background .12s ease;
}
.fl-cov-refresh:hover{ color:var(--uf-fg); background:var(--uf-card-hover); }
.fl-cov-refresh svg{ width:15px; height:15px; }
.fl-cov-refresh.is-spin svg{ animation:fl-cov-spin .8s linear infinite; }
@keyframes fl-cov-spin{ to{ transform:rotate(360deg); } }

.fl-cov-body{ margin-top:4px; }
.fl-cov-empty{ font-size:12.5px; color:var(--uf-muted); padding:10px 0; }

.fl-cov-list{ display:flex; flex-direction:column; }
.fl-cov-row{
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 0; border-top:1px solid var(--uf-border);
}
.fl-cov-row:first-child{ border-top:0; }
.fl-cov-chain{
  flex:0 0 96px; display:flex; align-items:center; gap:7px;
  font-size:12.5px; font-weight:500; color:var(--uf-fg); padding-top:2px;
}
.fl-cov-chain img{ width:18px; height:18px; border-radius:9999px; flex:0 0 auto; }
.fl-cov-chain span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fl-cov-chips{ display:flex; flex-wrap:wrap; gap:5px; flex:1; min-width:0; }
.fl-cov-chip{
  font-size:10.5px; font-weight:600; letter-spacing:.01em;
  padding:3px 7px; border-radius:6px;
  background:var(--uf-card-hover); color:var(--uf-fg);
  border:1px solid var(--uf-border-strong);
}
.fl-cov-chip.is-soon{
  background:transparent; color:var(--uf-muted);
  border:1px dashed var(--uf-border);
}

.fl-cov-more{ margin-top:16px; }
.fl-cov-more-lbl{
  font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  color:var(--uf-muted); margin-bottom:10px;
}
.fl-cov-more-icons{ display:flex; flex-wrap:wrap; gap:8px; }
.fl-cov-more-icons img{ width:24px; height:24px; border-radius:9999px; opacity:.38; filter:grayscale(1); }

.fl-cov-foot{
  display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  margin-top:16px; padding-top:13px; border-top:1px solid var(--uf-border);
  font-size:12px; color:var(--uf-fg);
}
.fl-cov-foot .dot{ width:7px; height:7px; border-radius:9999px; background:var(--uf-fg); flex:0 0 auto; }
.fl-cov-foot .soon{ color:var(--uf-muted); }
.fl-cov-foot .sep{ color:var(--uf-border-strong); }
.fl-cov-build{ margin-top:14px; font-size:10px; letter-spacing:.03em; color:var(--uf-border-strong); }

/* ---------- Config sidebar (left), widget stays centered ---------- */
.fl-sidebar{
  position:fixed; top:76px; left:24px;
  width:300px; max-height:calc(100vh - 100px); overflow-y:auto;
  display:flex; flex-direction:column; gap:16px; z-index:5;
  min-width:0;   /* allow shrinking below content when stacked (no page-wide overflow) */
}
.fl-sidebar .fl-config{ width:100%; max-width:none; }
/* Stack below ~1240px: the fixed 300px sidebars start overlapping the centered
   560px column below ~1210px, so switch to a single centered column before that. */
@media (max-width:1240px){
  .fl-sidebar{ position:static; top:auto; left:auto; right:auto; width:100%; max-width:360px; max-height:none; overflow:visible; }
  .fl-sidebar-right{ right:auto; }
  /* Single stacked column. flex-wrap:nowrap overrides the desktop body{flex-wrap:wrap}
     (otherwise the tall panels wrap into side-by-side columns), and height:auto lets
     the column grow and scroll instead of being clipped to one viewport. */
  body{ flex-direction:column; flex-wrap:nowrap; align-items:center; justify-content:flex-start;
    height:auto; min-height:100%; }
  .fl-center{ order:-1; }   /* widget + code first when stacked */
}

/* Phones: tighten padding and let panels use the full width. The WIDGET is not
   touched here — it keeps its fixed size/aspect and zoom-fits via JS. */
@media (max-width:600px){
  body{ padding:64px 14px 28px; }
  .fl-topbar{ height:48px; padding:0 14px; }
  .fl-sidebar,
  .fl-center{ max-width:none; }
  .fl-embed-head{ padding:10px 12px; }
}

/* ---------- Route coverage: collapsed until "View routes" ---------- */
.fl-cov-summary{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.fl-cov-sumtext{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--uf-fg); }
.fl-cov-sumtext .dot{ width:7px; height:7px; border-radius:9999px; background:var(--uf-fg); flex:0 0 auto; }
.fl-cov-sumtext .soon{ color:var(--uf-muted); }
.fl-cov-sumtext .sep{ color:var(--uf-border-strong); }
.fl-cov-toggle{
  flex:0 0 auto; background:transparent; border:0; cursor:pointer;
  font-size:12px; font-weight:600; color:var(--uf-fg);
  text-decoration:underline; text-underline-offset:3px;
}
.fl-cov-toggle:hover{ color:var(--uf-muted); }
.fl-cov-detail{ display:none; }
.fl-cov-detail.is-open{ display:block; margin-top:14px; }


/* ---------- Appearance customizer ---------- */
/* primary buttons follow the accent (--uf-blue) with auto-contrast text */
.uf-continue, .uf-w-btn, .uf-cta-wallet, .uf-soon-connect{ background:var(--uf-blue); color:var(--uf-accent-fg); }
/* customizable corner radius on the main surfaces (pills/small radii untouched) */
.uf-dialog, .uf-method, .uf-w-btn, .uf-continue, .uf-soon-connect, .uf-cta-wallet,
.uf-copy-btn, .uf-select, .uf-wal-row, .uf-addr-box, .uf-qr, .uf-csoon-card,
.uf-ex-row, .uf-method-ic{ border-radius:var(--uf-radius-lg); }

/* segmented (theme) */
.fl-seg{ display:flex; gap:4px; background:var(--uf-card); border:1px solid var(--uf-border); border-radius:8px; padding:4px; }
.fl-seg button{ flex:1; padding:7px 10px; border:0; border-radius:6px; background:transparent; color:var(--uf-muted); font-size:13px; font-weight:600; cursor:pointer; transition:background-color .12s, color .12s; }
.fl-seg button:hover{ color:var(--uf-fg); }
.fl-seg button.is-active{ background:var(--uf-card-hover); color:var(--uf-fg); }

/* color swatch grid */
.fl-swatches{ display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.fl-sw{ display:flex; align-items:center; gap:8px; cursor:pointer; }
.fl-sw input[type=color]{ width:26px; height:26px; flex:0 0 auto; padding:0; border:1px solid var(--uf-border); border-radius:6px; background:none; cursor:pointer; }
.fl-sw input[type=color]::-webkit-color-swatch-wrapper{ padding:2px; }
.fl-sw input[type=color]::-webkit-color-swatch{ border:0; border-radius:4px; }
.fl-sw span{ font-size:12px; color:var(--uf-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* range + select + reset */
.fl-field-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fl-field-row > span{ margin-bottom:0; }
.fl-field-row input[type=range]{ flex:1; max-width:150px; accent-color:var(--uf-fg); cursor:pointer; }
.fl-reset{ width:100%; margin-top:4px; padding:9px 0; background:var(--uf-card); border:1px solid var(--uf-border); border-radius:8px; color:var(--uf-muted); font-size:13px; font-weight:600; cursor:pointer; transition:color .12s, border-color .12s; }
.fl-reset:hover{ color:var(--uf-fg); border-color:var(--uf-border-strong); }

/* right-hand config sidebar (Brand & theme) — mirror of the left */
.fl-sidebar-right{ left:auto; right:24px; }

/* a font swap must never wrap a one-line label onto two lines */
.uf-title, .uf-subtitle, .uf-method-title, .uf-method-sub,
.uf-w-btn, .uf-continue, .uf-soon-connect, .uf-cta-wallet, .uf-copy-btn{ white-space:nowrap; }

/* ---------- payment-method toggles ---------- */
.fl-toggle{ display:flex; align-items:center; justify-content:space-between; padding:9px 0; }
.fl-toggle + .fl-toggle{ border-top:1px solid var(--uf-border); }
.fl-toggle > span{ font-size:13px; color:var(--uf-fg); }
.fl-switch{ position:relative; width:38px; height:22px; flex:0 0 auto; }
.fl-switch input{ position:absolute; inset:0; margin:0; opacity:0; cursor:pointer; }
.fl-track{ position:absolute; inset:0; background:var(--uf-card-hover); border:1px solid var(--uf-border); border-radius:9999px; transition:background .15s ease, border-color .15s ease; pointer-events:none; }
.fl-track::after{ content:""; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:9999px; background:var(--uf-muted); transition:transform .15s ease, background .15s ease; }
.fl-switch input:checked ~ .fl-track{ background:var(--uf-fg); border-color:var(--uf-fg); }
.fl-switch input:checked ~ .fl-track::after{ transform:translateX(16px); background:var(--uf-dialog-bg); }

/* method list uses gap so a hidden option leaves no phantom spacing */
.uf-methods{ gap:8px; }
.uf-methods > * + *{ margin-top:0; }

/* ---------- embed code panel (centered column, below the widget) ---------- */
.fl-center{ width:100%; max-width:560px; min-width:0; display:flex; flex-direction:column; align-items:center; gap:16px; }
/* the widget + code panel must never force the page wider than its column */
.fl-center > *{ max-width:100%; }
.fl-embed{ min-width:0; }
.fl-embed{ width:100%; background:var(--uf-dialog-bg); border:1px solid var(--uf-border-secondary); border-radius:10px; overflow:hidden; box-shadow:0 24px 70px -24px rgba(0,0,0,.7); }
.fl-embed-head{ display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border-bottom:1px solid var(--uf-border); }
.fl-embed-title{ font-size:13px; font-weight:600; color:var(--uf-fg); }
.fl-copy{ font-size:12px; font-weight:600; color:var(--uf-muted); background:var(--uf-card); border:1px solid var(--uf-border); border-radius:6px; padding:5px 13px; cursor:pointer; transition:color .12s ease, border-color .12s ease; }
.fl-copy:hover{ color:var(--uf-fg); border-color:var(--uf-border-strong); }
.fl-copy.is-copied{ color:var(--uf-fg); border-color:var(--uf-fg); }
.fl-embed-code{ margin:0; padding:14px; font-family:ui-monospace,"SF Mono",Menlo,monospace; font-size:11.5px; line-height:1.65; color:var(--uf-fg); white-space:pre; overflow-x:auto; scrollbar-width:thin; scrollbar-color:var(--uf-border-strong) transparent; }
.fl-embed-code::-webkit-scrollbar{ height:5px; }
.fl-embed-code::-webkit-scrollbar-thumb{ background:var(--uf-border-strong); border-radius:3px; }

/* ---------- top bar (Flashi Demo · Reset all) ---------- */
.fl-topbar{
  position:fixed; top:0; left:0; right:0; height:52px; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
  background:var(--uf-dialog-bg);
  border-bottom:1px solid var(--uf-border-secondary);
}
.fl-topbar-brand{ display:flex; align-items:center; gap:9px; }
.fl-topbar-brand[data-flow]{ cursor:pointer; }
.fl-topbar-logo{ display:flex; width:22px; height:22px; color:var(--uf-fg); }
.fl-topbar-logo svg{ width:100%; height:100%; }
.fl-topbar-logo.gw{ line-height:0; }
.fl-topbar-logo.gw svg{ overflow:visible; }            /* let tokens pour in beyond the mark */
.fl-topbar-logo.gw .spark{ transform-box:view-box; transform-origin:12px 12px; }
.fl-topbar-name{ font-size:15px; font-weight:600; letter-spacing:-.01em; color:var(--uf-fg); }
.fl-topbar-reset{
  font-size:12.5px; font-weight:600; color:var(--uf-muted);
  background:var(--uf-card); border:1px solid var(--uf-border); border-radius:7px;
  padding:7px 14px; cursor:pointer; transition:color .12s ease, border-color .12s ease;
}
.fl-topbar-reset:hover{ color:var(--uf-fg); border-color:var(--uf-border-strong); }

/* embed code tabs (React / HTML) */
.fl-embed-tabs{ display:flex; gap:2px; }
.fl-embed-tabs button{ font-size:12px; font-weight:600; color:var(--uf-muted); padding:5px 11px; border-radius:6px; cursor:pointer; transition:color .12s ease, background-color .12s ease; }
.fl-embed-tabs button:hover{ color:var(--uf-fg); }
.fl-embed-tabs button.is-active{ color:var(--uf-fg); background:var(--uf-card); }

/* ===== Live deposit notification — dark card, brand-green check ===== */
/* Overlay layer pinned to the bottom of the WIDGET — absolute inside .uf-dialog
   (which is position:relative + overflow:hidden). It never grows the widget, and
   the dialog's overflow clips it so it emerges from the widget's bottom edge. */
.fl-notif{position:absolute;left:14px;right:14px;bottom:14px;z-index:40;
  display:flex;gap:11px;align-items:center;
  padding:10px 10px 10px 12px;color:var(--uf-fg);
  background:linear-gradient(180deg,var(--uf-card-hover),var(--uf-card));
  border:1px solid var(--uf-border-secondary);border-radius:var(--uf-radius-lg);
  box-shadow:0 16px 36px -14px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02);
  animation:fl-notif-in .34s cubic-bezier(.16,1,.3,1) both}
.fl-notif[hidden]{display:none}
/* slides up out of the widget's bottom edge */
@keyframes fl-notif-in{from{opacity:0;transform:translateY(calc(100% + 14px))}to{opacity:1;transform:translateY(0)}}

.fl-notif-ic{position:relative;width:30px;height:30px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.fl-notif-spin{width:16px;height:16px;border:2px solid rgba(255,255,255,.16);border-top-color:var(--uf-fg);
  border-radius:50%;animation:fl-spin .8s linear infinite}
@keyframes fl-spin{to{transform:rotate(360deg)}}
.fl-notif-check{position:absolute;inset:0;border-radius:50%;display:none;align-items:center;justify-content:center;
  background:linear-gradient(158deg,#3ad681,#1bb061);box-shadow:0 3px 13px -2px rgba(48,205,118,.7)}
.fl-notif-cksvg{width:100%;height:100%}
.fl-notif-mark{fill:none;stroke:#05270f;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:22;stroke-dashoffset:22}
.fl-notif-pulse{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(48,205,118,.6);opacity:0}
/* processing = spinner (default). done = green check, animated. err = red disc. */
.fl-notif.is-done .fl-notif-spin,.fl-notif.is-err .fl-notif-spin{display:none}
.fl-notif.is-done .fl-notif-check,.fl-notif.is-err .fl-notif-check{display:flex}
.fl-notif.is-done .fl-notif-mark{animation:fl-ck-draw .42s .06s cubic-bezier(.65,0,.35,1) forwards}
.fl-notif.is-done .fl-notif-pulse{animation:fl-ck-pulse .9s .08s ease-out}
.fl-notif.is-err .fl-notif-check{background:linear-gradient(158deg,#f87171,#dc4b4b);box-shadow:0 3px 13px -2px rgba(248,113,113,.55)}
.fl-notif.is-err .fl-notif-cksvg{display:none}
@keyframes fl-ck-draw{to{stroke-dashoffset:0}}
@keyframes fl-ck-pulse{0%{opacity:.7;transform:scale(1)}100%{opacity:0;transform:scale(1.9)}}

.fl-notif-text{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.fl-notif-text strong{font-size:13px;font-weight:600;letter-spacing:-.01em;color:var(--uf-fg)}
.fl-notif-sub{font-size:11.5px;color:var(--uf-muted);margin-top:2px}
.fl-notif-x{flex:0 0 auto;width:26px;height:26px;display:flex;align-items:center;justify-content:center;
  border-radius:6px;color:var(--uf-muted);background:transparent;border:0;cursor:pointer;transition:color .12s,background .12s}
.fl-notif-x svg{width:15px;height:15px}
.fl-notif-x:hover{color:var(--uf-fg);background:var(--uf-card-hover)}

/* ===================== Deposit tracker ===================== */
.uf-tracker{ min-height:180px; }
.uf-tracker-scroll{ max-height:440px; overflow-y:auto; scrollbar-width:none; }
.uf-tracker-scroll::-webkit-scrollbar{ display:none; }
.uf-tracker-list{ display:flex; flex-direction:column; gap:8px; padding-bottom:4px; }
.uf-trow{
  display:flex; align-items:center; gap:11px; padding:11px 12px;
  background-color:var(--uf-card); border:1px solid var(--uf-border); border-radius:10px;
}
.uf-trow-ic{ position:relative; flex-shrink:0; width:34px; height:34px; }
.uf-trow-ic img{ width:34px; height:34px; border-radius:9999px; display:block; }
.uf-trow-ic-fallback{ display:flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:9999px;
  background:var(--uf-card-hover); border:1px solid var(--uf-border);
  font-size:13px; font-weight:600; color:var(--uf-muted); }
.uf-trow-dot{ position:absolute; bottom:-1px; right:-1px; width:11px; height:11px;
  border-radius:9999px; border:2px solid var(--uf-card); box-sizing:border-box; }
.uf-trow-dot.is-done{ background-color:var(--uf-green); }
.uf-trow-dot.is-proc{ background-color:#f5a623; animation:uf-trow-pulse 1.4s ease-in-out infinite; }
@keyframes uf-trow-pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.4 } }
.uf-trow-mid{ flex:1 1 auto; min-width:0; }
.uf-trow-h{ font-size:13.5px; font-weight:600; line-height:1.3; color:var(--uf-fg);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uf-trow-s{ font-size:11.5px; line-height:1.35; color:var(--uf-muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.uf-trow-pill{ flex-shrink:0; font-size:11px; font-weight:600; line-height:1;
  padding:4px 9px; border-radius:9999px; white-space:nowrap; }
.uf-trow-pill.is-done{ color:var(--uf-green); background:rgba(48,205,118,.14); }
.uf-trow-pill.is-proc{ color:#f5a623; background:rgba(245,166,35,.14); }
.uf-trow-empty{ padding:40px 12px; text-align:center; font-size:13px; color:var(--uf-muted); }

/* deposit-tracker entry: plain centered text under the header title — minimal
   height, no chrome. */
.uf-hist-link{
  display:block; width:fit-content; margin:-2px auto 10px; padding:0;
  background:transparent; border:0; cursor:pointer; line-height:1;
  font-size:12px; font-weight:500; color:var(--uf-muted);
  transition:color .15s ease;
}
.uf-hist-link:hover{ color:var(--uf-fg); text-decoration:underline; text-underline-offset:2px; }

/* Fiat-disabled notice — sits OUTSIDE the widget, first child of .fl-center.
   Quiet but unmissable: full widget width, amber accent on monochrome. */
.fl-fiat-note{
  width:100%; box-sizing:border-box;
  background:var(--uf-card); border:1px solid var(--uf-border-secondary);
  border-left:3px solid var(--uf-amber); border-radius:8px;
  padding:10px 14px; font-size:13px; line-height:1.45; color:var(--uf-muted);
  text-align:center;
}
.fl-fiat-note strong{ color:var(--uf-fg); font-weight:600; }
