[data-product-photo-control][hidden] { display:none!important; }
.product-photo-tools { position:fixed; inset:0; z-index:9500; background:#26323866; display:flex; align-items:center; justify-content:center; padding:12px; color:#172d3d; font-size:13px; }
.photo-tools-shell { width:min(1280px,100%); height:min(960px,100%); display:flex; flex-direction:column; min-height:0; background:#fff; border:1px solid #bacbd5; border-radius:8px; overflow:hidden; position:relative; }
.photo-tools-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid #d6e0e6; background:#f5f8fa; }
.photo-tools-header h2 { margin:0; font-size:18px; line-height:1.4; }
.product-photo-tools button,.photo-tools-file { font:inherit; color:inherit; border:1px solid #b5c7d5; background:#fff; border-radius:5px; padding:8px 12px; min-height:36px; cursor:pointer; line-height:1.35; }
.product-photo-tools button:hover { background:#edf5f8; }
.product-photo-tools button:disabled { cursor:default; opacity:.5; }
.product-photo-tools .primary { background:#19745e; color:#fff; border-color:#19745e; }
.product-photo-tools button.primary:hover { background:#145e4e; color:#fff; }
.product-photo-tools .danger { color:#b21d35; border-color:#d68c97; }
.product-photo-tools input:not([type=checkbox]),.product-photo-tools select { width:100%; min-width:0; min-height:36px; font:inherit; padding:7px 9px; border:1px solid #bdceda; border-radius:4px; background:#fff; color:#172d3d; box-sizing:border-box; }
.product-photo-tools label { display:flex; flex-direction:column; gap:5px; font-size:12px; min-width:0; }
.product-photo-tools input[type=checkbox] { width:17px; height:17px; accent-color:#19745e; flex:none; }
.photo-tools-status { padding:0 16px; line-height:1.6; min-height:0; color:#27624e; overflow-wrap:anywhere; }
.photo-tools-status:not(:empty) { padding-top:10px; padding-bottom:10px; background:#eef7f1; border-bottom:1px solid #cde5d7; }
.photo-tools-status.error { color:#a20d2b; background:#fff1f2; }
#photo-tools-receipt { align-self:flex-start; margin:8px 16px; }
.photo-tools-recovery { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.photo-tools-recovery:has(button:not([hidden])) { padding:8px 16px; border-bottom:1px solid #d6e0e6; }
.photo-tools-recovery #photo-tools-receipt { margin:0; }
.photo-tools-product { padding:12px 16px; border-bottom:1px solid #d6e0e6; }
#photo-tools-search-form { display:grid; grid-template-columns:auto minmax(100px,340px) auto; justify-content:start; align-items:center; gap:8px; }
.photo-tools-product-title { font-size:14px; font-weight:700; margin-top:8px; overflow-wrap:anywhere; }
.photo-tools-results { max-height:180px; overflow-y:auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:5px; }
.photo-tools-results:not(:empty) { margin-top:8px; }
.photo-tools-results button { display:flex; flex-direction:column; text-align:left; gap:3px; overflow-wrap:anywhere; }
.photo-tools-results span { font-size:11px; color:#617382; }
.photo-tools-tabs { display:flex; gap:0; border-bottom:1px solid #cad6df; padding:0 16px; flex:none; }
.photo-tools-tabs button { border:none; border-bottom:3px solid transparent; border-radius:0; min-height:42px; padding:9px 16px; }
.photo-tools-tabs button[aria-selected=true] { border-bottom-color:#19745e; color:#14624e; font-weight:700; background:#f0f8f5; }
.photo-tools-scroll { flex:1; overflow-y:auto; min-height:0; padding:16px; }
.photo-tools-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.photo-tools-capture-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:start; }
.photo-tools-video { aspect-ratio:4/3; background:#182426; position:relative; display:grid; place-items:center; border-radius:4px; overflow:hidden; color:#d7e0e3; }
.photo-tools-video video { position:absolute; width:100%; height:100%; object-fit:contain; }
.photo-tools-video span { z-index:1; }
.photo-tools-camera-actions { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.photo-tools-file { display:block!important; padding:10px!important; }
.photo-tools-file input { margin-top:6px; border:0!important; padding:0!important; }
.photo-tools-note { font-size:11px; color:#6a7b86; margin-top:8px; }
.photo-tools-section-title { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.photo-tools-section-title h3 { font-size:14px; margin:0; }
.photo-tools-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,175px),1fr)); gap:12px; align-items:start; }
.photo-tools-item { border:1px solid #d8e3e8; border-radius:6px; padding:9px; display:grid; gap:8px; min-width:0; }
.photo-tools-item strong { font-size:12px; overflow-wrap:anywhere; }
.photo-tools-thumb { display:block; padding:0!important; width:100%; aspect-ratio:4/3; overflow:hidden; border-color:#e1e7eb!important; background:#f7f9fa!important; }
.photo-tools-thumb img { width:100%; height:100%; object-fit:contain; display:block; color:#667988; font-size:11px; }
.photo-tools-check { flex-direction:row!important; align-items:center; }
.photo-tools-item-actions { display:flex; flex-wrap:wrap; gap:6px; }
.photo-tools-item-actions button { padding:6px 8px; font-size:12px; }
.photo-tools-item-status { font-size:11px; color:#a20d2b; overflow-wrap:anywhere; }
.photo-tools-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding-bottom:12px; border-bottom:1px solid #dae3e9; }
.photo-tools-toolbar label { flex-direction:row; align-items:center; }
.photo-tools-toolbar strong { margin-right:auto; min-width:65px; }
.photo-tools-bulk { display:flex; gap:8px; flex-wrap:wrap; padding:12px 0; }
.photo-tools-bulk select { width:160px; }
.photo-tools-empty { padding:32px 12px; text-align:center; color:#6e7e89; grid-column:1/-1; }
.photo-tools-preview { position:absolute; inset:0; background:#172124ed; z-index:2; padding:55px 12px 12px; display:flex; justify-content:center; align-items:center; }
.photo-tools-preview button { position:absolute; right:12px; top:12px; }
.photo-tools-preview img { max-width:100%; max-height:100%; object-fit:contain; }
.product-photo-tools [hidden] { display:none!important; }
.photo-tools-confirm { position:absolute; inset:0; z-index:3; background:#17212488; display:grid; place-items:center; padding:18px; }
.photo-tools-confirm>div { background:#fff; border:1px solid #b5c7d5; border-radius:6px; padding:20px; width:min(440px,100%); box-sizing:border-box; }
.photo-tools-confirm p { margin:0 0 18px; line-height:1.7; overflow-wrap:anywhere; }
.photo-tools-confirm button { margin-right:8px; }
.product-photo-tools :focus-visible { outline:3px solid #377ce4; outline-offset:2px; }
@media(max-width:720px) {
  .product-photo-tools { padding:0; }
  .photo-tools-shell { border-radius:0; width:100%; height:100%; }
  .photo-tools-header,.photo-tools-product { padding:10px 12px; }
  .photo-tools-header h2 { font-size:16px; }
  .photo-tools-scroll { padding:12px; }
  .photo-tools-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .photo-tools-capture-layout { grid-template-columns:1fr; }
  .photo-tools-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .photo-tools-item { padding:7px; }
  .photo-tools-toolbar { gap:6px; }
  .photo-tools-toolbar button { flex:1 1 130px; }
  .photo-tools-tabs { padding:0 8px; }
  #photo-tools-search-form { grid-template-columns:auto minmax(0,1fr) auto; }
}
