/* Garage Door demo — only what is specific to this demo (camera view buttons and the
   door-motion box floating over the stage). The panel, controls, price footer and quote
   modal are styled by the website's UI kit: /css/configurator-ui.css */

/* module buttons (e.g. "Watch in AR"): last in the toolbar */
.gd-stage-action { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.gd-stage-action svg { flex: none; }

/* ---------- door motion control (floating over the stage) ---------- */

.gd-motion {
  position: absolute;
  bottom: 42px; /* just above the "Drag to orbit" hint in the corner */
  left: 20px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  /* no box of its own: just the green button and the tip, straight over the scene */
}

.gd-motion[hidden] {
  display: none;
}

.gd-motion-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
}

.gd-motion-btn[hidden] {
  display: none;
}

.gd-motion-btn:disabled {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: default;
}

.gd-motion-btn:disabled::after {
  display: none;
}

.gd-motion-btn svg {
  width: 14px;
  height: 14px;
}

.gd-motion-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}

/* floating "Open door" / "Close door" label that follows the cursor
   while it hovers the door mesh in the 3D view */

.gd-door-tooltip {
  position: fixed;
  z-index: 6;
  pointer-events: none;
  transform: translate(16px, -50%);
  background: rgba(30, 34, 32, 0.88);
  color: #fbfbf8;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.gd-door-tooltip[hidden] {
  display: none;
}

/* ---------- mobile ---------- */

@media (max-width: 780px) {
  .gd-motion,
  .gd-door-tooltip {
    display: none;
  }
}
