/* Pasfoto Documentkiezer */
.pdk-noscroll, .pdk-noscroll body { overflow: hidden; }

.pdk-modal {
  --pdk-ink: #16181c; --pdk-muted: #6b7078; --pdk-line: #e3e5e8; --pdk-soft: #f6f7f8;
  --pdk-accent: #d4141c; --pdk-accent-soft: #fdf0f0; --pdk-w: 35; --pdk-h: 45;
  position: fixed; inset: 0; z-index: 999990; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 17, 20, .62);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--pdk-ink);
}
.pdk-modal[hidden], .pdk-modal [hidden] { display: none !important; }
.pdk-modal *, .pdk-modal *::before, .pdk-modal *::after { box-sizing: border-box; }

.pdk-dialog {
  position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
}
.pdk-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none;
  font-size: 30px; line-height: 1; color: var(--pdk-muted); cursor: pointer; border-radius: 50%;
}
.pdk-close:hover { background: var(--pdk-soft); color: var(--pdk-ink); }

.pdk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.pdk-title { margin: 0 0 18px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--pdk-ink); }

/* Kaart links */
.pdk-card { border: 1px solid var(--pdk-line); border-radius: 14px; padding: 22px; background: var(--pdk-soft); }

.pdk-select { position: relative; }
.pdk-select-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px;
  background: var(--pdk-select-bg, #0058b4) !important; border: 0 !important; border-radius: 10px; cursor: pointer;
  font: inherit; color: #fff !important; text-align: left; box-shadow: none;
}
.pdk-select-btn:hover, .pdk-select-btn:focus { background: var(--pdk-select-bg-hover, #004a99) !important; color: #fff !important; }
.pdk-select-btn .pdk-select-text, .pdk-select-btn .pdk-chevron { color: #fff !important; }
.pdk-select-btn:focus-visible { outline: 3px solid rgba(0, 88, 180, .35); outline-offset: 2px; }
.pdk-select-icon { width: 28px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.pdk-select-text { flex: 1; font-weight: 500; }
.pdk-chevron { flex: 0 0 auto; transition: transform .15s; }
.pdk-select-btn[aria-expanded="true"] .pdk-chevron { transform: rotate(180deg); }

.pdk-options {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--pdk-line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16); max-height: 320px; overflow: auto;
}
.pdk-options li {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; cursor: pointer;
}
.pdk-options li:hover, .pdk-options li:focus { background: var(--pdk-soft); outline: none; }
.pdk-options li[aria-selected="true"] { background: var(--pdk-accent-soft); font-weight: 700; }
.pdk-opt-icon { width: 30px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.pdk-opt-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pdk-info { display: flex; gap: 20px; margin: 26px 0 0; align-items: flex-start; }
.pdk-info-icon { flex: 0 0 96px; width: 96px; height: 120px; display: flex; align-items: center; justify-content: center; }
.pdk-info-icon.is-empty { display: none; }
.pdk-info-icon img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pdk-info-body { flex: 1; min-width: 0; }
.pdk-info-title { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--pdk-line); font-size: 1.3rem; line-height: 1.25; font-weight: 700; }
.pdk-specs { margin: 0; }
.pdk-specs > div { display: flex; gap: 6px; padding: 3px 0; }
.pdk-specs dt { color: var(--pdk-muted); font-weight: 400; }
.pdk-specs dd { margin: 0; font-weight: 700; }
.pdk-specs dd .woocommerce-Price-amount { font-weight: 700; }

.pdk-upload {
  display: block; width: 100%; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pdk-accent); color: #fff; font-family: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: 14px 20px; transition: filter .15s, transform .05s;
}
.pdk-upload:hover { filter: brightness(.93); }
.pdk-upload:active { transform: translateY(1px); }
.pdk-upload:focus-visible { outline: 3px solid rgba(212, 20, 28, .4); outline-offset: 3px; }

/* Rechts: voor / na */
.pdk-spec-title { margin: 6px 0 18px; font-size: 1.15rem; font-weight: 600; }
.pdk-spec-suffix { color: var(--pdk-muted); font-weight: 400; }
.pdk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pdk-compare figure { margin: 0; }
.pdk-compare figcaption { margin-bottom: 10px; }
.pdk-tag { display: inline-block; padding: 3px 10px; border: 1px solid var(--pdk-line); border-radius: 6px; background: var(--pdk-soft); font-size: .9rem; }

.pdk-photo-before { margin-top: 26px; margin-right: 34px; aspect-ratio: var(--pdk-w) / var(--pdk-h); border-radius: 4px; overflow: hidden; background: var(--pdk-soft); }
.pdk-photo-after { aspect-ratio: var(--pdk-w) / var(--pdk-h); overflow: hidden; outline: 1px dashed #333; outline-offset: 0; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.pdk-photo-before img, .pdk-photo-after img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pdk-measure { display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-rows: 26px auto; }
.pdk-photo-after { grid-column: 1; grid-row: 2; }
.pdk-dim-w { grid-column: 1; grid-row: 1; position: relative; }
.pdk-dim-w::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1px solid #222; }
.pdk-dim-w::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 13px; border-left: 1px solid #222; border-right: 1px solid #222; }
.pdk-dim-h { grid-column: 2; grid-row: 2; position: relative; }
.pdk-dim-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 17px; border-left: 1px solid #222; }
.pdk-dim-h::after { content: ""; position: absolute; top: 0; bottom: 0; left: 11px; width: 13px; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.pdk-pill {
  position: absolute; z-index: 1; background: #16181c; color: #fff; font: 700 11px/1 system-ui, sans-serif;
  padding: 4px 6px; border-radius: 3px; white-space: nowrap;
}
.pdk-dim-w .pdk-pill { left: 50%; top: 12px; transform: translate(-50%, -50%); }
.pdk-dim-h .pdk-pill { top: 50%; left: 17px; transform: translate(-50%, -50%); }

.pdk-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--pdk-line); color: var(--pdk-muted); font-size: .92rem; }

/* Startknop op de pagina */
.pdk-start { cursor: pointer; }

/* Mobiel */
@media (max-width: 760px) {
  .pdk-modal { padding: 0; align-items: stretch; }
  .pdk-dialog { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 20px 16px 28px; }
  .pdk-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdk-title { padding-right: 40px; }
  .pdk-close { position: fixed; top: 10px; right: 10px; z-index: 6; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
  .pdk-card { padding: 18px 16px; }
  .pdk-info { gap: 14px; margin: 22px 0 0; }
  .pdk-info-icon { flex-basis: 72px; width: 72px; height: 92px; }
  .pdk-info-title { font-size: 1.15rem; }
  .pdk-compare { gap: 14px; }
  .pdk-photo-before { margin-right: 30px; }
  .pdk-measure { grid-template-columns: minmax(0, 1fr) 30px; }
}

/* Lege keuze ("Maak uw keuze") */
.pdk-select-btn.is-empty .pdk-select-text { color: #fff !important; font-weight: 400; opacity: .9; }
.pdk-options .pdk-opt-placeholder { color: var(--pdk-muted); font-style: italic; min-height: 44px; }
.pdk-upload.is-disabled { background: #b9bcc1; cursor: pointer; }
.pdk-upload.is-disabled:hover { filter: none; }
.pdk-pick-first { margin: 18px 0 -10px; color: var(--pdk-accent); font-weight: 600; font-size: .95rem; }
.pdk-upload { margin-top: 24px; }

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

/* Winkelmand en melding */
.pdk-cartbar {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; padding: 12px;
  border: 1.5px solid var(--pdk-accent); border-radius: 999px; color: var(--pdk-accent); font-weight: 700; text-decoration: none;
}
.pdk-cartbar:hover { background: var(--pdk-accent-soft); }
.pdk-toast { margin: 0 0 16px; padding: 10px 14px; border-radius: 8px; background: #e8f5e9; border-left: 4px solid #16834a; font-weight: 600; padding-right: 44px; }

/* Twee opties met prijs (incl. NL-btw) */
.pdk-offers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.pdk-offer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--pdk-line); border-radius: 10px; }
.pdk-offer-ico { display: inline-flex; color: #0058b4; }
.pdk-offer-name { font-weight: 600; line-height: 1.25; }
.pdk-offer-price { text-align: right; line-height: 1.15; white-space: nowrap; }
.pdk-offer-price strong { display: block; font-size: 1.05em; }
.pdk-offer-price small { color: var(--pdk-muted); font-size: .75em; }
