/* workmind_popups — botão do WhatsApp e popup da newsletter */

.wm-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1030; /* abaixo dos modais do Bootstrap (1055) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wm-wa:hover,
.wm-wa:focus-visible {
  color: #fff;
  transform: scale(1.07);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.wm-wa:focus-visible {
  outline: 3px solid var(--bs-primary, #55054a);
  outline-offset: 3px;
}

.wm-nl {
  width: calc(100% - 2rem);
  max-width: 26rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 0;
  border-top: 5px solid var(--bs-primary, #55054a);
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  color: var(--bs-body-color, #222);
  overflow-x: hidden; /* o <dialog> traz overflow:auto; só se quer deslocar na vertical, em ecrãs baixos */
}

.wm-nl::backdrop {
  background: rgba(20, 5, 18, 0.5);
}

.wm-nl__fechar {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

.wm-nl__titulo {
  margin: 0 1.5rem 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--bs-primary, #55054a);
}

.wm-nl__texto {
  margin-bottom: 1rem;
  white-space: pre-line;
}

.wm-nl__form .form-control {
  margin-bottom: 0.75rem;
}

.wm-nl__rgpd {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.wm-nl__msg {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.wm-nl__msg--erro {
  color: var(--bs-danger, #b42318);
}

/* Com altura que chegue, nada de barras de deslocamento vazias. */
@media (min-height: 520px) {
  .wm-nl {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wm-wa {
    transition: none;
  }
}

@media print {
  .wm-wa,
  .wm-nl {
    display: none !important;
  }
}
