/* SatsWallet DS2 - Swap unificado (ds2-swap.js). So tokens DS2 (ds2-tokens.css) e componentes DS2 (ds2-components.css). */
.swp { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.swp[hidden] { display: none; }
.swp-col { max-width: 560px; margin: 0 auto; padding: var(--s3) var(--s4) var(--s7); }
.swp-top { display: flex; align-items: center; gap: var(--s2); min-height: 56px; }
.swp-top h1 { margin: 0; font-family: var(--f-display); font-size: 24px; color: var(--text); }
.swp-top .icon-btn { min-width: 44px; min-height: 44px; }
.swp-body { display: flex; flex-direction: column; gap: var(--s3); }
.swp-box { display: flex; flex-direction: column; gap: var(--s2); }
.swp-lbl { display: flex; align-items: center; gap: var(--s1); margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.swp-asset { display: flex; align-items: center; gap: var(--s2); margin: 0; font-weight: 600; color: var(--text); min-height: 44px; }
.swp-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swp-chips .chip { min-height: 44px; padding: 0 var(--s3); display: inline-flex; align-items: center; gap: var(--s1); }
.swp-chips .chip[aria-checked="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.swp-amt { display: flex; align-items: center; gap: var(--s2); }
.swp-in { flex: 1; min-width: 0; min-height: 56px; padding: 0 var(--s3); font-family: var(--f-display); font-size: 28px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.swp-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.swp-max { min-width: 56px; min-height: 44px; }
.swp-bal { margin: 0; font-size: 14px; }
.swp-err { display: flex; align-items: flex-start; gap: var(--s1); margin: 0; color: var(--err); font-size: 14px; }
.swp-pick { min-height: 56px; }
.swp-outs .row { min-height: 56px; }
.swp-rv h2 { margin: 0; font-size: 18px; color: var(--text); }
.swp-recv-l { margin: var(--s2) 0 0; font-size: 14px; color: var(--text-2); }
.swp-recv { display: flex; align-items: center; gap: var(--s2); margin: 0; font-family: var(--f-display); font-size: 32px; font-weight: 600; color: var(--text); }
.swp-recv-f { margin: 0; font-size: 15px; }
.swp-lines .row { min-height: 44px; }
.swp-lines .val { color: var(--text); text-align: right; }
/* Rotulo com piso de largura: es "Comisión del proveedor" quebra em no maximo 2 linhas a 390 px; o valor longo quebra no " · " */
.swp-lines .tx { flex: 1 0 7.5em; }
.swp-lines .val { flex: 0 1 auto; white-space: normal; }
.swp-nw { white-space: nowrap; }
/* Clara C2: linha "Detalhes" fechada; chevron gira ao abrir */
.swp-det > summary { list-style: none; min-height: 44px; }
.swp-det > summary::-webkit-details-marker { display: none; }
.swp-det > summary .chev { transition: transform var(--dur) var(--ease); }
.swp-det[open] > summary .chev { transform: rotate(90deg); }
.swp-det > summary:focus-visible { outline-offset: -2px; }
.swp-cust, .swp-block { display: flex; align-items: flex-start; gap: var(--s2); text-align: left; }
.swp-left { margin: 0; font-size: 14px; text-align: center; }
.swp .btn.block { min-height: 52px; }
@media (min-width: 1024px) { .swp-col { padding-top: var(--s5); } }
.tile.swp-tile { align-items: flex-start; text-align: left; }
.swp-tile .swp-sub { display: block; font-size: 13px; line-height: 1.3; color: var(--text-2); font-weight: 400; }
/* F3 (entregavel 4): andamento, recibo, falha, devolucao */
.swp-head { display: flex; align-items: center; gap: var(--s2); }
.swp-head h2 { margin: 0; font-size: 20px; color: var(--text); }
.swp-hic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-2); color: var(--text); flex: none; }
.swp-head.ok .swp-hic { color: var(--ok); }
.swp-head.warn .swp-hic { color: var(--warn); }
.swp-head.err .swp-hic { color: var(--err); }
.swp-close { display: flex; align-items: flex-start; gap: var(--s1); margin: 0; font-size: 15px; color: var(--text); }
.swp-close .i { color: var(--ok); flex: none; margin-top: 2px; }
.swp-steps { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-direction: column; }
.swp-step { position: relative; display: flex; gap: var(--s3); padding-bottom: var(--s3); min-height: 44px; }
.swp-step:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.swp-step.is-feito:not(:last-child)::before { background: var(--ok); }
.swp-dot { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); background: var(--bg); color: var(--text-2); }
.swp-step.is-feito .swp-dot { border-color: var(--ok); color: var(--ok); }
.swp-step.is-atual .swp-dot { border-color: var(--accent); color: var(--accent); }
.swp-step.is-parou .swp-dot { border-color: var(--err); color: var(--err); }
.swp-st { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 3px; }
.swp-st b { font-weight: 600; color: var(--text); }
.swp-step.is-pendente .swp-st b { font-weight: 400; color: var(--text-2); }
.swp-st time { font-size: 14px; color: var(--text-2); }
.swp-tx { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; font-size: 14px; color: var(--accent); text-decoration: underline; word-break: break-all; }
.swp-tx:focus-visible, .swp-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.swp-note { display: flex; align-items: flex-start; gap: var(--s2); text-align: left; }
.swp-msg { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.swp-dv { margin: 0; }
.swp-id { display: block; font-size: 13px; color: var(--text-2); word-break: break-all; }
.swp-copy { min-height: 44px; padding: 0 var(--s3); display: inline-flex; align-items: center; gap: var(--s1); flex: none; }
/* Entregavel 5: "Receber em: Outra carteira" (campo .field do DS2; leitor de QR com .scan-* do ds2-send.css) */
.swp-dst .ctl { min-height: 52px; }
.swp-dst input { font-size: 16px; color: var(--text); word-break: break-all; }
.swp-dst .ctl > .i { color: var(--text-2); flex: none; }
.swp-dst .msg { font-size: 14px; }
.swp-dst-acts { display: flex; gap: var(--s2); }
.swp-dst-acts .btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); }
.swp-dst-net { font-size: 15px; word-break: break-all; }
.swp-dst-net .i { color: var(--ok); flex: none; }
.swp-ext { display: flex; align-items: flex-start; gap: var(--s2); text-align: left; }
.scan-full.swp-scan { z-index: 70; }
/* PIN e Face ID (folha #sheet do app2/liquid-seed, z 40/50) por cima da pagina Swap (60), igual ao onboard. */
html.swp-on #sheet-bg, html:has(#swp:not([hidden])) #sheet-bg { z-index: 65; }
html.swp-on #sheet, html:has(#swp:not([hidden])) #sheet { z-index: 70; }
/* Entregavel 6 (23/nov): rotulo visivel do destino, linha do peg, Ver no historico + Falar com o suporte (alvo 44 px) */
.swp-dst-l { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 var(--s1); }
.swp-peg { margin: var(--s2) 0 0; font-size: 14px; }
.swp-acts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.swp-acts .btn { flex: 1 1 140px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); }
/* Clara E1, E2, F1/F2 (23/nov): rotulo estimado, linha sob o valor, aviso do mercado e aviso de valor */
.swp-est { display: inline-block; vertical-align: middle; margin-left: var(--s1); padding: 2px 8px; border: 1px solid currentColor; border-radius: var(--r-sm); font-family: var(--f-text); font-size: 13px; font-weight: 600; color: var(--text); }
.swp-est-n { margin: var(--s1) 0 0; font-size: 14px; }
.swp-ntc, .swp-mkt { display: flex; align-items: flex-start; gap: var(--s2); text-align: left; }
/* Entregavel 9: dolar USDB pela Spark. Linha do caminho (Pagar com a carteira Spark / Os sats chegam na sua carteira Spark) */
.swp-via { display: flex; align-items: center; gap: var(--s1); margin: 0; min-height: 24px; font-size: 14px; color: var(--text); }
.swp-via .i { color: var(--text-2); flex: none; }
