body.v2 .legacy-topnav {
  display: none !important;
}

html body.v2 #legacy-root {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html body.v2.v2-legacy-visible #legacy-root {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.v2.v2-legacy-visible #view-klant {
  display: none !important;
}

html body.v2 .shell-top {
  background: var(--brand-black);
  background-color: #1a1919;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html body.v2 .shell-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

html body.v2 .shell-logo-text {
  /* F-89: #8a8684 -> #afa6a0 voor 7.3:1 contrast op #1a1919 (was ~5:1
     met overlay onder WCAG-AA). WCAG 1.4.3. */
  color: #afa6a0;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}

html body.v2 .segment {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html body.v2 .segment button {
  padding: 6px 16px;
  border-radius: 7px;
  /* F-89: lichter grijs voor WCAG-AA contrast (zie .shell-logo-text). */
  color: #afa6a0;
  font-size: 13px;
  font-weight: 500;
  transition: background 180ms, color 180ms;
  letter-spacing: -0.01em;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

html body.v2 .segment button:hover {
  color: var(--brand-ivory);
}

html body.v2 .segment button.active {
  background: var(--brand-taupe);
  color: var(--brand-black);
  font-weight: 600;
}

html body.v2 .shell-user {
  display: flex;
  align-items: center;
  gap: 12px;
  /* F-89: lichter grijs voor WCAG-AA contrast (zie .shell-logo-text). */
  color: #afa6a0;
  font-size: 13px;
}

html body.v2 .shell-user button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* F-89: lichter grijs voor WCAG-AA contrast. */
  color: #afa6a0;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

html body.v2 .shell-user button:hover {
  color: var(--brand-ivory);
  border-color: rgba(255, 255, 255, 0.2);
}

body.v2 .view { display: none; }
body.v2 .view.active { display: block; }

/* ── F-63: Cookie-banner ──────────────────────────────────────────── */
.dw-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 252, 246, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(26, 25, 25, 0.08);
  box-shadow: 0 -8px 32px rgba(26, 25, 25, 0.1);
  padding: 14px 20px;
  animation: dw-cookie-slide-in 280ms ease-out;
}

@keyframes dw-cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.dw-cookie-content {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.dw-cookie-text {
  flex: 1;
  min-width: 240px;
}

.dw-cookie-title {
  font-size: 13px;
  font-weight: 700;
  color: #1a1919;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.dw-cookie-body {
  font-size: 12px;
  color: rgba(26, 25, 25, 0.72);
  line-height: 1.55;
  margin: 0;
}

.dw-cookie-body a {
  color: #1a1919;
  text-decoration: underline;
  font-weight: 600;
}

.dw-cookie-body a:hover {
  color: var(--brand-taupe, #b39b88);
}

.dw-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dw-cookie-btn {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: opacity 150ms, transform 100ms, background 150ms;
  letter-spacing: -0.005em;
}

.dw-cookie-btn:hover { opacity: 0.92; }
.dw-cookie-btn:active { transform: scale(0.97); }

.dw-cookie-btn-secondary {
  background: rgba(26, 25, 25, 0.06);
  color: rgba(26, 25, 25, 0.85);
}

.dw-cookie-btn-secondary:hover {
  background: rgba(26, 25, 25, 0.1);
}

.dw-cookie-btn-primary {
  background: #1a1919;
  color: #fff;
}

@media (max-width: 600px) {
  .dw-cookie-banner { padding: 12px 16px 14px; }
  .dw-cookie-content { gap: 12px; }
  .dw-cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dw-cookie-btn { padding: 11px 16px; }
}

/* F-89: skip-link voor keyboard-users. Sr-only-pattern: visueel verborgen
   maar wel focusbaar via Tab (Lighthouse-eis). WCAG 2.4.1 (Bypass Blocks). */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  top: 8px;
  left: 8px;
  z-index: 99999;
  background: #1A1919;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  font-weight: 600;
  outline: 2px solid var(--brand-taupe, #b39b88);
  outline-offset: 2px;
}

/* F-89: focus-visible fallback voor elementen die outline:none gebruiken
   in component-CSS. Zorgt dat keyboard-users altijd een zichtbare
   focus-indicator hebben (WCAG 2.4.7). */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-taupe, #b39b88);
  outline-offset: 2px;
}
