/* LEAL3D_V63_REV6_VETOR_SELECAO_MODOS */

#vectorStage,
#modelStage {
  position: relative;
  overflow: hidden;
}

#vectorPreview {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: block !important;
  overflow: hidden !important;
  transform: none !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#vectorPreview.l3d-vector-dragging {
  cursor: grabbing;
}

#vectorPreview > svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  transform: none !important;
  transform-origin: initial !important;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
  image-rendering: auto;
  pointer-events: none;
}

/*
  Usa exatamente o mesmo componente e o mesmo posicionamento nativo
  de .viewer-presets do preview 3D.
*/
#vectorStage .l3d-vector-presets {
  z-index: 8;
  margin: 0;
}

#vectorStage .l3d-selection-modes {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, .20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#vectorStage .l3d-selection-modes.hidden,
#vectorStage .l3d-selection-reprocess.hidden,
#modelStage .l3d-selection-review.hidden,
#vectorStage .l3d-vector-presets.hidden {
  display: none !important;
}

#vectorStage .l3d-selection-modes button {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--text-muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

#vectorStage .l3d-selection-modes button.is-active {
  background: var(--secondary);
  color: #fff;
  animation: l3d-selection-mode-pulse 1.15s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), .18);
}

@keyframes l3d-selection-mode-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0);
  }
  50% {
    transform: scale(1.055);
    box-shadow: 0 0 0 7px rgba(var(--secondary-rgb), .15);
  }
}

#vectorStage .l3d-selection-reprocess,
#modelStage .l3d-selection-review {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 8;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

#vectorStage .l3d-selection-reprocess:disabled {
  opacity: .36 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(.35) saturate(.4);
}

#vectorStage .l3d-selection-reprocess.is-busy {
  opacity: .72 !important;
  cursor: progress !important;
}

#vectorPreview .l3d-selection-mask {
  pointer-events: none;
  image-rendering: auto;
}

@media (max-width: 760px) {
  #vectorStage .l3d-selection-modes {
    left: 10px;
    bottom: 10px;
  }

  #vectorStage .l3d-selection-reprocess,
  #modelStage .l3d-selection-review {
    right: 10px;
    bottom: 10px;
    min-height: 42px;
    padding: 10px 13px;
    font-size: .68rem;
  }
}
