.mui-back-to-top {
  appearance: none;
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 1040;

  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  place-items: center;

  color: #ffffff;
  background-color: #4f8ca6;
  border: 2px solid #ffffff;
  border-radius: 50%;

  cursor: pointer;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);

  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

/*
 * Explicitly enforce display:none because the display:grid rule above
 * could otherwise override the browser's default [hidden] styling.
 */
.mui-back-to-top[hidden] {
  display: none;
}

.mui-back-to-top__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mui-back-to-top:hover {
  color: #ffffff;
  background-color: #3f7187;
  transform: translateY(-2px);
}

.mui-back-to-top:active {
  transform: translateY(0);
}

.mui-back-to-top:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow:
    0 0 0 6px #4f8ca6,
    0 0.25rem 0.75rem rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .mui-back-to-top {
    right: calc(1.5rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mui-back-to-top {
    transition: none;
  }
}

@media (forced-colors: active) {
  .mui-back-to-top {
    border-color: ButtonText;
  }
}