/* Rodapé reestruturado + CTA flutuante de apoio (escopo local) */

.site-footer {
  position: relative;
  overflow: visible;
}

.site-footer .footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px 36px;
  align-items: start;
}

.site-footer .footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-col h3 {
  margin: 0 0 12px;
  width: 100%;
}

.site-footer .footer-col a {
  display: block;
  width: auto;
  max-width: 100%;
}

/* Neutraliza .small-button { position:absolute; right:0 } da homepage.css */
.site-footer .button,
.site-footer .small-button,
.site-footer a.button,
.site-footer .button.small-button {
  position: static !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  margin-left: 0;
  margin-right: 0;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

/* Redes sociais: links compactos lado a lado */
.site-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 14px 0 0;
  width: auto;
  max-width: 100%;
}

.site-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffe08a;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: none;
}

.site-footer .footer-social-link:hover {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .footer-social-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer .footer-mission {
  max-width: 34ch;
}

.site-footer .footer-col-support {
  position: relative;
}

.site-footer .footer-col-support > * {
  max-width: 100%;
}

.site-footer .footer-pix-active {
  margin: 0 0 10px;
  word-break: break-word;
}

.site-footer .footer-support-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 0;
  padding: 8px 0;
  min-height: 44px;
  border: 0;
  background: none;
  color: #ffe08a;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
}

.site-footer .footer-support-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer a.footer-support-link {
  color: #ffe08a;
}

.site-footer .footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #ffffff22;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.site-footer .footer-copy {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 220px);
}

.site-footer .footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  justify-content: flex-end;
}

.site-footer .footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.site-footer .footer-bottom-textbtn {
  border: 0;
  background: none;
  color: #cfe5f8;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
}

.site-footer .footer-bottom-textbtn:hover {
  color: #fff;
}

/* —— FABs flutuantes: Compartilhar + Apoiar —— */
.edj-fab-stack {
  position: fixed;
  z-index: 70;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.edj-fab-stack > * {
  pointer-events: auto;
}

.share-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #7dd3fc;
  border-radius: 999px;
  background: #fff;
  color: #082651;
  font-family: var(--font-body, Nunito, sans-serif);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(8, 38, 81, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.share-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #0369a1;
}

.share-fab:hover {
  transform: translateY(-2px);
  background: #f0f9ff;
  box-shadow: 0 10px 22px rgba(8, 38, 81, 0.2);
}

.share-fab:focus-visible,
.support-fab:focus-visible {
  outline: 3px solid #005aab;
  outline-offset: 3px;
}

.share-fab:active {
  transform: translateY(0);
}

.support-fab {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#ffdf60, #ffcb27);
  color: #082651;
  font-family: var(--font-body, Nunito, sans-serif);
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 6px 20px rgba(8, 38, 81, 0.22), 0 3px 0 #f3a71a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 38, 81, 0.28), 0 3px 0 #f3a71a;
}

.support-fab-icon {
  display: grid;
  place-items: center;
  color: #c62849;
}

.support-fab-icon svg {
  width: 20px;
  height: 20px;
}

.support-fab-label--short {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .share-fab,
  .share-fab:hover,
  .support-fab,
  .support-fab:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 28px;
  }

  .site-footer .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer .footer-col-brand {
    grid-column: auto;
  }

  .site-footer .footer-mission {
    max-width: none;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-bottom-right {
    width: 100%;
    justify-content: flex-start;
  }

  .edj-fab-stack {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }

  .share-fab {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 12px;
  }

  .share-fab-label--full {
    display: none;
  }

  .support-fab {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .support-fab-label--full {
    display: none;
  }

  .support-fab-label--short {
    display: inline;
  }
}

/* Checkout / formulários / área privada / modal aberto */
body.hide-support-fab .edj-fab-stack,
body.edj-checkout .edj-fab-stack,
body:has(#edj-dialog[open]) .edj-fab-stack {
  display: none !important;
}
