/* Diagnostics › Product photos ( 6.0.8 ). Builds on Store links' shared pieces ( admin/css/store-links-v2.css: .ecsl2-sic, .ecsl2-info,
   .ecsl2-tipbox, .ecsl2-fixbtn, .ecsl2-count, .ecsl2-flash ); everything of its own is .ecph-*. Visual first: tiles, chips and
   thumbnails on screen, the explanations behind each ⓘ. */
.ecph { --ecph-line:var(--ecv2-g200, #e2e8f0); --ecph-soft:var(--ecv2-g50, #f8fafc); --ecph-muted:var(--ecv2-g500, #64748b); }

/* ---- the scan ---- */
.ecph-progress { display:flex; align-items:center; gap:10px; margin:14px 0 0; padding:10px 14px; border:1px solid var(--ecph-line); border-radius:10px; background:#fff; }
.ecph-progress[hidden] { display:none; }
.ecph-progress-text { font-size:13px; color:var(--ecv2-g700, #334155); }
.ecph-progress-bar { flex:1 1 auto; height:6px; border-radius:99px; background:var(--ecv2-g100, #f1f5f9); overflow:hidden; min-width:80px; }
.ecph-progress-bar i { display:block; height:100%; width:2%; background:var(--ec-brand, #2271b1); border-radius:inherit; transition:width .3s ease; }
/* a fix at work ( 6.0.8 ): the page's line floats at the foot of the window, a bar with no count yet moves, the dialog shows the same */
.ecph-progress.is-floating { flex-wrap:wrap; position:fixed; left:50%; bottom:calc( 20px + env( safe-area-inset-bottom, 0px ) ); z-index:100050; width:min( 520px, calc( 100vw - 32px ) ); margin:0; transform:translateX( -50% ); box-shadow:0 10px 30px rgba( 15, 23, 42, .22 ); }
@media ( max-width:782px ) { .ecph-progress.is-floating { bottom:calc( 76px + env( safe-area-inset-bottom, 0px ) ); } }
.ecph-progress.is-floating .ecph-progress-text { flex:1 1 0; min-width:0; }
.ecph-progress.is-floating .ecph-progress-bar { flex:1 0 100%; }
.ecph-progress-bar.is-waiting i { width:30% !important; transition:none; animation:ecph-slide 1.2s ease-in-out infinite; }
@keyframes ecph-slide { from { transform:translateX( -100% ); } to { transform:translateX( 340% ); } }
.ecph-spin { display:inline-block; flex:none; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-2px; animation:ecph-spin .7s linear infinite; }
@keyframes ecph-spin { to { transform:rotate( 360deg ); } }
@media ( prefers-reduced-motion:reduce ) { .ecph-spin { animation-duration:2s; } .ecph-progress-bar.is-waiting i { animation-duration:3s; } }
.ecph-dialog-progress { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:14px 0 0; padding:10px 12px; border-radius:10px; background:var(--ecph-soft, #f8fafc); font-size:13px; font-weight:600; color:var(--ecv2-g700, #334155); }
.ecph-dialog-progress .ecph-spin { color:var(--ec-brand, #2271b1); }
.ecph-dialog-progress .ecph-progress-bar { flex:1 0 100%; }
.is-busy > .ecph-spin { margin-right:6px; }
.is-busy > .ecph-spin ~ svg { display:none; }
.ecv2-btn.is-busy[disabled] { opacity:.8; cursor:progress; }

.ecph-start { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin:16px 0; padding:18px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; }
.ecph-start > div { flex:1 1 260px; min-width:0; }
.ecph-start b { display:block; font-size:15px; color:var(--ecv2-g900, #0f172a); }
.ecph-start p { margin:4px 0 0; color:var(--ecph-muted); font-size:13px; }
.ecph-start-ic { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--ecsl2-info-bg, #f1f5f9); color:var(--ec-brand, #2271b1); flex:none; }
.ecph-start-ic svg { width:22px; height:22px; }

/* ---- the tiles ---- */
.ecph-tiles { display:grid; grid-template-columns:repeat( auto-fill, minmax( 170px, 1fr ) ); gap:10px; margin:16px 0 10px; }
.ecph-tile { position:relative; display:flex; flex-direction:column; gap:2px; padding:12px 14px 12px 52px; min-height:58px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; color:inherit; text-decoration:none; box-sizing:border-box; }
a.ecph-tile:hover { border-color:var(--ecv2-g300, #cbd5e1); box-shadow:0 1px 3px rgba( 15, 23, 42, .06 ); }
.ecph-tile:focus-visible { outline:2px solid var(--ec-brand, #2271b1); outline-offset:2px; }
.ecph-tile-ic { position:absolute; left:14px; top:50%; transform:translateY( -50% ); display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:var(--ecsl2-info-bg, #f1f5f9); color:var(--ecsl2-info, #475569); }
.ecph-tile-ic svg { width:15px; height:15px; }
.ecph-tile-ic.is-ok { background:var(--ecsl2-ok-bg, #ecfdf3); color:var(--ecsl2-ok, #15803d); }
.ecph-tile-ic.is-warn { background:var(--ecsl2-warn-bg, #fffbeb); color:var(--ecsl2-warn, #b45309); }
.ecph-tile-ic.is-bad { background:var(--ecsl2-bad-bg, #fef2f2); color:var(--ecsl2-bad, #b91c1c); }
.ecph-tile-num { font-size:20px; font-weight:700; line-height:1.15; color:var(--ecv2-g900, #0f172a); font-variant-numeric:tabular-nums; }
.ecph-tile-label { font-size:12.5px; color:var(--ecph-muted); line-height:1.35; }

/* ---- the store's shape ---- */
.ecph-shapes { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 6px; padding:10px 14px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; }
.ecph-shapes-lead { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ecv2-g700, #334155); }
.ecph-shapes-lead svg { width:15px; height:15px; color:var(--ecph-muted); }
.ecph-shapes-bar { display:flex; flex:1 1 220px; min-width:160px; height:22px; border-radius:6px; overflow:hidden; gap:2px; }
.ecph-shape { display:grid; place-items:center; min-width:6px; background:var(--ecv2-g200, #e2e8f0); color:var(--ecv2-g700, #334155); font-size:11px; font-weight:600; white-space:nowrap; overflow:hidden; }
.ecph-shape.is-main { background:var(--ec-brand, #2271b1); color:#fff; }
.ecph-shape:focus-visible { outline:2px solid var(--ecv2-g900, #0f172a); outline-offset:-2px; }

/* ---- groups and problem cards ---- */
.ecph-group { margin:22px 0 0; }
.ecph-group[hidden] { display:none; }
.ecph-group-head { display:flex; align-items:center; gap:4px; margin:0 0 10px; }
.ecph-group-head h3 { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:15px; color:var(--ecv2-g900, #0f172a); }
.ecph-group-head h3 svg { width:17px; height:17px; color:var(--ecph-muted); }

.ecph-problem { margin:0 0 12px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; overflow:hidden; }
.ecph-problem-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:12px 14px; border-bottom:1px solid var(--ecph-line); }
.ecph-problem-head h3 { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:14px; color:var(--ecv2-g900, #0f172a); }
.ecph-problem-head .ecph-fix-all { margin-left:auto; }
.ecph-problem-ic { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; flex:none; background:var(--ecsl2-info-bg, #f1f5f9); color:var(--ecsl2-info, #475569); }
.ecph-problem-ic svg { width:15px; height:15px; }
.ecph-problem-ic.is-warn { background:var(--ecsl2-warn-bg, #fffbeb); color:var(--ecsl2-warn, #b45309); }
.ecph-problem-ic.is-bad { background:var(--ecsl2-bad-bg, #fef2f2); color:var(--ecsl2-bad, #b91c1c); }

.ecph-photos { list-style:none; margin:0; padding:0; }
.ecph-photo { display:flex; align-items:center; gap:12px; padding:10px 14px; margin:0; border-top:1px solid var(--ecv2-g100, #f1f5f9); }
.ecph-photo:first-child { border-top:0; }
.ecph-thumb { position:relative; display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:8px; border:1px solid var(--ecph-line); background:var(--ecph-soft); overflow:hidden; }
/* a photo fills its box whatever its shape: in a grid cell a percentage height follows a tall photo instead ( it stuck out of the box ) */
.ecph-thumb > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; display:block; }
.ecph-thumb.is-empty { color:var(--ecv2-g400, #94a3b8); border-style:dashed; }
.ecph-thumb.is-empty svg { width:18px; height:18px; }
.ecph-photo-main { flex:1 1 auto; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.ecph-photo-name { font-weight:600; color:var(--ecv2-g900, #0f172a); text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.ecph-photo-name:hover { color:var(--ec-brand, #2271b1); text-decoration:underline; }
.ecph-facts { display:flex; flex-wrap:wrap; gap:4px; flex-basis:100%; }
.ecph-photo-act { flex:none; }

.ecph-chip { display:inline-flex; align-items:center; gap:5px; padding:2px 8px; border-radius:99px; font-size:12px; line-height:1.5; background:var(--ecv2-g100, #f1f5f9); color:var(--ecv2-g700, #334155); white-space:nowrap; font-variant-numeric:tabular-nums; }
.ecph-chip.is-warn { background:var(--ecsl2-warn-bg, #fffbeb); color:var(--ecsl2-warn, #b45309); }
.ecph-chip.is-bad { background:var(--ecsl2-bad-bg, #fef2f2); color:var(--ecsl2-bad, #b91c1c); }
.ecph-swatch { display:inline-block; width:11px; height:11px; border-radius:3px; border:1px solid rgba( 15, 23, 42, .25 ); }

.ecph-more { display:block; width:100%; padding:10px 14px; border:0; border-top:1px solid var(--ecv2-g100, #f1f5f9); background:var(--ecph-soft); color:var(--ec-brand, #2271b1); font-weight:600; text-align:left; cursor:pointer; }
.ecph-more:hover, .ecph-more:focus-visible { background:var(--ecv2-g100, #f1f5f9); }

.ecph-allgood, .ecph-fixed-note { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; font-size:13px; color:var(--ecv2-g700, #334155); }
.ecph-fixed-note { margin:22px 0 0; background:var(--ecph-soft); }

/* Recent changes: the settings history's list ( setup-v2.css is not on this screen ) */
.ecph .ecsu-history-list { list-style:none; margin:0; padding:0; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; overflow:hidden; }
.ecph .ecsu-history-item { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:10px 14px; margin:0; border-top:1px solid var(--ecv2-g100, #f1f5f9); }
.ecph .ecsu-history-item:first-child { border-top:0; }
.ecph .ecsu-history-item.is-undone .ecsu-history-changes { text-decoration:line-through; text-decoration-color:var(--ecv2-g400, #94a3b8); }
.ecph .ecsu-history-changes { display:flex; flex-direction:column; gap:2px; min-width:0; flex:1 1 280px; font-size:13px; }
.ecph .ecsu-history-from { color:var(--ecph-muted); }
.ecph .ecsu-history-meta { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--ecph-muted); }
.ecph .ecsu-empty { margin:0; padding:12px 14px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; color:var(--ecph-muted); }
.ecph .ecsu-chip { padding:2px 8px; border-radius:99px; background:var(--ecv2-g100, #f1f5f9); color:var(--ecv2-g700, #334155); font-size:12px; }

/* ---- the fix's preview ---- */
.ecph-dialog { width:min( 560px, calc( 100vw - 32px ) ); padding:0; border:0; border-radius:14px; box-shadow:0 20px 60px rgba( 15, 23, 42, .3 ); }
.ecph-dialog::backdrop { background:rgba( 15, 23, 42, .45 ); }
.ecph-dialog-box { margin:0; padding:20px; }
.ecph-dialog-box h3 { margin:0 0 12px; font-size:16px; }
.ecph-before-after { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ecph-before-after > div { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border:1px solid var(--ecph-line); border-radius:10px; background:var(--ecph-soft); font-size:13px; }
.ecph-before-after b { font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ecph-muted); }
.ecph-dialog-lead { margin:14px 0 6px; font-weight:600; font-size:13px; }
.ecph-dialog-products { margin:0; padding:0 0 0 18px; max-height:180px; overflow:auto; font-size:13px; }
.ecph-dialog-products li.is-this { font-weight:600; }
.ecph-dialog-products li.is-locked { color:var(--ecph-muted); }
.ecph-dialog-note { margin:10px 0 0; padding:8px 10px; border-radius:8px; background:var(--ecsl2-warn-bg, #fffbeb); color:var(--ecsl2-warn, #b45309); font-size:12.5px; }
.ecph-dialog-foot { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:18px; }

@media ( max-width:600px ) {
	.ecph-photo { flex-wrap:wrap; }
	.ecph-photo-act { flex-basis:100%; padding-left:60px; }
	.ecph-before-after { grid-template-columns:1fr; }
	.ecph-problem-head .ecph-fix-all { margin-left:0; }
}

/* the flash's other states ( Store links has ok and is-error ) */
.ecph .ecsl2-flash { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0 0; }
.ecph .ecsl2-flash.is-bad { background:var(--ecsl2-bad-bg, #fef2f2); color:#7f1d1d; border-color:#fecaca; }
.ecph .ecsl2-flash.is-warn { background:var(--ecsl2-warn-bg, #fffbeb); color:#78350f; border-color:#fde68a; }
.ecph .ecsl2-flash[hidden] { display:none; }
/* .ecv2-btn sets its own display, which beats the hidden attribute */
.ecph-dialog [hidden], .ecph [hidden].ecv2-btn { display:none !important; }

/* ---- 6.0.8 PR 3: how your store page shows photos ---- */
.ecph-display { margin:16px 0 0; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; }
.ecph-display [hidden] { display:none !important; }
.ecph-display-head { display:flex; align-items:center; gap:4px; padding:12px 14px; border-bottom:1px solid var(--ecph-line); }
.ecph-display-head h3 { display:inline-flex; align-items:center; gap:8px; margin:0; font-size:14px; color:var(--ecv2-g900, #0f172a); }
.ecph-display-head h3 svg { width:16px; height:16px; color:var(--ecph-muted); }
.ecph-display-body { display:grid; grid-template-columns:minmax( 240px, 340px ) 1fr; gap:16px; padding:14px; }
.ecph-display-choices { display:flex; flex-direction:column; gap:12px; min-width:0; }
.ecph-choice { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.ecph-choice-label { flex-basis:100%; font-size:12px; font-weight:600; color:var(--ecph-muted); text-transform:uppercase; letter-spacing:.04em; }
.ecph-pill { min-height:32px; padding:4px 12px; border:1px solid var(--ecv2-g300, #cbd5e1); border-radius:99px; background:#fff; color:var(--ecv2-g700, #334155); font:inherit; font-size:13px; cursor:pointer; }
.ecph-pill:hover { border-color:var(--ecv2-g400, #94a3b8); }
.ecph-pill[aria-checked="true"] { border-color:var(--ec-brand, #2271b1); background:var(--ec-brand, #2271b1); color:#fff; }
.ecph-pill:focus-visible, .ecph-fit:focus-visible, .ecph-focus-pick:focus-visible { outline:2px solid var(--ec-brand, #2271b1); outline-offset:2px; }
.ecph-display-act { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.ecph-switch { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--ecv2-g700, #334155); cursor:pointer; }
.ecph-switch input { margin:0; }
.ecph-pro-lock .ecv2-chip { margin-left:6px; }
.ecph-cards { display:grid; grid-template-columns:repeat( auto-fill, minmax( 104px, 1fr ) ); gap:10px; align-items:start; min-width:0; }
.ecph-card { margin:0; min-width:0; }
.ecph-card-photo { display:block; aspect-ratio:1 / 1; border-radius:8px; overflow:hidden; background:var(--ecv2-g100, #f1f5f9); }
.ecph-card-photo img { display:block; width:100%; height:100%; object-fit:cover; transition:object-fit .2s; }
.ecph-card figcaption { margin-top:4px; font-size:12px; color:var(--ecv2-g700, #334155); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* a framing fix: each fit, the focus point */
.ecph-dialog:has( .ecph-frame ), .ecph-dialog:has( .ecph-grid ) { width:min( 780px, calc( 100vw - 32px ) ); }
.ecph-frame { display:grid; grid-template-columns:minmax( 0, 220px ) 1fr; gap:16px; margin:0 0 14px; }
.ecph-focus-pick { position:relative; display:block; width:100%; padding:0; border:1px solid var(--ecph-line); border-radius:10px; background:var(--ecph-soft); cursor:crosshair; overflow:hidden; }
.ecph-focus-pick img { display:block; width:100%; height:auto; }
.ecph-focus-dot { position:absolute; width:18px; height:18px; margin:-9px 0 0 -9px; border:3px solid #fff; border-radius:50%; background:var(--ec-brand, #2271b1); box-shadow:0 0 0 1px rgba( 15, 23, 42, .5 ), 0 2px 6px rgba( 15, 23, 42, .35 ); pointer-events:none; }
.ecph-focus-note { margin:6px 0 0; font-size:12px; color:var(--ecph-muted); }
.ecph-fits { display:flex; flex-direction:column; gap:8px; min-width:0; }
.ecph-fits[aria-busy="true"] { opacity:.55; }
.ecph-fit { display:flex; align-items:center; gap:12px; width:100%; padding:8px; border:1px solid var(--ecph-line); border-radius:10px; background:#fff; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.ecph-fit:hover { border-color:var(--ecv2-g400, #94a3b8); }
.ecph-fit[aria-checked="true"] { border-color:var(--ec-brand, #2271b1); box-shadow:inset 0 0 0 1px var(--ec-brand, #2271b1); background:var(--ecph-soft); }
.ecph-fit-photo { position:relative; display:grid; place-items:center; width:84px; height:84px; flex:none; border-radius:8px; background:var(--ecv2-g100, #f1f5f9); overflow:hidden; font-size:11px; color:var(--ecph-muted); }
.ecph-fit-photo > img { position:absolute; inset:0; margin:auto; max-width:100%; max-height:100%; display:block; }
.ecph-fit-words { display:flex; flex-wrap:wrap; align-items:center; gap:4px; min-width:0; font-size:13px; }
.ecph-fit-words b { color:var(--ecv2-g900, #0f172a); }
.ecph-fit-text { flex-basis:100%; color:var(--ecph-muted); font-size:12.5px; }
.ecph-chip.is-ok { background:var(--ecsl2-ok-bg, #ecfdf3); color:var(--ecsl2-ok, #15803d); }

/* WP EasyCart PRO's Make the grid even: the store page now and after */
.ecph-grid-row { margin:10px 0 0; }
.ecph-grid-label { display:block; margin:0 0 6px; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--ecph-muted); }
.ecph-grid-cards { display:grid; grid-template-columns:repeat( 6, minmax( 0, 1fr ) ); gap:8px; align-items:end; }
.ecph-grid-card { display:block; aspect-ratio:1 / 1; border-radius:6px; overflow:hidden; background:var(--ecv2-g100, #f1f5f9); }
.ecph-grid-card img { display:block; width:100%; height:100%; object-fit:cover; }

@media ( max-width:782px ) {
	.ecph-display-body, .ecph-frame { grid-template-columns:1fr; }
	.ecph-grid-cards { grid-template-columns:repeat( 3, minmax( 0, 1fr ) ); }
}
.ecph-grid .ecph-dialog-note { background:var(--ecph-soft); color:var(--ecv2-g700, #334155); }

/* ---- 6.0.8 ( Matt: show each fix working, what it improved, and the preview as pictures ) ---- */
/* how many photos are ready: a ring that moves as photos are fixed */
.ecph-health { position:relative; display:flex; align-items:center; gap:14px; margin:16px 0 0; padding:12px 16px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; }
.ecph-ring { --p:0; display:grid; place-items:center; width:58px; height:58px; flex:none; border-radius:50%; background:conic-gradient( var(--ecsl2-ok, #15803d) calc( var(--p) * 1% ), var(--ecv2-g100, #f1f5f9) 0 ); transition:background .6s ease; }
.ecph-ring b { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:#fff; font-size:13px; font-weight:700; color:var(--ecv2-g900, #0f172a); font-variant-numeric:tabular-nums; }
.ecph-health-words { display:flex; flex-direction:column; gap:2px; min-width:0; }
.ecph-health-title { font-size:15px; color:var(--ecv2-g900, #0f172a); }
.ecph-health-sub { font-size:13px; color:var(--ecph-muted); }
.ecph-health-up { margin-left:auto; padding:3px 10px; border-radius:99px; background:var(--ecsl2-ok-bg, #ecfdf3); color:var(--ecsl2-ok, #15803d); font-weight:700; font-size:13px; opacity:0; transform:translateY( 4px ); transition:opacity .3s ease, transform .3s ease; }
.ecph-health-up:empty { display:none; }
.ecph-health.is-up .ecph-health-up { opacity:1; transform:none; }
.ecph-health.is-up .ecph-ring { box-shadow:0 0 0 4px var(--ecsl2-ok-bg, #ecfdf3); }
.ecph-health.is-all { border-color:#bbf7d0; background:linear-gradient( 90deg, var(--ecsl2-ok-bg, #ecfdf3), #fff 60% ); }
.ecph-health.is-celebrate .ecph-ring { animation:ecph-pop .7s ease; }
@keyframes ecph-pop { 40% { transform:scale( 1.12 ); } }
@media ( prefers-reduced-motion:reduce ) { .ecph-ring, .ecph-health-up { transition:none; } .ecph-health.is-celebrate .ecph-ring { animation:none; } }

/* the preview: the photo now and after, side by side, then the products that show it */
.ecph-dialog:has( .ecph-ba ) { width:min( 680px, calc( 100vw - 32px ) ); }
.ecph-ba { display:grid; grid-template-columns:minmax( 0, 1fr ) auto minmax( 0, 1fr ); gap:10px; align-items:stretch; }
.ecph-ba-card { display:flex; flex-direction:column; gap:8px; margin:0; padding:12px; border:1px solid var(--ecph-line); border-radius:12px; background:var(--ecph-soft); min-width:0; }
.ecph-ba-card.is-next { border-color:#bbf7d0; background:var(--ecsl2-ok-bg, #ecfdf3); }
.ecph-ba-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ecph-muted); }
.ecph-ba-card.is-next .ecph-ba-label { color:var(--ecsl2-ok, #15803d); }
.ecph-ba-pic { position:relative; display:grid; place-items:center; height:120px; border-radius:10px; border:1px solid var(--ecph-line); background:#fff; overflow:hidden; }
.ecph-ba-pic > img { position:absolute; inset:0; margin:auto; max-width:100%; max-height:100%; display:block; object-fit:contain; }
.ecph-ba-pic.is-empty { color:var(--ecv2-g400, #94a3b8); border-style:dashed; }
.ecph-ba-pic.is-empty svg { width:26px; height:26px; }
.ecph-ba-badge { position:absolute; right:6px; top:6px; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--ecsl2-ok, #15803d); color:#fff; box-shadow:0 1px 3px rgba( 15, 23, 42, .25 ); }
.ecph-ba-badge svg { width:14px; height:14px; }
.ecph-ba-name { font-size:12.5px; font-weight:600; color:var(--ecv2-g700, #334155); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ecph-ba-chips { display:flex; flex-wrap:wrap; gap:5px; list-style:none; margin:0; padding:0; }
.ecph-ba-chips .ecph-chip { white-space:normal; }
.ecph-chip svg { width:12px; height:12px; flex:none; }
.ecph-chip.is-info { background:#eff6ff; color:#1d4ed8; }
.ecph-ba-arrow { display:grid; place-items:center; color:var(--ecv2-g400, #94a3b8); }
.ecph-ba-arrow svg { width:22px; height:22px; }
.ecph-ba-say { margin:10px 0 0; font-size:12.5px; color:var(--ecph-muted); }
.ecph-ba-products { margin-top:4px; }
.ecph-prods { display:grid; grid-template-columns:repeat( auto-fill, minmax( 200px, 1fr ) ); gap:6px; list-style:none; margin:0; padding:0; max-height:200px; overflow:auto; }
.ecph-prod { display:flex; align-items:center; gap:8px; margin:0; padding:6px 8px; border:1px solid var(--ecph-line); border-radius:10px; background:#fff; min-width:0; }
.ecph-prod.is-this { border-color:#bfdbfe; background:#f8fbff; }
.ecph-prod.is-locked { opacity:.7; }
.ecph-prod-pic { position:relative; display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:6px; background:var(--ecph-soft); overflow:hidden; color:var(--ecv2-g400, #94a3b8); }
.ecph-prod-pic > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ecph-prod-pic svg { width:16px; height:16px; }
.ecph-prod-words { display:flex; flex-direction:column; min-width:0; flex:1 1 auto; }
.ecph-prod-words b { font-size:13px; color:var(--ecv2-g900, #0f172a); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ecph-prod-words small { font-size:11.5px; color:var(--ecph-muted); }
.ecph-dialog-error { display:flex; align-items:flex-start; gap:8px; margin:0 0 12px; padding:10px 12px; border-radius:10px; background:var(--ecsl2-bad-bg, #fef2f2); color:#7f1d1d; font-size:13px; }
.ecph-dialog-error svg { width:16px; height:16px; flex:none; margin-top:1px; color:var(--ecsl2-bad, #b91c1c); }
@media ( max-width:600px ) {
	.ecph-ba { grid-template-columns:1fr; }
	.ecph-ba-arrow { transform:rotate( 90deg ); }
}

/* a fix's result where it was asked for: the photo before and after, what it improved, Undo */
.ecph-photo.is-fixed { background:linear-gradient( 90deg, var(--ecsl2-ok-bg, #ecfdf3), #fff 70% ); animation:ecph-in .4s ease; }
.ecph-photo.is-fixed:focus { outline:2px solid var(--ecsl2-ok, #15803d); outline-offset:-2px; }
@keyframes ecph-in { from { transform:translateY( -4px ); box-shadow:inset 0 0 0 2px #86efac; } }
@media ( prefers-reduced-motion:reduce ) { .ecph-photo.is-fixed { animation:none; } }
.ecph-swap { display:flex; align-items:center; gap:6px; flex:none; }
.ecph-swap .ecph-thumb.is-was { opacity:.55; filter:saturate( .6 ); width:40px; height:40px; }
.ecph-swap .ecph-thumb.is-now { position:relative; overflow:visible; border-color:#86efac; }
.ecph-swap .ecph-thumb.is-now img { border-radius:7px; }
.ecph-swap-arrow { display:grid; place-items:center; color:var(--ecsl2-ok, #15803d); }
.ecph-swap-arrow svg { width:16px; height:16px; }
.ecph-swap-ok { position:absolute; right:-6px; bottom:-6px; display:grid; place-items:center; width:18px; height:18px; border-radius:50%; background:var(--ecsl2-ok, #15803d); color:#fff; border:2px solid #fff; }
.ecph-swap-ok svg { width:10px; height:10px; }
.ecph-swap-ok.is-big { position:static; width:40px; height:40px; border:0; flex:none; }
.ecph-swap-ok.is-big svg { width:20px; height:20px; }
.ecph-photo.is-fixed .ecph-photo-name:hover { color:inherit; text-decoration:none; }
.ecph-gains { display:flex; flex-direction:column; gap:3px; flex-basis:100%; list-style:none; margin:2px 0 0; padding:0; }
.ecph-gains li { display:flex; align-items:flex-start; gap:6px; margin:0; font-size:13px; color:var(--ecv2-g700, #334155); }
.ecph-gains li svg { width:14px; height:14px; flex:none; margin-top:2px; color:var(--ecsl2-ok, #15803d); }
.ecph-gains li.is-warn svg { color:var(--ecsl2-warn, #b45309); }
.ecph-problem.is-done { border-color:#bbf7d0; }
.ecph-problem.is-done .ecph-problem-ic { background:var(--ecsl2-ok-bg, #ecfdf3); color:var(--ecsl2-ok, #15803d); }
.ecph-problem.is-done .ecph-problem-head { background:var(--ecsl2-ok-bg, #ecfdf3); }
.ecph-done-x { margin-left:auto; width:28px; height:28px; border:0; border-radius:8px; background:transparent; color:var(--ecph-muted); font-size:20px; line-height:1; cursor:pointer; }
.ecph-done-x:hover, .ecph-done-x:focus-visible { background:rgba( 15, 23, 42, .06 ); color:var(--ecv2-g900, #0f172a); }
.ecph-ba-card.is-next .ecph-chip { background:#fff; }
.ecph-prod-words .ecph-chip { align-self:flex-start; margin-top:2px; font-size:11px; padding:0 6px; }
.ecph-prods { grid-template-columns:repeat( auto-fill, minmax( 220px, 1fr ) ); }
.ecph-prod-words b { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* ---- Matt's review: one product's photos, and how wide the store shows them ( measured ) ---- */
.ecph-filter { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:16px 0 0; padding:10px 14px; border:1px solid #bfdbfe; border-radius:12px; background:#eff6ff; }
.ecph-filter-ic { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:8px; background:#fff; color:#1d4ed8; }
.ecph-filter-ic svg { width:15px; height:15px; }
.ecph-filter .ecph-thumb { width:40px; height:40px; background:#fff; }
.ecph-filter-words { display:flex; flex-direction:column; flex:1 1 200px; min-width:0; line-height:1.35; }
.ecph-filter-words small { font-size:12px; color:#1e40af; }
.ecph-filter-words b { font-size:14px; color:var(--ecv2-g900, #0f172a); overflow-wrap:anywhere; }
.ecph-filter-words .ecph-chip { align-self:flex-start; margin-top:2px; }
.ecph-filter-acts { display:flex; gap:8px; flex-wrap:wrap; }
.ecph-find { position:relative; display:inline-flex; align-items:center; }
.ecph-find-ic { position:absolute; left:9px; top:50%; transform:translateY( -50% ); color:var(--ecph-muted); pointer-events:none; line-height:0; }
.ecph-find-ic svg { width:14px; height:14px; }
.ecph .ecph-find-input { width:220px; max-width:100%; min-height:38px; padding:4px 10px 4px 30px; border:1px solid var(--ecv2-g300, #cbd5e1); border-radius:8px; font-size:13px; background:#fff; }
.ecph .ecph-find-input:focus { border-color:var(--ec-brand, #2271b1); box-shadow:0 0 0 1px var(--ec-brand, #2271b1); outline:2px solid transparent; }
.ecph-find-list { position:absolute; right:0; top:calc( 100% + 4px ); z-index:1000; width:320px; max-width:calc( 100vw - 32px ); max-height:320px; overflow:auto; margin:0; padding:4px; list-style:none; border:1px solid var(--ecph-line); border-radius:10px; background:#fff; box-shadow:0 10px 30px rgba( 15, 23, 42, .16 ); }
.ecph-find-list[hidden] { display:none; }
.ecph-find-opt { display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; margin:0; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:13px; }
.ecph-find-opt b { font-weight:600; color:var(--ecv2-g900, #0f172a); }
.ecph-find-opt small { flex:1 0 100%; font-size:12px; color:var(--ecph-muted); }
.ecph-find-opt small.is-warn { color:var(--ecsl2-warn, #b45309); }
.ecph-find-opt:hover, .ecph-find-opt[aria-selected="true"] { background:var(--ecph-soft, #f8fafc); box-shadow:inset 0 0 0 1px var(--ecph-line); }
.ecph-find-none { margin:0; padding:8px 10px; font-size:13px; color:var(--ecph-muted); }
.ecph-sizes { display:flex; align-items:center; gap:10px 12px; flex-wrap:wrap; margin:0 0 6px; padding:10px 14px; border:1px solid var(--ecph-line); border-radius:12px; background:#fff; }
.ecph-sizes-ic { display:grid; place-items:center; width:28px; height:28px; flex:none; border-radius:8px; background:var(--ecsl2-info-bg, #f1f5f9); color:var(--ecsl2-info, #475569); }
.ecph-sizes-ic svg { width:15px; height:15px; }
.ecph-sizes-words { display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; flex:1 1 260px; min-width:0; font-size:13px; color:var(--ecv2-g700, #334155); }
.ecph-sizes-fact b { color:var(--ecv2-g900, #0f172a); font-variant-numeric:tabular-nums; }
.ecph-sizes-fact.is-quiet { color:var(--ecph-muted); }
.ecph-sizes.is-default .ecph-sizes-ic { background:var(--ecsl2-warn-bg, #fffbeb); color:var(--ecsl2-warn, #b45309); }
.ecph-problem-note { display:flex; align-items:center; gap:6px; margin:0; padding:9px 14px; border-top:1px solid var(--ecv2-g100, #f1f5f9); background:var(--ecph-soft); font-size:12.5px; color:var(--ecph-muted); }
.ecph-problem-note svg { width:14px; height:14px; flex:none; }
@media ( max-width:782px ) {
	.ecph-find, .ecph .ecph-find-input { width:100%; }
	.ecph-find-list { left:0; right:auto; width:100%; }
}
