.wr-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.wr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(8px);
}

.wr-modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  max-height: min(78dvh, 760px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 24px;
  background: #efe7dd;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.26);
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.wr-modal.is-open .wr-modal__panel {
  transform: translateY(0) scale(1);
}

.wr-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
}

.wr-modal__close:hover {
  background: rgba(255, 255, 255, 0.34);
}

.whatsapp-chat-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 56px 20px 22px;
  background: linear-gradient(135deg, #0f766e 0%, #128c7e 52%, #25d366 100%);
  color: #fff;
}

.whatsapp-chat-modal__meta h3 {
  margin: 0 0 2px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: #fff;
}

.whatsapp-chat-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-chat-modal__body {
  padding: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 140, 126, 0.08) 0, rgba(18, 140, 126, 0) 22%),
    radial-gradient(circle at 84% 10%, rgba(37, 211, 102, 0.08) 0, rgba(37, 211, 102, 0) 20%),
    linear-gradient(180deg, #f4efe8 0%, #ece5dd 100%);
}

.whatsapp-chat-modal__intro {
  margin-bottom: 18px;
}

.whatsapp-chat-modal__intro p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.rd-station-form-shell {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

#formulario-de-contato-do-site-8a7a207d68038f0f9a5f section {
  padding: 0 !important;
}

#formulario-de-contato-do-site-8a7a207d68038f0f9a5f iframe,
#formulario-de-contato-do-site-8a7a207d68038f0f9a5f form {
  width: 100%;
}

#formulario-de-contato-do-site-8a7a207d68038f0f9a5f > div:empty::before {
  content: "Carregando formulário...";
  display: block;
  padding: 24px 0;
  color: #4b5563;
  text-align: center;
}

body.modal-open,
html.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .wr-modal {
    padding: 16px 16px calc(88px + env(safe-area-inset-bottom, 0px));
    align-items: flex-end;
  }

  .wr-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 104px - env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-chat-modal__header {
    padding: 20px 52px 18px 18px;
  }

  .whatsapp-chat-modal__body {
    padding: 16px;
  }

  .rd-station-form-shell {
    padding: 14px;
  }
}
