/* =========================================================
   Glasses Try-On Plugin Styles
   Scoped, safe, no global layout damage
========================================================= */

/* Utility */
.hidden {
  display: none !important;
}

/* ================= MODAL OVERLAY ================= */

#tryon_modal_9a1b {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* ================= MODAL CONTENT ================= */

.modal-content {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  width: 92%;
  max-width: 780px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #eeeeee;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* ================= VIDEO AREA ================= */

.video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 6px;
}

video,
canvas {
  width: 100%;
  height: auto;
  display: block;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* ================= CONTROLS ================= */

.controls {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

#tryon_modal_9a1b button,
#tryon_modal_9a1b select {
  padding: 8px 10px;
  border-radius: 6px;
}

/* ================= TEXT ================= */

.hint {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

/* ================= TRY-ON BUTTON ================= */

/* Floating sticky button */
.woocommerce .tryon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 9999;

  background-color: #000042 !important;
  color: #ffffff !important;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Hover */
.tryon-btn:hover {
  background: #000030;
}

/* Wrapper safety */
.tryon-image-wrap {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 99;
}


/* Overlay button variant (if used elsewhere) */
.tryon-overlay-btn {
  background: #000042;
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
}

/* ================= WOOCOMMERCE SAFE ================= */

.woocommerce-product-gallery {
  position: relative;
}

/* ================= MOBILE UX ================= */

@media (max-width: 768px) {
  .tryon-image-wrap {
    bottom: 16px;
    right: 16px;
  }
}

/* ================= LINKS (LOCAL ONLY) ================= */

#tryon_modal_9a1b a {
  text-decoration: none;
  color: #111;
}
