/* Embed-specific layout on top of demo.css */

.embed-chrome {
  width: min(340px, calc(100vw - 24px));
  top: 12px;
  left: 12px;
  padding: 12px 14px;
}

.embed-brand h1 {
  font-size: 1.2rem;
}

.embed-key {
  display: flex !important;
  margin-top: 0;
  margin-bottom: 10px;
}

.embed-key.compact {
  display: none !important;
}

.embed-tools {
  margin-top: 10px;
  padding-top: 10px;
}

.route-endpoints {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--dm-ink);
}

#snippet {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 12px;
  left: 12px;
  max-width: 520px;
  margin: 0 0 0 auto;
  padding: 12px 14px;
  background: rgba(20, 33, 43, 0.92);
  color: #e8ecf2;
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 40vh;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#snippet[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .embed-chrome {
    max-height: 55vh;
    overflow: auto;
  }
}
