/* Scoped adapters: the accepted parts layout remains in products.css. */
.wp-autoparts .component-editor-content,
.wp-autoparts .autoparts-editor-content {
  margin-top: 48px;
  margin-bottom: 48px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.wp-autoparts .component-editor-content > :first-child,
.wp-autoparts .autoparts-editor-content > :first-child { margin-top: 0; }
.wp-autoparts .component-editor-content > :last-child,
.wp-autoparts .autoparts-editor-content > :last-child { margin-bottom: 0; }
.wp-autoparts .component-editor-content :is(h2, h3, h4, h5, h6),
.wp-autoparts .autoparts-editor-content :is(h2, h3, h4, h5, h6) { color: var(--ink); line-height: 1.3; }
.wp-autoparts .component-editor-content :is(img, video),
.wp-autoparts .autoparts-editor-content :is(img, video) { max-width: 100%; height: auto; }
.wp-autoparts .component-editor-content :is(iframe, figure),
.wp-autoparts .autoparts-editor-content :is(iframe, figure) { max-width: 100%; }
.wp-autoparts .component-editor-content :is(pre, .wp-block-table),
.wp-autoparts .autoparts-editor-content :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.wp-autoparts .component-editor-content table,
.wp-autoparts .autoparts-editor-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.wp-autoparts .component-editor-content a,
.wp-autoparts .autoparts-editor-content a { color: var(--red); text-decoration: underline; }
.wp-autoparts .component-media-placeholder,
.wp-autoparts .component-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 24px;
  background: #f3f5f5;
  color: #718087;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.wp-autoparts .component-card-photo > a > .component-card-placeholder { position: absolute; inset: 0; }
.wp-autoparts :is(#component-open-gallery, [data-component-view], .component-lightbox button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .wp-autoparts .component-editor-content,
  .wp-autoparts .autoparts-editor-content { margin-top: 32px; margin-bottom: 32px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-autoparts .component-editor-content *,
  .wp-autoparts .autoparts-editor-content * { scroll-behavior: auto !important; }
}
