@layer components {
  button[data-scroll-to-top] {
    position: fixed;
    top: auto;
    left: auto;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #0f1f3d;
    border-radius: 50%;
    background: #0f1f3d;
    color: #fff;
    box-shadow: 0 4px 16px rgb(15 31 61 / 25%);
    cursor: pointer;
  }
  button[data-scroll-to-top]:hover { background: #23416b; }
  button[data-scroll-to-top]:focus-visible {
    outline: 2px solid #23416b;
    outline-offset: 3px;
  }
}
