/**
 * Nexo Page Kit — CTA Section.
 */

.nexo-cta-section {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--nexo-cta-section-min-height-outer, 0);
  margin-top: var(--nexo-cta-section-margin-top, 0);
  margin-bottom: var(--nexo-cta-section-margin-bottom, 0);
  padding: var(--nexo-cta-section-padding, 0);
  background: var(--nexo-cta-section-bg-outer, transparent);
}

body:not(.wp-admin) .nexo-cta-section {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.nexo-cta-section *,
.nexo-cta-section *::before,
.nexo-cta-section *::after {
  box-sizing: border-box;
}

.wp-admin .nexo-cta-section,
.nexo-page-kit-admin-preview .nexo-cta-section {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.nexo-cta-section__container {
  width: min(
    var(
      --nexo-cta-section-container-width,
      var(--nexo-cta-section-content-width, 1015px)
    ),
    100%
  );
  margin: var(--nexo-cta-section-container-margin, 0 auto);
  padding: var(--nexo-cta-section-container-padding, 0);
}

.nexo-cta-section__inner {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(260px, var(--nexo-cta-section-button-width, 430px));
  gap: var(--nexo-cta-section-gap, 48px);
  align-items: end;
  width: 100%;
  min-height: var(--nexo-cta-section-min-height, 356px);
  padding: var(--nexo-cta-section-padding-y, 70px)
    var(--nexo-cta-section-padding-x, 60px);
  color: var(--nexo-cta-section-color, #25292a);
  background: var(--nexo-cta-section-bg, #d9d9d9);
  border-radius: var(--nexo-cta-section-radius, 6px);
}

.nexo-cta-section__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: calc(
    var(--nexo-cta-section-min-height, 356px) -
      (var(--nexo-cta-section-padding-y, 70px) * 2)
  );
}

.nexo-cta-section .nexo-cta-section__title {
  margin: 0;
  color: currentColor;
  font-family: var(
    --nexo-cta-section-title-font-family,
    var(
      --nexo-font-family-headings,
      "Nunito Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      Arial,
      sans-serif
    )
  );
  font-size: var(--nexo-cta-section-title-size, 46px);
  font-weight: var(--nexo-cta-section-title-weight, 800);
  font-style: var(--nexo-cta-section-title-style, normal);
  line-height: var(--nexo-cta-section-title-line-height, 1.08);
  text-align: var(--nexo-cta-section-title-align, left);
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (max-width: 1024px) {
  .nexo-cta-section,
  body:not(.wp-admin) .nexo-cta-section {
    margin-top: var(
      --nexo-cta-section-margin-top-tablet,
      var(--nexo-cta-section-margin-top, 0)
    ) !important;
  }
}

@media (max-width: 767px) {
  .nexo-cta-section,
  body:not(.wp-admin) .nexo-cta-section {
    margin-top: var(
      --nexo-cta-section-margin-top-mobile,
      var(
        --nexo-cta-section-margin-top-tablet,
        var(--nexo-cta-section-margin-top, 0)
      )
    ) !important;
  }
}

.nexo-cta-section .nexo-cta-section__title-line {
  display: block;
}

.nexo-cta-section .nexo-cta-section__description {
  max-width: 360px;
  margin: 28px 0 0;
  color: currentColor;
  font-family: var(
    --nexo-cta-section-description-font-family,
    var(
      --nexo-font-family-body,
      "Nunito Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      Arial,
      sans-serif
    )
  );
  font-size: var(--nexo-cta-section-description-size, 13px);
  font-weight: var(--nexo-cta-section-description-weight, 400);
  font-style: var(--nexo-cta-section-description-style, normal);
  line-height: var(--nexo-cta-section-description-line-height, 1.35);
  text-align: var(--nexo-cta-section-description-align, left);
}

.nexo-cta-section__actions {
  min-width: 0;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: var(--nexo-cta-section-gap, 18px);
  text-align: center;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__content,
.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__actions {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  justify-content: center;
  text-align: center;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__title,
.nexo-cta-section.nexo-cta-section--layout-stacked
  .nexo-cta-section__description {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.nexo-cta-section.nexo-cta-section--layout-stacked
  .nexo-cta-section__description {
  max-width: 100%;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 0;
}

.nexo-cta-section.nexo-cta-section--layout-stacked .nexo-cta-section__button {
  width: min(100%, var(--nexo-cta-section-button-width, 430px));
  max-width: 100%;
  align-self: center;
}

.nexo-cta-section .nexo-cta-section__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--nexo-cta-section-button-height, 68px);
  padding: 0 34px;
  gap: var(--nexo-cta-section-icon-gap, 14px);
  color: var(--nexo-cta-section-button-color, #ffffff);
  font-family: var(
    --nexo-cta-section-button-font-family,
    var(
      --nexo-font-family-body,
      "Nunito Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      Arial,
      sans-serif
    )
  );
  font-size: var(--nexo-cta-section-button-font-size, 13px);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--nexo-cta-section-button-bg, #f75c00);
  border-radius: var(--nexo-cta-section-button-radius, 7px);
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nexo-cta-section .nexo-cta-section__button--has-arrow::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: var(--nexo-cta-section-icon-size, 24px);
  height: var(--nexo-cta-section-icon-size, 24px);
  background-color: currentColor;
  -webkit-mask-image: url("../../images/icons/whatsapp.svg");
  mask-image: url("../../images/icons/whatsapp.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translateY(var(--nexo-cta-section-icon-offset-y, 0));
}

.nexo-cta-section .nexo-cta-section__button:hover,
.nexo-cta-section .nexo-cta-section__button:focus,
.nexo-cta-section .nexo-cta-section__button:focus-visible {
  color: var(
    --nexo-cta-section-button-hover-color,
    var(--nexo-cta-section-button-color, #ffffff)
  );
  background: var(--nexo-cta-section-button-hover-bg, #d94f00);
  outline: none;
  transform: translateY(-1px);
}

.nexo-cta-section .nexo-cta-section__button:hover .nexo-cta-section__button-label,
.nexo-cta-section
  .nexo-cta-section__button:focus
  .nexo-cta-section__button-label,
.nexo-cta-section
  .nexo-cta-section__button:focus-visible
  .nexo-cta-section__button-label {
  color: inherit;
}

@media (max-width: 767px) {
  .nexo-cta-section__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 28px;
  }

  .nexo-cta-section__content {
    min-height: auto;
  }

  .nexo-cta-section .nexo-cta-section__title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .nexo-cta-section .nexo-cta-section__description {
    max-width: none;
  }

  .nexo-cta-section .nexo-cta-section__button {
    width: 100%;
  }
}

#poststuff
  .nexo-page-kit-admin-preview
  .nexo-cta-section
  .nexo-cta-section__title {
  margin: 0;
  padding: 0;
  color: currentColor;
  font-family: var(
    --nexo-cta-section-title-font-family,
    var(
      --nexo-font-family-headings,
      "Nunito Sans",
      system-ui,
      -apple-system,
      "Segoe UI",
      Roboto,
      Arial,
      sans-serif
    )
  );
  font-size: var(--nexo-cta-section-title-size, 46px);
  font-weight: var(--nexo-cta-section-title-weight, 800);
  font-style: var(--nexo-cta-section-title-style, normal);
  line-height: var(--nexo-cta-section-title-line-height, 1.08);
  text-align: var(--nexo-cta-section-title-align, left);
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (max-width: 1024px) {
  .nexo-cta-section.nexo-cta-section--engine-canvas {
    height: auto;
    min-height: 0;
  }
}
