/* Trade finder: offer cards built on the shared card, asset and meter pieces. */
.fx-bar .toolbar { margin-bottom: 12px; }
.fx-bar .field { max-width: 100%; }
.fx-pair { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.fx-sum { margin: 4px 0 14px; }
.fx-left { margin: 14px 0 0; }
.fx-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.fx-grid > .card { margin-top: 0; }
@media (min-width: 1280px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.offer { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer-top .eyebrow { margin-bottom: 2px; }
.offer-top h3 { margin: 0 0 6px; overflow-wrap: anywhere; }
.offer-gain { text-align: right; flex: none; }
.offer-gain b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.05; font-weight: 700; color: var(--lime); }
.offer-gain span { font-size: 12px; color: var(--text-3); }
.offer-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.offer-sides .tiny { margin: 0 0 2px; }
.offer-sides .asset:last-child { border-bottom: 0; }
.offer-sides .pc { min-width: 0; }
.offer-sides .pc .nm { overflow-wrap: anywhere; }
.offer .meter { margin: 10px 0 8px; }
.offer-scale { display: flex; justify-content: space-between; gap: 8px; text-align: center; }
.offer-scale span:first-child { text-align: left; }
.offer-scale span:last-child { text-align: right; }
.offer-why { margin: 0; color: var(--text-2); }
.offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 14px; }

@media (max-width: 640px) {
  .fx-pair:has(select) { flex: 1 1 100%; }
  .fx-pair select { flex: 1; }
  .fx-pair > .muted { min-width: 64px; }
  .offer-sides { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .offer-gain b { font-size: 24px; }
  .offer-foot .btn { width: 100%; }
}
