/* ALRE 360° GIF Viewer */

.alre-360-wrap {
  position: relative;
  width: 100%;
}

.alre-360-canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  background: #f5f5f5;
}

/* Loading */
.alre-360-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245,245,245,0.85);
  z-index: 10;
  gap: 8px;
  font-size: 12px;
  color: #888;
}

.alre-360-spinner {
  width: 24px; height: 24px;
  border: 2px solid #ddd;
  border-top-color: #666;
  border-radius: 50%;
  animation: alre-spin .7s linear infinite;
}

@keyframes alre-spin { to { transform: rotate(360deg); } }

/* ---- Control Bar ---- */
.alre-360-bar {
  position: absolute;
  bottom: 10%;
  left: 25%;
  right: 25%;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  background: rgba(30,30,30,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 15px;
  z-index: 8;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.alre-360-wrap:hover .alre-360-bar {
  opacity: 1;
}

/* ---- Play / Stop Buttons ---- */
.alre-360-btn {
  all: unset;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  background: rgb(235, 115, 0)!important;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.alre-360-btn:hover { opacity: 1; }

/* Play-Dreieck (ohne Hintergrund-Quadrat) */
.alre-360-play::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  margin-left: -3px;
  margin-top: -5px;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
}

/* Stop-Balken */
.alre-360-stop::before,
.alre-360-stop::after {
  content: '';
  position: absolute;
  top: 50%; margin-top: -5px;
  width: 3px; height: 10px;
  background: #fff;
  border-radius: 1px;
}
.alre-360-stop::before { left: 15px; }
.alre-360-stop::after { right: 15px; }

/* ---- Slider ---- */
.alre-360-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 30px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

/* Track */
.alre-360-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 1.5px;
}

.alre-360-slider::-moz-range-track {
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 1.5px;
  border: none;
}

/* Thumb */
.alre-360-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: none;
  margin-top: -4px;
  box-shadow: 0 0 2px rgba(0,0,0,0.25);
}

.alre-360-slider::-moz-range-thumb {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.25);
}

/* ---- Label ---- */
.alre-360-label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ---- 360° Icon Overlay auf Thumbnail (Woodmart-Stil) ---- */
.alre-360-thumb-badge {
  --wd-btn-icon: "\f102";
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}
