/* Overrides minimos para fluxo local (loading + paginas de consulta) */

body.page-home.preparing-document .cloak {
  visibility: hidden;
  pointer-events: none;
}

body.ao-loading-active {
  overflow: hidden;
}

.ao-loading {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ao-loading[hidden] {
  display: none !important;
}

.ao-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1f3601, #010800);
}

.ao-loading-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20rem;
  height: 20rem;
  border-radius: 2rem;
  box-shadow: 0 8px 23px rgba(0, 0, 0, 0.33);
  background: #ffffff;
  overflow: hidden;
  z-index: 1;
}

.ao-loading-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e6fffc 100%);
  z-index: 0;
}

.ao-loading-elements {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.ao-loading-elements h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1b5d96;
}

.ao-hype-container {
  margin: auto;
  position: relative;
  width: 180px;
  height: 100px;
  overflow: hidden;
}

.ao-progress {
  display: inline-block;
  width: 80%;
  margin: 1rem 0;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ao-progress-bar {
  position: relative;
  height: 1rem;
  width: 0%;
  background-color: #ffa42f;
  transition: width 0.2s ease;
}

.ao-loading.complete .ao-progress-bar {
  background-color: #c0d642;
}

.ao-pulse-progress {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

.ao-loading-content {
  display: inline-block;
  max-width: 90%;
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
}

#FAQ .collapse {
  display: none;
}

#FAQ .collapse.show {
  display: block;
}

/* Pagina de nomes - bundle-black cuida do layout; so estados locais */
.btn-name-list-item.is-busy {
  opacity: 0.85;
  pointer-events: none;
}

/* Pagina de acordos - layout principal vem do bundle-black + original-acordos-styles */
.parcela-check-item {
  cursor: pointer;
  gap: 0.5rem;
}

.parcela-check-input {
  flex-shrink: 0;
}

.parcela-select-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.parcela-total {
  font-size: 0.95rem;
}

.parcela-pix-hint {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.parcela-limit-warning {
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}

[data-parcelas-wrap] {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

[data-pix-pay-button] {
  cursor: pointer;
  min-height: 48px;
}

[data-pix-pay-button]:disabled {
  cursor: not-allowed;
}

.pix-modal-content {
  text-align: left;
}

.pix-qr-wrap {
  text-align: center;
}

.pix-qr-image {
  max-width: 220px;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.pix-copy-code {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
}

.pix-status-paid {
  color: #15803d;
  font-weight: 600;
}
