/**
 * FPD Magnifier (DIY page)
 * - Adds a top-right zoom toggle inside the FPD view stage
 * - Shows a circular lens that magnifies the rendered canvas
 */

.fpd-magnifier-host {
  position: relative;
}

.fpd-magnifier-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.fpd-magnifier-toggle:hover {
  filter: brightness(1.05);
}

.fpd-magnifier-toggle.is-active {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35) inset, 0 10px 26px rgba(0,0,0,0.22);
}

.fpd-magnifier-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.fpd-magnifier-lens {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: 45;
  display: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.30);
  border: 2px solid rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.02);
}

.fpd-magnifier-host.fpd-magnifier-enabled .fpd-magnifier-lens {
  display: block;
}

/* Hide on coarse pointers to avoid fighting with touch interactions */
@media (pointer: coarse) {
  .fpd-magnifier-toggle,
  .fpd-magnifier-lens {
    display: none !important;
  }
}


