.whatsapp-chooser {
  width: min(420px, calc(100% - (2 * var(--page-gutter, 20px))));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--color-black, #030303);
  background: #fff;
  box-shadow: 0 24px 80px rgb(3 3 3 / 0.28);
}

.whatsapp-chooser::backdrop {
  background: rgb(3 3 3 / 0.62);
  backdrop-filter: blur(5px);
}

.whatsapp-chooser__panel {
  position: relative;
  padding: 28px;
}

.whatsapp-chooser__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--color-black, #030303);
  background: #f1f1f1;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.whatsapp-chooser__title {
  max-width: calc(100% - 40px);
  margin: 0;
  font-family: "Archivo Black", Arial, sans-serif;
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.05;
}

.whatsapp-chooser__copy {
  margin: 10px 0 22px;
  color: rgb(3 3 3 / 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.whatsapp-chooser__choices {
  display: grid;
  gap: 10px;
}

.whatsapp-chooser__choice {
  display: flex;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgb(3 3 3 / 0.12);
  border-radius: 999px;
  align-items: center;
  justify-content: space-between;
  color: var(--color-black, #030303);
  background: #f7f7f7;
  font: 700 14px/1 "Inter", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.whatsapp-chooser__choice::after {
  content: "\2192";
  font-size: 19px;
}

.whatsapp-chooser__choice:first-child {
  border-color: #25d366;
  background: #25d366;
}

.whatsapp-chooser__choice:focus-visible {
  outline: 3px solid var(--color-blue, #0b99ff);
  outline-offset: 2px;
}

@media (hover: hover) {
  .whatsapp-chooser__choice:hover {
    border-color: rgb(3 3 3 / 0.25);
    background: #ececec;
  }

  .whatsapp-chooser__choice:first-child:hover {
    border-color: #20bd5a;
    background: #20bd5a;
  }
}

@media (max-width: 480px) {
  .whatsapp-chooser {
    margin-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .whatsapp-chooser__panel {
    padding: 24px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-chooser::backdrop {
    backdrop-filter: none;
  }

  .whatsapp-chooser__choice {
    transition: none;
  }
}
