/* V122: free dragging with a brief, decelerating glide; keep the V116 palette. */
html[data-site="medical-gauze"] .floating-whatsapp {
  --floating-gap: 20px;
  --floating-safe-top: env(safe-area-inset-top, 0px);
  --floating-safe-right: env(safe-area-inset-right, 0px);
  --floating-safe-bottom: env(safe-area-inset-bottom, 0px);
  --floating-safe-left: env(safe-area-inset-left, 0px);
  position: fixed;
  z-index: 40;
  right: calc(var(--floating-gap) + var(--floating-safe-right));
  bottom: calc(var(--floating-gap) + var(--floating-safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  padding: 10px;
  border: 1.5px solid rgba(255, 255, 255, .98);
  border-radius: 16px;
  background: rgba(218, 76, 96, .88);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 0 0 1px rgba(255, 255, 255, .2),
    0 0 5px rgba(255, 255, 255, .24),
    0 3px 12px rgba(104, 28, 40, .2);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease;
}
html[data-site="medical-gauze"] .floating-whatsapp img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1)
    drop-shadow(0 0 1px rgba(255, 255, 255, .36))
    drop-shadow(0 0 2px rgba(255, 255, 255, .16));
  pointer-events: none;
  -webkit-user-drag: none;
}
html[data-site="medical-gauze"] .floating-whatsapp:hover {
  background: rgba(204, 53, 78, .95);
}
html[data-site="medical-gauze"] .floating-whatsapp:focus-visible {
  outline: 3px solid #8e1d35;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
html[data-site="medical-gauze"] .floating-whatsapp.is-dragging { cursor: grabbing; }
html[data-site="medical-gauze"] .floating-whatsapp.is-obscured,
html[data-site="medical-gauze"] body:has(dialog[open]) .floating-whatsapp {
  display: none;
}
html[data-site="medical-gauze"] .floating-whatsapp-help {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1023px) {
  html[data-site="medical-gauze"] .site-header[data-header] {
    grid-template-columns: minmax(0, 1fr) 40px;
    grid-template-areas: "brand menu" "language language";
  }
}
@media (max-width: 860px) {
  html[data-site="medical-gauze"] .site-header[data-header] {
    grid-template-columns: minmax(0, 1fr) 32px;
  }
  html[data-site="medical-gauze"] .floating-whatsapp {
    --floating-gap: 12px;
    width: 48px;
    height: 48px;
    padding: 9px;
    border-radius: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-site="medical-gauze"] .floating-whatsapp { transition: none; }
}
