.q3d-side-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 999999;
  transition: right 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.q3d-side-panel.active {
  right: 0;
}

.q3d-side-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.q3d-side-panel-close:hover {
  background: rgba(0,0,0,0.8);
}

.q3d-side-panel-header {
  flex-shrink: 0;
  padding: 16px 50px 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.q3d-side-panel-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  background: rgba(255,255,255,0.9);
  align-items: center;
  justify-content: center;
}

.q3d-side-panel-loader.active {
  display: flex;
}

.q3d-side-panel-loader span {
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#q3d_popup {
  flex: 1;
  min-height: 0;
  width: 100%;
  position: relative;
}

@media (max-width: 768px) {
  .q3d-side-panel {
    width: 100vw;
    right: -100vw;
  }
}
