/* Wallfield Custom Uploads — zelfde opmaak als de Shopware-popup (WallfieldTheme _image-upload.scss) */
.wf-image-upload { margin: 0 0 1.25rem; max-width: 450px; }
.wf-image-upload__title { display: block; font-weight: 600; margin-bottom: .5rem; color: #1a2b3c; }
.wf-image-upload__title abbr { text-decoration: none; color: #b00; }

.wf-image-upload__dropzone { position: relative; display: flex; align-items: center; justify-content: center; min-height: 160px; border: 2px dashed #c5d1dc; border-radius: 12px; background: #f8fafc; cursor: pointer; transition: border-color .2s, background-color .2s; }
.wf-image-upload__dropzone:hover, .wf-image-upload__dropzone--hover { border-color: #ccb381; background: #f0faf8; }
.wf-image-upload__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.wf-image-upload__placeholder { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem 1rem; pointer-events: none; text-align: center; }
.wf-image-upload__icon { color: #ccb381; width: 48px; height: 48px; }
.wf-image-upload__label { font-weight: 600; font-size: .95rem; color: #1a2b3c; }
.wf-image-upload__hint { font-size: .8rem; color: #7b8a99; }

.wf-image-upload__preview { position: relative; display: none; max-width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.wf-image-upload__preview.is-visible { display: inline-block; }
.wf-image-upload__preview-img { display: block; max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 12px; }
.wf-image-upload__remove { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(0,0,0,.55); border: none; border-radius: 50%; color: #fff; cursor: pointer; transition: background .2s; }
.wf-image-upload__remove:hover { background: rgba(0,0,0,.8); }
.wf-image-upload__edit { position: absolute; left: 8px; bottom: 8px; padding: .35rem .75rem; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: 6px; font-size: .8rem; cursor: pointer; }
.wf-image-upload__edit:hover { background: rgba(0,0,0,.8); }
.wf-image-upload.is-uploading .wf-image-upload__preview::after { content: "Uploaden…"; position: absolute; right: 8px; bottom: 8px; padding: .3rem .6rem; background: rgba(255,255,255,.9); border-radius: 6px; font-size: .75rem; color: #1a2b3c; }

.wf-image-upload__status { font-size: .85rem; margin-top: .5rem; }
.wf-image-upload__status:empty { display: none; }
.wf-image-upload__status.is-error { color: #b00020; }
.wf-image-upload__status.is-warn { color: #8a6100; }

html.wcu-noscroll, html.wcu-noscroll body { overflow: hidden !important; }
.wf-image-upload__crop-modal { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; }
.wf-image-upload__crop-modal.is-open { display: flex; }
.wf-image-upload__crop-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.wf-image-upload__crop-dialog { position: relative; z-index: 1; width: 94vw; max-width: 860px; height: 90vh; height: 90dvh; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.wf-image-upload__crop-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }
.wf-image-upload__crop-header h3 { margin: 0; font-size: 1.05rem; font-weight: 600; color: #1a2b3c; }
.wf-image-upload__crop-close { background: none; border: none; color: #7b8a99; cursor: pointer; padding: 4px; line-height: 0; }
.wf-image-upload__crop-close:hover { color: #1a2b3c; }
.wf-image-upload__crop-content { flex: 1 1 auto; display: flex; min-height: 0; overflow: hidden; }
.wf-image-upload__crop-sizes { flex: 0 0 auto; width: 160px; display: flex; flex-direction: column; gap: .35rem; padding: 1rem .75rem; border-right: 1px solid #eee; background: #fafafa; overflow-y: auto; }
.wf-image-upload__crop-sizes-title { font-size: .75rem; font-weight: 600; color: #7b8a99; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.wf-image-upload__crop-size-btn { display: block; width: 100%; padding: .5rem .65rem; border: 1.5px solid #dee2e6; border-radius: 8px; background: #fff; font-size: .85rem; font-weight: 500; color: #1a2b3c; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.wf-image-upload__crop-size-btn:hover { border-color: #ccb381; background: #f0faf8; }
.wf-image-upload__crop-size-btn.is-active { border-color: #ccb381; background: #e8f5f2; font-weight: 600; }
.wf-image-upload__crop-body { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: 1.5rem; min-height: 0; overflow: hidden; background: #f4f4f6; }
.wf-image-upload__crop-canvas { display: block; max-width: 100%; max-height: 100%; border-radius: 4px; cursor: grab; touch-action: none; }
.wf-image-upload__crop-canvas:active { cursor: grabbing; }
.wf-image-upload__crop-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; border-top: 1px solid #eee; }
.wf-image-upload__crop-ratio-label { font-size: .85rem; color: #7b8a99; font-weight: 500; }
.wf-image-upload__crop-confirm { background: #ccb381; color: #fff; border: none; padding: .55rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .2s; }
.wf-image-upload__crop-confirm:hover { background: #b89d68; }
@media (max-width: 576px) {
  .wf-image-upload__crop-sizes { width: 110px; padding: .75rem .5rem; }
  .wf-image-upload__crop-body { padding: .75rem; }
}
