/* C2P Exchange 0055: compact reusable market discovery cards. */
.c2e-market-landing-heading {
  margin-bottom: 10px !important;
}

.c2e-market-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.c2e-market-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 166px;
  padding: 13px 14px 12px;
  border: 1px solid #26323d;
  border-radius: 9px;
  background: #10161d;
  color: #eef3f7;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.c2e-market-card:hover,
.c2e-market-card:focus-visible {
  border-color: #40505f;
  background: #121b23;
  outline: none;
}

.c2e-market-card:active {
  transform: translateY(1px);
}

.c2e-market-card.paused {
  opacity: .72;
}

.c2e-market-card-top,
.c2e-market-card-middle,
.c2e-market-card-stats {
  display: flex;
  align-items: center;
}

.c2e-market-card-top {
  gap: 10px;
  min-width: 0;
}

.c2e-asset-sticker {
  --asset-accent: #91a1ae;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--asset-accent);
  border-radius: 50%;
  color: var(--asset-accent);
  background: #0d1319;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 18px rgb(255 255 255 / 2%);
}

.c2e-asset-sticker[data-asset="BTC"] { --asset-accent: #f4a340; }
.c2e-asset-sticker[data-asset="ETH"] { --asset-accent: #8795ff; }
.c2e-asset-sticker[data-asset="SOL"] { --asset-accent: #48d9b0; }
.c2e-asset-sticker[data-asset="XRP"] { --asset-accent: #b6c2cc; }
.c2e-asset-sticker[data-asset="DOGE"] { --asset-accent: #d5b74b; }
.c2e-asset-sticker[data-asset="ADA"] { --asset-accent: #5f9cff; }
.c2e-asset-sticker[data-asset="LTC"] { --asset-accent: #7fa2ca; }
.c2e-asset-sticker[data-asset="BCH"] { --asset-accent: #78c98b; }
.c2e-asset-sticker[data-asset="LINK"] { --asset-accent: #5c7cff; }

.c2e-market-card-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.c2e-market-card-identity strong {
  font-size: 16px;
  letter-spacing: .02em;
}

.c2e-market-card-identity span {
  margin-top: 4px;
  color: #7f8d99;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c2e-market-card-paused {
  margin-left: 6px;
  color: #d5a85b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}


.c2e-market-card-favorite {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 9px;
}

.c2e-market-card-favorite span {
  font-size: 1.08rem;
}

.c2e-market-trade-action {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: 0;
  border: 1px solid #31404c;
  border-radius: 9px;
  background: #0d141a;
  color: #96a6b3;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.c2e-market-trade-action svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.c2e-market-trade-action path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.c2e-market-trade-action-base {
  opacity: .58;
}

.c2e-market-card:hover .c2e-market-trade-action,
.c2e-market-card:focus-visible .c2e-market-trade-action {
  color: #dce7ef;
  border-color: #536879;
  background: #15212a;
  transform: translate(1px, -1px);
}

.c2e-market-discovery-empty {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px solid #26323d;
  border-radius: 9px;
  background: #10161d;
  color: #667683;
  font-size: 12px;
}

.c2e-market-card-middle {
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  min-height: 47px;
}

.c2e-market-card-price {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 102px;
}

.c2e-market-card-price strong {
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1;
  letter-spacing: -.025em;
}

.c2e-market-card-price span {
  margin-top: 5px;
  color: #87939e;
  font-size: 11px;
  font-weight: 700;
}

.c2e-market-card-price span.gain { color: #42ca7b; }
.c2e-market-card-price span.loss { color: #ee6464; }

.c2e-market-card-trend {
  flex: 1 1 auto;
  min-width: 80px;
  height: 42px;
  overflow: hidden;
}

.c2e-market-sparkline {
  display: block;
  width: 100%;
  height: 42px;
  color: #87939e;
}

.c2e-market-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c2e-market-sparkline.gain { color: #42ca7b; }
.c2e-market-sparkline.loss { color: #ee6464; }
.c2e-market-sparkline.neutral { color: #7f8d99; }

.c2e-market-sparkline-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 42px;
  border-bottom: 1px solid #1e2932;
  color: #5f6d78;
  font-size: 10px;
}

.c2e-market-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #1e2932;
}

.c2e-market-card-stats span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.c2e-market-card-stats small {
  color: #687783;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.c2e-market-card-stats strong {
  margin-top: 4px;
  color: #cfd7de;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .c2e-market-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .c2e-market-card-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .c2e-market-card {
    min-height: 136px;
    padding: 10px 11px 9px;
    border-radius: 8px;
  }

  .c2e-asset-sticker {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .c2e-market-card-favorite,
  .c2e-market-trade-action {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }

  .c2e-market-trade-action svg {
    width: 20px;
    height: 20px;
  }

  .c2e-market-card-middle {
    margin-top: 7px;
    min-height: 38px;
  }

  .c2e-market-card-price strong {
    font-size: 18px;
  }

  .c2e-market-card-trend,
  .c2e-market-sparkline,
  .c2e-market-sparkline-empty {
    height: 34px;
  }

  .c2e-market-card-stats {
    margin-top: 6px;
    padding-top: 6px;
  }
}
