/* Pasfoto Studio */
.pfs-locked .single_add_to_cart_button,
.pfs-locked .quantity { display: none !important; }
.pfs-start-wrap { margin: 0 0 1em; position: relative; z-index: 50; width: 100%; clear: both; }
/* Thema's blokkeren soms klikken in het winkelwagenformulier of leggen er een laag overheen. */
.pfs-start-wrap .pfs-open,
.pfs-shortcode-form .pfs-open {
  position: relative; z-index: 51; cursor: pointer !important; pointer-events: auto !important;
  opacity: 1 !important; visibility: visible !important; display: inline-block !important;
}
.pfs-locked { pointer-events: auto !important; }
.pfs-start-note { font-size: .9em; opacity: .8; margin: .5em 0 0; }
.pfs-noscroll, .pfs-noscroll body { overflow: hidden; }

.pfs-modal {
  --pfs-ink: #1d1f23; --pfs-muted: #6b7078; --pfs-line: #e4e6ea; --pfs-bg: #fff;
  --pfs-accent: #d4141c; --pfs-ok: #16834a; --pfs-fail: #c62828; --pfs-dim: #1565c0;
  position: fixed; inset: 0; z-index: 999999; background: rgba(15, 17, 20, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--pfs-ink);
}
.pfs-modal[hidden], .pfs-modal [hidden] { display: none !important; }
.pfs-dialog {
  position: relative; background: var(--pfs-bg); border-radius: 14px; width: 100%; max-width: 760px;
  max-height: calc(100vh - 32px); overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.pfs-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--pfs-muted); padding: 6px; }
.pfs-dialog h2 { margin: 0 0 14px; font-size: 1.35em; padding-right: 30px; }

.pfs-tips { margin: 0 0 18px; padding-left: 1.2em; }
.pfs-tips li { margin: 4px 0; }
.pfs-small { font-size: .82em; color: var(--pfs-muted); margin: 14px 0 0; }

