.rk-whatsapp {
  --rk-whatsapp-brand: var(--brand, #171717);
  --rk-whatsapp-on-brand: #fff;

  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: 999px;
  background: var(--rk-whatsapp-brand);
  color: var(--rk-whatsapp-on-brand);
  box-shadow: 0 8px 26px rgb(0 0 0 / 0.18);
}

.rk-whatsapp svg {
  width: 1.75rem;
  height: 1.75rem;
}

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

/* on phones, pages with a bottom bar hide it. a theme's own bar joins this list. */
@media (max-width: 1023px) {
  body:has(.bk-footer, .pb-footer, .pl-summary, .pr-footer, .rk-redeem__footer, .m-bar) .rk-whatsapp {
    display: none;
  }
}

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