.bbox-handle {
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid #0d6efd;
  border-radius: 3px;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(0, 0, 0, .22);
}

.bbox-handle:hover {
  background: #6ea8fe;
}

.bbox-handle--corner {
  cursor: nwse-resize;
}

.bbox-handle--edge {
  border-radius: 50%;
  background: #1c2632;
  cursor: pointer;
}

.bbox-handle--center {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: move;
}

.bbox-handle--center::before,
.bbox-handle--center::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  content: "";
  border-radius: 1px;
  background: #0d6efd;
  transform: translate(-50%, -50%);
}

.bbox-handle--center::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.bbox-handle--center:hover::before,
.bbox-handle--center:hover::after {
  background: #fff;
}

.bbox-handle--rotate {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #181d24;
  cursor: grab;
}

.bbox-handle--rotate:active {
  cursor: grabbing;
}

.bbox-handle--rotate::before {
  position: absolute;
  inset: 4px;
  content: "";
  border: 2px solid #6ea8fe;
  border-left-color: transparent;
  border-radius: 50%;
}

.bbox-handle--rotate::after {
  position: absolute;
  top: 2px;
  left: 3px;
  content: "";
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-right: 5px solid #6ea8fe;
  transform: rotate(28deg);
}

.building-frame-crosshair .maplibregl-canvas {
  cursor: crosshair;
}
