/* Independent fixed scroll controls for long SSC pages and nested panes. */
.mc-scroll-control {
  position: fixed;
  left: 16px;
  z-index: 100001;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffdc45;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.mc-scroll-to-top {
  bottom: 122px;
}

.mc-scroll-to-bottom {
  bottom: 62px;
}

.mc-scroll-control-icon {
  display: inline-block;
  position: relative;
  width: 18px;
  height: 18px;
  border-top: 4px solid currentColor;
  border-left: 4px solid currentColor;
  border-radius: 2px 0 0 0;
  font-size: 0;
  transform: rotate(45deg);
  transform-origin: center;
}

.mc-scroll-to-bottom .mc-scroll-control-icon {
  transform: rotate(225deg);
}

.mc-scroll-control.mc-scroll-control-visible {
  opacity: 0.92;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
}

.mc-scroll-control:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #ffe66b;
  opacity: 1;
}

.mc-scroll-control:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .mc-scroll-control {
    left: 10px;
    width: 46px;
    height: 46px;
  }

  .mc-scroll-to-top {
    bottom: 66px;
  }

  .mc-scroll-to-bottom {
    bottom: 10px;
  }

  .mc-scroll-control-icon {
    transform: rotate(45deg) scale(0.9);
  }

  .mc-scroll-to-bottom .mc-scroll-control-icon {
    transform: rotate(225deg) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-scroll-control {
    transition: none;
  }
}

@media print {
  .mc-scroll-control {
    display: none !important;
  }
}
