.dex-chart {
  margin-top: 1.25rem;
  border: 1px solid var(--stroke, rgba(255, 255, 255, 0.15));
  border-radius: 1rem;
  background: rgba(7, 10, 18, 0.5);
  overflow: hidden;
}

.dex-chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dex-chart__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #f5f7ff);
}

.dex-chart__link {
  flex-shrink: 0;
}

.dex-chart__frame {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: min(52vh, 500px);
  background: #0d1117;
}

.dex-chart__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dex-chart__body {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
}

.dex-chart__status {
  margin: 0;
  max-width: 42ch;
  font-size: 0.92rem;
  color: var(--muted, #a6b0cf);
}

.dex-chart--loading .dex-chart__frame,
.dex-chart--empty .dex-chart__frame {
  display: none;
}

.dex-chart--loading .dex-chart__status::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--accent-c, #4fc3ff);
  vertical-align: middle;
  animation: dex-chart-pulse 1.1s ease-in-out infinite;
}

.dex-chart__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.token-page .dex-chart {
  margin: 1rem 0 1.15rem;
  grid-column: 1 / -1;
}

@keyframes dex-chart-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .dex-chart__frame {
    min-height: 360px;
    height: 360px;
  }
}
