.aeip-wrap { width: 100%; }
.aeip-topbar, .aeip-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aeip-actions { justify-content: flex-end; flex-wrap: wrap; }

.aeip-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.aeip-btn:hover { background: #fafafa; }
.aeip-btn-primary { background: #111; color: #fff; border-color: #111; }
.aeip-btn-primary:hover { background: #000; }

.aeip-main { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-top: 14px; }
@media (max-width: 980px) { .aeip-main { grid-template-columns: 1fr; } }

.aeip-canvas-panel { width: 100%; }
.aeip-canvas {
  position: relative;
  background: #f7f7f7;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
  padding: 14px;
}
.aeip-base { width: 100%; height: auto; display: block; }
.aeip-empty { color: #666; padding: 22px; }

.aeip-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.85);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  z-index: 5;
}
.aeip-marker.is-active { outline: 3px solid rgba(255, 0, 120, 0.35); }

.aeip-side-panel .aeip-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  margin-bottom: 14px;
}
.aeip-card-title { font-weight: 700; margin-bottom: 10px; }
.aeip-small { font-size: 12px; color: #666; }
.aeip-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.aeip-row-space { justify-content: space-between; }

.aeip-list { display: flex; flex-direction: column; gap: 8px; }
.aeip-item {
  text-align: left;
  width: 100%;
  border: 1px solid #eee;
  background: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.aeip-item:hover { background: #fafafa; }
.aeip-item.is-active { border-color: #111; }
.aeip-item-meta { margin-left: 8px; font-size: 12px; color: #666; }

#aeip-editor-card img { max-width: 100%; height: auto; display: block; border-radius: 12px; }






/* ===== PATCH: hotspot overlay appears ON THE SPOT (circle) ===== */

.aeip-hit{
  position:absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 6;
}

/* The little overlay that appears at hotspot position */
.aeip-overlay{
  position:absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Make the overlay image fit inside the circle */
.aeip-overlay .aeip-overlay-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0; /* IMPORTANT: don’t round inside */
}






/* Overlay bubble itself should not paint a background */
.aeip-spot-overlay,
.aeip-spot-overlay * {
  background: transparent !important;
}






/* ===== Demo page: hide ALL hotspot indicators (no hover reveal), but still clickable ===== */
.aeip-wrap[data-aeip="player"] .aeip-marker,
.aeip-wrap[data-aeip="player"] .aeip-marker:hover,
.aeip-wrap[data-aeip="player"] .aeip-marker:focus,
.aeip-wrap[data-aeip="player"] .aeip-marker:active,
.aeip-wrap[data-aeip="player"] .aeip-marker:focus-visible,
.aeip-wrap[data-aeip="player"] .aeip-hit,
.aeip-wrap[data-aeip="player"] .aeip-hit:hover,
.aeip-wrap[data-aeip="player"] .aeip-hit:focus,
.aeip-wrap[data-aeip="player"] .aeip-hit:active,
.aeip-wrap[data-aeip="player"] .aeip-hit:focus-visible {
  opacity: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* keep the clickable area working even when invisible */
.aeip-wrap[data-aeip="player"] .aeip-hit {
  pointer-events: auto !important;
}






/* Force overlay + its img to never paint a background */
.aeip-overlay,
.aeip-overlay * {
  background: transparent !important;
}






/* ===== Modal (iframe overlay editor) ===== */
.aeip-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.aeip-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
}
.aeip-modal-box{
  position:absolute;
  inset: 24px;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.aeip-modal-close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius: 999px;
  border:1px solid #eee;
  background:#fff;
  cursor:pointer;
  font-size: 22px;
  line-height: 32px;
  z-index: 5;
}
.aeip-modal-iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* ===== Player: invisible but clickable hotspots ===== */
.aeip-hit{
  position:absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 6;
  padding: 0;
}

/* ===== Overlay bubble on the spot (circle) ===== */
.aeip-overlay{
  position:absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 12px 40px rgba(0,0,0,0.20);
}
.aeip-overlay .aeip-overlay-img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: contain;
  background: transparent;
}

/* prevent “hover reveal” feeling */
.aeip-hit:focus,
.aeip-hit:hover{
  outline: none;
  box-shadow: none;
}

/* Overlay entrance animations */
.aeip-overlay.anim-pop { animation: aeipPop 160ms ease-out; }
.aeip-overlay.anim-fade { animation: aeipFade 200ms ease-out; }
.aeip-overlay.anim-bounce { animation: aeipBounce 260ms ease-out; }
.aeip-overlay.anim-slide-up { animation: aeipSlideUp 220ms ease-out; }
.aeip-overlay.anim-none { animation: none; }

@keyframes aeipPop { from { transform: translate(-50%,-50%) scale(0.92); opacity: 0.2; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
@keyframes aeipFade { from { opacity: 0.2; } to { opacity: 1; } }
@keyframes aeipBounce {
  0% { transform: translate(-50%,-50%) scale(0.88); opacity: 0.2; }
  60% { transform: translate(-50%,-50%) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1); }
}
@keyframes aeipSlideUp { from { transform: translate(-50%,-46%); opacity: 0.2; } to { transform: translate(-50%,-50%); opacity: 1; } }






/* ===== UX: keep the right panel visible ===== */
.aeip-main { align-items: start; }

.aeip-side-panel{
  position: sticky;
  top: 110px;               /* adjust if your WP admin bar covers it */
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding-bottom: 20px;
}