/* The 3D view of the keycord builder (three.js: public/js/site3d.js, sources in resources/js/3d): the tab "3D" of the live preview. */

.kcb-3d { display: none; position: relative; overflow: hidden; border-radius: 12px; }
.kcb-stage.tab-3d { flex-direction: column !important; flex-wrap: nowrap !important; justify-content: flex-start; align-items: stretch !important; }
.kcb-stage.tab-3d > #kcb-canvas, .kcb-stage.tab-3d > .kcb-stage-text, .kcb-stage.tab-3d > .kcb-photos { display: none !important; }
.kcb-stage.tab-3d > .kcb-3d { display: block; flex: 1 1 auto; min-height: 320px; width: 100%; align-self: stretch; }
.kcb-stage.tab-3d > .kcb-tabs { flex: 0 0 auto; width: 100%; align-self: stretch; margin-top: 8px; }
.kcb-3d canvas { position: absolute; left: 0; top: 0; display: block; margin: 0; outline: 0; }
.kcb-3d-hint { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(43,43,43,.08); color: #555; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .5s ease; }
.kcb-3d.is-used .kcb-3d-hint { opacity: 0; }
.kcb-3d-zoom { position: absolute; right: 2px; bottom: 6px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.kcb-3d-zoom button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #2b2b2b; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 2px 8px rgba(0,0,0,.08); font-size: 20px; font-weight: 600; line-height: 34px; text-align: center; }
.kcb-3d-zoom button:hover { border-color: var(--x-copper, #b06a2f); color: var(--x-copper, #b06a2f); }
.kcb-3d-zoom button:focus-visible { outline: 2px solid var(--x-copper, #b06a2f); outline-offset: 2px; }
.kcb-3d:not(.is-zoomed) .kcb-3d-zoom button[data-z="0.74"] { opacity: .4; pointer-events: none; }
.kcb-tab[data-tab="3d"] { position: relative; }
.kcb-tab[data-tab="3d"]:not(.is-on)::after { content: ""; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #8cb74e; }
