/* Minikompaniet v1.3 – private customer photo preview */
.photo-panel{border:1px solid #dbcac1;background:#fffcf8;padding:21px 18px;margin:18px 0 26px;border-radius:4px}
.photo-panel[hidden],.photo-layer[hidden],#photoSettings[hidden]{display:none!important}
.photo-header{display:flex;flex-direction:column;gap:4px;margin-bottom:11px}
.photo-header>span{font-size:10px;letter-spacing:1.8px;color:#a77672;font-weight:700}
.photo-header strong{font:400 24px/1.25 Georgia,serif;color:#50413d}
.photo-panel>p{font-size:12px;color:#766b60;line-height:1.75;margin:0 0 16px}
.photo-upload{border:1.8px dashed #bb9690;background:#f9f0ec;color:#735b55;cursor:pointer;padding:20px 12px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;border-radius:5px;transition:background .15s}
.photo-upload:hover,.photo-upload:focus-within{background:#f1dfd6}
.photo-upload>span{font-size:28px;line-height:1;color:#ac7e76}
.photo-upload>strong{font-size:13px}
.photo-upload>small{font-size:10px;opacity:.9}
.photo-mode-picker{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:19px}
.photo-mode{border:1px solid #dfd0c6;background:white;border-radius:4px;color:#795c54;font-weight:700;font-size:11px;padding:12px 8px}
.photo-mode.active{background:#e8d8d0;border-color:#a87372}
.photo-mode:disabled,.photo-remove-bg:disabled{opacity:.6;cursor:wait}
.photo-mode-picker+.field-help{margin:10px 0 12px}
.photo-remove-bg{font-size:12px;color:#815e59;border:1px solid #c9aaa3;background:#fffdf9;border-radius:4px;width:100%;padding:10px}
.photo-remove-bg[hidden]{display:none!important}
.photo-controls{display:grid;gap:14px;margin:19px 0}
.photo-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#5d5048;font-weight:700}
.photo-controls label output{float:right;margin-left:auto;color:#a77771}
.photo-controls input[type=range]{width:100%;accent-color:#b6797c;cursor:pointer;height:18px}
.photo-clear{border:0;background:transparent;color:#9b6464;padding:6px 0;font-weight:700;font-size:11px;text-decoration:underline}
.photo-privacy{background:#f2eae3;padding:13px;margin:18px 0 0;color:#766760;line-height:1.75;font-size:10px;border-radius:4px}
.photo-privacy strong{color:#795953}
.photo-status{margin:12px 0 0!important;font-size:11px!important;color:#55705b!important}
.photo-status.error{color:#a03a47!important}
.poster-shadow{position:relative;overflow:hidden}
.photo-layer{position:absolute;z-index:4;left:21%;top:24%;width:58%;height:43%;border-radius:48% 48% 4% 4%;overflow:hidden;background:#f2ddd8;cursor:grab;touch-action:none;user-select:none}
.photo-layer:active{cursor:grabbing}
.photo-layer.star{left:21.5%;top:22.5%;width:57%;height:42.8%;border-radius:50%;background:#f1e7dd}
.photo-layer.cutout{border-radius:0;overflow:visible;background:transparent}
.photo-layer img{display:block;height:100%;width:100%;object-fit:cover;object-position:center center;max-width:none;max-height:none;user-select:none;pointer-events:none}
.photo-layer.cutout img{object-fit:contain}
.photo-overlay-stamp{position:absolute;pointer-events:none;z-index:5;left:-15%;right:-15%;top:44%;transform:rotate(-19deg);text-align:center;padding:6px 0;background:rgba(255,255,255,.22);color:rgba(90,66,66,.51);font-family:Arial,sans-serif;letter-spacing:.6px;font-size:8px;white-space:nowrap;font-weight:800}
.photo-layer.cutout .photo-overlay-stamp{top:44%}
.shop-status-note{margin:4px 0 12px;font-size:11px;line-height:1.7;color:#89736c}
.studio-actions>.button.primary:disabled{cursor:not-allowed;background:#8c7d78;box-shadow:none;opacity:.85}
@media(max-width:540px){.photo-panel{padding:16px 12px}.photo-header strong{font-size:21px}.photo-overlay-stamp{font-size:5px}.photo-mode{font-size:10px;padding:10px 6px}}
/* v1.3.1: inspect background removal independently from the poster preview */
.photo-compare[hidden]{display:none!important}
.photo-compare{margin-top:18px;padding:12px;border:1px solid #e2d2cb;border-radius:5px;background:#fff}
.compare-header{font-size:12px;font-weight:700;line-height:1.5;color:#685850;margin:0 0 11px}
.photo-compare-images{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.photo-compare-images figure{margin:0;min-width:0}
.compare-image{height:154px;border:1px solid #e3dbd3;border-radius:4px;overflow:hidden;background:#f0e5dc;display:flex;align-items:center;justify-content:center}
.compare-image.checkers{background-color:#f7f7f7;background-image:linear-gradient(45deg,#e2e2e2 25%,transparent 25%),linear-gradient(-45deg,#e2e2e2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2e2e2 75%),linear-gradient(-45deg,transparent 75%,#e2e2e2 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.compare-image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.photo-compare figcaption{font-size:11px;font-weight:700;color:#806d65;text-align:center;padding:7px 0 2px}
.photo-compare .field-help{margin-top:8px;color:#8b726b}
.photo-mode[data-photo-mode="cutout"]{background:#f4e8e2;border-color:#c49d93}
.photo-mode[data-photo-mode="cutout"].active{background:#cda4a0;color:#402f2e;border-color:#ab827c}
@media(max-width:520px){.compare-image{height:130px}.photo-compare{padding:9px}}

/* V1.4: Brush-based fine-tuning of the locally held alpha mask */
.photo-editor[hidden]{display:none!important}
.photo-editor{margin:20px 0 12px;padding:16px 13px;border:1px solid #d8b9b4;border-radius:6px;background:#fff9f5}
.photo-editor-overline{display:block;color:#a46c68;font-size:9px;letter-spacing:1.6px;font-weight:800}
.photo-editor-heading h4{font:400 23px/1.25 Georgia,serif;margin:6px 0 8px;color:#5a4440}
.photo-editor-heading p{font-size:11px;line-height:1.75;color:#776a61;margin:0 0 15px}
.photo-brush-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0 13px}
.photo-tool{background:#fff;border:1px solid #dfcac2;border-radius:4px;color:#77554c;padding:11px 4px;font-size:11px;font-weight:700;min-height:41px}
.photo-tool.active{background:#c49a95;border-color:#ac7c79;color:#fff}
.photo-editor-canvas-wrap{border-radius:4px;border:1px solid #dccac0;overflow:hidden;background-color:#faf9f6;background-image:linear-gradient(45deg,#ece8e5 25%,transparent 25%),linear-gradient(-45deg,#ece8e5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ece8e5 75%),linear-gradient(-45deg,transparent 75%,#ece8e5 75%);background-size:22px 22px;background-position:0 0,0 11px,11px -11px,-11px 0}
#photoEditCanvas{display:block;max-width:100%;width:100%;height:auto;touch-action:none;cursor:crosshair}
.photo-editor-tune{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}
.photo-editor-tune label{font-size:11px;font-weight:700;color:#6d5750;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}
.photo-editor-tune output{color:#a06b67;font-weight:700}
.photo-editor-tune input{flex-basis:100%;width:100%;accent-color:#b9837b}
.photo-editor-ghost{display:flex;align-items:center;gap:7px;font-size:11px;color:#6e5a55;cursor:pointer}
.photo-editor-ghost input{accent-color:#b9837b}
.photo-editor-actions{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:7px;margin-top:17px}
.photo-editor-actions button{background:#fffdf9;color:#845954;font-size:10px;font-weight:700;padding:11px 5px;border:1px solid #d6bbb1;border-radius:4px}
.photo-editor-actions button:disabled{opacity:.4;cursor:not-allowed}
.photo-editor-actions button:hover:not(:disabled){background:#f1e4df}
.photo-editor-help{font-size:10px;line-height:1.75;color:#846f64;margin:12px 0 0}
.photo-editor-status{font-size:11px;color:#697956;margin:9px 0 0;line-height:1.6}
@media(max-width:540px){.photo-editor{padding:13px 10px}.photo-tool{font-size:10px}.photo-editor-tune{gap:9px}.photo-editor-actions button{font-size:9px}.photo-editor-heading h4{font-size:21px}}

