#floating-contact {
  display: none;
}

@media (width < 40rem) {
  #floating-contact:not([hidden]) {
    position: fixed;
    z-index: 45;
    inset-inline-end: calc(0.9rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.6rem 0.95rem;
    border-radius: 8px;
    background: #0b1220;
    color: #f8fafc;
    box-shadow: 0 8px 26px rgb(15 23 42 / 24%);
    font-size: 0.93rem;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
  }

  #floating-contact svg {
    display: block;
    flex: none;
  }

  #floating-contact:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 3px;
  }

  body:has(:is(#mobile-menu-button[aria-expanded="true"], #ccm-widget.ccm-show, #ccm-control-panel.ccm-show)) #floating-contact {
    display: none;
  }
}


@media (width < 40rem) and (prefers-reduced-motion: no-preference) {
  #floating-contact:not([hidden]) {
    animation: floating-contact-in 180ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
}

@keyframes floating-contact-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
