/* Styling-kit-only adapters. Keep the original products.css cascade unchanged. */
.wp-kits .component-editor-content,
.wp-kits .kits-editor-content {
  margin-top: 48px;
  margin-bottom: 48px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.wp-kits :is(.component-editor-content, .kits-editor-content) > :first-child { margin-top: 0; }
.wp-kits :is(.component-editor-content, .kits-editor-content) > :last-child { margin-bottom: 0; }
.wp-kits :is(.component-editor-content, .kits-editor-content) :is(h2, h3, h4, h5, h6) { color: var(--ink); line-height: 1.3; }
.wp-kits :is(.component-editor-content, .kits-editor-content) :is(img, video) { max-width: 100%; height: auto; }
.wp-kits :is(.component-editor-content, .kits-editor-content) :is(iframe, figure) { max-width: 100%; }
.wp-kits :is(.component-editor-content, .kits-editor-content) :is(pre, .wp-block-table) { max-width: 100%; overflow-x: auto; }
.wp-kits :is(.component-editor-content, .kits-editor-content) table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.wp-kits :is(.component-editor-content, .kits-editor-content) a { color: var(--red); text-decoration: underline; }
.wp-kits :is(.component-media-placeholder, .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-kits .component-card-photo > a > .component-card-placeholder { position: absolute; inset: 0; }
.wp-kits #component-main-image[data-fit="cover"] > img { object-fit: cover; }
.wp-kits #component-main-image[data-fit="contain"] > img { object-fit: contain; }
.wp-kits :is(#component-open-gallery, [data-component-view], [data-open-component-gallery], .component-lightbox button):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .wp-kits :is(.component-editor-content, .kits-editor-content) { margin-top: 32px; margin-bottom: 32px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wp-kits :is(.component-editor-content, .kits-editor-content) * { scroll-behavior: auto !important; }
}
