/* Cookie-cutter designer additions on the shared .eb-bd surface. */
.eb-cc .eb-cc-choice + .eb-cc-choice { margin-top: 16px; }
.eb-cc .eb-cc-hint, .eb-cc .eb-cc-file-status { font-size: 12.5px; color: var(--eb-muted); margin: 0 0 8px; }
.eb-cc input[type="file"] {
  width: 100%; min-height: 44px; background: var(--eb-surface-2); border: 1px dashed var(--eb-line);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--eb-ink); font-family: inherit;
}
.eb-cc input[type="file"]:focus-visible, .eb-cc button:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 2px; }
.eb-cc .eb-cc-original { margin-top: 10px; }
.eb-cc .eb-cc-original[hidden], .eb-cc [hidden] { display: none; }
.eb-cc .eb-cc-original img {
  display: block; width: min(180px, 100%); max-height: 180px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--eb-line);
}
.eb-cc .eb-cc-progress { margin: 0; padding: 0; list-style: none; counter-reset: cc-step; }
.eb-cc .eb-cc-progress li {
  position: relative; margin: 0; padding: 8px 0 8px 27px; color: var(--eb-muted); font-size: 14px;
}
.eb-cc .eb-cc-progress li::before {
  counter-increment: cc-step; content: counter(cc-step); position: absolute; left: 0; top: 7px;
  display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%;
  background: var(--eb-surface-2); color: var(--eb-muted); font-size: 11px; font-weight: 600;
}
.eb-cc .eb-cc-progress li.eb-cc-current { color: var(--eb-ink); font-weight: 600; }
.eb-cc .eb-cc-progress li.eb-cc-current::before { color: var(--eb-bg); background: var(--eb-brass); }
.eb-cc .eb-cc-progress li.eb-cc-complete { color: var(--eb-focus); }
.eb-cc .eb-cc-progress li.eb-cc-complete::before { content: "✓"; color: var(--eb-bg); background: var(--eb-focus); }
.eb-cc .eb-cc-progress-status { min-height: 1.4em; margin: 8px 0 0; color: var(--eb-muted); font-size: 12px; }
.eb-cc .eb-cc-result-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr); gap: 14px; align-items: start; }
.eb-cc .eb-cc-result-photo {
  display: grid; place-items: center; min-height: 220px; overflow: hidden; border-radius: 10px;
  background: #fff; border: 1px solid var(--eb-line);
}
.eb-cc .eb-cc-result-photo img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.eb-cc .eb-cc-viewer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.eb-cc .eb-cc-viewer-head .eb-field-label { margin-bottom: 5px; }
.eb-cc .eb-cc-dimensions { color: var(--eb-muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eb-cc .eb-cc-viewer {
  position: relative; min-height: 300px; overflow: hidden; border: 1px solid var(--eb-line); border-radius: 10px;
  background: var(--eb-surface-2);
}
.eb-cc .eb-cc-viewer canvas { display: block; width: 100%; height: 100%; }
.eb-cc .eb-cc-viewer [role="status"] {
  position: absolute; z-index: 1; inset: auto 8px 8px; margin: 0; padding: 6px 8px;
  color: var(--eb-error); background: color-mix(in srgb, var(--eb-surface) 92%, transparent);
  border-radius: 5px; font-size: 12px;
}
.eb-cc .eb-cc-view-controls { margin-top: 8px; }
.eb-cc .eb-cc-view-controls .eb-chip { min-height: 40px; padding: 7px 12px; }
.eb-cc .eb-cc-downloads { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--eb-line); border-radius: 8px; }
.eb-cc .eb-cc-downloads .eb-field-label { margin: 0 0 8px; }
.eb-cc .eb-cc-download-list { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-cc .eb-cc-download {
  display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px; cursor: pointer;
  color: var(--eb-ink); text-decoration: none;
}
.eb-cc .eb-cc-download:hover { border-color: var(--eb-brass); }
.eb-cc .eb-cc-download:focus-visible { outline: 2px solid var(--eb-focus); outline-offset: 2px; }
.eb-cc .eb-cc-download-note { margin: 8px 0 0; color: var(--eb-muted); font-size: 12px; }
.eb-cc .eb-cc-notes { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: var(--eb-surface-2); }
.eb-cc .eb-cc-notes p { margin: 0; color: var(--eb-muted); font-size: 12.5px; line-height: 1.5; }
.eb-cc .eb-cc-notes p + p { margin-top: 7px; }
.eb-cc .eb-cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.eb-cc .eb-cc-actions .eb-add-btn { flex: 1 1 190px; width: auto; margin: 0; min-height: 44px; }
.eb-cc .eb-cc-actions .eb-chip { min-height: 44px; }
.eb-cc .eb-order-summary { position: sticky; top: 16px; }
.eb-cc .eb-form-error { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--eb-error) 30%, transparent); border-radius: 8px; background: var(--eb-surface); }
@media (max-width: 760px) {
  .eb-cc .eb-cc-result-grid { grid-template-columns: 1fr; }
  .eb-cc .eb-cc-result-photo { min-height: 170px; }
  .eb-cc .eb-cc-result-photo img { max-height: 300px; }
  .eb-cc .eb-cc-viewer { min-height: 280px; }
  .eb-cc .eb-order-summary { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-cc .eb-cc-viewer canvas { animation: none; }
}
