/* Shared WioniQ viewer layout and controls. */
.epe-3d { position: relative; }
.epe-3d [hidden] { display: none; }
.epe-3d__viewer {
  padding: clamp(12px, 1.3vw, 22px) clamp(14px, 1.7vw, 30px) clamp(14px, 1.3vw, 24px);
  border: 1px solid #fff;
  border-radius: clamp(16px, 1.5vw, 27px);
  background: linear-gradient(135deg, #f4f9fc, #edf5fa);
  box-shadow: 0 12px 34px #123f5a24, 0 2px 6px #123f5a0b;
}
.epe-3d__stage {
  position: relative;
  height: clamp(340px, 34vw, 520px);
  border-radius: 14px;
  background: radial-gradient(ellipse 70% 62% at 50% 52%, #ffffff 0%, #eef6fa 52%, #e3eff6 100%);
}
.epe-3d__canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  cursor: grab;
  touch-action: pan-y;               /* vertical swipes keep scrolling the page */
}
.epe-3d__canvas.is-dragging { cursor: grabbing; }
.epe-3d__canvas:focus-visible { outline: 3px solid var(--epe-mint, #00C2A8); outline-offset: 2px; }

.epe-3d__controls {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  width: min(100%, 520px);
  margin: 14px auto 0;
  padding: 6px;
  border: 1px solid #c9dfe9;
  border-radius: 999px;
  background: #fff;
}
.epe-3d__end {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #35546c;
  font: 600 15px/1.2 'Inter', ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.epe-3d__end:hover { background: #eef7f8; color: #092B4D; }
.epe-3d__end[aria-pressed="true"] { background: #dff4ef; color: #00695b; }
.epe-3d__end:focus-visible { outline: 3px solid #00C2A8; outline-offset: 2px; }

.epe-3d__slider {
  --fill: 0%;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.epe-3d__slider:focus { outline: none; }
.epe-3d__slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00A892 var(--fill), #cfe0e9 var(--fill));
}
.epe-3d__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #00A892;
  box-shadow: 0 0 0 1px #00A892, 0 2px 6px rgba(9, 43, 77, .25);
}
.epe-3d__slider::-moz-range-track { height: 6px; border-radius: 999px; background: #cfe0e9; }
.epe-3d__slider::-moz-range-progress { height: 6px; border-radius: 999px; background: #00A892; }
.epe-3d__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #00A892;
  box-shadow: 0 0 0 1px #00A892, 0 2px 6px rgba(9, 43, 77, .25);
}
.epe-3d__slider:focus-visible::-webkit-slider-thumb { outline: 3px solid #092B4D; outline-offset: 3px; }
.epe-3d__slider:focus-visible::-moz-range-thumb { outline: 3px solid #092B4D; outline-offset: 3px; }

.epe-3d__hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .epe-3d__hint-mouse { display: none; }
  .epe-3d__hint-touch { display: inline; }
}

@media (max-width: 760px) {
  .epe-3d__stage { height: clamp(300px, 92vw, 440px); }
  .epe-3d__controls { gap: 6px; }
  .epe-3d__end { padding: 8px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .epe-3d__end { transition: none; }
}