.pfs-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pfs-btn {
  flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 12px 18px; border-radius: 10px; font-size: 1em; font-weight: 600; cursor: pointer;
  border: 2px solid var(--pfs-accent); text-align: center;
}
.pfs-primary { background: var(--pfs-accent); color: #fff; }
.pfs-secondary { background: #fff; color: var(--pfs-accent); }
.pfs-btn:disabled { opacity: .6; cursor: wait; }

/* Camera */
.pfs-cam { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; }
.pfs-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pfs-video.is-mirrored { transform: scaleX(-1); }
.pfs-video { transform-origin: 50% 50%; }
.pfs-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pfs-oval { stroke: #fff; stroke-dasharray: 8 6; transition: stroke .2s; }
.pfs-oval.is-ok { stroke: #3ddc84; stroke-dasharray: none; }
.pfs-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: 92%;
  background: rgba(0,0,0,.72); color: #fff; padding: 8px 14px; border-radius: 20px; font-weight: 600; text-align: center;
}
.pfs-hint.is-ok { background: rgba(22,131,74,.92); }

/* Automatisch fotograferen: 3-2-1 over het camerabeeld */
.pfs-count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; z-index: 3; }
.pfs-count[hidden] { display: none; }
.pfs-count-num { display: flex; align-items: center; justify-content: center; width: min(30vw, 120px); height: min(30vw, 120px); border-radius: 50%;
  background: rgba(0, 88, 180, .82); border: 4px solid #fff; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  font: 800 min(17vw, 68px)/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pfs-count-num:empty { visibility: hidden; }
.pfs-count-num.is-pop { animation: pfs-pop .9s ease-out both; }
.pfs-count-txt { background: rgba(0, 88, 180, .92); color: #fff; font-weight: 700; font-size: 1.15em; padding: 8px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
@keyframes pfs-pop { 0% { transform: scale(1.35); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 100% { transform: scale(.94); opacity: 1; } }
.pfs-flash { position: absolute; inset: 0; background: #fff; z-index: 4; pointer-events: none; opacity: 0; }
.pfs-flash[hidden] { display: none; }
.pfs-flash.is-on { animation: pfs-flash .45s ease-out; }
@keyframes pfs-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pfs-count-num.is-pop, .pfs-flash.is-on { animation: none; } }

/* Afteller tijdens het controleren (blauw) */
.pfs-wait { --pfs-wait: #0058b4; display: flex; align-items: center; gap: 14px; background: #f2f7fd; border: 2px solid var(--pfs-wait); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.pfs-wait[hidden] { display: none; }
.pfs-wait-ring { position: relative; flex: 0 0 60px; width: 60px; height: 60px; }
.pfs-wait-ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.pfs-wait-track { fill: none; stroke: #d6e4f5; stroke-width: 4; }
.pfs-wait-arc { fill: none; stroke: var(--pfs-wait); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.pfs-wait-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; color: var(--pfs-wait); font-variant-numeric: tabular-nums; }
.pfs-wait.is-almost .pfs-wait-ring svg { animation: pfs-spin 1.2s linear infinite; }
.pfs-wait.is-almost .pfs-wait-arc { stroke-dasharray: 30 140 !important; stroke-dashoffset: 0 !important; }
.pfs-wait-body p { margin: 0; }
.pfs-wait-txt { font-weight: 600; }
.pfs-wait-note { font-size: .85em; color: var(--pfs-muted); }

/* Originele foto met scanbalk */
.pfs-scan { position: relative; width: min(240px, 70%); margin: 0 auto 14px; border-radius: 10px; overflow: hidden; background: #0b1726; box-shadow: 0 0 0 2px #0058b4, 0 6px 18px rgba(0, 40, 90, .25); }
.pfs-scan[hidden] { display: none; }
.pfs-scan img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
.pfs-scan-grid { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(120,190,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(120,190,255,.9) 1px, transparent 1px);
  background-size: 22px 22px; }
.pfs-scan-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #6cc4ff;
  box-shadow: 0 0 10px 3px rgba(80, 175, 255, .85); animation: pfs-scan 2.6s ease-in-out infinite alternate; }
.pfs-scan-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 60px;
  background: linear-gradient(to top, rgba(80, 175, 255, .35), rgba(80, 175, 255, 0)); }
.pfs-scan-c { position: absolute; width: 18px; height: 18px; border: 3px solid #6cc4ff; }
.pfs-scan-c.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.pfs-scan-c.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.pfs-scan-c.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.pfs-scan-c.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
@keyframes pfs-scan { from { top: 0; } to { top: calc(100% - 3px); } }
@media (prefers-reduced-motion: reduce) { .pfs-scan-bar { animation: none; top: 50%; } }

/* Stappen */
.pfs-steps { list-style: none; margin: 0; padding: 0; }
.pfs-step { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--pfs-line); }
.pfs-step:last-child { border-bottom: 0; }
.pfs-ico {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff; background: #b0b4ba;
}
.pfs-step.is-ok .pfs-ico { background: var(--pfs-ok); }
.pfs-step.is-fail .pfs-ico { background: var(--pfs-fail); }
.pfs-step.is-skip .pfs-ico { background: #8a8f96; }
.pfs-step.is-busy .pfs-ico { background: transparent; border: 3px solid var(--pfs-line); border-top-color: var(--pfs-accent); animation: pfs-spin .8s linear infinite; }
@keyframes pfs-spin { to { transform: rotate(360deg); } }
.pfs-txt { display: flex; flex-direction: column; min-width: 0; }
.pfs-txt small { color: var(--pfs-muted); font-size: .82em; }
.pfs-subchecks { list-style: none; margin: 6px 0 0; padding: 0; font-size: .82em; columns: 2 180px; }
.pfs-subchecks .is-ok { color: var(--pfs-ok); }
.pfs-subchecks .is-fail { color: var(--pfs-fail); font-weight: 600; }

/* Resultaat */
.pfs-view.is-ok .pfs-result-title { color: var(--pfs-ok); }
.pfs-view.is-fail .pfs-result-title { color: var(--pfs-fail); }
.pfs-result { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) {
  .pfs-modal { padding: 0; }
  .pfs-dialog { max-height: 100vh; height: 100%; border-radius: 0; padding: 18px 16px; }
  .pfs-result { grid-template-columns: 1fr; }
  .pfs-figure { max-width: 320px; margin: 0 auto; }
}
.pfs-svg { width: 100%; height: auto; display: block; }
.pfs-frame { fill: none; stroke: #222; stroke-width: 1.5; }
.pfs-guide-line { stroke: rgba(21,101,192,.55); stroke-width: 1.2; stroke-dasharray: 6 5; }
.pfs-eye-line { stroke: rgba(255,152,0,.6); }
.pfs-dim { stroke: var(--pfs-dim); stroke-width: calc(2px * var(--pfs-k, 1)); }
.pfs-dim-head { stroke: var(--pfs-ok); }
.pfs-ext { stroke: #9aa0a6; stroke-width: 1; }
.pfs-arrow { fill: var(--pfs-dim); }
.pfs-label { font: 700 22px system-ui, sans-serif; font-size: calc(22px * var(--pfs-k, 1)); fill: var(--pfs-dim); }
.pfs-label-head { fill: var(--pfs-ok); }
.pfs-label-in { paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.pfs-width-guide { stroke: rgba(22,131,74,.6); }
.pfs-label-sub { font: 15px system-ui, sans-serif; fill: var(--pfs-muted); }
.pfs-figcap { text-align: center; font-size: .82em; color: var(--pfs-muted); margin: 6px 0 0; }

.pfs-reasons { margin-top: 14px; background: #fdecea; border-left: 4px solid var(--pfs-fail); padding: 12px 14px; border-radius: 6px; }
.pfs-reasons h3 { margin: 0 0 6px; font-size: 1em; }
.pfs-reasons ul { margin: 0; padding-left: 1.2em; }
.pfs-advice { margin: 8px 0 0; font-weight: 600; }
.pfs-email-opt { display: flex; gap: 8px; align-items: center; margin-top: 14px; }

/* Mode / bril */
.pfs-mode-note { background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; }
.pfs-info { margin-top: 14px; background: #e8f5e9; border-left: 4px solid var(--pfs-ok); padding: 12px 14px; border-radius: 6px; }
.pfs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pfs-pair-label { margin: 0 0 2px; text-align: center; font-weight: 700; font-size: .9em; }
.pfs-result:has(.pfs-pair) { grid-template-columns: minmax(300px, 420px) 1fr; }
@media (max-width: 640px) { .pfs-result:has(.pfs-pair) { grid-template-columns: 1fr; } }

/* Taalkeuze met ronde vlaggen */
.pfs-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pfs-line); }
.pfs-lang {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 10px;
  font: 600 11px/1 system-ui, sans-serif; color: var(--pfs-muted); min-width: 40px;
}
.pfs-lang svg { width: 30px; height: 30px; border-radius: 50%; display: block; transition: transform .15s; }
.pfs-lang:hover svg { transform: scale(1.08); }
.pfs-lang.is-active svg { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pfs-accent); }
.pfs-lang.is-active { color: var(--pfs-ink); }
.pfs-lang:focus-visible { outline: 2px solid var(--pfs-accent); outline-offset: 2px; }

/* Pakketkeuze */
.pfs-packages { border: 0; margin: 16px 0 0; padding: 0; }
.pfs-packages legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.pfs-pkg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pfs-pkg {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "price radio";
  align-items: center; row-gap: 10px; column-gap: 8px; padding: 12px 14px; border: 2px solid var(--pfs-line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s;
}
.pfs-pkg-name { grid-area: name; text-align: center; font-weight: 600; line-height: 1.25; }
.pfs-pkg-price { grid-area: price; justify-self: start; font-weight: 700; white-space: nowrap; }
.pfs-pkg input { grid-area: radio; justify-self: end; accent-color: var(--pfs-accent); margin: 0; width: 18px; height: 18px; }
.pfs-pkg.is-sel { border-color: var(--pfs-accent); background: #fff5f5; }
.pfs-pkg-note { margin: 8px 0 0; font-size: .88em; }
.pfs-pkg-tax { margin: 6px 0 0; font-size: .8em; color: var(--pfs-muted); text-align: right; }

/* Wenkbrauwen: klant mag toch accepteren */
.pfs-override-note { margin: 14px 0 0; background: #fff8e1; border-left: 4px solid #f9a825; padding: 10px 12px; border-radius: 6px; font-size: .92em; }

/* Winkelmand en melding */
.pfs-cartbar {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; padding: 12px;
  border-top: 1px solid var(--pfs-line); color: var(--pfs-accent); font-weight: 700; text-decoration: none;
}
.pfs-cartbar:hover { text-decoration: underline; }
.pfs-toast {
  position: sticky; top: 0; z-index: 3; margin: -8px 0 14px; padding: 10px 14px; border-radius: 8px;
  background: #e8f5e9; border-left: 4px solid var(--pfs-ok); font-weight: 600;
}

.pfs-debug { margin: 14px 0 0; padding: 10px; max-height: 220px; overflow: auto; background: #111; color: #9f9; font: 11px/1.4 ui-monospace, Menlo, monospace; border-radius: 6px; white-space: pre-wrap; }

/* Ooghoogte (bv. Amerikaans visum) */
.pfs-dim-eye { stroke: #ef6c00; }
.pfs-label-eye { fill: #ef6c00; font-size: calc(19px * var(--pfs-k, 1)); }

/* Stap 1: klant beoordeelt de uitsnede */
.pfs-rv-text{margin:0 0 12px;font-size:15px;line-height:1.5}
.pfs-view[data-view="review"] .pfs-actions [data-action="approve"]{font-size:17px}
.pfs-rv-actions{flex-direction:column;align-items:stretch;margin:0 0 14px}
.pfs-steps-review{opacity:.85}
.pfs-rv-actions .pfs-btn{flex:0 0 auto;width:100%}
