/* Ajustes locais - autocomplete de cidades */
#autocompleteContainer .acn-input__icon-end {
  visibility: hidden;
  cursor: pointer;
}

#autocompleteContainer .acn-input__icon-end.is-visible {
  visibility: visible;
}

.acn-button[disabled],
.button-submit[disabled] button,
.button-submit[disabled] .acn-button {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Desktop: evita menu esmagado entre 1024px+ */
@media (min-width: 1024px) {
  app-landing-menu .main-menu {
    display: inline-flex;
    flex-wrap: nowrap;
  }

  app-landing-menu .main-menu .menu__item .link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* No desktop esconde subtítulo/arrow do layout mobile */
  app-landing-menu .mobile-logo-subtitle,
  app-landing-menu .mobile-logo-arrow {
    display: none !important;
  }
}

/* Fluxo PIX — outras formas de pagamento */
.brk-flow-step-pix .payment {
  margin-top: 2rem;
  width: 100%;
}

.brk-flow-step-pix .payment .cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.brk-flow-step-pix .payment .card__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--grey-lighten, #ebecf3);
  border-radius: 8px;
  background: #fff;
}

.brk-flow-step-pix .payment .card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.brk-flow-step-pix .pix-qrcode-container {
  width: 100%;
}

.brk-flow-step-pix .container-qrcode {
  display: flex;
  justify-content: center;
}

.brk-flow-step-pix .back-ground-qrcode {
  background: #fff;
  box-shadow: 0 2px 2px rgba(53, 58, 61, 0.2), 0 4px 8px rgba(53, 58, 61, 0.1);
  border-radius: 8px;
  padding: 10px;
  width: 220px !important;
  height: 220px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .brk-flow-step-pix .back-ground-qrcode {
    width: 280px !important;
    height: 280px !important;
    margin-bottom: 20px;
  }
}

.brk-flow-step-pix .back-ground-qrcode img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.brk-flow-step-pix .back-ground-qrcode.is-loading {
  background: #f7f7fa;
}

.brk-qr-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
}

.brk-qr-spinner__circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #cdd2dc;
  border-top-color: #0066cc;
  animation: brk-qr-spin 0.75s linear infinite;
}

.brk-qr-spinner__text {
  font-size: 0.8rem;
  color: #616c83;
  font-family: var(--font-medium, inherit);
}

@keyframes brk-qr-spin {
  to { transform: rotate(360deg); }
}

/* Estado vazio — sem débitos */
.brk-flow-step-instalacoes .brk-empty-message {
  color: var(--text, #616c83);
  line-height: 1.6;
  margin: 1rem 0 2rem;
  text-align: center;
}

.brk-flow-step-instalacoes .easy-duplicate-form .content .installations {
  align-items: center;
}

@media (min-width: 1024px) {
  .brk-flow-step-instalacoes .brk-empty-message {
    text-align: left;
  }

  .brk-flow-step-instalacoes .easy-duplicate-form .content .installations {
    align-items: flex-start;
  }
}

/* Modal — preencher formulário antes de sair */
.brk-form-guard-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brk-form-guard-modal[hidden] {
  display: none !important;
}

.brk-form-guard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.brk-form-guard-modal__panel {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.brk-form-guard-modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-bold, 'quicksand-bold', sans-serif);
  font-size: 1.25rem;
  color: var(--text-contrast, #212630);
}

.brk-form-guard-modal__text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text, #616c83);
}

.brk-form-guard-modal__btn {
  appearance: none;
  border: 0;
  border-radius: 28px;
  background: var(--blue, #0066cc);
  color: #fff;
  font-family: var(--font-bold, 'quicksand-bold', sans-serif);
  font-size: 0.875rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
}

.brk-form-guard-modal__btn:hover {
  background: var(--blue-active, #0248ac);
}

body.brk-form-guard-open {
  overflow: hidden;
}

.brk-form-guard-highlight {
  outline: 3px solid rgba(0, 102, 204, 0.35);
  outline-offset: 6px;
  border-radius: 12px;
  transition: outline-color 0.3s ease;
}

/* Modal — alerta de corte por atraso > 5 dias */
.brk-cut-warning-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.brk-cut-warning-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 0, 67, 0.55);
}

.brk-cut-warning-modal__panel {
  position: relative;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.brk-cut-warning-modal__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fef3e2;
  color: #c27803;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 48px;
}

.brk-cut-warning-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-bold, 'quicksand-bold', sans-serif);
  font-size: 1.2rem;
  color: #212630;
}

.brk-cut-warning-modal__text,
.brk-cut-warning-modal__hint {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #616c83;
}

.brk-cut-warning-modal__list {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  list-style: none;
  text-align: left;
  background: #f7f7fa;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #212630;
}

.brk-cut-warning-modal__list li + li {
  margin-top: 0.45rem;
}

.brk-cut-warning-modal__alert {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: #fdeceb;
  color: #a33b3b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.brk-cut-warning-modal__btn {
  appearance: none;
  border: 0;
  border-radius: 28px;
  background: var(--blue, #0066cc);
  color: #fff;
  font-family: var(--font-bold, 'quicksand-bold', sans-serif);
  font-size: 0.875rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  min-width: 160px;
}

.brk-cut-warning-modal__btn:hover {
  background: var(--blue-active, #0248ac);
}

body.brk-cut-warning-open {
  overflow: hidden;
}
