.floating-widget-zone {
  position: fixed;
  z-index: 1490;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.floating-widget-zone[hidden],
.floating-widget[hidden] {
  display: none !important;
}

.floating-widget-zone--above-chat {
  right: calc(max(24px, env(safe-area-inset-right)) + 6px);
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 70px);
}

.floating-widget {
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 12px 28px var(--brand-shadow);
  cursor: pointer;
  transition: transform var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}

.floating-widget--compact {
  width: 46px;
  height: 46px;
}

.floating-widget:hover {
  background: var(--brand-primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 15px 32px var(--brand-shadow);
}

.floating-widget:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
}

.floating-widget svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .floating-widget-zone--above-chat {
    right: calc(max(16px, env(safe-area-inset-right)) + 6px);
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-widget {
    transition: none;
  }
}
