/* Trade tab only: the top and give/want sub-tab bars, trade row/summary
   text, recent-partner chips, and the fixed summary+submit footer. */

.subtabs { display: flex; gap: 4px; margin-bottom: 14px; }
.subtab {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--secondary-bg);
  color: var(--hint);
  padding: 8px 2px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}
.subtab.active { background: var(--button); color: var(--button-text); border-color: var(--button); }

.trade-sub-title { font-size: 11px; color: var(--hint); margin: 8px 0 2px; }
.empty-inline { color: var(--hint); font-size: 12px; }

.recent-partners { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.recent-partners .action { width: auto; padding: 6px 12px; margin-top: 0; }

.trade-summary { font-size: 13px; }
.trade-summary .trade-sub-title { margin-top: 10px; }
.trade-summary .trade-sub-title:first-child { margin-top: 0; }

.trade-footer {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 15;
  background: var(--secondary-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-radius: 14px 14px 0 0;
  transition: transform .25s ease;
}
/* moves fully past its own height AND the tab bar it sits above - a plain
   120% isn't enough once --tabbar-h is added on top of that offset */
.trade-footer.hidden { transform: translateY(calc(100% + var(--tabbar-h, 60px))); }
.trade-footer-btns { display: flex; gap: 8px; margin-top: 8px; }
.trade-footer-btns .action { margin-top: 0; }
.trade-footer-btns .secondary { flex: 0 0 auto; width: auto; padding: 8px 16px; }
.trade-footer-btns button:last-child { flex: 1; }
