/* ── Custom Print Wizard ──────────────────────────────────────────────── */

.cp-wizard {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* Progress steps */
.cp-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
}
.cp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 3.5rem;
  color: #9ca3af;
}
.cp-step--active { color: #111; }
.cp-step--done   { color: #2d7a2d; }
.cp-step-num {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600;
  background: #e5e7eb;
  border: 2px solid transparent;
}
.cp-step--active .cp-step-num {
  background: #111; color: #fff; border-color: #111;
}
.cp-step--done .cp-step-num {
  background: #2d7a2d; color: #fff; border-color: #2d7a2d;
}
.cp-step-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.cp-step-divider {
  flex: 1; height: 2px; background: #e5e7eb;
  min-width: 1.5rem; max-width: 3rem;
  margin-bottom: 1.2rem;
}

/* Headings */
.cp-step-title { font-size: 1.4rem; font-weight: 600; margin-bottom: .4rem; }
.cp-step-sub   { color: #6b7280; margin-bottom: 1.5rem; }

/* Alert */
.cp-alert {
  background: #fef2f2; border: 1px solid #fecaca;
  color: #b91c1c; border-radius: .5rem;
  padding: .75rem 1rem; margin-bottom: 1.25rem;
}

/* ── Step 1: Upload ───────────────────────────────────────────────────── */
.cp-upload-box { max-width: 540px; }

.cp-drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  color: #374151;
  text-align: center;
  margin-bottom: 1.25rem;
}
.cp-drop-zone:hover,
.cp-drop-zone.cp-drag-over { border-color: #111; background: #f9fafb; }
.cp-drop-icon { color: #9ca3af; margin-bottom: .75rem; }
.cp-drop-text { font-weight: 600; margin: 0; }
.cp-drop-sub  { font-size: .8rem; color: #9ca3af; margin: .25rem 0 0; }
.cp-file-input { display: none; }

.cp-preview-box {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; margin-bottom: 1.25rem;
}
.cp-preview-img {
  max-width: 100%; max-height: 260px;
  border-radius: .5rem; object-fit: contain;
  border: 1px solid #e5e7eb;
}
.cp-file-name { font-size: .8rem; color: #6b7280; margin: 0; }

/* ── Step 2: Crop ────────────────────────────────────────────────────── */
.cp-crop-layout { display: flex; flex-direction: column; gap: 1.25rem; }
.cp-crop-canvas-wrap {
  position: relative; display: inline-block;
  max-width: 100%;
}
.cp-crop-img {
  max-width: 100%; max-height: 380px;
  display: block; border-radius: .5rem;
  border: 1px solid #e5e7eb;
}
.cp-crop-overlay {
  position: absolute; display: none;
  border: 2px solid #111;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  pointer-events: none;
  border-radius: 2px;
}

.cp-aspect-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.cp-aspect-btn {
  padding: .45rem .9rem;
  border: 1px solid #d1d5db; border-radius: 2rem;
  background: none; cursor: pointer;
  font-size: .85rem; color: #374151;
  transition: border-color .15s, background .15s;
}
.cp-aspect-btn:hover      { border-color: #111; }
.cp-aspect-btn--active    { border-color: #111; background: #111; color: #fff; }

/* ── Step 3: Filter ──────────────────────────────────────────────────── */
.cp-filter-layout { display: flex; flex-direction: column; gap: 1.25rem; }
.cp-filter-preview-wrap {
  max-width: 100%; text-align: center;
}
.cp-filter-preview-img {
  max-width: 100%; max-height: 320px;
  border-radius: .5rem; border: 1px solid #e5e7eb;
  object-fit: contain;
}
.cp-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: .75rem;
}
.cp-filter-btn {
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid #e5e7eb; border-radius: .5rem;
  background: none; cursor: pointer; padding: .5rem;
  transition: border-color .15s;
}
.cp-filter-btn:hover      { border-color: #9ca3af; }
.cp-filter-btn--active    { border-color: #111; }
.cp-filter-thumb-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: .25rem; }
.cp-filter-thumb {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.cp-filter-label { font-size: .75rem; margin-top: .4rem; color: #374151; }
.cp-filter-processing-note { font-size: .8rem; color: #9ca3af; margin-top: .5rem; }

/* ── Step 4: Configure ───────────────────────────────────────────────── */
.cp-configure-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 2rem; align-items: start;
}
@media (max-width: 640px) { .cp-configure-layout { grid-template-columns: 1fr; } }

.cp-configure-img {
  width: 100%; border-radius: .5rem;
  border: 1px solid #e5e7eb; object-fit: contain;
  max-height: 360px;
}
.cp-configure-options { display: flex; flex-direction: column; gap: 1.5rem; }
.cp-option-group {}
.cp-option-label { font-weight: 600; display: block; margin-bottom: .6rem; }

.cp-radio-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-radio-card {
  display: flex; align-items: center; gap: .4rem;
  border: 2px solid #e5e7eb; border-radius: .5rem;
  padding: .5rem .85rem; cursor: pointer;
  transition: border-color .15s;
}
.cp-radio-card:hover          { border-color: #9ca3af; }
.cp-radio-card--selected      { border-color: #111; }
.cp-radio-card input          { display: none; }
.cp-radio-name { font-size: .9rem; color: #374151; }

.cp-price-display {
  font-size: 1rem; color: #374151;
  padding: .75rem 0; border-top: 1px solid #e5e7eb;
  min-height: 2.5rem;
}

/* ── Step 5: Summary ─────────────────────────────────────────────────── */
.cp-summary-layout {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem; align-items: start;
}
@media (max-width: 640px) { .cp-summary-layout { grid-template-columns: 1fr; } }
.cp-summary-img {
  width: 100%; border-radius: .5rem;
  border: 1px solid #e5e7eb; object-fit: contain;
  max-height: 380px;
}
.cp-summary-dl {
  display: grid; grid-template-columns: auto 1fr;
  gap: .5rem 1rem; margin: 0 0 1.5rem;
}
.cp-summary-dl dt { color: #6b7280; font-size: .9rem; }
.cp-summary-dl dd { color: #111; font-size: .9rem; margin: 0; }
.cp-summary-price-label { font-size: 1rem; font-weight: 600; margin-top: .5rem; }
.cp-summary-price-value { font-size: 1.3rem; margin-top: .5rem; }
.cp-summary-actions { align-items: center; }
.cp-btn-add-cart { width: 100%; justify-content: center; }
.cp-summary-disclaimer { font-size: .78rem; color: #9ca3af; margin-top: 1rem; }

/* ── Shared action row ───────────────────────────────────────────────── */
.cp-wizard-actions {
  display: flex; gap: .75rem; align-items: center;
  margin-top: 1.5rem;
}

/* Buttons */
.cp-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.5rem;
  background: #111; color: #fff;
  border: none; border-radius: .4rem;
  font-size: .95rem; font-weight: 500; cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
}
.cp-btn-primary:hover { opacity: .85; }

.cp-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .65rem 1.25rem;
  background: none; color: #374151;
  border: 1px solid #d1d5db; border-radius: .4rem;
  font-size: .95rem; cursor: pointer;
  text-decoration: none;
  transition: border-color .15s;
}
.cp-btn-secondary:hover { border-color: #111; color: #111; }

/* ── Print readiness widget (Phase 3) ─────────────────────────────── */
.cp-readiness {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}
.cp-readiness-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.cp-readiness-badge--excellent  { background: #d1fae5; color: #065f46; }
.cp-readiness-badge--good       { background: #d1ecff; color: #1e40af; }
.cp-readiness-badge--acceptable { background: #fef3c7; color: #92400e; }
.cp-readiness-badge--risky      { background: #ffedd5; color: #9a3412; }
.cp-readiness-badge--unusable   { background: #fee2e2; color: #991b1b; }
.cp-readiness-skipped { margin-top: 0.5rem; }

/* ── Wall preview foundation ─────────────────────────────────────── */
.cp-wall-preview-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.cp-wall-preview-room {
  width: 100%;
  height: auto;
  display: block;
}
.cp-wall-preview-artwork {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: auto;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.cp-wall-preview-upload-btn {
  cursor: pointer;
}
.cp-wall-preview-coming-soon {
  margin-top: 0.4rem;
}

/* ── Section titles (configure step new sub-sections) ────────────── */
.cp-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin-bottom: 0.4rem;
}
.cp-section-sub { margin-bottom: 0.75rem; }
.cp-checklist-list {
  padding-left: 1.1rem;
  margin: 0;
  line-height: 1.55;
}
