.spt-standalone-image-frame__rotate-zone {
  position: absolute;
  z-index: 9;
  width: 26px;
  height: 26px;
  cursor: grab;
  pointer-events: auto;
}

.spt-standalone-image-frame__rotate-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  padding: 2px;
  object-fit: contain;
  background: var(--spt-surface);
  border: 1px solid rgba(0, 0, 0, 0.62);
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.spt-standalone-image-frame__rotate-zone:hover .spt-standalone-image-frame__rotate-icon,
.spt-standalone-image-frame__rotate-zone[data-hover="true"]
  .spt-standalone-image-frame__rotate-icon {
  opacity: 1;
}

.spt-standalone-image-frame__rotate-zone.is-nw {
  top: -30px;
  left: -30px;
}

.spt-standalone-image-frame__rotate-zone.is-ne {
  top: -30px;
  right: -30px;
}

.spt-standalone-image-frame__rotate-zone.is-se {
  right: -30px;
  bottom: -30px;
}

.spt-standalone-image-frame__rotate-zone.is-sw {
  bottom: -30px;
  left: -30px;
}
