.p360b-viewer{
  width:100%;
  background:#111;
  border-radius:10px;
  overflow:hidden;
}
.p360b-viewer .pnlm-container{
  border-radius:10px;
}
.p360b-placeholder{
  padding:12px 14px;
  border:1px dashed #bbb;
  border-radius:10px;
  background:#fafafa;
}

/* --- Hotspot icon styling (frontend) --- */
.p360b-viewer .p360b-hs-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.30);
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.p360b-viewer .p360b-hs-icon i{
  font-size: 18px;
  line-height: 1;
}

.p360b-viewer .p360b-hs-icon.p360b-hs-icon--png{
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
}

.p360b-viewer .p360b-hs-icon.p360b-hs-icon--fa{
  background: rgba(255,255,255,0.92);
}

.p360b-viewer .p360b-hs-template--pill{
  gap: 6px;
  padding: 0 12px;
  width: auto;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.70);
  color: #fff;
}
.p360b-viewer .p360b-hs-template--pill i{ color:#fff; }
.p360b-viewer .p360b-hs-template--pill .p360b-hs-label{
  font-size: 12px;
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p360b-viewer .p360b-hs-template--icon-only{
  width: 28px;
  height: 28px;
}
.p360b-viewer .p360b-hs-template--icon-only .p360b-hs-label{ display:none !important; }


/* === P360B Custom Hotspots (FA + tooltip) === */
.pnlm-hotspot.p360b-fa{
  background-image: none !important;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.70) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  color: var(--p360b-hotspot-color, #fff);
}

/* Spec: "なし" を選択したホットスポットは表示しない */
.pnlm-hotspot.p360b-noicon{
  display: none !important;
}

/* Link hotspots (no FA icon): keep a simple circular hit area if needed */
.pnlm-hotspot.p360b-link:not(.p360b-fa){
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.70) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  color: #fff;
}

.pnlm-hotspot.p360b-fa i{
  font-size: var(--p360b-hotspot-size, 16px);
  line-height: 1;
  color: currentColor;
}

/* link wrapper inside hotspot */
.pnlm-hotspot .p360b-hotspot-link{
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

/* tooltip */
.pnlm-hotspot.p360b-fa .p360b-tooltip{
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease, visibility .12s ease;
  z-index: 9999;
}

.pnlm-hotspot.p360b-fa:hover .p360b-tooltip{
  opacity: 1;
  visibility: visible;
}


.p360b-controls .p360b-btn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 0;
  background: rgba(0,0,0,0.70);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

.p360b-controls .p360b-btn:hover{
  background: rgba(0,0,0,0.85);
}


.p360b-controls{
  flex-direction: row;
}

/* Pad layout */
.p360b-pad{
  display: grid;
  grid-template-columns: 36px 36px 36px;
  grid-template-rows: 36px 36px 36px;
  gap: 6px;
  margin-right: 8px;
}
.p360b-pad .p360b-btn--up{ grid-column: 2; grid-row: 1; }
.p360b-pad .p360b-btn--left{ grid-column: 1; grid-row: 2; }
.p360b-pad .p360b-btn--right{ grid-column: 3; grid-row: 2; }
.p360b-pad .p360b-btn--down{ grid-column: 2; grid-row: 3; }

.p360b-zoom{
  display: flex;
  gap: 8px;
  margin-right: 8px;
}

/* WP360: Static label for Font Awesome hotspots */
.p360b-tooltip.p360b-tooltip--static{
  opacity: 1;
  visibility: visible;
  top: calc(100% + 6px);
  transform: translate(-50%, 0);
  border-radius: 4px;
}
