/* Additions for the no-wallet flow. Load after css/style.css; uses its tokens only. */
.ef-warn { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius-card-sm);
  background: var(--status-red-bg); border: 1px solid var(--status-red-border); color: var(--color-text-primary); }
.ef-warn strong { display: block; font-size: 1.15rem; color: var(--status-red-text); margin-bottom: 4px; }
.ef-warn p { margin: 0; color: var(--color-text-secondary); line-height: 1.5; }

.ef-block { margin: 0 0 14px; }
.ef-label { margin: 0 0 6px; font-size: .9rem; color: var(--color-text-secondary); }
.ef-addr-line, .ef-addr { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; word-break: break-all; }
.ef-addr { display: block; margin: 14px 0; padding: 14px; border-radius: var(--radius-card-sm); font-size: 1.05rem; line-height: 1.6;
  background: var(--color-surface-soft); border: 1px solid var(--color-border-strong); color: var(--color-text-primary); }

.ef-qr { width: 200px; height: 200px; margin: 6px auto 18px; padding: 12px; border-radius: var(--radius-card-sm); background: #fff; }
.ef-qr img, .ef-qr canvas { display: block; width: 100% !important; height: auto !important; }
.ef-qr[hidden] { display: none; }

.ef-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.ef-chip { padding: 8px 14px; border-radius: var(--radius-pill); cursor: pointer; font: inherit;
  background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-secondary); }
.ef-chip[aria-pressed="true"] { background: var(--status-blue-bg); border-color: var(--status-blue-border); color: var(--status-blue-text); }
.ef-chip:focus-visible, .ef-overlay button:focus-visible { outline: 2px solid var(--color-accent-strong); outline-offset: 2px; }

.ef-steps { margin: 0 0 14px; padding-inline-start: 1.3em; color: var(--color-text-secondary); line-height: 1.6; }
.ef-status { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-card-sm);
  background: var(--status-amber-bg); border: 1px solid var(--status-amber-border); color: var(--status-amber-text); }
.ef-help { margin-top: 10px; color: var(--color-text-secondary); }
.ef-help summary { cursor: pointer; margin-bottom: 8px; }
.ef-help .form-input { margin-bottom: 8px; }

.ef-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5, 11, 31, .78); }
.ef-modal { width: min(520px, 100%); max-height: 100%; overflow: auto; }
.ef-check { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; color: var(--color-text-secondary); line-height: 1.5; }
.ef-check input { margin-top: 4px; flex: 0 0 auto; }
.ef-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ef-row .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .ef-chip, .ef-overlay { transition: none; } }

/* ==== Payout route ===========================================================
   "How the money moves": Buyer pays in -> Escrow -> Seller gets paid, as a
   vertical route. Shared by new-trade, join-trade and trade-detail.
   - new-trade / join-trade: the address field sits on YOUR stop.
   - trade-detail: the same stops, read-only (locked addresses + copy buttons).
   Tokens carry literal fallbacks, so the route still renders if one is missing.
   ============================================================================ */
.route { list-style: none; margin: 8px 0 0; padding: 0; }
.route__stop { position: relative; padding: 0 0 26px 48px; min-width: 0; }
.route__stop:last-child { padding-bottom: 0; }
.route__stop::before {
  content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px;
  background: var(--glass-border, rgba(255, 255, 255, .16));
}
.route__stop:last-child::before { display: none; }
.route__stop--you::before { background: linear-gradient(var(--blue-500, #3b82f6), var(--glass-border, rgba(255, 255, 255, .16))); }
.route[data-role="seller"] .route__stop--you::before { display: none; }
.route[data-role="seller"] .route__stop--escrow::before { background: linear-gradient(var(--glass-border, rgba(255, 255, 255, .16)), var(--blue-500, #3b82f6)); }
.route__pin {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--glass-border, rgba(255, 255, 255, .22));
  background: var(--bg-1, #0d1330); color: var(--ink-300, #9aa6c7);
  transition: border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.route__pin svg { width: 16px; height: 16px; }
.route__stop--you .route__pin {
  border-color: var(--blue-500, #3b82f6); color: var(--ink-0, #fff);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, .18);
}
.route__head { display: flex; align-items: center; gap: 10px; min-height: 32px; flex-wrap: wrap; }
.route__title { font-family: var(--font-display, inherit); font-weight: 600; color: var(--ink-0, #fff); }
.route__you {
  font-size: .74rem; line-height: 1; padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--blue-500, #3b82f6); color: var(--blue-300, #93c5fd);
}
.route__you[hidden] { display: none; }
.route__sub { margin: 2px 0 0; max-width: 46ch; font-size: .88rem; line-height: 1.5; color: var(--ink-300, #9aa6c7); }
.route__slot { margin-top: 14px; }
.route__slot:empty { display: none; }

.route__block {
  padding: 16px; border-radius: 14px;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, .16));
  background: var(--glass-fill, rgba(255, 255, 255, .04));
}
.route__ask { margin: 0 0 10px; font-weight: 600; color: var(--ink-0, #fff); }
.route__field-label { display: block; margin: 16px 0 6px; }
.route .ef-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.route__help { margin-top: 12px; }
.route__help summary { cursor: pointer; font-size: .88rem; color: var(--blue-300, #93c5fd); }
.route__help summary:focus-visible { outline: 2px solid var(--blue-500, #3b82f6); outline-offset: 3px; border-radius: 4px; }
.route__help-body { margin-top: 8px; }
.route__lock {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding-top: 12px;
  border-top: 1px dashed var(--glass-border, rgba(255, 255, 255, .16));
  font-size: .82rem; line-height: 1.45; color: var(--status-amber-text, #fbbf24);
}
.route__lock svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }

.route__block.is-arriving { animation: route-arrive .34s ease-out; }
.route[data-role="seller"] .route__block { --arrive-from: 12px; }
.route[data-role="buyer"] .route__block { --arrive-from: -12px; }
@keyframes route-arrive { from { opacity: 0; transform: translateY(var(--arrive-from, -12px)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .route__block.is-arriving { animation: none; }
  .route__pin { transition: none; }
}
@media (max-width: 420px) {
  .route__stop { padding-left: 42px; }
  .route__block { padding: 14px; }
}