.llm-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.api_docs .llm-heading {
  width: calc(100% + 240px);
  padding: 30px 0 15px;
}

.api_docs .llm-heading h1,
.pricing_catalog_intro .llm-heading h2 {
  width: auto;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.pricing_catalog_intro .llm-heading {
  max-width: 1440px;
  margin: 0 auto;
}

.llm-tools {
  flex: 0 0 auto;
  position: relative;
}

.llm-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #7000ff;
  border-radius: 6px;
  background: #7000ff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.llm-copy-button:hover {
  background: #5800cc;
}

.llm-copy-button:focus-visible {
  outline: 2px solid #7000ff;
  outline-offset: 3px;
}

.llm-copy-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.llm-tools [role="status"],
.llm-tools [data-copy-for-llm-fallback]:not([hidden]) {
  display: block;
  max-width: 240px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.llm-tools [role="status"]:empty {
  display: none;
}

@media (max-width: 960px) {
  .api_docs .llm-heading {
    width: auto;
  }
}

@media (max-width: 480px) {
  .llm-heading {
    gap: 12px;
  }

  .llm-copy-button {
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
  }
}
