.image-crop-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0 8px;
}

.image-crop-actions .button {
  justify-content: center;
  width: 100%;
}

.layer-thumb .layer-thumb-canvas {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.studio-crop-bar[hidden] {
  display: none !important;
}

.studio-crop-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(32, 41, 52, 0.16);
  border-radius: 13px;
  box-shadow: 0 12px 36px rgba(20, 26, 34, 0.2);
  display: flex;
  gap: 9px;
  left: 50%;
  padding: 9px;
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  z-index: 30;
}

.studio-crop-bar__label {
  align-items: center;
  color: #202934;
  display: flex;
  gap: 8px;
  margin: 0 7px 0 3px;
  min-width: 150px;
}

.studio-crop-bar__label > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.studio-crop-bar__label strong {
  font-size: 13px;
}

.studio-crop-bar__label small {
  color: #697482;
  font-size: 11px;
  margin-top: 2px;
}

.studio-crop-bar .button {
  min-height: 36px;
  white-space: nowrap;
}

body.studio-crop-active .s2h-layer-toolbar,
body.studio-crop-active .s2h-layer-popover {
  visibility: hidden;
}

@media (max-width: 720px) {
  .studio-crop-bar {
    bottom: auto;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: flex-end;
    left: 12px;
    right: 12px;
    top: calc(12px + env(safe-area-inset-top, 0px));
    transform: none;
  }

  .studio-crop-bar__label {
    flex: 1 0 calc(100% - 6px);
  }

  .studio-crop-bar .button {
    flex: 1 1 auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}
