/* Editor */
.hotspot-editor { border: 1px dashed #ddd; padding: 10px; border-radius: 8px; background: #fafafa; }
.hotspot-editor .dot, .hotspot-frontend .dot { font-weight: 800; text-align: center; line-height: 1; }
.hotspot-editor .dot.is-selected { outline: 2px solid #6b2caf; outline-offset: 2px; }
.hotspot-form { margin-top: 15px; padding: 12px; border: 1px solid #eee; background: #fff; border-radius: 6px; }
.hotspot-form .row { display:flex; gap:12px; align-items:center; margin:8px 0; }
.hotspot-form .row .col { flex:1; }
.hotspot-list .hotspot-row{ display:flex; align-items:center; gap:8px; padding:6px 8px; margin:4px 0; background:#fff; border:1px solid #eee; border-radius:6px; cursor:pointer; }
.hotspot-list .hotspot-row.is-selected{ background:#f0f7ff; border-color:#b3d4ff; }
.hotspot-list .hotspot-row .right{ margin-inline-start:auto; }

/* Frontend */
.hotspot-frontend img { pointer-events: none; }
.hotspot-frontend .hs-pop { z-index: 7; }
.hotspot-frontend .hs-card{
  --hs-max: 420px;
  background:#fff; color:#111; padding:10px;
  border-radius:12px; box-shadow: 0 12px 32px rgba(0,0,0,.18);
  width: clamp(240px, 50vw, var(--hs-max));
  max-width: var(--hs-max);
  line-height: 1.6;
}
.hotspot-frontend .hs-card h3{ margin:4px 4px 8px; font-size:18px; }
.hotspot-frontend .hs-card p{ margin:4px; font-size:15px; }
.hotspot-frontend .hs-card img{ display:block; margin:6px auto; max-width:100%; height:auto; border-radius:10px; }
.hotspot-frontend .hs-card .hs-btn{ display:inline-block; margin:8px 4px 4px; padding:10px 16px; border-radius:10px; text-decoration:none; font-weight:700; }
.hotspot-frontend .dot{ z-index:6; touch-action: manipulation; }
.hotspot-frontend .hs-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; padding: 16px; z-index: 9999; animation: hsFade .15s ease; }
.hotspot-frontend .hs-modal{ max-width: min(92vw, 560px); width: 100%; background:#fff; border-radius:14px; padding:10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); position: relative; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
.hotspot-frontend .hs-modal .hs-close{ position:absolute; top:6px; inset-inline-end:6px; width:32px; height:32px; border-radius:999px; border:0; background:#111; color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; line-height:1; }
@keyframes hsFade{ from{ opacity:0 } to{ opacity:1 } }