.smart-content-sync-block {
  border: 2px solid #e2e4e7;
  border-radius: 2px;
  padding-left: 4px;
  padding-right: 4px;
  // box-shadow: inset 0 0 0 1px #1e1e1e;
}
/* Header container sits inside the block, so no outer width hacks needed */
.smart-content-sync-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;          /* compact padding like your earlier version */
  background: #f6f7f7;         /* light WP-ish header bg */
  border: 1px solid #e2e4e7;
  border-radius: 6px;
  margin-bottom: 12px;         /* space above preview/empty card */
}

.smart-content-sync-header__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.smart-content-sync-header__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smart-content-sync-header__title {
  font-weight: 600;
  line-height: 1.2;
}

.smart-content-sync-header__sub {
  font-size: 12px;
  color: #6b7280;
}

/* push the action button to the far right */
.smart-content-sync-header__action {
  margin-left: auto;
}

/* Minimal mode: fade header in on hover/focus only (optional) */
.smart-content-sync-block.is-minimal .smart-content-sync-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
}
.smart-content-sync-block.is-minimal:hover .smart-content-sync-header,
.smart-content-sync-block.is-minimal:focus-within .smart-content-sync-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.smart-content-sync-empty__hint {
  font-size: 0.9rem;
}

.description.smart-content-sync-auto-insert__help {
  margin-top: 4px!important;
  margin-bottom: 8px;
  // color: #2271b1;
}

.smart-content-sync-auto-insert__locations {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  gap: 6px;
}
// .smart-content-sync-auto-insert__group {
//   margin-bottom: 12px;
// }
details.smart-content-sync-auto-insert__group {
  padding-top: 4px;
  padding-right: 4px;
  padding-bottom: 4px;
  padding-left: 10px;
}
.smart-content-sync-auto-insert__group:not(:last-of-type) {
  margin-bottom: 12px;
}
.smart-content-sync-auto-insert__group:nth-of-type(even) {
  // background: red;
  background: #f9fafb;
}

// #region helper text styles

.smart-content-sync-auto-insert__helpWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.smart-content-sync-auto-insert__helpIcon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c3c4c7;
  font-size: 11px;
  line-height: 1;
  color: #50575e;
  background: #fff;
  cursor: help;
}

.smart-content-sync-auto-insert__helpIcon:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
}

// .smart-content-sync-auto-insert__tooltip {
//   position: absolute;
//   z-index: 9999;
//   top: 22px;
//   left: 0;
//   min-width: 220px;
//   max-width: 280px;
//   padding: 8px 10px;
//   border-radius: 6px;
//   border: 1px solid #dcdcde;
//   background: #fff;
//   color: #1d2327;
//   font-size: 12px;
//   line-height: 1.4;
//   box-shadow: 0 2px 8px rgba(0,0,0,0.12);

//   opacity: 0;
//   visibility: hidden;
//   transform: translateY(-2px);
//   transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
// }

// .smart-content-sync-auto-insert__helpWrap:hover .smart-content-sync-auto-insert__tooltip,
// .smart-content-sync-auto-insert__helpWrap:focus-within .smart-content-sync-auto-insert__tooltip {
//   opacity: 1;
//   visibility: visible;
//   transform: translateY(0);
// }

.smart-content-sync-help { cursor: help; }
.smart-content-sync-help .dashicons { opacity: .7; }
.smart-content-sync-help:hover .dashicons { opacity: 1; }

// #endregion helper text styles
.smart-content-sync-auto-insert__enabled {
  font-weight: bold;
}
.smart-content-sync-auto-insert__seo-note {
  font-size: 0.7rem!important;
}
summary.smart-content-sync-auto-insert__summary {
  font-weight: bold;
  margin-bottom: 8px;
}
