/* ====================== E-Commerce UI Modal Overlay =========================== */
.snapshot-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75); /* Standard dark backdrop */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 40px;
}

.snapshot-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* The White Amazon-Style Modal */
.snapshot-modal-window-v2 {
  background: #ffffff;
  border-radius: 8px; /* Sharper, cleaner corners */
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

/* The 'X' Close Button */
.snap-close-icon {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  line-height: 1;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  transition: color 0.2s;
}
.snap-close-icon:hover { color: #111827; }

/* 2-Column Layout */
.snap-modal-body {
  display: flex;
  width: 100%;
}

/* LEFT COLUMN: The Preview Window */
.snap-modal-left {
  flex: 1;
  background: #f8fafc; /* Very subtle gray to make the white snapshot pop */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
}

/* Scaling the 1080px container to fit the left column */
.snapshot-preview-wrapper {
  transform: scale(0.45); /* Scales the 1080px image down to ~486px */
  transform-origin: top center;
  margin-bottom: -55%; /* Fixes the dead space caused by CSS scaling */
  transition: transform 0.2s ease;
}

/* RIGHT COLUMN: Controls & Templates */
.snap-modal-right {
  width: 380px;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
}

.snap-modal-title { font-size: 22px; font-weight: 800; color: #0f1111; margin-bottom: 8px; line-height: 1.2; }
.snap-modal-desc { font-size: 14px; color: #565959; margin-bottom: 32px; line-height: 1.5; }

/* The Download Button (Amazon Yellow Style) */
.snap-btn-download-v2 {
  background: #ffd814; 
  color: #0f1111; 
  border: 1px solid #fcd200;
  border-radius: 100px; 
  padding: 14px 24px; 
  font-weight: 600; 
  font-size: 15px;
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5); 
  margin-bottom: 40px;
  transition: background 0.2s;
  width: 100%;
}
.snap-btn-download-v2:hover { background: #f7ca00; }
.snap-btn-download-v2:active { transform: translateY(1px); box-shadow: none; }

/* Template Thumbnails Section */
.snap-template-section h3 { 
  font-size: 13px; 
  text-transform: uppercase; 
  color: #565959; 
  letter-spacing: 0.05em; 
  margin-bottom: 16px; 
  font-weight: 700; 
}

.snap-template-gallery { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
}

/* The Square Selection Thumbnails */
.snap-template-thumb {
  border: 2px solid #e5e7eb; 
  border-radius: 8px; 
  padding: 16px 12px;
  font-size: 14px; 
  font-weight: 700; 
  color: #374151; 
  cursor: pointer;
  background: #ffffff; 
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.snap-template-thumb svg { width: 24px; height: 24px; color: #9ca3af; transition: color 0.2s ease;}
.snap-template-thumb:hover { border-color: #9ca3af; }
.snap-template-thumb.active { border-color: #007185; color: #007185; background: #f0f8fa; }
.snap-template-thumb.active svg { color: #007185; }

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .snap-modal-body { flex-direction: column; }
  .snap-modal-left { border-right: none; border-bottom: 1px solid #e5e7eb; padding: 24px; }
  .snap-modal-right { width: 100%; padding: 24px; }
  .snapshot-preview-wrapper { transform: scale(0.35); margin-bottom: -65%; }
}


/* ====================== Dynamic Controls & Highlights =========================== */
.snap-dynamic-controls {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.snap-control-title {
  font-size: 13px; 
  text-transform: uppercase; 
  color: #565959; 
  letter-spacing: 0.05em; 
  margin-bottom: 12px; 
  font-weight: 700; 
}

/* Checkboxes */
.snap-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.snap-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.snap-checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #007185;
}

/* Dropdown */
.snap-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background-color: #f9fafb;
  cursor: pointer;
}
.snap-select:focus { outline: none; border-color: #007185; }

/* The Highlight for the focused column */
.snap-column-highlight {
  background-color: rgba(37, 99, 235, 0.05) !important; /* Soft blue tint */
}
th.snap-column-highlight {
  border-bottom: 3px solid #2563eb !important; /* Deep blue border on header */
  color: #2563eb !important;
}