.wa-float {
  display: none;
  place-items: center;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.wa-float:hover {
  background: var(--green-dark);
}

.wa-sheet[hidden] {
  display: none;
}

.wa-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.wa-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.wa-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: var(--white);
  color: var(--ink);
  animation: wa-in 0.18s ease;
}

.wa-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wa-sheet__head h2 {
  font-size: 1.45rem;
}

.wa-sheet__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.4rem;
  line-height: 1;
}

.wa-sheet__lead {
  margin: 8px 0 14px;
  color: var(--muted);
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.wa-contact:hover {
  border-color: var(--black);
}

.wa-contact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  flex: none;
}

.wa-contact strong,
.wa-contact small,
.wa-contact em {
  display: block;
  font-style: normal;
}

.wa-contact small,
.wa-contact em {
  color: var(--muted);
  font-size: 0.86rem;
}

@keyframes wa-in {
  from {
    transform: translateY(16px);
  }

  to {
    transform: none;
  }
}

@media (min-width: 720px) {
  .wa-sheet {
    align-items: center;
    padding: 24px;
  }

  .wa-sheet__panel {
    width: min(440px, 100%);
    border-radius: 22px;
    padding: 22px;
  }
}

@media (min-width: 900px) {
  .wa-float {
    display: grid;
  }
}
