.anchor-panorama {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-block: 20px;
}

.anchor-panorama-full-width {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

.anchor-panorama-full-width .anchor-panorama-heading,
.anchor-panorama-full-width .anchor-panorama-help {
  width: min(var(--app-shell-max-width, 1120px), calc(100% - 28px));
  margin-inline: auto;
}

.anchor-panorama-heading {
  display: grid;
  gap: 4px;
}

.anchor-panorama-heading h2,
.anchor-panorama-heading p {
  margin: 0;
}

.anchor-panorama-heading p {
  color: color-mix(in srgb, var(--text, #1d2a36) 76%, transparent);
}

.panorama-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text, #1d2a36) 18%, transparent);
  border-radius: max(2px, var(--radius, 4px));
  background: #111827;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.anchor-panorama-full-width .panorama-stage {
  border-inline: 0;
  border-radius: 0;
}

.panorama-loading,
.panorama-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  color: #f8fafc;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #334155, #111827 70%);
}

.panorama-loading i,
.panorama-empty-state i {
  font-size: 2rem;
  opacity: 0.8;
}

.anchor-panorama-help {
  margin: 0;
  color: color-mix(in srgb, var(--text, #1d2a36) 70%, transparent);
  font-size: 0.88rem;
}

.anchor-panorama-help i {
  margin-right: 5px;
}

.anchor-panorama-fallback {
  display: block;
  width: 100%;
  height: auto;
}

.anchor-panorama-hotspot {
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #1655a2;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.38);
  cursor: pointer;
}

.anchor-panorama-hotspot-link {
  background: #b45309;
}

.anchor-panorama-hotspot::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  content: "\f05a";
}

.anchor-panorama-hotspot-link::before {
  content: "\f35d";
}

.anchor-panorama-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  display: none;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 9px 11px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
}

.anchor-panorama-tooltip strong,
.anchor-panorama-tooltip span,
.anchor-panorama-tooltip em {
  display: block;
}

.anchor-panorama-tooltip span {
  margin-top: 3px;
  opacity: 0.88;
}

.anchor-panorama-tooltip em {
  margin-top: 5px;
  color: #bfdbfe;
  font-style: normal;
  font-weight: 800;
}

.anchor-panorama-hotspot:hover .anchor-panorama-tooltip,
.anchor-panorama-hotspot:focus .anchor-panorama-tooltip {
  display: block;
}

.pnlm-container {
  font-family: var(--font-body, sans-serif);
}

.pnlm-controls-container .pnlm-control {
  border-color: rgba(255, 255, 255, 0.42);
  background-color: rgba(15, 23, 42, 0.88);
  filter: invert(1);
}

.panorama-admin-preview {
  display: grid;
  gap: 10px;
}

.panorama-admin-stage {
  min-height: 480px;
}

.panorama-admin-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panorama-ratio-note {
  font-weight: 800;
}

.panorama-hotspot-editor > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.panorama-hotspot-link-fields {
  display: none;
}

.panorama-hotspot-form.is-link-hotspot .panorama-hotspot-link-fields {
  display: grid;
}

.panorama-use-hotspot-view {
  justify-self: start;
}

@media (max-width: 720px) {
  .panorama-stage {
    min-height: 360px !important;
  }

  .anchor-panorama-full-width .anchor-panorama-heading,
  .anchor-panorama-full-width .anchor-panorama-help {
    width: calc(100% - 24px);
  }

  .anchor-panorama-help {
    font-size: 0.82rem;
  }

  .panorama-admin-preview-actions {
    align-items: stretch;
  }

  .panorama-admin-preview-actions .chip {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anchor-panorama-hotspot,
  .pnlm-container * {
    scroll-behavior: auto !important;
  }
}
