/* NS Eigen Foto Tool — frontend styling (mobile-first, wizard v0.3). Accent: #E0592F. */

.nseft-tool {
  --nseft-accent: #E0592F;
  --nseft-accent-dark: #b8480f;
  --nseft-border: #e3e0da;
  --nseft-muted: #6b6b66;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-family: inherit;
  color: #232323;
  box-sizing: border-box;
}
.nseft-tool *, .nseft-tool *::before, .nseft-tool *::after { box-sizing: border-box; }

/* stap-indicator */
.nseft-steps { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #9b9b95; margin-bottom: 14px; }
.nseft-steps .sep { color: #cfcdc6; }
.nseft-step-chip.on { color: var(--nseft-accent-dark); font-weight: 500; }
.nseft-step-chip .dot { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #efeee9; color: #6b6b66; align-items: center; justify-content: center; margin-right: 4px; font-size: 11px; }
.nseft-step-chip.on .dot { background: var(--nseft-accent); color: #fff; }

/* stap-panelen */
.nseft-step { display: none; }
.nseft-step.active { display: block; }

/* stap 1 — upload */
.nseft-upload { border: 2px dashed var(--nseft-border); border-radius: 14px; padding: 28px 18px; text-align: center; cursor: pointer; background: #faf9f7; transition: border-color .15s, background .15s; color: #232323; }
.nseft-upload:hover, .nseft-upload.drag { border-color: var(--nseft-accent); background: #fdf3ef; }
.nseft-upload svg { color: var(--nseft-accent); }
.nseft-upload h3 { margin: 10px 0 4px; font-size: 16px; }
.nseft-upload p { margin: 0; font-size: 13px; color: var(--nseft-muted); }
.nseft-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* preview + oordeel */
.nseft-slider { margin: 0 0 6px; }
.nseft-hint { text-align: center; font-size: 12px; color: #9b9b95; margin: 0 0 12px; }
.nseft-verdict { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0; }
.nseft-verdict .vic { font-size: 18px; line-height: 1.2; }
.nseft-verdict.good { background: #e7f5ec; color: #1c6b3c; }
.nseft-verdict.ok { background: #fef6e6; color: #8a5a00; }
.nseft-verdict.too_low { background: #fdeaea; color: #a32d2d; }
.nseft-verdict small { display: block; color: var(--nseft-muted); font-weight: 400; margin-top: 2px; }

/* keuze-secties */
.nseft-section { margin: 16px 0; }
.nseft-section .lbl { font-size: 13px; font-weight: 500; color: #232323; margin-bottom: 8px; }
.nseft-section .sub { font-weight: 400; color: #9b9b95; }
.nseft-chips, .nseft-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.nseft-opts { flex-direction: column; }
.nseft-chip { font-size: 13px; padding: 7px 12px; border: 1px solid var(--nseft-border); border-radius: 9px; background: #fff; cursor: pointer; color: #444; }
.nseft-chip.sel { border: 2px solid var(--nseft-accent); color: var(--nseft-accent-dark); font-weight: 600; padding: 6px 11px; }
.nseft-opt { display: flex; align-items: baseline; gap: 8px; text-align: left; font-size: 13px; padding: 9px 11px; border: 1px solid var(--nseft-border); border-radius: 9px; background: #fff; cursor: pointer; color: #444; }
.nseft-opt.sel { border: 2px solid var(--nseft-accent); padding: 8px 10px; }
.nseft-opt b { font-weight: 600; color: #232323; }
.nseft-opt.sel b { color: var(--nseft-accent-dark); }
.nseft-opt .osub { color: #9b9b95; font-size: 12px; }
.nseft-badge { display: inline-block; background: var(--nseft-accent); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; margin-left: auto; vertical-align: middle; }
.nseft-other { display: block; font-size: 12px; color: var(--nseft-muted); margin-top: 8px; }
.nseft-select { font-size: 13px; padding: 7px 9px; border: 1px solid var(--nseft-border); border-radius: 8px; background: #fff; color: #232323; margin-left: 4px; }
.nseft-section .note { font-size: 12px; color: #9b9b95; margin: 8px 0 0; }

/* crop-waarschuwing (stap 2) */
.nseft-cropwarn { background: #fef6e6; color: #8a5a00; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px; }

/* upsells (stap 3) */
.nseft-upsells { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.nseft-upsell { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--nseft-border); border-radius: 9px; cursor: pointer; font-size: 13px; }
.nseft-up-img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #f4f2ee; }
.nseft-up-img.ph { display: inline-block; }
.nseft-upsell.sel { border: 2px solid var(--nseft-accent); padding: 8px 10px; }
.nseft-box { width: 17px; height: 17px; border: 1.5px solid var(--nseft-border); border-radius: 5px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.nseft-box.round { border-radius: 50%; }
.nseft-box.on { background: var(--nseft-accent); border-color: var(--nseft-accent); }
.nseft-upsell .up-name { flex: 1; }
.nseft-upsell .up-price { color: var(--nseft-muted); }
.nseft-upsell.sel .up-price { color: var(--nseft-accent-dark); font-weight: 600; }

.nseft-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--nseft-border); margin-bottom: 10px; font-size: 14px; }
.nseft-total .amt { font-size: 19px; font-weight: 600; }

/* knoppen */
.nseft-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--nseft-accent); color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 6px; }
.nseft-btn:hover { background: #cf4f29; }
.nseft-btn:disabled { opacity: .6; cursor: default; }
.nseft-back { display: block; width: 100%; background: none; border: none; color: var(--nseft-muted); font-size: 13px; padding: 10px; cursor: pointer; margin-top: 4px; }
.reassure { text-align: center; font-size: 12px; color: #9b9b95; margin: 8px 0 0; }

/* status */
.nseft-loading { text-align: center; padding: 22px; font-size: 14px; color: var(--nseft-muted); }
.nseft-spin { display: inline-block; width: 18px; height: 18px; border: 2px solid #ddd; border-top-color: var(--nseft-accent); border-radius: 50%; animation: nseft-spin 0.8s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes nseft-spin { to { transform: rotate(360deg); } }
.nseft-error { display: none; padding: 10px 12px; border-radius: 10px; background: #fdeaea; color: #a32d2d; font-size: 14px; margin-top: 10px; }
.nseft-error.show { display: block; }

/* cart-thumbnail (foto in winkelwagen) */
.nseft-cart-photo { width: 100%; height: auto; border-radius: 6px; display: block; }

/* Fase 4 — verberg het lange WCPA-formulier waar de wizard de interface is.
   Off-screen i.p.v. display:none, zodat de velden + het file-input functioneel
   en klikbaar blijven (de wizard stuurt ze aan en triggert de add-to-cart). */
body.nseft-active form.cart {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* Product-prijs verbergen vóór de tool — de wizard toont de prijs (stap 3 + upsells). */
body.nseft-active .product-page-price { display: none !important; }

/* preview-disclaimer */
.nseft-disclaimer { text-align: center; font-size: 11px; color: #9b9b95; margin: -2px 0 12px; }

/* mobiel compacter — minder scrollen */
@media (max-width: 520px) {
  .nseft-tool { margin-bottom: 1rem; }
  .nseft-steps { font-size: 11px; gap: 4px; margin-bottom: 10px; }
  .nseft-slider { max-width: 260px; max-height: 46vh; }
  .nseft-hint, .nseft-disclaimer { margin: 4px 0 8px; }
  .nseft-upload { padding: 20px 14px; }
  .nseft-section { margin: 12px 0; }
  .nseft-verdict, .nseft-cropwarn { padding: 8px 10px; font-size: 12px; margin: 8px 0; }
  .nseft-chip, .nseft-opt { font-size: 12px; padding: 6px 10px; }
  .nseft-upsell { padding: 7px 9px; gap: 8px; font-size: 12px; }
  .nseft-up-img { width: 32px; height: 32px; }
  .nseft-total .amt { font-size: 17px; }
  .nseft-btn { padding: 12px; font-size: 14px; }
}
