.trade-filter-main {
  width: 600px;
  padding: 0 20px 18px;
}

.trade-filter-cover {
  display: flex;
  flex: 1;
  align-self: stretch;
  min-height: 310px;
  background: #eef3fb;
}

.trade-filter-cover img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
}

.trade-category-groups {
  margin: 0 -20px 18px;
}

.trade-category-row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.trade-category-label {
  display: flex;
  flex: 0 0 110px;
  align-items: flex-start;
  padding: 20px 8px 12px 18px;
  color: #333;
  white-space: nowrap;
}

.trade-category-label img {
  width: 15px;
  height: 15px;
  margin: 2px 9px 0 0;
  object-fit: contain;
}

.trade-category-options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-content: center;
  gap: 6px 8px;
  padding: 10px 8px 10px 0;
}

.trade-category-option {
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.trade-category-option:hover {
  color: #2e5ec0;
}

.trade-category-option.active {
  border-color: #2e5ec0;
  background: #2e5ec0;
  color: #fff;
}

.trade-category-empty {
  min-height: 80px;
  padding: 30px 20px;
  text-align: center;
  color: #999;
}

.trade-filter-actions {
  min-height: 36px;
  margin-top: 18px;
}

.supply-card,
.demand-card {
  display: block;
  min-width: 0;
  color: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.supply-card:hover,
.supply-card:focus,
.demand-card:hover,
.demand-card:focus {
  color: inherit;
  text-decoration: none;
}

.supply-card:focus-visible,
.demand-card:focus-visible {
  outline: 2px solid #2e5ec0;
  outline-offset: 2px;
}

.supply-title,
.demand-title strong {
  height: auto;
  min-height: 24px;
  overflow: visible;
  white-space: normal;
}

.supply-line {
  height: auto;
  min-height: 24px;
}

.supply-line span:first-child {
  flex-basis: 72px;
  white-space: nowrap;
}

.supply-line em {
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.supply-corner {
  position: absolute;
  z-index: 2;
  top: 0;
  width: 76px;
  height: 76px;
  overflow: hidden;
  pointer-events: none;
}

.supply-corner::before {
  position: absolute;
  top: 0;
  width: 76px;
  height: 76px;
  content: "";
}

.supply-corner span {
  position: absolute;
  top: 15px;
  width: 70px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  white-space: nowrap;
}

.supply-corner.urgent-corner {
  left: 0;
}

.supply-corner.urgent-corner::before {
  left: 0;
  background: #ec554c;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.supply-corner.urgent-corner span {
  left: -15px;
  transform: rotate(-45deg);
}

.supply-corner.platform-corner {
  right: 0;
}

.supply-corner.platform-corner::before {
  right: 0;
  background: #2e5ec0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.supply-corner.platform-corner span {
  right: -15px;
  transform: rotate(45deg);
}

.demand-main {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 230px) minmax(0, 1fr);
  gap: 20px;
}

.demand-title,
.demand-price {
  width: auto;
  min-width: 0;
}

.demand-stats {
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1000px) {
  .trade-filter-main {
    width: 100%;
  }

  .trade-filter-cover {
    display: none;
  }

  .demand-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .demand-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .trade-category-row {
    display: block;
  }

  .trade-category-label {
    padding-bottom: 5px;
  }

  .trade-category-options {
    padding: 0 12px 12px 42px;
  }

  .demand-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .demand-title,
  .demand-price,
  .demand-stats {
    margin-bottom: 0;
  }

  .demand-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
