.wanted-nft-gallery {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
}

.nft-thumbnail {
  width: 60px;
  height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  text-align: center;
}

.nft-thumbnail:hover {
  border-color: #007bff;
}

.nft-thumbnail.selected {
  border-color: #28a745;
  background-color: rgba(40, 167, 69, 0.1);
}

.nft-thumbnail img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 3px;
}

.nft-thumbnail p {
  font-size: 10px;
  margin: 2px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trade-nft-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #333;
  background-color: #f8f9fa;
}

.trade-details {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.offered-nft, .wanted-nft {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.trade-arrow {
  font-size: 24px;
  color: #007bff;
  font-weight: bold;
}

.trade-actions {
  flex: 0 0 auto;
}

.nft-preview {
  text-align: center;
  margin-top: 10px;
}

.trade-offer {
  position: relative;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
}

.cancel-trade {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  height: 25px;
  background: rgba(220, 53, 69, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.cancel-trade:hover {
  background: rgba(220, 53, 69, 1);
}

.cancel-icon {
  color: white;
  font-size: 16px;
  font-weight: bold;
}

#nftModal .modal-body {
  display: flex;
  gap: 20px;
  padding: 20px;
}

#nftModal .modal-image-section {
  flex: 0 0 300px;
}

#nftModal .modal-info {
  flex: 1;
}

#nftModal .metadata-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

#nftModal .metadata-section:last-of-type {
  border-bottom: none;
}

#nftModal .metadata-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

#nftModal .metadata-label {
  font-weight: bold;
  color: #4a5568;
  flex: 0 0 25%;
}

#nftModal .metadata-value {
  color: #4a5568;
  text-align: left;
}

#nftModal .form-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.wanted-nft-gallery {
  max-height: 150px;
  min-height: 100px;
}