/* ===== CTA Button Block ===== */
.cta-button-block {
  text-align: center; /* You can override with align class in Gutenberg */
  padding: 10px 0;
}

/* Base button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  min-width: 200px;
  background: var(--btn-bg, #b16895); /* Default to pink if none set */
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  line-height: 1.2;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    color 0.3s ease;
}

/* Hover / active */
.cta-btn:hover {
  background: color-mix(in srgb, var(--btn-bg, #b16895) 85%, #000 15%);
  color: #fff;
}

/* Label inside button */
.cta-btn__label {
  display: inline-block;
}

/* Chevron icon */
.cta-btn__chev {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Placeholder in editor (unclickable) */
.cta-btn--placeholder {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

/* CTA Button alignment handling */
.cta-button-block.alignleft {
  text-align: left;
}

.cta-button-block.aligncenter {
  text-align: center;
}

.cta-button-block.alignright {
  text-align: right;
}

/* Keep the CTA block on its own line */
.cta-button-block {
  display: block;
  clear: both;           /* don't let earlier floats wrap around it */
  width: 100%;           /* optional, ensures it claims the row */
}

/* Override WP core floats just for this block */
.cta-button-block.alignleft,
.cta-button-block.alignright {
  float: none !important;   /* stop the wrapping behavior */
}

/* Visual alignment (pick one style below) */

/* A) text-align version (keep your inline-flex button) */
.cta-button-block.alignleft  { text-align: left; }
.cta-button-block.aligncenter{ text-align: center; }
.cta-button-block.alignright { text-align: right; }

/* B) flex version (alternative)
.cta-button-block { display: flex; }
.cta-button-block.alignleft   { justify-content: flex-start; }
.cta-button-block.aligncenter { justify-content: center; }
.cta-button-block.alignright  { justify-content: flex-end; }
*/

/* Keep the button inline for text-align to work */
.cta-btn {
  display: inline-flex;
}

/* Disable link click in Gutenberg editor only */
.block-editor .cta-btn {
  pointer-events: none;
  cursor: default;
}

.wp-block-acf-cta-button {
  width: 100% !important;
  display: block !important;
}

.tsa-white-card .cta-btn {
  color: #fff;
  text-decoration: none !important;
}

/* Optional: override hover color too */
.tsa-white-card .cta-btn:hover {
  color: #fff;
}