/**
 * Jeeliz VTO widget styles — scoped to modal panel (not full page).
 */

/* High specificity + !important: beat theme rules that zero-out Jeeliz IDs */
.glasses-tryon-modal.glasses-tryon-modal .glasses-tryon-panel #JeelizVTOWidget {
  position: relative !important;
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 240px !important;
  min-height: 280px !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #111 !important;
  overflow: hidden !important;
}

.glasses-tryon-panel #JeelizVTOWidgetCanvas {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.glasses-tryon-panel .JeelizVTOWidgetControls {
  position: absolute;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.glasses-tryon-panel .buttonIcon {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle;
}

.glasses-tryon-panel .buttonIcon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.glasses-tryon-panel .JeelizVTOWidgetControlsTop {
  top: 12px;
  height: 44px;
  padding: 0 8px;
}

.glasses-tryon-panel .JeelizVTOWidgetControlsTop > button {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
}

.glasses-tryon-panel #JeelizVTOWidgetChangeModelContainer {
  bottom: 12px;
  height: auto;
  padding: 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.glasses-tryon-panel #JeelizVTOWidgetChangeModelContainer > button {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 48%;
  font-size: 13px;
  padding: 10px 8px;
}

.glasses-tryon-panel #JeelizVTOWidgetLoading {
  position: absolute;
  z-index: 4;
  cursor: wait;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
}

.glasses-tryon-panel .JeelizVTOWidgetLoadingText {
  color: #fff;
  font-size: clamp(18px, 5vw, 28px);
  margin-top: 40%;
  font-family: Helvetica Neue, Arial, sans-serif;
}

.glasses-tryon-panel #JeelizVTOWidgetAdjustNotice {
  width: 100%;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  z-index: 3;
  font-size: 15px;
  bottom: 0;
  padding: 1.5em 1em 3.5em;
  box-sizing: border-box;
  display: none;
}

.glasses-tryon-panel #JeelizVTOWidgetAdjustExit {
  border: 1px solid #fff;
  background: transparent;
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
}

.glasses-tryon-panel button,
.glasses-tryon-panel select {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  color: #eee;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  min-width: 44px;
  border: none;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  touch-action: manipulation;
}

.glasses-tryon-panel button:hover,
.glasses-tryon-panel button:focus-visible {
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
}

.glasses-tryon-panel #JeelizVTOWidgetAdjust {
  display: none;
}

.glasses-tryon-panel #JeelizVTOWidgetChangeModelContainer.glasses-tryon-hidden {
  display: none !important;
}

.glasses-tryon-panel #buttonResizeCanvas {
  display: none !important;
}

.glasses-tryon-panel--has-models #JeelizVTOWidgetChangeModelContainer.glasses-tryon-hidden {
  display: flex !important;
}
