.admin-image-cropper{box-sizing:border-box;width:min(860px,calc(100vw - 32px));max-width:none;max-height:90dvh;padding:0;border:1px solid #d3dfd3;border-radius:16px;color:#233c2d;background:#fbfcf9;box-shadow:0 24px 80px #102f2633;overflow:hidden}
.admin-image-cropper::backdrop{background:#132d2273}
.admin-image-cropper[open]{display:flex;flex-direction:column}
.admin-image-cropper :is(button,input,select){box-sizing:border-box;font:inherit}
.admin-image-cropper button{min-height:44px;padding:8px 16px;border:1px solid #c7d6c9;border-radius:9px;background:#fff;color:#25553a;font-size:13px;line-height:20px;box-shadow:none;white-space:nowrap}
.image-crop-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:18px 22px;border-bottom:1px solid #e0e7df;flex:none}
.image-crop-head h2{margin:0;font-size:18px;line-height:26px}.image-crop-head p{margin:3px 0 0;color:#748174;font-size:12px}
.image-crop-head [data-crop-close]{width:44px;padding:0;font-size:26px;background:#f0f4ed;flex:none}
.image-crop-body{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:24px;padding:20px 22px;overflow:auto;overscroll-behavior:contain;min-height:0}
.image-crop-workspace{min-width:0}.image-crop-workspace label{display:block;margin:0 0 12px;color:#536758;font-size:12px;line-height:20px}
.image-crop-workspace select{display:block;width:100%;min-height:44px;margin-top:5px;border:1px solid #bfcec1;border-radius:8px;padding:8px 10px;background:#fff;color:#254d34;font-size:13px}
.image-crop-stage{height:clamp(180px,calc(90dvh - 430px),320px);display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #d4dfd4;border-radius:10px;background:repeating-conic-gradient(#e8ede7 0% 25%,#f6f8f4 0% 50%) 0/16px 16px;margin-bottom:12px}
.image-crop-stage canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;touch-action:none;cursor:grab}.image-crop-stage canvas:active{cursor:grabbing}
.image-crop-tools{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}.image-crop-tools button{padding:6px 12px}.image-crop-tools .image-crop-fit{display:flex;align-items:center;gap:6px;margin:0 0 0 auto;min-height:44px;color:#315e3e}.image-crop-fit input{width:16px;height:16px;accent-color:#086640}
.image-crop-workspace input[type=range]{display:block;width:100%;height:24px;min-height:24px;margin:2px 0 0;accent-color:#086640;padding:0;border:0;background:transparent;box-shadow:none}
.image-crop-position{display:grid;grid-template-columns:1fr 1fr;gap:16px}.image-crop-position label{margin:0}
.image-crop-previews h3{font-size:14px;line-height:22px;margin:0}.image-crop-previews>p{font-size:12px;line-height:18px;color:#6c7c6e;margin:4px 0 14px}
.image-crop-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px}
.image-crop-preview-grid figure{margin:0;min-width:0}.image-crop-preview-grid figure>div{height:120px;display:flex;align-items:center;justify-content:center;border:1px solid #e0e6dd;border-radius:8px;background:#fff;padding:6px;box-sizing:border-box}
.image-crop-preview-grid canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:5px}
.image-crop-preview-grid figcaption{font-size:12px;line-height:18px;text-align:center;margin-top:5px}.image-crop-preview-grid small{display:block;font-size:11px;color:#819181}
.image-crop-previews [data-crop-output]{margin-top:16px;color:#315e3e}.image-crop-previews [data-crop-error]{color:#ae3025}
.image-crop-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #e0e7df;background:#fff;flex:none}
.image-crop-footer [data-crop-apply]{background:#087343;border-color:#087343;color:#fff}
#editor .product-image-specs{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px;font-size:11px;color:#5a715e}
#editor .product-image-specs span{padding:3px 7px;border:1px solid #dce5d9;border-radius:5px;background:#fff}
#editor .product-gallery-actions [data-gallery-action=crop]{grid-column:1/-1;color:#086640;background:#f1f7ed}
#editor .product-gallery-editor [data-image-upload-busy]{display:none}
@media(max-width:650px){.admin-image-cropper{width:calc(100vw - 20px);max-height:94dvh}.image-crop-head{padding:14px}.image-crop-body{grid-template-columns:minmax(0,1fr);gap:18px;padding:14px}.image-crop-stage{height:280px}.image-crop-preview-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.image-crop-preview-grid figure>div{height:84px}.image-crop-preview-grid figcaption{font-size:11px}.image-crop-footer{padding:12px 14px}}
