.ft-whatsapp-contact {
  position: fixed;
  right: max(0rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 600;
}
.ft-whatsapp-contact__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.9375rem;
  height: 3.9375rem;
  padding: 0.75rem;
  color: #fff;
  background: #25d366;
  border: 2px solid transparent;
  border-radius: 50%;
  box-shadow: 0 0.3rem 0.9rem rgba(18, 92, 54, 0.28);
  text-decoration: none;
}

.ft-whatsapp-contact__link:hover {
  color: #fff;
  background: #1ebe5d;
  text-decoration: none;
}

.ft-whatsapp-contact__link:focus-visible {
  color: #fff;
  outline: 3px solid #f2c94c;
  outline-offset: 3px;
}

.ft-whatsapp-contact__icon {
  display: block;
  width: 2.125rem;
  height: 2.125rem;
}

.ft-whatsapp-contact__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keep the consent layer visually unobstructed on every viewport. */
body:has(
  #ppgc-consent-banner:not(.ppgc-hidden),
  #ppgc-consent-settings:not(.ppgc-hidden)
) .ft-whatsapp-contact {
  display: none;
}

@media (max-width: 767px) {
  .ft-whatsapp-contact {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(5.5rem, calc(0.75rem + env(safe-area-inset-bottom)));
  }

  .ft-whatsapp-contact__link {
    width: 3.625rem;
    height: 3.625rem;
    padding: 0.625rem;
  }
}

@media (forced-colors: active) {
  .ft-whatsapp-contact__link {
    border-color: ButtonText;
  }
}
