/* The customer stories' live 3D configurators (assets/ocp/ocp.js), taken from the homepage draft's styles, plus the
   "See it in 3D" section around them. Linked by the story pages under en/ and nl/customer-stories/. */
.cs-3d {
  padding: 56px 0;
}

.cs-3d-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.cs-3d-head > div:first-child {
  max-width: 640px;
}

.cs-3d-head h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cs-3d-head p {
  margin: 0;
  font-size: 17px;
  color: #333;
}


.ocp {
  --ocp-ink: #1c1c1e;
  --ocp-mute: #6b6f78;
  --ocp-line: #e3e5ea;
  --ocp-soft: #f4f5f7;
  --ocp-sel: #1c1c1e;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  border: 1px solid var(--ocp-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: var(--ocp-ink);
  font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 560px;
  box-shadow: 0 18px 48px -28px rgba(20, 30, 60, .35);
}
.ocp-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ocp-line);
  background: #fff;
  flex-wrap: wrap;
}
.ocp-brand { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.ocp-badge {
  font-size: 12px;
  color: var(--ocp-mute);
  background: var(--ocp-soft);
  border: 1px solid var(--ocp-line);
  border-radius: 999px;
  padding: 3px 10px;
}
.ocp-badge b { color: var(--ocp-ink); font-weight: 600; }
.ocp-view { position: relative; background: #eef0f3; min-height: 420px; min-width: 0; }
.ocp-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.ocp-view canvas:active { cursor: grabbing; }
.ocp.is-fixed .ocp-view canvas { cursor: default; }
.ocp-tools, .ocp-tools2 { position: absolute; left: 12px; display: flex; gap: 6px; z-index: 2; }
.ocp-tools { top: 12px; }
.ocp-tools2 { bottom: 12px; }
.ocp-tool {
  font: inherit;
  font-size: 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--ocp-line);
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--ocp-ink);
  cursor: pointer;
}
.ocp-tool:hover { border-color: #9aa0aa; }
.ocp-hint { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--ocp-mute); z-index: 2; }
.ocp-nogl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ocp-mute); }
.ocp-panel { display: grid; grid-template-columns: 136px minmax(0, 1fr); border-left: 1px solid var(--ocp-line); min-width: 0; min-height: 0; }
.ocp-steps { list-style: none; margin: 0; padding: 8px 0; border-right: 1px solid var(--ocp-line); background: #fafbfc; overflow: auto; }
.ocp-steps button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 13px;
  padding: 9px 12px 9px 14px;
  border: 0;
  border-left: 3px solid transparent;
  background: none;
  color: var(--ocp-mute);
  cursor: pointer;
}
.ocp-steps button[aria-current="step"] { color: var(--ocp-ink); font-weight: 600; border-left-color: var(--ocp-sel); background: #fff; }
.ocp-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ocp-body { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; max-height: 470px; }
.ocp-step-title { font-weight: 700; font-size: 16px; margin: 0; }
.ocp-g { display: flex; flex-direction: column; gap: 8px; }
.ocp-g-l { font-size: 12px; font-weight: 600; color: var(--ocp-mute); text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; }
.ocp-g-l output { color: var(--ocp-ink); text-transform: none; letter-spacing: 0; }
.ocp-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ocp-opt {
  font: inherit;
  font-size: 13px;
  border: 1px solid #cfd3da;
  background: #fff;
  color: var(--ocp-ink);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ocp-opt:hover { border-color: #8d939d; }
.ocp-opt[aria-pressed="true"] { border-color: var(--ocp-sel); box-shadow: inset 0 0 0 1px var(--ocp-sel); font-weight: 600; }
.ocp-opt:focus-visible, .ocp-steps button:focus-visible, .ocp-btn:focus-visible, .ocp-tool:focus-visible { outline: 2px solid #2355f0; outline-offset: 2px; }
.ocp-sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: none; }
.ocp-range { width: 100%; accent-color: var(--ocp-sel); }
.ocp-foot { border-top: 1px solid var(--ocp-line); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.ocp-sum { font-size: 12px; color: var(--ocp-mute); }
.ocp-price { display: block; margin-top: 6px; font-size: 20px; line-height: 1.2; font-weight: 700; color: #111; font-variant-numeric: tabular-nums; }
.ocp-price-note { display: block; font-size: 11px; }
.t3-quote tr.is-total td { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.ocp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ocp-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--ocp-sel);
  display: inline-flex;
  align-items: center;
}
.ocp .ocp-btn--p, .ocp .ocp-btn--p:hover, .ocp .ocp-btn--p:visited { background: var(--ocp-sel); color: #fff; }
.ocp .ocp-btn--s { background: #fff; color: var(--ocp-ink); }
.ocp-note { font-size: 12.5px; color: #6b6f78; margin: 10px 2px 0; }
@media (max-width: 900px) {
  .ocp { grid-template-columns: 1fr; min-height: 0; }
  .ocp-view { min-height: 320px; aspect-ratio: 4 / 3; }
  .ocp-panel { grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--ocp-line); }
  .ocp-steps { display: flex; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--ocp-line); }
  .ocp-steps li { flex: none; }
  .ocp-steps button { border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; padding: 10px 12px; }
  .ocp-steps button[aria-current="step"] { border-bottom-color: var(--ocp-sel); }
  .ocp-body { max-height: none; }
  .ocp-hint { display: none; }
}
@media (max-width: 1023px) {
  .cs-3d-head h2 {
    font-size: 28px;
  }
}
/* On the V4 story pages the page's link colours would win over the configurator's buttons. */
main.fp-page .cs-section .ocp a.ocp-btn.ocp-btn--p, main.fp-page .cs-section .ocp a.ocp-btn.ocp-btn--p:hover { color: #fff; }
main.fp-page .cs-section .ocp a.ocp-btn.ocp-btn--s { color: var(--ocp-ink); }

/* The stories' pop-up (data-quote): Book a demo as its one button. */
.ocp-quote .t3-mail a.hm-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
.ocp-quote .t3-quote { text-align: left; }
.ocp-quote .t3-mail h2 { padding-right: 36px; }
@media (max-width: 743px) { .ocp-quote .t3-quote-top { padding-right: 36px; } .ocp-quote .t3-mail h2 { padding-right: 0; } }
.ocp-quote .t3-quote-top b { white-space: nowrap; }
