/*
 * Player trade window (client/src/ui/window-trade.js): a side panel window like the containers, the own offer on the
 * left and the counter offer on the right, two item columns each, Accept and Cancel under them
 */

#trade-window > .body {
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 4px;
  max-height: 238px; /* seven slot rows (InteractiveWindow.SLOT_HEIGHT 34px) */
}

#trade-window .trade-side {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#trade-window .trade-counter {
  border-left: 1px solid #111;
  padding-left: 4px;
}

#trade-window .trade-name {
  width: 100%;
  min-height: 14px;
  text-align: center;
  font-size: 10px;
  color: #c0c0c0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#trade-window .trade-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  max-width: 68px; /* two slots per row */
  min-height: 34px;
}

#trade-window .trade-items > .slot {
  cursor: pointer;
}

#trade-window > .trade-buttons {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 4px 8px;
}
