.ma-wa-floating {
    position: fixed;
    z-index: 2147483000;
    inset-inline-end: clamp(12px, 2vw, 24px);
    inset-block-end: max(14px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    pointer-events: none;
    animation: maWaGentleFloat 3.8s ease-in-out infinite;
    transition: opacity .25s ease, transform .25s ease;
  }

  .ma-wa-floating__link {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 56px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(8, 14, 11, .62);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .28), 0 0 0 1px rgba(37, 211, 102, .08);
    color: #fff;
    text-decoration: none;
    opacity: .92;
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    backdrop-filter: blur(14px) saturate(145%);
    transition: opacity .22s ease, transform .22s ease, background-color .22s ease, box-shadow .22s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .ma-wa-floating__link:hover,
  .ma-wa-floating__link:focus-visible {
    opacity: 1;
    transform: translateY(-2px) scale(1.015);
    background: rgba(8, 14, 11, .78);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .34), 0 0 0 4px rgba(37, 211, 102, .12);
    outline: none;
  }

  .ma-wa-floating__copy {
    display: grid;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transform: translateX(.35rem);
    transition: max-width .32s cubic-bezier(.2,.8,.2,1), opacity .22s ease, transform .32s ease, padding .32s ease;
  }

  html[dir="ltr"] .ma-wa-floating__copy {
    transform: translateX(-.35rem);
  }

  .ma-wa-floating__link:hover .ma-wa-floating__copy,
  .ma-wa-floating__link:focus-visible .ma-wa-floating__copy,
  .ma-wa-floating.is-intro .ma-wa-floating__copy {
    max-width: 190px;
    padding-inline: 10px 6px;
    opacity: 1;
    transform: translateX(0);
  }

  .ma-wa-floating__copy > span {
    display: grid;
    gap: 1px;
    line-height: 1.25;
  }

  .ma-wa-floating__copy strong {
    color: #fff;
    font: 800 .78rem/1.25 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
  }

  .ma-wa-floating__copy small {
    color: rgba(255, 255, 255, .72);
    font: 600 .62rem/1.25 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  }

  .ma-wa-floating__icon {
    position: relative;
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .30), inset 0 0 0 1px rgba(255,255,255,.24);
  }

  .ma-wa-floating__icon::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(37, 211, 102, .36);
    border-radius: 50%;
    animation: maWaPulse 2.8s ease-out infinite;
  }

  .ma-wa-floating__icon svg {
    width: 27px;
    height: 27px;
    overflow: visible;
  }

  html[lang^="ar"] .ma-wa-en { display: none !important; }
  html:not([lang^="ar"]) .ma-wa-ar { display: none !important; }

  @keyframes maWaGentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }

  @keyframes maWaPulse {
    0% { opacity: .72; transform: scale(.88); }
    75%, 100% { opacity: 0; transform: scale(1.28); }
  }

  @media (max-width: 640px) {
    .ma-wa-floating {
      inset-inline-end: 12px;
      inset-block-end: max(12px, calc(env(safe-area-inset-bottom, 0px) + 10px));
    }

    .ma-wa-floating__link {
      min-height: 52px;
      padding: 3px;
    }

    .ma-wa-floating__icon {
      flex-basis: 46px;
      width: 46px;
      height: 46px;
    }

    .ma-wa-floating__copy,
    .ma-wa-floating__link:hover .ma-wa-floating__copy,
    .ma-wa-floating__link:focus-visible .ma-wa-floating__copy,
    .ma-wa-floating.is-intro .ma-wa-floating__copy {
      display: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .ma-wa-floating,
    .ma-wa-floating__icon::after {
      animation: none !important;
    }

    .ma-wa-floating__link,
    .ma-wa-floating__copy {
      transition: none !important;
    }
  }

  @media print {
    .ma-wa-floating { display: none !important; }
  }
