/* A client's real 3D model on a customer story: onecore-3d-bridge.js and oc3d-story.js. The frame, the panel and the
   pop-up are the stand-in's (assets/ocp/ocp.css, .t3-dialog in _try-3d.scss); this adds the model in .ocp-view, the
   chosen option as the bridge marks it, and Email me my design. */

/* The bridge (Prospects/fk-hekwerken/onecore-3d-bridge.html), filling the stand-in's view */
.oc3d-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #eef0f3; overflow: hidden; }
.ocp-view > .oc3d-wrap:not(.oc3d-pinned) { position: absolute; inset: 0; aspect-ratio: auto; }
.oc3d-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.oc3d-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 500 14px/1.4 "Open Sans", system-ui, sans-serif; color: #555; background: inherit; transition: opacity .4s; }
.oc3d-wrap.is-ready .oc3d-loader { opacity: 0; pointer-events: none; }
.oc3d-poster, .oc3d-fallback { display: none; }
.oc3d-wrap.has-poster .oc3d-poster { display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity .4s; }
.oc3d-wrap.has-poster:not(.is-ready) iframe { opacity: 0; }
.oc3d-wrap.has-poster.is-ready .oc3d-poster { opacity: 0; pointer-events: none; }
.oc3d-wrap.has-poster .oc3d-loader { inset: auto auto 12px 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 13px; }
.oc3d-wrap.is-fallback:not(.is-ready) .oc3d-loader { display: none; }
.oc3d-wrap.is-fallback:not(.is-ready) .oc3d-fallback { display: block; position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: #222;
  font: 400 14px/1.45 "Open Sans", system-ui, sans-serif; }
.oc3d-fallback strong { display: block; font-weight: 600; }
.oc3d-fallback button { margin-top: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; cursor: pointer; }
.oc3d-wrap.oc3d-pinned { position: fixed; z-index: 30; top: 0; aspect-ratio: auto; border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }

/* The scroll guard (onecore-3d-bridge.js): over a ready model until a click into it (.is-live), so the wheel scrolls the
   page instead of zooming the model out. */
.oc3d-shield { display: none; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.oc3d-wrap.is-ready:not(.is-live) .oc3d-shield { display: block; }

/* The model turns and zooms inside its own frame; the hint lies over it without catching the mouse. */
.oc3d-real .ocp-view .ocp-hint { pointer-events: none; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, .85); }

/* ocp.css gives the view 4:3 and at least 320px high on a phone, which makes it wider than a 390px screen. */
@media (max-width: 900px) { .oc3d-real .ocp-view { min-height: 0; } }

/* The panel: the bridge marks the chosen option with .is-active (and aria-pressed) */
.oc3d-real .ocp-opt.is-active { border-color: var(--ocp-sel); box-shadow: inset 0 0 0 1px var(--ocp-sel); font-weight: 600; }
.oc3d-real [data-oc3d-panel] { display: flex; flex-direction: column; gap: 16px; }
.oc3d-real [data-oc3d-panel][hidden], .oc3d-real .ocp-g[hidden] { display: none; }
/* Colours as a grid of swatches with the RAL number; the full name is in the quote. */
.oc3d-real .oc3d-swatches .ocp-opt { padding: 5px 8px 5px 6px; font-size: 12px; font-variant-numeric: tabular-nums; }
.oc3d-real .ocp-foot button.ocp-btn--p { background: var(--ocp-sel); color: #fff; }

/* The pop-up: Email me my design beside the quote */
.oc3d-quote .t3-mail .hm-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
.oc3d-btn-s { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 1.5px solid #c9cfe0;
  border-radius: 6px; background: #fff; color: #191919; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.oc3d-btn-s:hover { border-color: #2355f0; color: #2355f0; }
.oc3d-quote .t3-mail p.oc3d-small { font-size: 13px; }
.oc3d-pic-wait { animation: oc3d-pulse 1.2s ease-in-out infinite alternate; }
@keyframes oc3d-pulse { from { opacity: .55; } to { opacity: 1; } }
.oc3d-form { display: flex; flex-direction: column; gap: 12px; }
.oc3d-form label { display: flex; flex-direction: column; gap: 6px; }
.oc3d-form input[type=text], .oc3d-form input[type=email] { width: 100%; height: 46px; margin: 0; border: 1.5px solid #E3E6EF;
  border-radius: 6px; padding: 0 14px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; }
.oc3d-form input:focus { outline: 3px solid #5B80FF; outline-offset: 1px; }
.oc3d-form label.oc3d-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: #5E6272; }
.oc3d-form .oc3d-check input { margin-top: 3px; }
.oc3d-quote .t3-mail p.oc3d-error { color: #c0392b; }
.oc3d-back { align-self: flex-start; padding: 0; border: 0; background: none; color: #2355f0; font: inherit; font-size: 14px; cursor: pointer; }
.oc3d-quote .t3-mail p.oc3d-done { padding: 14px 16px; border-radius: 8px; background: #e9f7ef; color: #14532d; }
.oc3d-behind { margin-top: 4px; padding: 14px 16px; border: 1px dashed #9aa6d6; border-radius: 8px; background: #fff; font-size: 13px; }
.oc3d-behind h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #2355f0; }
.oc3d-quote .oc3d-behind p { margin: 0 0 10px; font-size: 13px; }
.oc3d-behind dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.oc3d-behind dt { color: #5E6272; }
.oc3d-behind dd { margin: 0; font-weight: 600; word-break: break-word; }

/* A plain 3D object (oc3d.mjs, c.plain: Barbas's BOX40): the bar over the model at full width, no panel beside it. */
.ocp.oc3d-plain { grid-template-columns: 1fr; }

/* A client's whole configurator in a frame (oc3d.mjs, c.frame: Table du Sud), as tall as the demo frames it. */
.ocp.oc3d-framed { display: block; min-height: 0; }
/* As tall as the screen allows under the site's header, the bar and the tip, so their Add and Request a quote buttons at
   the bottom stay in view on a laptop (a 732 px high window cut them off at 760). */
.oc3d-framed .oc3d-frame { display: block; width: 100%; height: clamp(560px, calc(100dvh - 160px), 760px); border: 0; }
@media (max-width: 767px) { .oc3d-framed .oc3d-frame { height: 720px; } }
/* On a configurators/ page (V4 frames it) the box is the whole page: the frame takes what the bar and the tip leave,
   or its bottom, with their Add and Request a quote, falls off the page. */
body > .ocp.oc3d-framed { display: flex; flex-direction: column; }
body > .ocp.oc3d-framed .oc3d-frame { flex: 1 1 auto; height: auto; min-height: 560px; }
.oc3d-framed .ocp-bar { border-bottom: 1px solid var(--ocp-line); }
.oc3d-tip { margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--ocp-line); background: var(--ocp-soft); color: var(--ocp-mute); font-size: 13px; }
.oc3d-tip b { color: var(--ocp-ink); font-weight: 600; }
