.product-images-dialog,.product-image-preview{box-sizing:border-box;width:min(1160px,calc(100vw - 32px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;overflow:auto;padding:24px;border:1px solid #64748b;border-radius:16px;background:#0f172a;color:#f1f5f9;font-size:15px;line-height:1.6;overscroll-behavior:contain}
.product-images-dialog::backdrop,.product-image-preview::backdrop{background:#060d1bd9}
.product-images-dialog [hidden],.product-image-preview [hidden]{display:none!important}
.product-images-dialog :focus-visible,.product-image-preview :focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
.product-images-dialog button,.product-image-preview button{font:inherit;min-height:44px;padding:8px 12px;box-sizing:border-box;background:#1e293b;color:#e2e8f0;border:1px solid #64748b;border-radius:8px;cursor:pointer;overflow-wrap:anywhere}
.product-images-dialog button:disabled{opacity:.5;cursor:default}.product-images-dialog button:hover:not(:disabled),.product-image-preview button:hover{background:#334155}
.product-images-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:18px}.product-images-heading h2{font-size:24px;margin:0}.product-images-heading h3{font-size:20px;margin:0}.product-images-heading p{margin:5px 0 0;color:#aebed1;overflow-wrap:anywhere}.product-images-heading>div{min-width:0}.product-images-heading>button{flex-shrink:0}
.product-images-help{margin:0 0 18px;color:#cbd5e1;max-width:85ch}.product-images-review{padding:18px;border:1px solid #475569;border-radius:12px;margin-bottom:24px;background:#172238}.product-images-review p{font-size:14px;color:#b9c8dc;margin:12px 0}.product-images-review label{display:block;margin:14px 0 6px;font-weight:600}.product-images-review textarea{box-sizing:border-box;display:block;width:100%;min-width:0;resize:vertical;background:#0f172a;border:1px solid #64748b;border-radius:8px;padding:10px;color:#f1f5f9;font:inherit;font-size:16px}.product-images-review-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.image-review-badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #64748b;border-radius:7px;font-size:15px;line-height:1.5;padding:6px 10px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.image-review-badge.is-pending{background:#573f13;border-color:#f5bb43;color:#ffdf79;font-weight:700;box-shadow:0 0 0 2px #f5bb4318}.image-review-badge.is-approved{background:#123c32;border-color:#49af8f;color:#99edcb}.image-review-badge.is-rejected{background:#4b2231;border-color:#e17a96;color:#ffd1df;font-weight:600}.image-review-badge.is-unchanged,.image-review-badge.is-none{background:#243044;border-color:#64748b;color:#cbd5e1}
.product-images-dialog section h3{font-size:20px;margin:20px 0 12px}.product-images-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.product-image-card{min-width:0;margin:0;border:1px solid #475569;border-radius:12px;overflow:hidden;background:#172238;padding:10px;box-sizing:border-box}.product-image-card.is-selected{border-color:#8da4ff;box-shadow:0 0 0 1px #8da4ff;background:#202e51}.product-image-card>[data-product-image-preview]{display:flex;justify-content:center;align-items:center;width:100%;height:150px;padding:0;border:0;background:#0b1424;overflow:hidden}.product-image-card img{display:block;max-width:100%;width:100%;height:150px;object-fit:contain}.product-image-card figcaption{font-size:14px;margin:10px 0;overflow-wrap:anywhere;min-height:44px;line-height:1.5}.product-image-card figcaption small{display:block;color:#f6ce72;margin-top:6px;line-height:1.5}.product-image-choice{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;font-size:14px;font-weight:600;overflow-wrap:anywhere}.product-image-choice input{width:22px;height:22px;accent-color:#9aaeff;flex:0 0 auto}.product-image-position{display:block;color:#cad5e6;font-size:12px;line-height:1.6;margin:4px 0 10px;min-height:20px}.product-image-order{display:flex;gap:5px;flex-wrap:wrap}.product-images-dialog .product-image-order button{font-size:12px;padding:6px 8px;flex:1;min-height:36px;white-space:nowrap}.product-images-empty{padding:22px 12px;background:#172238;border-radius:8px;color:#aebed1;text-align:center}
.product-images-bottom{position:sticky;bottom:-24px;background:#0f172af5;border-top:1px solid #475569;margin-top:26px;padding:12px 0;z-index:1}.product-images-bottom>p{margin:0 0 8px;color:#d7e3f5;overflow-wrap:anywhere;line-height:1.7}.product-images-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.product-images-footer>span{font-size:14px;margin-right:auto;color:#cbd5e1}.product-images-dialog [data-product-images-save]{background:#4f46e5;border-color:#8b96ff;color:white;font-weight:600}.product-images-dialog [data-image-review=approved]{border-color:#4fbc98;color:#a1f4d1}.product-images-dialog [data-image-review=rejected]{border-color:#c76b87;color:#ffd1df}.product-images-dialog [data-product-images-retry]{border-color:#f6c34b;color:#ffdf89;background:#463614}
.product-image-preview{width:min(1100px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.product-image-preview>img{display:block;max-width:100%;max-height:calc(100dvh - 190px);object-fit:contain;margin:auto}.product-image-preview p{color:#cbd5e1;margin:10px 0}
@media(max-width:1000px){.product-images-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.product-images-dialog,.product-image-preview{padding:14px;width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.product-images-heading{flex-wrap:wrap;gap:10px}.product-images-heading h2{font-size:21px}.product-images-heading>button{margin-left:auto}.product-images-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-image-card{padding:8px}.product-image-card img,.product-image-card>[data-product-image-preview]{height:120px}.product-images-review{padding:12px}.product-images-review-actions{gap:8px}.product-images-review-actions>button{flex:1}.product-images-bottom{bottom:-14px;padding:12px 0}.product-images-footer>span{flex-basis:100%}.product-images-footer>button{flex:1}.product-image-choice{font-size:13px;gap:6px}.product-images-dialog .product-image-order button{min-height:40px}}
@media(max-width:350px){.product-images-grid{grid-template-columns:1fr}.product-image-card img,.product-image-card>[data-product-image-preview]{height:160px}}
.product-images-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.product-images-columns>section{min-width:0}.product-images-columns .product-images-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-images-review{margin-top:24px}.product-images-review h3{font-size:18px;margin:0 0 8px}
@media(max-width:700px){.product-images-columns{grid-template-columns:minmax(0,1fr);gap:4px}.product-images-review-actions>button{flex:1 1 calc(50% - 8px);white-space:nowrap}.product-images-review-actions>button:last-child{flex-basis:100%}}
@media(max-width:350px){.product-images-columns .product-images-grid{grid-template-columns:1fr}}
.product-processing-panel{padding:18px;margin:24px 0;border:1px solid #9e693c;border-radius:12px;background:#2e241d}.product-processing-panel h3{margin:0 0 12px!important;font-size:20px}.product-processing-panel p{font-size:14px;line-height:1.7;color:#dfc5b1;margin:12px 0}.product-processing-panel .product-processing-current{color:#ffdbb6;white-space:pre-wrap;overflow-wrap:anywhere}.product-processing-panel .processing-badge{font-size:15px;padding:6px 10px}.product-processing-panel label{display:block;margin:14px 0 7px;font-weight:600}.product-processing-panel textarea{box-sizing:border-box;display:block;width:100%;min-width:0;resize:vertical;background:#0f172a;border:1px solid #8a735e;border-radius:8px;padding:10px;color:#f1f5f9;font:inherit;font-size:16px}.product-processing-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.product-processing-actions [data-resource-processing=pending]{border-color:#e7a358;background:#4b321c;color:#ffe1bb}
@media(max-width:700px){.product-processing-panel{padding:12px}.product-processing-actions button{flex:1 1 130px}}
