.ufex-required-note{display:inline-block;font-size:11px;font-weight:400;color:#b68a39;margin-left:6px}
.ufex-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin-left:10px;padding:3px 9px;border:1px solid #ad9159;border-radius:5px;background:#fff9ec;color:#735719;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;cursor:pointer;vertical-align:middle}.ufex-button:hover{background:#f8ecd1}.ufex-button:focus-visible{outline:2px solid #b79753;outline-offset:2px}.ufex-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.62);display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.ufex-dialog{position:relative;width:760px;max-width:100%;max-height:85vh;overflow:auto;background:#fff;color:#222;border-radius:12px;padding:24px;box-sizing:border-box;box-shadow:0 14px 60px rgba(0,0,0,.35)}.ufex-dialog h2{margin:0 38px 10px 0;font-size:20px;line-height:1.5;color:#222}.ufex-dialog p{white-space:pre-wrap;line-height:1.7;font-size:14px;color:#555;margin:0 0 14px}.ufex-close{position:absolute;right:14px;top:12px;width:32px;height:32px;border:0;background:#f2f2f2;border-radius:6px;font-size:23px;cursor:pointer;color:#333}.ufex-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.ufex-gallery figure{margin:0;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden;background:#fafafa}.ufex-gallery img{display:block;width:100%;height:230px;object-fit:contain;background:#fff}.ufex-gallery figcaption{font-size:12px;line-height:1.5;padding:8px;text-align:center;color:#777}.ufex-note{font-size:12px!important;color:#777!important;margin-top:14px!important;margin-bottom:0!important}.upload-slot .ufex-button{position:absolute;right:8px;top:8px;z-index:4;margin-left:0}.ufex-inline{margin:7px 0}.ufex-inline .ufex-button{margin-left:0}@media(max-width:600px){.ufex-overlay{padding:12px}.ufex-dialog{padding:18px;max-height:88vh}.ufex-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.ufex-gallery img{height:160px}.ufex-button{margin-left:6px;font-size:11px;padding:2px 7px}}

/* Match white-workbench empty upload slots: subtle example behind existing upload copy. */
.ufex-slot{position:relative;isolation:isolate}
.ufex-slot.ufex-has-sample::before{content:"";position:absolute;inset:10px;background-image:var(--ufex-image);background-size:contain;background-repeat:no-repeat;background-position:center;opacity:.18;pointer-events:none;z-index:-1}
.ufex-slot>.ufex-button{position:absolute;right:8px;top:8px;z-index:5;margin:0;font-size:11px;padding:1px 7px;line-height:20px;background:#fff9ec!important;color:#735719!important;border:1px solid #ad9159!important}
.upload.ufex-slot{padding:34px 12px 20px;box-sizing:border-box}
#empty.ufex-slot:not([hidden]){position:absolute;inset:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:4}
#empty.ufex-slot.ufex-has-sample::before{inset:24px}
@media(max-width:600px){.ufex-slot>.ufex-button{right:5px;top:5px;font-size:10px;padding:1px 5px}}

[data-pc-drop-field="product_images"] .slot-empty-label,.ufex-product-number{display:none!important}

.product-preset-create .product-preset-preview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.product-preset-create .product-preset-preview-item{width:auto!important;min-width:0}
.product-preset-upload-slot{position:relative;display:flex;align-items:center;justify-content:center;height:126px;border:1px dashed rgba(236,236,236,.25);border-radius:8px;background:#1d1d1d;cursor:pointer;overflow:hidden}
.product-preset-upload-slot.filled{border-style:solid}.product-preset-upload-slot .slot-plus{font-size:28px;color:#d6d6d6}
.product-preset-create .product-preset-upload-img{width:100%!important;height:100%!important}
.product-preset-slot-remove{position:absolute;top:6px;right:6px;z-index:8;width:24px;height:24px;line-height:24px;text-align:center;color:#fff;background:rgba(0,0,0,.7);border-radius:50%}
.product-preset-view-label{display:block;text-align:center;margin-top:8px;font-size:12px;color:#d6d6d6}
@media(max-width:600px){.product-preset-create .product-preset-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
