Fixed: an absolute relationship with the viewport
Use it when the element must stay visible no matter where the user scrolls.
With `fixed`, the box becomes tied to the browser window itself. That is why it works well for floating support buttons, persistent notices, overlays or global action bars.
Because it leaves the normal flow, you need to account for the space it covers. A fixed header without compensation often hides the content underneath.
You also need to manage `z-index` deliberately because fixed elements often live in upper interface layers.
- Good use case: support button, floating CTA, consent bar or modal overlay.
- Poor use case: using `fixed` as a shortcut for the whole layout.
- Always think about focus, accessibility and blocked space.