.bmm-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  background-color: var(--global-palette2, #0d294e);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bmm-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 35px 18px;
  text-align: center;
}

.bmm-cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  width: 100%;
}

/* Stroke is CTA-only (not .bmm-heading-stroke). Height CQ lives on a
   stretched sibling so size containment does not collapse the label. */
.bmm-cta p.bmm-cta__label {
  display: grid;
  position: relative;
  z-index: 0;
  margin: 0;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 204px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  background: none;
}

.bmm-cta__label-text {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
}

.bmm-cta__label-cq {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  position: relative;
  container-type: size;
  container-name: bmm-cta-label;
  pointer-events: none;
}

.bmm-cta__stroke {
  position: absolute;
  inset: -8px -18px;
  background-color: #fff;
  -webkit-mask-image: url(/wp-content/uploads/2024/05/graphic-stroke.svg);
  mask-image: url(/wp-content/uploads/2024/05/graphic-stroke.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@container bmm-cta-label (min-height: 30px) {
  .bmm-cta__stroke {
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    mask-position: 95% center;
    -webkit-mask-position: 95% center;
  }
}

.bmm-cta__cover {
  width: 100%;
  max-width: 154px;
}

.bmm-cta__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.bmm-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  width: 100%;
}

.bmm-cta__headline,
.bmm-cta__body {
  margin: 0;
}

.bmm-cta p.bmm-cta__headline {
  margin-bottom: 0 !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.36;
}

.bmm-cta__body {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.bmm-cta a.bmm-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 0;
  background-color: var(--global-palette1, #f25500);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.bmm-cta a.bmm-cta__button:hover,
.bmm-cta a.bmm-cta__button:focus {
  color: #fff !important;
  border-color: #fff;
  opacity: 1;
  background-color: transparent;
}

.bmm-cta--theme-light a.bmm-cta__button:hover,
.bmm-cta--theme-light a.bmm-cta__button:focus {
  background-color: transparent;
  border-color: #0d294e;
  color: #0d294e !important;
}

.bmm-cta--theme-dark {
  color: #f2f2f2;
}

.bmm-cta--theme-dark .bmm-cta__label {
  color: var(--global-palette4, #232625);
}

.bmm-cta--theme-dark .bmm-cta__stroke {
  background-color: #fff;
}

.bmm-cta--theme-light {
  color: #131517;
}

.bmm-cta--theme-light .bmm-cta__label,
.bmm-cta--theme-light .bmm-cta__label-text {
  color: #fff;
}

.bmm-cta--theme-light .bmm-cta__stroke {
  background-color: #0d294e;
}
