.whatsapp {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-block-end: 1rem;
  padding-inline-end: 1rem;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp__popup {
  display: none;
  background-color: white;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.whatsapp__intro {
  background-color: rgb(45, 183, 66);
  color: rgb(255, 255, 255);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.whatsapp__icon {
  color: rgb(255, 255, 255);
  font-size: 1.875rem;
  line-height: calc(2.25 / 1.875);
}

.whatsapp__heading {
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
}

.whatsapp__text {
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  color: rgb(217, 235, 198);
}

.whatsapp__actions {
  padding: 1.25rem;
}

.whatsapp__cta {
  padding: 0.5rem;
  border-left: 2px solid rgb(45, 183, 66);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: rgb(245, 247, 249);
  border-radius: 0.125rem;
  font-size: 0.875rem;
  line-height: calc(1.25 / 0.875);
}

.whatsapp__cta:hover {
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(55, 62, 70, 0.07) 0px 7px 15px 1px;
}

.whatsapp__toggle {
  cursor: pointer;
  background-color: rgb(45, 183, 66);
  width: 2rem;
  height: 2rem;
  padding: 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp__toggle-icon {
  color: rgb(255, 255, 255);
}

@media (min-width: 768px) {
  .whatsapp__wrapper {
    padding-block-end: 2rem;
    padding-inline-end: 2rem;
  }

  .whatsapp__toggle {
    width: 4rem;
    height: 4rem;
  }

  .whatsapp__toggle-icon {
    font-size: 1.875rem;
    line-height: calc(2.25 / 1.875);
  }
}
