/* WigVo Virtual Hair Try-On Modal Premium CSS */

.wigvo-tryon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wigvo-tryon-modal-card {
  background: #ffffff;
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.wigvo-tryon-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wigvo-tryon-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wigvo-tryon-close-btn {
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wigvo-tryon-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wigvo-tryon-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .wigvo-tryon-body {
    grid-template-columns: 1fr;
  }
}

.wigvo-tryon-canvas-container {
  position: relative;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

#wigvo-tryon-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: grab;
}

#wigvo-tryon-canvas:active {
  cursor: grabbing;
}

.wigvo-tryon-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.wigvo-tryon-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wigvo-tryon-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wigvo-tryon-btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.wigvo-tryon-btn.primary {
  background: linear-gradient(135deg, #e91e63 0%, #e75480 100%);
  color: #ffffff;
}

.wigvo-tryon-btn.secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.wigvo-tryon-btn.outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.wigvo-tryon-btn.download {
  background: linear-gradient(135deg, #e91e63 0%, #e75480 100%);
  color: #ffffff;
  width: 100%;
  justify-content: center;
  padding: 12px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.3);
}

.wigvo-tryon-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.wigvo-tryon-wig-selector label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 8px;
}

.wigvo-tryon-wig-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wig-pill {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.wig-pill.active, .wig-pill:hover {
  background: rgba(233, 30, 99, 0.08);
  border-color: #e91e63;
  color: #e91e63;
  font-weight: 800;
}

.wigvo-tryon-sliders-grid {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: #e91e63;
}

.wigvo-tryon-notice {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  display: block;
}
