/* Base visuals for the CTA wrapper */
.wp-block-myplugin-cta-block,
.cta-block {
  display: block;
  /* Ensure the whole CTA wrapper (often an <a>) isn't underlined */
  text-decoration: none;
}

.wp-block-myplugin-cta-block a,
.cta-block a {
  text-decoration: none;
}

/* Override global link underline: a:where(:not(.wp-element-button)) */
a.wp-block-myplugin-cta-block:where(:not(.wp-element-button)),
a.cta-block:where(:not(.wp-element-button)),
.wp-block-myplugin-cta-block a:where(:not(.wp-element-button)),
.cta-block a:where(:not(.wp-element-button)) {
  text-decoration: none !important;
}

/* Ensure no underline on CTA wrapper in any state */
a.cta-block,
a.cta-block:hover,
a.cta-block:focus,
a.cta-block:active {
  text-decoration: none !important;
}

/* Optional hover affordance */
.wp-block-myplugin-cta-block:hover,
.cta-block:hover {
  filter: brightness(0.98);
}

.cta-block figure {
  margin-top: auto;
  margin-bottom: auto;
}
