/* Shared image frame picker (crop-frame.js) – same look as the former link crop picker. */
.eks-crop-frame { margin-block: 12px; }
.eks-crop-frame > summary { cursor: pointer; font-weight: 600; }
.eks-crop-frame-hint,
.eks-crop-frame-note { font-size: .85rem; margin: .45em 0; }
.eks-crop-frame-note:empty { display: none; }
.eks-crop-frame-stage {
  position: relative;
  padding: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  background: #e5edf8;
}
.eks-crop-frame-stage:focus-visible { outline: 3px solid #2c6fbf; outline-offset: 2px; }
.eks-crop-frame-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(55vh, 420px);
  margin: 0;
  pointer-events: none;
}
.eks-crop-frame-outline {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 0 0 100vmax #14284980, inset 0 0 0 1px #153b71;
  pointer-events: none;
}
.eks-crop-frame-outline > i { position: absolute; width: 12px; height: 12px; box-sizing: border-box; background: #fff; border: 2px solid #153b71; }
.eks-crop-frame-outline > [data-corner="nw"] { left: -2px; top: -2px; }
.eks-crop-frame-outline > [data-corner="ne"] { right: -2px; top: -2px; }
.eks-crop-frame-outline > [data-corner="sw"] { left: -2px; bottom: -2px; }
.eks-crop-frame-outline > [data-corner="se"] { right: -2px; bottom: -2px; }
.eks-crop-frame-edges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-block: 8px; }
.eks-crop-frame-edges label { display: grid; gap: 2px; font-size: .85rem; }
.eks-crop-frame-edges input { width: 100%; box-sizing: border-box; }
.eks-crop-frame[hidden] { display: none; }

/* Header media dialog: the picker spans the whole "Bildausschnitt" group. */
.eks-free-crop > .eks-crop-frame { grid-column: 1 / -1; }

/* WordPress dialog "EKS Bild" / "Ausschnitt" / card crop: the old window is now the result preview. */
.eks-crop-dialog .eks-crop-window { cursor: default; pointer-events: none; }
.eks-crop-dialog .eks-crop-preview-label { font-weight: 600; margin: .8em 0 .3em; }
