#back-to-top-button {
  display: none;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #back-to-top-button {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    line-height: 1;
  }

  #back-to-top-button[hidden] {
    display: none;
  }

  #back-to-top-button:hover {
    background: #f3f4f6;
  }

  #back-to-top-button:focus-visible {
    outline: 3px solid #111;
    outline-offset: 4px;
  }

  #back-to-top-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #000;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}
