/* bas-3d-viewer.css — scoped styles for the BasViewer3D component.
   All rules prefixed .bas-3d-viewer__ to avoid collision with host page styles. */

.bas-3d-viewer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 320px;
  font-family: inherit;
}

.bas-3d-viewer__canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
}

.bas-3d-viewer__canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bas-3d-viewer__readout {
  flex: 0 0 auto;
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.bas-3d-viewer__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bas-3d-viewer__btn {
  flex: 1 1 auto;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.15s ease, color 0.15s ease;
}

.bas-3d-viewer__btn:hover {
  background: currentColor;
}

.bas-3d-viewer__btn:hover > * {
  color: #fff;
}
