/* Product photo checker (/product-photo-checker/). Linked only from that page; builds on
   main.css and image-tools.css (the free tools' layout). The checks run in
   assets/js/photo-checker-engine.js, the page in assets/js/photo-checker.js. */

[data-pc] [hidden]{display:none!important}
.pc-stage{position:relative;background:#fff;border-radius:12px;min-height:400px;display:flex;flex-direction:column;overflow:hidden}
.pc-view{flex:1;display:flex;flex-direction:column;min-height:0}
.pc-viewbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 12px 0}
.pc-viewbar .it-picked{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc-photo{flex:1;display:flex;align-items:center;justify-content:center;padding:16px;min-height:300px}
.pc-photo img{max-height:420px;width:auto;max-width:100%;border-radius:6px;box-shadow:0 0 0 1px #e4e4e4;background:repeating-conic-gradient(#ececec 0 25%,#fff 0 50%) 0 0/16px 16px}

.pc-select{width:100%;height:44px;border:1px solid #d6d6d6;border-radius:10px;padding:0 12px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.pc-select:focus{outline:2px solid var(--ink);outline-offset:1px;border-color:transparent}

.pc-summary{background:#fff;border-radius:12px;padding:14px 16px}
.pc-after{display:flex;flex-direction:column;gap:12px}
.pc-after>.it-label{margin:6px 0 0}
.pc-verdict{font-size:18px;font-weight:600;line-height:1.35}
.pc-verdict-sub{font-size:14px;line-height:1.45;color:var(--muted);margin-top:4px}
.pc-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:12px 0 0;font-size:14px;line-height:1.45}
.pc-facts dt{color:var(--muted)}
.pc-facts dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}

.pc-fixes{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.pc-fix{background:#fff;border-radius:12px;padding:14px 16px;border-left:4px solid #e4e4e4}
.pc-fix[data-cls="fail"]{border-left-color:#c2412d}
.pc-fix[data-cls="warn"]{border-left-color:#d99a00}
.pc-fix[data-cls="pass"]{border-left-color:var(--green-dark)}
.pc-fix h3{font-size:16px;line-height:1.35;font-weight:600}
.pc-fix p{font-size:14px;line-height:1.45;color:#333;margin-top:4px}
.pc-fix .btn{margin-top:10px;height:auto;min-height:40px;padding:8px 20px;font-size:15px;line-height:1.25;text-align:center;justify-content:center;white-space:normal}
.pc-fix a:not(.btn){text-decoration:underline}

.pc-results{max-width:1180px;margin:28px auto 0;padding:0 24px}
.pc-results h2{font-size:28px;line-height:1.25;text-align:left}
.pc-results>.it-note{margin-top:6px}
.pc-table-wrap{margin-top:16px;border:1px solid #e4e4e4;border-radius:12px;overflow-x:auto;background:#fff}
.pc-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.pc-table th,.pc-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid #ececec}
.pc-table thead th{background:var(--card-alt);font-weight:600;white-space:nowrap}
.pc-table tbody tr:last-child>*{border-bottom:0}
.pc-table tbody th{font-weight:600;white-space:nowrap}
.pc-table tbody th a{text-decoration:underline}
.pc-table td small{display:block;color:var(--muted);font-size:13px;line-height:1.4;margin-top:2px;min-width:130px}
.pc-r{display:inline-block;border-radius:6px;padding:1px 8px;font-weight:600;font-size:13px;white-space:nowrap}
.pc-r.pass{background:#e9f9e7;color:#1f7a17}
.pc-r.warn{background:#fff4dc;color:#7a5000}
.pc-r.fail{background:#fdecea;color:#a3271b}
.pc-r.na{color:var(--muted);padding-left:0}

.pc-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:40px}
.pc-check{background:var(--card);border-radius:var(--radius-card);padding:22px 24px}
.pc-check h3{font-size:20px;line-height:1.3}
.pc-check p{font-size:16px;line-height:1.55;margin-top:8px;color:#333}
.pc-check a{text-decoration:underline}

@media (max-width:899px){
  .pc-stage{min-height:280px}
  .pc-photo{min-height:220px}
  .pc-photo img{max-height:320px}
  .pc-checks{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:809px){
  .pc-results{padding:0 16px}
  .pc-results h2{font-size:24px}
  /* phones: one card per marketplace instead of a wide table */
  .pc-table-wrap{border:0;background:none;overflow:visible}
  .pc-table thead{display:none}
  .pc-table,.pc-table tbody,.pc-table tr,.pc-table th,.pc-table td{display:block;width:100%}
  .pc-table tr{background:#fff;border:1px solid #e4e4e4;border-radius:12px;margin-bottom:12px;padding:4px 0}
  .pc-table tbody th{border-bottom:1px solid #ececec;white-space:normal}
  .pc-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:2px 10px;border-bottom:0;padding:8px 12px}
  .pc-table td::before{content:attr(data-label);color:var(--muted);font-size:14px;grid-row:span 2}
  .pc-table td small{margin-top:0;min-width:0}
  .pc-table td .pc-r{justify-self:start}
  .pc-table tbody tr:last-child>*{border-bottom:0}
  .pc-table tbody tr>th{border-bottom:1px solid #ececec!important}
}
