/* Art Direction panel in the Image block sidebar; matches the Media Library's focal point editor. */

.pwad-block-set {
  margin: 0 0 12px;
  color: #50575e;
}

.pwad-block-focal {
  margin: 16px 0 0;
}

.pwad-block-focal-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

.pwad-block-focal-help {
  margin: 8px 0 0;
  color: #757575;
  font-size: 12px;
}

.pwad-block-focal-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #f0f0f1;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
}

.pwad-block-focal-frame img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* The crop outline, with everything outside it washed out. */
.pwad-block-focal-crop {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 1000px 1000px rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.pwad-block-focal-marker {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: move;
}

.pwad-block-focal-marker span {
  position: absolute;
  top: -15px;
  left: -15px;
  display: block;
  width: 30px;
  height: 30px;
  border: 1px solid var(--wp-admin-theme-color-darker-20, #135e96);
  border-radius: 100%;
  background: rgba(var(--wp-admin-theme-color--rgb, 34, 113, 177), 0.5);
  opacity: 0.9;
  transition: all 0.15s ease;
}

.pwad-block-focal-marker span::before {
  position: absolute;
  inset: 0;
  width: 4px;
  height: 4px;
  margin: auto;
  content: '';
  border-radius: 100%;
  background: var(--wp-admin-theme-color-darker-20, #135e96);
}

.pwad-block-focal-marker.is-dragging span {
  top: -30px;
  left: -30px;
  width: 60px;
  height: 60px;
}

.pwad-block-focal-marker:focus-visible span {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color, #2271b1);
}

.pwad-block-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
