.pm-lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99998;
}

.pm-lead-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.pm-lead-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 30vw;
  min-width: 420px;
  max-width: 560px;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: inherit;
}

.pm-lead-drawer.is-open {
  transform: translateX(0);
}

.pm-lead-inner {
  padding: 54px 40px 48px;
}

.pm-lead-inner h2 {
  margin: 0 48px 18px 0;
  color: #1f1f1f;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.pm-lead-inner p {
  margin: 0 0 34px;
  color: #1f1f1f;
  font-size: 17px;
  line-height: 1.5;
}

.pm-lead-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #11457d;
  background: #fff;
  color: #11457d;
  font-size: 28px;
  line-height: 38px;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.pm-mobile-drag-handle {
  display: none;
}

.pm-lead-drawer .hs-form-field {
  margin-bottom: 22px;
}

.pm-lead-drawer input,
.pm-lead-drawer select,
.pm-lead-drawer textarea {
  min-height: 54px;
  font-size: 16px;
}

body.pm-drawer-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .pm-lead-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 88vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.22);
  }

  .pm-lead-drawer.is-open {
    transform: translateY(0);
  }

  .pm-lead-inner {
    padding: 38px 26px 42px;
  }

  .pm-lead-inner h2 {
    font-size: 24px;
  }

  .pm-lead-inner p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .pm-mobile-drag-handle {
    display: block;
    width: 72px;
    height: 4px;
    background: #777;
    border-radius: 999px;
    margin: 10px auto 8px;
    cursor: grab;
  }

  .pm-lead-close {
    top: 14px;
    right: 18px;
  }
}
