/**
 * Fixed “back to top” on corporate-migrated pages.
 * Rendered outside #legacy-content so it is not covered by .newsite footer/header.
 */
.go_pagetop_frame {
  position: fixed;
  right: 35px;
  bottom: 35px;
  width: 50px;
  height: 50px;
  z-index: 10001;
  display: none;
  pointer-events: none;
}

.go_pagetop_frame p {
  width: 100%;
  height: 100%;
  margin: 0;
}

.go_pagetop_frame a {
  width: 100%;
  height: 100%;
  align-items: center;
  display: flex;
  justify-content: center;
  background-color: #e6002d;
  border-radius: 4px;
  box-shadow: 1px 2px 12px -2px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.go_pagetop_frame a img {
  opacity: 1;
  transition: opacity 0.3s;
}

.go_pagetop_frame a:hover img {
  opacity: 0.7;
}

.go_pagetop_frame.default {
  display: block;
  opacity: 0;
  transition: opacity 0.3s;
}

.go_pagetop_frame.default.appear {
  opacity: 1;
}

/* English corporate footer is taller — lift button above it */
@media screen and (min-width: 768px) {
  html:has(.newfooter--en) .go_pagetop_frame.default {
    bottom: 120px;
  }
}

@media print {
  .go_pagetop_frame {
    display: none !important;
  }
}
