/* All rules are scoped to the standalone Makau Back to Top component. */
.mkbt-root,
.mkbt-root * {
  box-sizing: border-box;
}
.mkbt-root {
  position: fixed;
  z-index: 9996;
  right: max(0px, var(--mkbt-right, 24px));
  bottom: calc(var(--mkbt-bottom, 28px) + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.mkbt-button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mkbt-size, 48px);
  height: var(--mkbt-size, 48px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--mkbt-border, #d1d5db);
  border-radius: var(--mkbt-radius, 999px);
  background: var(--mkbt-bg, #f8f7f7);
  color: var(--mkbt-fg, #222933);
  box-shadow: 0 2px 8px rgba(22,22,37,.10);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mkbt-button svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.mkbt-root[data-visible="true"] {
  pointer-events: auto;
}
.mkbt-root[data-visible="true"] .mkbt-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover:hover) and (pointer:fine) {
  .mkbt-button:hover {
    background: var(--mkbt-hover-bg, #c2410c);
    border-color: var(--mkbt-hover-border, #c2410c);
    color: var(--mkbt-hover-fg, #fff);
    box-shadow: 0 4px 12px rgba(22,22,37,.17);
  }
  .mkbt-root[data-visible="true"] .mkbt-button:hover {
    transform: translateY(-2px) scale(1.06);
  }
}
/* Touchscreens have no hover: show the accent only while pressing. */
.mkbt-button:active {
  background: var(--mkbt-hover-bg, #c2410c);
  border-color: var(--mkbt-hover-border, #c2410c);
  color: var(--mkbt-hover-fg, #fff);
}
.mkbt-button:focus-visible {
  outline: 3px solid #161625;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .mkbt-root {
    right: max(0px, var(--mkbt-mobile-right, 16px));
    bottom: calc(var(--mkbt-mobile-bottom, 20px) + env(safe-area-inset-bottom, 0px));
  }
  .mkbt-button {
    width: var(--mkbt-mobile-size, 46px);
    height: var(--mkbt-mobile-size, 46px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mkbt-button {
    transition: none;
  }
}
