/* ar/ar_tryon.css — minimal styling for the AR tab UI. */

.ar-root,
.ar-stage,
.ar-controls,
.ar-stage * {
  box-sizing: border-box;
}

.ar-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.ar-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}


.ar-video, .ar-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}
.ar-video { transform: scaleX(-1); z-index: 1; }
.ar-canvas { z-index: 2; pointer-events: none; background: transparent; }

.ar-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ar-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.ar-hint:empty { display: none; }

.ar-align-oval {
  width: 50%;
  height: 70%;
  border: 2px dashed rgba(255,255,255,0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.25);
}

.ar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.ar-control { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 160px; }
.ar-control input[type=range] { width: 160px; }

.ar-btn {
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.ar-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.ar-btn-primary { background: #2da44e; }

.ar-consent-overlay,
.ar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ar-consent-card,
.ar-modal {
  background: #fff;
  max-width: 480px;
  width: 92%;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.ar-consent-card h3, .ar-modal h3 { margin: 0 0 12px; }
.ar-consent-card p, .ar-modal p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.ar-consent-actions, .ar-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ar-modal input[type=number] { width: 100%; padding: 8px; font-size: 16px; box-sizing: border-box; }
