/* Order summary view: shown instead of the Swap card when ?order=ID is active. Layout follows the
   provided reference screenshot: a step tracker, a centered QR area with an address/amount toggle,
   a "You send" / "You receive" flow with a connector chevron, and a small order/countdown footer. */

#order-card{width:100%;position:relative}

.ord-steps{display:flex;align-items:center;gap:6px;margin:-1.5px -1.5px 10px;padding:6px;border-radius:9999px;background:var(--bg-surface-primary,#f1f5f9)}
.ord-step{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9999px;font-size:13px;font-weight:800;color:var(--fg-tertiary,#8ca3bb);white-space:nowrap}
.ord-step-icon{display:inline-flex;flex:none}
.ord-step--active{background:var(--btn-secondary-bg,#fff);color:var(--action-primary,#0081ff);box-shadow:0 1px 3px rgba(11,23,45,.08)}
.ord-step--active .ord-step-icon{color:var(--action-primary,#0081ff)}
.ord-close{flex:none;margin-left:auto;width:30px;height:30px;border-radius:9999px;background:transparent;color:var(--fg-secondary,#61748e)}
.ord-close:hover{background:var(--bg-surface-hover,rgba(0,0,0,.05))}

.ord-body{display:flex;flex-direction:column;gap:14px;padding:4px 2px 2px}

.ord-qr-area{display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:4px}
.ord-qr-frame{position:relative;width:200px;height:200px;border-radius:16px;background:#fff;box-shadow:0 1px 3px rgba(11,23,45,.08);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ord-qr-img{width:100%;height:100%;object-fit:contain}
.ord-qr-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;color:var(--fg-tertiary,#8ca3bb);text-align:center;padding:12px;border:1.5px dashed var(--stroke-strong,#cbd5e1);border-radius:16px;box-sizing:border-box}
.ord-qr-placeholder span{font-size:11.5px;font-weight:700;line-height:1.35;max-width:140px}
.ord-pill-group{display:inline-flex;padding:3px;border-radius:9999px;background:var(--bg-surface-primary,#f1f5f9);gap:2px}
.ord-pill{height:30px;padding:0 14px;border-radius:9999px;background:transparent;color:var(--fg-tertiary,#8ca3bb);font:inherit;font-size:13px;font-weight:800}
.ord-pill--active{background:var(--btn-secondary-bg,#fff);color:var(--fg-primary,#0b172d);box-shadow:0 1px 2px rgba(11,23,45,.08)}

.ord-flow{display:flex;flex-direction:column;gap:12px}
.ord-flow-block{display:flex;flex-direction:column}
.ord-flow-label{font-size:12px;font-weight:800;color:var(--fg-secondary,#61748e);margin-bottom:8px}
.ord-flow-label-note{color:var(--fg-tertiary,#8ca3bb);font-weight:700}
.ord-flow-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px 14px 4px 4px;background:var(--bg-surface-primary,#f1f5f9)}
.ord-icon-slot{flex:none;display:inline-flex}
.ord-flow-text{display:flex;flex-direction:column;min-width:0}
.ord-flow-amount{font-size:15px;font-weight:900;color:var(--fg-primary,#0b172d);overflow-wrap:anywhere}
.ord-flow-sub{font-size:12.5px;font-weight:700;color:var(--fg-secondary,#61748e)}
.ord-connector{display:flex;justify-content:center;margin:-11px 0;position:relative;z-index:1}
.ord-connector svg{width:22px;height:22px;padding:4px;border-radius:9999px;background:var(--action-primary,#0081ff);color:#fff;box-shadow:0 0 0 3px var(--surface,#fff)}
.ord-flow-addr-row{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:4px 4px 14px 14px;background:var(--bg-surface-primary,#f1f5f9)}
.ord-flow-addr{flex:1 1 auto;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;font-weight:700;color:var(--fg-primary,#0b172d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ord-copy{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;background:transparent;color:var(--fg-secondary,#61748e)}
.ord-copy:hover{background:var(--btn-secondary-bg-hover,#e1e8f1)}
.ord-copy.ord-copied{color:#16a34a}
.ord-copy--inline{width:18px;height:18px}
.ord-flow-addr-row--error{background:rgba(185,28,28,.08);color:#b91c1c;font-size:12.5px;font-weight:700}

.ord-foot{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;font-size:12.5px;font-weight:700;color:var(--fg-tertiary,#8ca3bb);margin-top:2px}
.ord-foot strong{color:var(--fg-secondary,#61748e);letter-spacing:.03em}

.ord-legal{margin:0;font-size:11px;font-weight:600;line-height:1.5;color:var(--fg-tertiary,#8ca3bb);text-align:center}
.ord-legal a{color:inherit;text-decoration:underline}
.ord-legal--note{color:var(--fg-tertiary,#8ca3bb)}

html.dark .ord-steps,html.dark .ord-flow-row,html.dark .ord-flow-addr-row,html.dark .ord-pill-group{background:#1e293b}
html.dark .ord-step--active{background:#2a3950}
html.dark .ord-pill--active{background:#2a3950;color:#fff}
html.dark .ord-qr-frame{background:#1e293b}

@media (max-width:480px){
  .ord-qr-frame{width:168px;height:168px}
  .ord-step{padding:0 9px;font-size:12px}
  .ord-flow-amount{font-size:14px}
}
