/* Formulário flutuante WhatsApp — canto inferior direito */

body.sp-site-shell #ht-ctc-chat,
body.sp-site-shell .ht-ctc-chat,
body.sp-site-shell .ht-ctc {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.sp-whatsapp-lead {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  font-family: "Poppins", system-ui, sans-serif;
}

.sp-whatsapp-lead__fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-whatsapp-lead__fab:hover,
.sp-whatsapp-lead__fab:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.sp-whatsapp-lead.is-open .sp-whatsapp-lead__fab {
  background: #128c7e;
}

.sp-whatsapp-lead__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  max-height: none;
  overflow: visible;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 33, 55, 0.1);
  box-shadow: 0 16px 40px rgba(0, 33, 55, 0.18);
}

.sp-whatsapp-lead__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sp-whatsapp-lead__title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sp-color-primary-dark, #002137);
  line-height: 1.3;
}

.sp-whatsapp-lead__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 33, 55, 0.06);
  color: #002137;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.sp-whatsapp-lead__close:hover {
  background: rgba(0, 33, 55, 0.12);
}

.sp-whatsapp-lead__intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 33, 55, 0.72);
}

.sp-whatsapp-lead__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-whatsapp-lead__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-whatsapp-lead__label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 33, 55, 0.85);
}

.sp-whatsapp-lead__field input,
.sp-whatsapp-lead__field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 33, 55, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  box-sizing: border-box;
  resize: vertical;
}

.sp-whatsapp-lead__field input:focus,
.sp-whatsapp-lead__field textarea:focus {
  outline: 2px solid rgba(37, 211, 102, 0.45);
  border-color: #25d366;
}

.sp-whatsapp-lead__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(0, 33, 55, 0.6);
}

.sp-whatsapp-lead__submit {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

.sp-whatsapp-lead__form.is-invalid .sp-whatsapp-lead__field input:invalid,
.sp-whatsapp-lead__form.is-invalid .sp-whatsapp-lead__field input:required:placeholder-shown {
  border-color: #d63638;
}

@media (max-width: 767px) {
  .sp-whatsapp-lead {
    right: 14px;
    bottom: 14px;
  }

  .sp-whatsapp-lead__panel {
    right: 0;
    width: min(340px, calc(100vw - 28px));
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }
}
