/* the floating WhatsApp button (snippets/whatsapp-button.liquid), navy with the site's 12px corners: the bottom
   inline-end corner on phones, the inline-start corner from 1024px, as Rekaz's own storefronts place it */
.whatsapp-button {
  position: fixed;
  inset-inline-end: 1rem;
  inset-block-end: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.18);
  transition: transform 160ms var(--ease-out);
}

.whatsapp-button .mark {
  width: 1.75rem;
  height: 1.75rem;
}

.whatsapp-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (hover: hover) {
  .whatsapp-button:hover {
    transform: scale(1.05);
  }
}

/* on phones it stays off a page with a bar at the bottom of the screen (a plan's summary, a product's buy bar, the
   booking steps, a gift's confirm button), as Rekaz's own booking flow keeps it off */
@media (max-width: 1023px) {
  body:has(.pl-summary, .pr-footer, .pb-footer, .rk-redeem__footer) .whatsapp-button {
    display: none;
  }
}

@media (min-width: 1024px) {
  .whatsapp-button {
    inset-inline-start: 1.5rem;
    inset-inline-end: auto;
    inset-block-end: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-button {
    transition: none;
  }
}
