.mffcta-shell {
  position: fixed;
  right: 0;
  bottom: 14px;
  left: 0;
  display: none;
  box-sizing: border-box;
  width: 100%;
  padding: 0 14px;
  pointer-events: none;
  z-index: 9998;
}

.mffcta-shell.mffcta-eligible {
  display: block;
}

.mffcta-inner {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mffcta-shell.mffcta-visible .mffcta-inner {
  opacity: 1;
  transform: translateY(0);
}

.mffcta-button {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 15px 22px;
  gap: 16px;
  border: 1px solid #8caebf;
  border-radius: 2px 9px 3px 7px;
  background: #102536;
  box-shadow: 0 4px 12px rgba(4, 19, 32, 0.24);
  color: #f7f9fa;
  font-family: Barlow, Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  pointer-events: auto;
  transform: rotate(-0.25deg);
  transition: background-color 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.mffcta-button-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: baseline;
  gap: 0.35em;
}

.mffcta-button-text {
  min-width: 0;
}

.mffcta-button-discount {
  color: #b8d6e9;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0.04em;
  line-height: inherit;
  white-space: nowrap;
}

.mffcta-button-discount::before {
  content: "— ";
}

.mffcta-discount-new-line .mffcta-button-copy {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.mffcta-discount-new-line .mffcta-button-discount::before {
  content: none;
}

.mffcta-button-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(184, 214, 233, 0.65);
  border-radius: 50%;
  color: #f7f9fa;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.mffcta-button:hover,
.mffcta-button:focus-visible {
  background: #1b364a;
  box-shadow: 0 6px 16px rgba(4, 19, 32, 0.28);
  color: #f7f9fa;
  text-decoration: none;
  transform: translateY(-3px) rotate(0deg);
}

/* Estilo autoral da página Tribo. O !important garante a atualização dos
   widgets salvos com as antigas cores padrão; pode ser desligado no Elementor. */
html body .mffcta-shell.mffcta-style-tribo .mffcta-button {
  border-color: #8caebf !important;
  border-radius: 2px 9px 3px 7px !important;
  background: #102536 !important;
  background-color: #102536 !important;
  background-image: none !important;
  box-shadow: 0 4px 12px rgba(4, 19, 32, 0.24) !important;
  color: #f7f9fa !important;
  font-family: Barlow, "Segoe UI", Arial, sans-serif !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: normal;
}

html body .mffcta-shell.mffcta-style-tribo .mffcta-button:hover,
html body .mffcta-shell.mffcta-style-tribo .mffcta-button:focus-visible {
  background: #1b364a !important;
  background-color: #1b364a !important;
  background-image: none !important;
  box-shadow: 0 6px 16px rgba(4, 19, 32, 0.28) !important;
}

/* Camada sólida de segurança: impede temas e estilos gerados pelo Elementor
   de deixarem o fundo transparente. */
html body .mffcta-shell.mffcta-style-tribo .mffcta-button::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: #102536;
  content: "";
  opacity: 1;
  pointer-events: none;
}

html body .mffcta-shell.mffcta-style-tribo .mffcta-button:hover::before,
html body .mffcta-shell.mffcta-style-tribo .mffcta-button:focus-visible::before {
  background: #1b364a;
}

.mffcta-style-tribo .mffcta-button-discount {
  color: #b8d6e9 !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

.mffcta-style-tribo .mffcta-button-arrow {
  border-color: rgba(184, 214, 233, 0.65);
  color: #f7f9fa;
}

@media (max-width: 420px) {
  .mffcta-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mffcta-button {
    min-height: 58px;
    padding: 14px 15px 13px 18px;
    font-size: 15px !important;
  }

  .mffcta-button-arrow {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

.mffcta-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .mffcta-inner,
  .mffcta-button {
    transition: none;
  }
}

body.elementor-editor-active .mffcta-shell {
  position: relative;
  right: auto;
  bottom: auto !important;
  left: auto;
  display: block;
  padding: 14px;
  pointer-events: auto;
}

body.elementor-editor-active .mffcta-inner {
  opacity: 1;
  transform: none;
}
