/* CTA Box — editor + front */
.wp-block-custom-cta-box.cta-box,
.cta-box {
  box-sizing: border-box;
  /* Defaults when no block colour is set (overridden by has-* / inline styles) */
  background-color: var(--wp--preset--color--purple-light);
  color: var(--wp--preset--color--white);
  margin-bottom: 1.5rem;
  padding: var(--wp--preset--spacing--30);
}

.cta-box a,
.cta-box .wp-block-button__link {
  color:inherit;
}

.cta-box__inner {
  box-sizing: border-box;
  /* Spacing in block tools overrides via wrapper style */
}

/* Editor */
.cta-box--editor {
  min-height: 4rem;
}

.cta-box--editor .cta-box__inner {
  min-height: 2rem;
}

/* Core blocks inside: inherit CTA text colour by default */
.cta-box .wp-block-heading,
.cta-box .wp-block-paragraph,
.cta-box .block-editor-rich-text__editable {
  color: inherit;
}
