.nfc-back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #fff9ef;
  border-radius: 50%;
  background: #c96f35;
  color: #fff;
  box-shadow: 0 6px 20px #56442c26;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
}

.nfc-back-to-top[hidden],
body.nfc-dialog-open .nfc-back-to-top {
  display: none !important;
}

.nfc-back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nfc-back-to-top:hover {
  background: #a84f26;
  transform: translateY(-2px);
}

.nfc-back-to-top:focus-visible {
  outline: 3px solid #a84f26;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .nfc-back-to-top {
    width: 46px;
    height: 46px;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

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