.code-sample {
  display: grid;
  min-width: 0;
  margin-block: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.doc .code-sample pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.code-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  min-height: 30px;
  padding: .2rem .65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: 600 .75rem/1.2 var(--ui);
  cursor: pointer;
}
.code-copy::before {
  content: '';
  width: 8px;
  height: 10px;
  margin-inline: 2px;
  border: 1px solid currentColor;
  border-radius: 2px;
  box-shadow: -2px -2px var(--surface), -3px -3px currentColor;
}
.code-copy:hover { color: var(--fg); border-color: var(--muted); }
.code-sample > .code-copy { justify-self: end; margin: 8px 8px 0; }
.request-demo figcaption .code-copy { margin-inline-start: auto; }
.code-feedback {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
