/* Square Ibis — failed-delivery recovery (swap, exchange & return legs) (v2.2) */

.rc-section { gap: 12px; }
.rc-relabel, .rc-parent { align-items: center; flex-wrap: wrap; }
.rc-relabel .grow, .rc-parent .grow { min-width: 0; flex: 1 1 200px; }
.rc-link { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-family: var(--mono); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rc-leg { width: 100%; text-align: start; cursor: pointer; flex-wrap: wrap; }
.rc-leg .tag { flex: none; }
.rc-swap { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rc-swap-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.rc-old { color: var(--text-3); text-decoration: line-through; text-decoration-color: rgba(var(--a1-rgb), .45); }
.rc-arrow { width: 14px; height: 14px; color: var(--accent); flex: none; }
:root[dir="rtl"] .rc-arrow { transform: scaleX(-1); }

/* swap form */
.rc-form .form-grid { gap: 12px 14px; }
.rc-quote { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(var(--a1-rgb), .35); background: linear-gradient(135deg, rgba(var(--a1-rgb), .07), rgba(var(--a2-rgb), .04)); font-size: 13.5px; }
.rc-quote-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rc-quote-row > span:first-child { flex: 1; color: var(--text-2); }
.rc-quote-row b { font-size: 15px; }

/* returns workspace: legs */
.rt-leg { flex: none; }

@media (max-width: 640px) {
  .rc-relabel .btn { width: 100%; justify-content: center; }
}
