
/* StablecoinMerchant Demo Widget CSS (v0.4.0) */
.scm-demo{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; width:100%;}
.scm-card{border:1px solid rgba(0,0,0,.08); border-radius:18px; overflow:hidden; background:#fff; box-shadow:0 12px 24px rgba(0,0,0,.06);}
.scm-header{padding:14px 16px; border-bottom:1px solid rgba(0,0,0,.06); background:linear-gradient(180deg, rgba(99,102,241,.10), rgba(255,255,255,0));}
.scm-title{font-weight:900; font-size:18px; display:flex; align-items:center; gap:10px;}
.scm-badge{font-size:11px; padding:3px 9px; border-radius:999px; background:rgba(99,102,241,.12); border:1px solid rgba(99,102,241,.25); font-weight:800; letter-spacing:.06em;}
.scm-subtitle{opacity:.75; font-size:13px; margin-top:4px; line-height:1.2;}
.scm-body{padding:14px 16px;}
.scm-row{margin-top:12px;}
.scm-row--split{display:grid; grid-template-columns:1.2fr .8fr; gap:12px;}
@media (max-width: 520px){ .scm-row--split{grid-template-columns:1fr;} }

.scm-field label{display:block; font-size:12px; opacity:.7; margin-bottom:6px; font-weight:700;}
.scm-field input, .scm-field select{
  width:100%; padding:12px 12px; border-radius:14px; border:1px solid rgba(0,0,0,.12);
  font-size:16px; outline:none;
}
.scm-field input:focus, .scm-field select:focus{border-color:rgba(99,102,241,.65); box-shadow:0 0 0 4px rgba(99,102,241,.12);}

.scm-presets{display:flex; flex-wrap:wrap; gap:8px; margin-top:10px;}
.scm-chip{
  border:1px solid rgba(0,0,0,.10); background:rgba(0,0,0,.02);
  padding:7px 10px; border-radius:999px; cursor:pointer; font-weight:800; font-size:12px;
}
.scm-chip:hover{background:rgba(99,102,241,.08); border-color:rgba(99,102,241,.24);}

.scm-actions{display:flex; flex-wrap:wrap; gap:10px;}
.scm-btn{
  border:1px solid rgba(0,0,0,.10); background:#fff; color:#111827;
  padding:10px 12px; border-radius:14px; cursor:pointer; font-weight:800; font-size:14px;
}
.scm-btn[disabled]{opacity:.45; cursor:not-allowed;}
.scm-btn--primary{background:#4f46e5; color:#fff; border-color:rgba(79,70,229,.30);}
.scm-btn--primary:hover{filter:brightness(1.03);}
.scm-btn--ghost{background:rgba(0,0,0,.02);}
.scm-btn--ghost:hover{background:rgba(99,102,241,.08); border-color:rgba(99,102,241,.20);}

.scm-row--qr{margin-top:14px;}
.scm-qrwrap{display:grid; grid-template-columns:240px 1fr; gap:14px; align-items:center;}
@media (max-width: 640px){ .scm-qrwrap{grid-template-columns:1fr; } }

.scm-qr{width:220px; height:220px; border-radius:18px; border:1px dashed rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center; overflow:hidden; background:#fff;}
.scm-qr img{max-width:100%; height:auto;}
.scm-qrmeta{display:flex; flex-direction:column; gap:10px;}
.scm-statusline{display:flex; align-items:center; gap:10px; font-weight:900;}
.scm-statusdot{width:10px; height:10px; border-radius:999px; background:#cbd5e1; display:inline-block;}
.scm-statusdot.is-created{background:#60a5fa;}
.scm-statusdot.is-pending{background:#f59e0b;}
.scm-statusdot.is-settled{background:#22c55e;}
.scm-mini{display:flex; gap:10px; flex-wrap:wrap;}

.scm-receiptcard{border:1px solid rgba(0,0,0,.08); background:rgba(0,0,0,.01); border-radius:16px; padding:12px;}
.scm-receipt-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap;}
.scm-receipt-title{font-weight:900;}
.scm-receipt-sub{opacity:.7; font-size:12px; margin-top:2px;}
.scm-receipt-actions{display:flex; gap:10px; flex-wrap:wrap;}
.scm-receipt-json{margin:10px 0 0; background:#0b0f19; color:#e5e7eb; padding:12px; border-radius:14px; overflow:auto; font-size:12px; line-height:1.35; max-height:280px;}

.scm-footnote{margin-top:12px; font-size:12px; opacity:.65;}

.scm-toast{
  position:fixed; left:50%; bottom:18px; transform:translateX(-50%);
  background:#111827; color:#fff; padding:10px 12px; border-radius:14px;
  opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease;
  box-shadow:0 18px 28px rgba(0,0,0,.18);
  z-index:999999;
}
.scm-toast.show{opacity:1; transform:translateX(-50%) translateY(-4px);}

/* POS mode tweaks */
.scm-demo[data-mode="pos"] .scm-card{border-radius:22px;}
.scm-demo[data-mode="pos"] .scm-title{font-size:20px;}
.scm-demo[data-mode="pos"] .scm-field input{font-size:20px; padding:14px 14px;}
.scm-demo[data-mode="pos"] .scm-qr{width:260px; height:260px;}
.scm-demo[data-mode="pos"] .scm-qrwrap{grid-template-columns:280px 1fr;}
@media (max-width: 700px){
  .scm-demo[data-mode="pos"] .scm-qrwrap{grid-template-columns:1fr;}
  .scm-demo[data-mode="pos"] .scm-qr{width:240px; height:240px;}
}

/* Lock state */
.scm-demo.is-locked .scm-field input,
.scm-demo.is-locked .scm-field select{background:rgba(0,0,0,.03);}
.scm-demo.is-locked .scm-chip{opacity:.55; cursor:not-allowed;}
.scm-demo.is-locked .scm-lock{border-color:rgba(34,197,94,.30); background:rgba(34,197,94,.10);}


/* Merchant wallet (refund / deposit) */
.scm-walletcard{border:1px solid rgba(0,0,0,.08); border-radius:16px; padding:12px; background:rgba(0,0,0,.01);}
.scm-wallettop{display:flex; justify-content:space-between; align-items:flex-start; gap:12px;}
.scm-wallettitle{font-weight:900;}
.scm-walletsub{opacity:.7; font-size:12px; margin-top:2px;}
.scm-walletbody{margin-top:12px;}
.scm-walletbar{display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
.scm-walletmeta{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.scm-walletaddr,.scm-walletchain{font-size:12px; opacity:.8; padding:6px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.08); background:#fff;}
.scm-walletgrid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px;}
@media (max-width: 780px){ .scm-walletgrid{grid-template-columns:1fr;} }
.scm-walletpanel{border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:10px; background:#fff;}
.scm-walletpanel-title{font-weight:900; margin-bottom:8px;}
.scm-walletpanel .scm-actions{margin-top:10px;}
.scm-refund-status,.scm-deposit-status{min-height:18px;}
