.bh-surface .bh-floating-download {
  --bh-download-safe-top: env(safe-area-inset-top, 0px);
  --bh-download-safe-right: env(safe-area-inset-right, 0px);
  --bh-download-safe-bottom: env(safe-area-inset-bottom, 0px);
  --bh-download-safe-left: env(safe-area-inset-left, 0px);
  position: fixed;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 64px;
  height: 68px;
  padding: 7px 4px;
  border: 1px solid #d9bc80;
  border-radius: 19px;
  color: #f7deb0;
  background: linear-gradient(145deg, #554b35, #272b31);
  box-shadow: 0 5px 20px #0005, inset 0 1px 0 #ffe8b833;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.bh-surface .bh-floating-download[hidden] {
  display: none !important;
}

.bh-floating-download > img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.bh-floating-download > * {
  pointer-events: none;
}

.bh-floating-download.is-dragging {
  cursor: grabbing;
  border-color: #ffe1a0;
  box-shadow: 0 8px 25px #0007, 0 0 0 2px #e6c28133;
}

.bh-floating-download:focus-visible {
  outline: 3px solid #f6d394;
  outline-offset: 3px;
}

.bh-surface.modal-open .bh-floating-download,
.bh-surface.dialog-open .bh-floating-download {
  visibility: hidden;
}
