/* Keep a.scrollup: the module and the five model guards use this selector. */
body a.scrollup {
  box-sizing: border-box !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  right: calc(24px + env(safe-area-inset-right, 0px)) !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  border: 1px solid #d5dfec !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(27, 50, 83, .16);
  color: #0c4da8 !important;
  font-size: 0 !important;
  line-height: 1;
  text-decoration: none !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}
body a.scrollup > * { display: none !important; }
body a.scrollup::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
  -webkit-mask: url('chevron-up.svg') center / 24px 24px no-repeat;
  mask: url('chevron-up.svg') center / 24px 24px no-repeat;
  pointer-events: none;
}
body a.scrollup:hover { background: #edf3fc !important; }
body a.scrollup:active { transform: translateY(1px); }
body a.scrollup:focus-visible { outline: 2px solid #0c4da8; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  body a.scrollup { transition: none; }
  body a.scrollup:active { transform: none; }
}

/* Pointer focus keeps the shadow; keyboard focus retains the blue ring. */
body a.scrollup:focus:not(:focus-visible) { outline: none; }

/* Keep clear of the cookie notice, including its closing animation. */
body:has(.widget_cookie:not(.cookie__hide)) a.scrollup { visibility: hidden; pointer-events: none; }
