/* ==========================================================================
   Air Maze interactive widget
   Children's Discovery Museum of San Jose
   Extracted from Divi Code Module. All rules scoped to #airmaze-widget.
   ========================================================================== */

#airmaze-widget {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  font-family: 'Prenton', sans-serif;
  box-sizing: border-box;
}

#airmaze-widget *,
#airmaze-widget *::before,
#airmaze-widget *::after {
  box-sizing: border-box;
}

/* === TOOLBAR === */
#airmaze-widget .airmaze-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(90, 63, 152, 0.08);
}

#airmaze-widget .airmaze-piece-btn {
  appearance: none;
  border: 3px solid transparent;
  background: #f7f3ea;
  border-radius: 14px;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  line-height: 1;
}

#airmaze-widget .airmaze-piece-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 63, 152, 0.15);
}

#airmaze-widget .airmaze-piece-btn.active {
  border-color: #5a3f98;
  background: #ede8f5;
  box-shadow: 0 0 0 2px rgba(90, 63, 152, 0.2);
}

#airmaze-widget .airmaze-piece-btn canvas,
#airmaze-widget .airmaze-piece-btn img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: block;
}

#airmaze-widget .airmaze-piece-btn .label {
  font-size: 11px;
  font-weight: 600;
  color: #5a3f98;
}

#airmaze-widget .airmaze-separator {
  width: 2px;
  height: 40px;
  background: #e5e0d6;
  border-radius: 2px;
  margin: 0 4px;
}

@media (max-width: 1138px) {
  #airmaze-widget .airmaze-separator {
    display: none;
  }
}

#airmaze-widget .airmaze-action-btn {
  appearance: none;
  border: 2px solid #d4cec4;
  background: #fff;
  color: #5a3f98;
  border-radius: 12px;
  padding: 10px 16px;
  font-family: 'Prenton', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

#airmaze-widget .airmaze-action-btn:hover {
  transform: translateY(-1px);
  border-color: #5a3f98;
}

#airmaze-widget .airmaze-action-btn.danger {
  color: #d44;
}

#airmaze-widget .airmaze-action-btn.danger:hover {
  background: #fee;
  border-color: #d44;
}

/* === STATUS === */
#airmaze-widget .airmaze-status {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #5a3f98;
  text-align: center;
  min-height: 20px;
  font-weight: 600;
}

/* === CANVAS WRAPPER === */
#airmaze-widget .airmaze-canvas-wrap {
  position: relative;
  border: 3px solid #5a3f98;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f3ea;
  box-shadow: 0 4px 24px rgba(90, 63, 152, 0.12);
}

#airmaze-widget #airmaze-canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: manipulation;
  cursor: crosshair;
}

@media (max-width: 600px) {
  #airmaze-widget .airmaze-piece-btn canvas,
  #airmaze-widget .airmaze-piece-btn img {
    width: 38px;
    height: 38px;
  }

  #airmaze-widget .airmaze-piece-btn .label {
    font-size: 10px;
  }

  #airmaze-widget .airmaze-action-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}
