.editor-styles-wrapper .wp-block-a360-panorama-hero.a360-panorama-hero {
  height: var(--a360-hero-height, 720px);
  min-height: 200px
}

.a360-panorama-hero.is-editor-preview .a360-panorama-hero__media {
  background-position: center;
  background-size: cover
}

.a360-panorama-hero__empty {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 24px;
  color: #fff;
  font-weight: 600
}

.a360-panorama-hero.is-editor-preview .a360-panorama-hero__content {
  pointer-events: auto
}

.a360-panorama-content-alignment__buttons {
  display: flex;
  width: 100%;
  margin-top: 8px
}

.a360-panorama-content-alignment__group {
  display: flex;
  flex: 1
}

.a360-panorama-content-alignment__group+.a360-panorama-content-alignment__group {
  margin-left: 1px
}

.a360-panorama-content-alignment__group .components-button {
  display: flex;
  min-width: 0;
  height: 72px;
  padding: 8px;
  flex: 1;
  justify-content: center;
  border: 1px solid #1e1e1e;
  border-radius: 0;
  box-shadow: none;
  color: #1e1e1e;
  background: #fff
}

.a360-panorama-content-alignment__group .components-button:first-child {
  border-radius: 3px 0 0 3px
}

.a360-panorama-content-alignment__group .components-button:last-child {
  border-radius: 0 3px 3px 0
}

.a360-panorama-content-alignment__group .components-button+.components-button {
  margin-left: -1px
}

.a360-panorama-content-alignment__group .components-button.is-pressed {
  z-index: 1;
  color: #fff;
  background: #1e1e1e
}

@media (max-width: 781px) {
  .editor-styles-wrapper .wp-block-a360-panorama-hero.a360-panorama-hero {
    height: auto;
    min-height: var(--a360-hero-height, 720px);
  }

  .editor-styles-wrapper .a360-panorama-hero__content {
    min-height: var(--a360-hero-height, 720px);
  }
}

/* Tryb edycji panoramy */
.a360-panorama-hero.is-panorama-edit-mode .a360-panorama-hero__content {
  pointer-events: none !important;
}

.a360-panorama-hero.is-panorama-edit-mode .a360-panorama-hero__content * {
  pointer-events: none !important;
}

.a360-panorama-hero.is-panorama-edit-mode .a360-panorama__viewport {
  pointer-events: auto !important;
  cursor: grab;
  z-index: 10;
}

.a360-panorama-hero.is-panorama-edit-mode .a360-panorama__viewport:active {
  cursor: grabbing;
}

.a360-panorama-hero.is-panorama-edit-mode .a360-panorama__canvas {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
/* Tryb dodawania hotspotu */
.a360-panorama-hero.is-hotspot-edit-mode .a360-panorama__viewport,
.a360-panorama-hero.is-hotspot-edit-mode .a360-panorama__canvas {
  cursor: crosshair !important;
}

.a360-hotspot-editor-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dcdcde;
}

.a360-hotspot-editor-empty {
  color: #646970;
  font-style: italic;
}

/* Panel edycji hotspotów */
.a360-hotspot-list-button {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  margin: 0 0 8px;
}

.a360-hotspot-coordinates {
  margin: 14px 0;
  padding: 8px 10px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #f6f7f7;
  font-size: 12px;
}

.a360-hotspot-target-file {
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
  color: #646970;
  font-size: 12px;
}

.a360-panorama-hero.is-panorama-edit-mode .a360-panorama__hotspot.is-selected .a360-panorama__hotspot-dot {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #3858e9;
}

.a360-panorama-picker__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a360-panorama-mode-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.a360-panorama-mode-picker__item.components-button {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 4px;
}

.a360-panorama-mode-picker__item.components-button.is-selected {
  border-color: #3858e9;
  box-shadow: 0 0 0 1px #3858e9;
}

.a360-panorama-mode-picker__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a360-panorama-picker__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.a360-panorama-picker__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  border: 1px solid #dcdcde;
  border-radius: 3px;
  background: #f0f0f1;
}

.a360-panorama-picker__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a360-panorama-picker__remove.components-button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #d63638;
  background: transparent;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px #fff, 0 0 3px rgba(255, 255, 255, .9);
  box-shadow: none;
}

.a360-panorama-picker__remove.components-button:hover,
.a360-panorama-picker__remove.components-button:focus {
  color: #b32d2e;
  background: transparent;
  box-shadow: none;
}
