.gathr-ajuda-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFD700;
  color: #481389;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.9rem 0.45rem 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(46, 8, 84, 0.18);
  cursor: pointer;
}

.gathr-ajuda-btn:hover,
.gathr-ajuda-btn:focus-visible {
  color: #2E0854;
  background: #ffdf33;
  outline: 2px solid #481389;
  outline-offset: 2px;
}

.gathr-ajuda-btn i {
  color: #481389;
}

.gathr-ajuda-btn--toolbar {
  position: static;
  flex-shrink: 0;
}

#gathrAjudaModal.modal {
  padding: 0 !important;
}

/* .gathr-ajuda-open permanece no fade-out: sem isso o Bootstrap tira .show
   e o cartão cai no canto esquerdo antes de fechar. */
#gathrAjudaModal.modal.show,
#gathrAjudaModal.modal.gathr-ajuda-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#gathrAjudaModal .gathr-ajuda-dialog {
  width: min(960px, calc(100% - 2rem));
  max-width: 960px;
  margin: 0 auto;
}

#gathrAjudaModal .modal-content {
  min-height: min(72vh, 680px);
  background-color: #ffffff !important;
  color: #1F2937 !important;
}

#gathrAjudaModal .modal-header,
#gathrAjudaModal .modal-body,
#gathrAjudaModal .modal-footer {
  padding-left: 2rem;
  padding-right: 2rem;
  color: #1F2937 !important;
}

#gathrAjudaModal .modal-body {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1F2937 !important;
}

#gathrAjudaModal .modal-body p {
  color: #374151 !important;
}

#gathrAjudaModal .gathr-modal-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #481389 !important;
}

#gathrAjudaModal .modal-title {
  font-size: 1.5rem;
  color: #2E0854 !important;
}

.gathr-ajuda-passos,
.gathr-ajuda-dicas {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  color: #1F2937 !important;
}

.gathr-ajuda-passos li,
.gathr-ajuda-dicas li {
  margin-bottom: 0.35rem;
  color: #374151 !important;
}

#gathrAjudaModal .gathr-ajuda-print {
  margin: 0.75rem 0 1rem;
}

#gathrAjudaModal .gathr-ajuda-print img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
}

#gathrAjudaModal .gathr-ajuda-print figcaption {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: #6B7280;
}

#gathrAjudaModal .gathr-ajuda-print-slot {
  border: 2px dashed #481389;
  border-radius: 12px;
  background: #F4EFFF;
  padding: 1rem 1.1rem;
  color: #2E0854;
}

#gathrAjudaModal .gathr-ajuda-print-slot-kicker {
  font-weight: 700;
  color: #481389;
  margin-bottom: 0.5rem;
}

#gathrAjudaModal .gathr-ajuda-print-slot code {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.1rem 0.35rem;
  background: #fff;
  border-radius: 4px;
  color: #481389;
  font-size: 0.86rem;
}

@media (max-width: 1200px) {
  .gathr-ajuda-btn {
    top: 15px;
    right: 15px;
  }

  #gathrAjudaModal .gathr-ajuda-dialog {
    width: min(960px, calc(100% - 2.5rem));
    margin: 0;
  }

  #gathrAjudaModal .modal-content {
    min-height: 0;
  }

  #gathrAjudaModal .modal-header,
  #gathrAjudaModal .modal-body,
  #gathrAjudaModal .modal-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 576px) {
  #gathrAjudaModal .gathr-ajuda-dialog {
    width: min(960px, calc(100% - 2rem));
    margin: 0;
  }
}

body.page-home .gathr-ajuda-btn {
  top: 16px;
}

/* Bootstrap compensa a scrollbar com padding-right no body ao abrir a modal.
   Na home isso encolhe o hero e deixa a faixa clara do fundo. */
body.page-home.modal-open,
body.page-home:has(#gathrAjudaModal.show) {
  padding-right: 0 !important;
}

body.page-home.modal-open .wrapper,
body.page-home.modal-open .wrapper > .main-content,
body.page-home.modal-open .main-content-wrapper,
body.page-home:has(#gathrAjudaModal.show) .wrapper,
body.page-home:has(#gathrAjudaModal.show) .wrapper > .main-content,
body.page-home:has(#gathrAjudaModal.show) .main-content-wrapper {
  padding-right: 0 !important;
  max-width: 100%;
}

@media print {
  .gathr-ajuda-btn,
  #gathrAjudaBtn,
  #gathrAjudaModal,
  .gathr-ajuda-dialog,
  .gathr-ajuda-open,
  .modal-backdrop {
    display: none !important;
  }
}
