/* Moopsi Try-On Studio - Frontend (minimal, no-radius) */

.mvto-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  border-radius: 0;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(0,0,0,0.16);
  background:#121212;
  color:#fff;
  cursor:pointer;
}
.mvto-btn:hover{ opacity: 0.92; }
.mvto-secondary{ background:#fff; color:#121212; }

.mvto-open{ margin-top: 10px; }
/* Open button colors (configurable) */
.mvto-open.mvto-btn{
  background: var(--mvto-open-bg, #121212) !important;
  color: var(--mvto-open-color, #ffffff) !important;
}


.mvto-note{ padding: 10px 12px; border: 1px solid rgba(0,0,0,0.12); background:#fafafa; }

.mvto-modal{
  --mvto-preview-aspect: 1 / 1;

  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  font-family: inherit;
}

#mvto-modal[aria-hidden="false"]{display:block;}
.mvto-modal.is-open{ display:block; opacity:1; visibility:visible; pointer-events:auto; }

.mvto-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  opacity:0;
  transition: opacity var(--mvto-popup-anim-ms,220ms) ease;
}
.mvto-modal.is-open .mvto-backdrop{ opacity:1; }

.mvto-panel{
  position: relative;
  max-width: var(--mvto-popup-max-width, 860px);
  width: calc(100% - 24px);
  margin: 4vh auto;
  background:#fff;
  border-radius: 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;

  transform: translateY(10px) scale(0.99);
  opacity: 0;
  transition: transform var(--mvto-popup-anim-ms,220ms) ease, opacity var(--mvto-popup-anim-ms,220ms) ease;
}
.mvto-modal.is-open .mvto-panel{ transform:none; opacity:1; }


.mvto-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mvto-title{
  font-size: 16px;
  font-weight: 800;
}

/* Engine pill (add-only) */
.mvto-engine-pill{
  margin-left: auto;
  margin-right: 8px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 0;
  white-space: nowrap;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mvto-x{
  appearance:none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor:pointer;
  padding: 6px 10px;
}

.mvto-body{ padding: 16px; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mvto-greeting{
  display:flex;
  align-items:baseline;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  opacity: 0.9;
}
.mvto-previews{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

/* Under-previews controls (two-column, Moopsi style) */
.mvto-underpreviews{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.mvto-underpreviews--single{ grid-template-columns: 1fr; }
.mvto-underpreviews-col{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px;
}
.mvto-actionlist{
  display:flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

/* Quick actions: keep Delete + Blur on one line (where space allows) */
.mvto-actionrow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.mvto-actionlist .mvto-linkbtn{
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}

/* Override the link-style buttons inside the row so they look like real buttons */
.mvto-actionlist .mvto-actionrow .mvto-linkbtn{
  flex:1 1 160px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  color:#111;
  padding:8px 10px;
  font-weight:900;
  font-size:12px;
  cursor:pointer;
  text-align:center;
}
.mvto-actionlist .mvto-actionrow .mvto-linkbtn:hover{ background:#f4f4f4; }
.mvto-actionlist .mvto-actionrow .mvto-linkbtn:active{ transform: translateY(1px); }
.mvto-underpreviews-right .mvto-profiles{ margin-top: 8px; }
.mvto-preview-card{
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  padding: 10px;
}
.mvto-preview-box{
  position: relative;
  background: #f3f3f3;
  min-height: 140px;
  overflow: hidden;
  aspect-ratio: var(--mvto-preview-aspect, 1 / 1);
}
.mvto-preview-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:none;
}
.mvto-preview-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  opacity: 0.7;
  padding: 8px;
  text-align:center;
}


.mvto-step{ margin-bottom: 14px; }
.mvto-label{ font-weight: 800; margin-bottom: 6px; }
.mvto-hint{ font-size: 12px; opacity: 0.75; margin-top: 6px; }

/* Popup step cards (Moopsi style) */
.mvto-stepcard{
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  padding: 12px;
  margin: 0 0 12px;
}
.mvto-stephead{
  display:flex;
  align-items:flex-start;
  gap: 10px;
}
.mvto-stepbadge{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,0.18);
  background:#f6f6f6;
  font-weight: 950;
  font-size: 12px;
  line-height: 1;
}
.mvto-steptitle{
  font-size: 13px;
  font-weight: 950;
}
.mvto-stepsub{
  font-size: 12px;
  opacity: 0.78;
  margin-top: 2px;
  line-height: 1.25;
}
.mvto-stepbody{ margin-top: 10px; }

.mvto-upload{ display:block; }
.mvto-file{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.mvto-upload-drop{
  display:flex;
  flex-direction:column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px dashed rgba(0,0,0,0.28);
  background:#fafafa;
  cursor:pointer;
  user-select:none;
}
.mvto-upload-strong{ font-weight: 950; }
.mvto-upload-muted{ font-size: 11px; opacity: 0.72; }

.mvto-inline-actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.mvto-linkbtn{
  appearance:none;
  border:0;
  background:transparent;
  padding:0;
  font-size: 12px;
  font-weight: 950;
  text-decoration: underline;
  cursor:pointer;
  opacity: 0.85;
}
.mvto-linkbtn:hover{ opacity: 1; }
.mvto-micro{
  font-size: 12px;
  opacity: 0.76;
  margin-top: 8px;
  line-height: 1.25;
}
.mvto-variation-note{ margin-top: 10px; }
.mvto-chip{
  display:inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  font-size: 12px;
  background: #fafafa;
}

.mvto-consent{ display:flex; gap: 10px; align-items:flex-start; font-size: 13px; }

.mvto-actions{ display:flex; gap: 10px; margin-top: 10px; }
.mvto-actions .mvto-btn{ width: auto; }

.mvto-progress{
  margin-top: 10px;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 0;
  overflow: hidden;
}
.mvto-progress-bar{
  height: 100%;
  width: 0%;
  background: rgba(0,0,0,0.85);
  transition: width 200ms ease;
}

.mvto-progress-meta{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.82;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mvto-progress-pct{ font-weight: 900; }
.mvto-progress-elapsed{ font-weight: 700; }
.mvto-progress-eta{ font-weight: 700; }

.mvto-status{
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fafafa;
  border-radius: 0;
  min-height: 18px;
}
.mvto-status.ok{ border-color: rgba(0,0,0,0.55); }
.mvto-status.error{ border-color: rgba(200,0,0,0.35); }

.mvto-result{ margin-top: 14px; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 14px; }

.mvto-result-tabs{
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.mvto-result-tabs .mvto-seg{
  padding: 6px 10px;
  font-size: 12px;
}

.mvto-view-toggle{ font-size: 12px; margin-bottom: 10px; opacity: 0.85; }
.mvto-link{ border:0; background:transparent; padding:0; margin:0; text-decoration: underline; cursor:pointer; font-weight: 700; }
.mvto-dot{ margin: 0 8px; }

.mvto-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mvto-mini{ font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.mvto-result img{ width:100%; height:auto; display:block; border-radius: 0; background: #f3f3f3; }
.mvto-split img{
  width:100%;
  aspect-ratio: var(--mvto-preview-aspect, 3 / 4);
  height:auto;
  object-fit: cover;
  background:#f3f3f3;
  display:block;
}


/* Quick Peek (alternative to slider compare) */
.mvto-compare-wrap{ margin-bottom: 12px; }
.mvto-compare-toolbar{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 10px;
}
.mvto-peek-btn{ width:auto; }
.mvto-peek-note{ opacity:0.75; }


.mvto-flip-group{ display:flex; gap: 8px; align-items:center; flex-wrap:wrap; }
.mvto-flip-btn{ width:auto; padding: 8px 10px; font-weight: 900; }
#mvto-flip-auto[aria-pressed="true"]{ border-color: rgba(0,0,0,0.60); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85); }
.mvto-compare{
  position: relative;
  width: 100%;
  background:#f3f3f3;
  border: 1px solid rgba(0,0,0,0.10);
  overflow:hidden;
  aspect-ratio: var(--mvto-preview-aspect, 3 / 4);
}
.mvto-compare-base,
.mvto-compare-img{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;
  background:#f3f3f3;
}
.mvto-compare-top{
  position:absolute;
  inset:0;
  overflow:hidden;
  width:100% !important;
}
.mvto-compare-overlay{
  opacity: 0;
  transition: opacity 180ms ease;
}
.mvto-compare.is-before .mvto-compare-overlay{
  opacity: 1;
}


.mvto-row{ display:flex; gap:10px; align-items:center; flex-wrap: wrap; }
.mvto-select{ flex: 1 1 220px; width:100%; border-radius:0; padding: 8px 10px; border:1px solid rgba(0,0,0,0.16); background:#fff; }
.mvto-mini-btn{ width:auto; padding: 8px 10px; font-weight: 900; }

.mvto-accordion{ border: 1px solid rgba(0,0,0,0.10); background:#fff; margin-bottom: 14px; }
.mvto-accordion-summary{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding: 10px 12px; cursor:pointer; border-bottom: 1px solid rgba(0,0,0,0.08); list-style:none; }
.mvto-accordion-summary::-webkit-details-marker{ display:none; }
.mvto-acc-title{ font-weight: 900; font-size: 13px; }
.mvto-acc-sub{ font-size: 12px; opacity: 0.75; }
.mvto-acc-left{ display:flex; flex-direction:column; gap:2px; }
.mvto-acc-right{ display:flex; align-items:center; gap:8px; font-size:12px; opacity:0.75; font-weight:800; white-space:nowrap; }
.mvto-acc-toggle{ display:inline-flex; }
.mvto-accordion[open] .mvto-acc-expand{ display:none; }
.mvto-accordion:not([open]) .mvto-acc-collapse{ display:none; }
.mvto-acc-chev{ display:inline-block; transform: rotate(0deg); transition: transform 160ms ease; }
.mvto-accordion[open] .mvto-acc-chev{ transform: rotate(180deg); }
.mvto-accordion-body{ padding: 12px; }

body.mvto-lock{ overflow:hidden; }

/* Account page */
.mvto-account .mvto-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.mvto-account .mvto-card{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 0;
  overflow: hidden;
  background: #fff;
}
.mvto-account .mvto-card-head{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mvto-account .mvto-product{ font-weight:800; text-decoration:none; }
.mvto-account .mvto-card-body{ padding: 12px; }
.mvto-account .mvto-pair{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mvto-account .mvto-pair img{ width:100%; height:auto; background:#f3f3f3; border-radius:0; }
.mvto-account .mvto-meta{ margin-top: 10px; font-size: 12px; opacity: 0.7; }

@media (max-width: 720px){
  .mvto-split{ grid-template-columns: 1fr; }
  .mvto-previews{ grid-template-columns: 1fr; }
  .mvto-underpreviews{ grid-template-columns: 1fr; }
  .mvto-actions{ flex-direction: column; }
  .mvto-actions .mvto-btn{ width: 100%; }
}


/* Variation thumbnails */
#mvto-varthumbs-wrap{ margin-top: 10px; }
.mvto-varthumbs{ display:flex; flex-wrap:wrap; gap: 8px; padding: 6px 0; }
.mvto-varthumb{
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mvto-varthumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85);
}

/* Account Lookbook revamp */
.mvto-looks-toolbar{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 12px 0 14px;
}
.mvto-check{ display:flex; gap:8px; align-items:center; }
.mvto-muted{ font-size:12px; opacity:0.7; }

.mvto-account .mvto-lookgrid{
  display:grid;
  grid-template-columns: repeat(var(--mvto-look-cols, 3), minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 900px){
  .mvto-account .mvto-lookgrid{ grid-template-columns: repeat(var(--mvto-look-cols-tablet, 2), minmax(0, 1fr)); }
}
@media (max-width: 540px){
  .mvto-account .mvto-lookgrid{ grid-template-columns: repeat(var(--mvto-look-cols-mobile, 2), minmax(0, 1fr)); }
}
.mvto-account .mvto-lookgrid.mvto-cols-auto{
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.mvto-account .mvto-lookgrid.is-list{
  display:flex;
  flex-direction: column;
}
.mvto-account .mvto-lookgrid.is-list .mvto-look{
  display:flex;
  gap: 12px;
  align-items: stretch;
}
.mvto-account .mvto-lookgrid.is-list .mvto-look-thumb{ width: 160px; flex: 0 0 160px; }
.mvto-account .mvto-lookgrid.is-list .mvto-look-meta{ flex: 1 1 auto; }

.mvto-account .mvto-look{
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  border-radius:0;
  padding: 8px;
  position:relative;
}
.mvto-look-check{
  position:absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display:flex;
  align-items:center;
}
.mvto-look-check input{ width:16px; height:16px; margin:0; }
.mvto-look-thumb{
  border:0;
  background:transparent;
  padding:0;
  width:100%;
  cursor:pointer;
}
.mvto-look-thumb img{
  width:100%;
  aspect-ratio: 3 / 4;
  height:auto;
  object-fit: cover;
  background: transparent;
  border-radius:0;
  display:block;
}

/* Account page: aggressively remove any theme-imposed grey image background */
.mvto-account .mvto-look-thumb,
.mvto-account .mvto-look-thumb img,
.mvto-account .mvto-lightbox-panel,
.mvto-account #mvto-lightbox-img{
  background-color: transparent !important;
  background: transparent !important;
}

/* Ensure checkbox is always clickable above the thumb */
.mvto-account .mvto-look-thumb{ position: relative; z-index: 1; }
.mvto-account .mvto-look-check{ z-index: 5; pointer-events: auto; }
.mvto-look-meta{
  margin-top: 8px;
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.mvto-look-product{
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  line-height:1.2;
}
.mvto-look-date{
  font-size:11px;
  opacity:0.7;
}
.mvto-look-del{
  position:absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  border-radius:0;
  cursor:pointer;
  line-height: 22px;
  font-size: 18px;
  padding:0;
}



/* --- Moopsi polish: shimmer loading surfaces --- */
@keyframes mvtoShimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.mvto-modal.mvto-busy .mvto-preview-box::after,
.mvto-modal.mvto-busy .mvto-progress::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-120%);
  animation: mvtoShimmer var(--mvto-popup-shimmer-ms,1100ms) ease-in-out infinite;
  opacity: 0.9;
}
.mvto-modal .mvto-progress{ position: relative; overflow:hidden; }
.mvto-modal.mvto-busy .mvto-progress::after{ opacity: 0.35; }
.mvto-modal.mvto-busy-uploading .mvto-preview-box--upload::after{ opacity: 0.85; }
.mvto-modal.mvto-busy-processing .mvto-preview-box--item::after{ opacity: 0.75; }
.mvto-modal.mvto-busy-queued .mvto-preview-box--item::after{ opacity: 0.65; }
.mvto-modal.mvto-busy-finalizing .mvto-preview-box--item::after{ opacity: 0.55; }

/* Lightbox for AI images */
.mvto-lightbox{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 999999;
}
.mvto-lightbox.is-open{ display:block; }
.mvto-lightbox-backdrop{
  position:absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.mvto-lightbox-panel{
  position:relative;
  margin: 4vh auto;
  max-width: 920px;
  width: calc(100% - 24px);
  background:#fff;
  border-radius:0;
  padding: 12px;
  z-index:2;
}
.mvto-lightbox-panel img{
  width:100%;
  height:auto;
  display:block;
  background: transparent;
}
.mvto-lightbox-x{
  position:absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,0,0,0.12);
  background:#fff;
  border-radius:0;
  cursor:pointer;
  font-size: 20px;
  line-height: 28px;
  padding:0;
}
/* Checkbox ticks: force black */
.mvto-modal input[type="checkbox"],
.mvto-account input[type="checkbox"]{
  accent-color: #000;
}


/* Hide dropdown variation selector (thumbs-only UI) */
.mvto-variation-row{ display:none !important; }


/* Upload actions + inline options */
.mvto-upload-actions{ margin-top: 10px; }
.mvto-check-inline{ display:inline-flex; align-items:center; gap:8px; font-size: 12px; font-weight: 800; opacity:0.85; }
.mvto-check-inline input{ width:16px; height:16px; }

.mvto-input{
  flex: 1 1 220px;
  width:100%;
  border-radius:0;
  padding: 8px 10px;
  border:1px solid rgba(0,0,0,0.16);
  background:#fff;
}

.mvto-privacy-hint{ margin-top: 6px; }

/* Chip buttons (fit intent, etc.) */
.mvto-chiprow{ display:flex; flex-wrap:wrap; gap: 8px; margin: 8px 0 10px; }
.mvto-chipbtn{
  appearance:none;
  border:1px solid rgba(0,0,0,0.16);
  background:#fff;
  border-radius:0;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor:pointer;
}
.mvto-chipbtn.is-active{
  border-color: rgba(0,0,0,0.65);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85);
}
.mvto-subhead{ margin-top: 6px; opacity:0.8; }

/* Privacy editor */
.mvto-editor{
  margin-top: 10px;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  padding: 10px;
}
#mvto-editor-canvas{
  width:100%;
  height:auto;
  display:block;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  touch-action: none;
}
.mvto-editor-controls{ margin-top: 10px; }
#mvto-brush{ vertical-align: middle; }

/* Crop guide (simple dashed outline) */
#mvto-modal.mvto-crop-guide-on #mvto-selfie-thumb{
  outline: 2px dashed rgba(0,0,0,0.65);
  outline-offset: -10px;
}

/* Profiles grid */
.mvto-profiles{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 6px 0 0;
}
.mvto-profile{
  display:inline-flex;
  flex-direction:column;
  gap:6px;
  width: 88px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  border-radius:0;
  padding:6px;
  cursor:pointer;
}
.mvto-profile img{
  width:100%;
  height:82px;
  object-fit: cover;
  display:block;
  background:#fff;
}
.mvto-profile .mvto-profile-name{
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  opacity:0.9;
}
.mvto-profile.is-selected{
  border-color: rgba(0,0,0,0.65);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85);
}

/* After-result actions */
.mvto-after-actions{ margin-top: 10px; }


/* Moopsi-grade popup: empty state + micro-animations + sticky actions */
.mvto-preview-card--selfie .mvto-preview-box{ background:#f7f7f7; border:1px solid rgba(0,0,0,0.10); }
.mvto-preview-box--upload{ display:block; }
.mvto-preview-click{ display:block; width:100%; height:100%; cursor:pointer; position:relative; }
.mvto-preview-click:focus{ outline:2px solid rgba(0,0,0,0.6); outline-offset:-2px; }
.mvto-emptyupload{ display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px; padding:14px; text-align:center; }
.mvto-empty-title{ font-weight: 900; font-size: 13px; letter-spacing: .2px; }
.mvto-empty-sub{ font-size: 12px; color: rgba(0,0,0,0.68); line-height: 1.35; }
.mvto-empty-cta{
  margin-top: 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border:1px solid rgba(0,0,0,0.16);
  background:#121212;
  color:#fff;
  font-weight: 900;
  font-size: 12px;
  text-transform: none;
}
.mvto-preview-click:hover .mvto-empty-cta{ filter: brightness(0.95); }
.mvto-preview-click:hover{ background: rgba(0,0,0,0.02); }

.mvto-selfie-tools{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
  align-items:center;
}
.mvto-linkbtn{
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  color:#121212;
  padding:6px 10px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.mvto-linkbtn:hover{ background:#f4f4f4; }
.mvto-linkbtn:active{ transform: translateY(1px); }

.mvto-checkline--compact{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  font-size:12px;
  font-weight:900;
}

.mvto-note--compact{ margin-top: 10px; font-size: 12px; color: rgba(0,0,0,0.68); }

.mvto-profiles-block{ margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.10); }
.mvto-mini--sub{ font-size: 12px; font-weight: 900; margin-bottom: 4px; }
.mvto-muted{ font-size: 12px; color: rgba(0,0,0,0.68); line-height:1.35; }
.mvto-muted--tiny{ font-size: 11px; margin-top: 6px; }

.mvto-profiles{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.mvto-profile{
  width: 88px;
  border:1px solid rgba(0,0,0,0.12);
  background:#fff;
  padding:8px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.mvto-profile img{ width:100%; height:72px; object-fit:cover; display:block; }
.mvto-profile-name{ margin-top:6px; font-size:11px; font-weight:900; color:#121212; }
.mvto-profile:hover{ background:#f4f4f4; }
.mvto-profile.is-selected{ border-color:#121212; }

.mvto-actionsbar{
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.10);
  padding: 12px 0 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.mvto-actionsbar #mvto-genview-toggle{ margin-right: 0; }
.mvto-actionsbar #mvto-mode-toggle{ margin-right: auto; }
.mvto-actionsbar .mvto-btn{
  padding: 9px 12px;
  font-size: 13px;
}
.mvto-actionsbar .mvto-secondary{
  background:#fff;
  color:#121212;
}
.mvto-actionsbar .mvto-btn:active{ transform: translateY(1px); }
.mvto-btn{ transition: transform .12s ease, filter .12s ease; }
.mvto-btn:hover{ filter: brightness(0.96); }



/* --- Moopsi polish: tap-to-zoom preview (mobile-friendly) --- */
img.mvto-zoomable{
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mvto-zoom{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 999999;
}
.mvto-zoom.is-open{ display:block; }
.mvto-zoom-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.78);
}
.mvto-zoom-panel{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
}
.mvto-zoom-x{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.25);
  color:#fff;
  border-radius:0;
  cursor:pointer;
  font-size: 22px;
  line-height: 34px;
  padding:0;
}
.mvto-zoom-stage{
  width: 100%;
  height: 100%;
  max-width: 980px;
  max-height: calc(100vh - 90px);
  max-height: calc(100dvh - 90px);
  max-height: calc(100svh - 90px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  touch-action: none;
}


/* Zoom viewer toolbar layout (theme-proof) */
.mvto-zoom-panel{
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.mvto-zoom-stage{
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  max-height: calc(100svh - 170px);
}

/* --- MVTO Zoom Toolbar Placement --- */
.mvto-zoom--pinned .mvto-zoom-panel{display:flex;flex-direction:column;}
.mvto-zoom--pinned .mvto-zoom-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;}
.mvto-zoom--pinned .mvto-zoom-toolbar{margin-top:auto;position:sticky;bottom:0;left:0;right:0;background:#fff;padding:10px 10px 12px;border-top:1px solid rgba(0,0,0,.08);}

.mvto-zoom-toolbar{
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,.15);
  box-sizing: border-box;
}

/* Zoom toast (inline feedback inside zoom overlay) */
.mvto-zoom-toast{
  width: 100%;
  max-width: 980px;
  display: none;
  padding: 10px 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,.12);
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.35;
  color: #343434;
}
.mvto-zoom-toast.is-ok{ color: #0b6b2b; }
.mvto-zoom-toast.is-error{ color: #8a1a1a; }
.mvto-zoom-toast.is-info{ color: #343434; }

/* Zoom toolbar: consistent button sizing (prevents jitter across themes) */
.mvto-zoom-btn{
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  color: #111;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 32px;
  cursor: pointer;
  user-select: none;
}
.mvto-zoom-btn:active{ transform: translateY(1px); }
.mvto-zoom-btn:focus-visible,
.mvto-zoom-x:focus-visible{
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}
.mvto-zoom-toolbar .mvto-zoom-rot,
.mvto-zoom-toolbar .mvto-zoom-rot2{
  width: 34px;
  padding: 0;
  font-size: 16px;
  line-height: 32px;
}
.mvto-zoom-toolbar .mvto-zoom-fs{ padding: 0 10px; }

/* Mobile: keep left tools intact; allow right tools to wrap cleanly */
@media (max-width: 520px){
  .mvto-zoom-toolbar{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px;
  }
  .mvto-zoom-tools{ width: 100%; }
  .mvto-zoom-tools-right{
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.mvto-zoom-tools{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.mvto-zoom-tools-left{ justify-content: flex-start; }
.mvto-zoom-tools-right{ justify-content: flex-end; }
.mvto-zoom-toolbar .mvto-zoom-btn,
.mvto-zoom-toolbar :is(.mvto-zoom-rot,.mvto-zoom-fs,.mvto-zoom-dl,.mvto-zoom-share,.mvto-zoom-help){
  position: static !important;
  right: auto !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  white-space: nowrap;
  box-sizing: border-box;
}

.mvto-zoom-helpbox{
  position: static !important;
  align-self: flex-end;
  margin-top: 6px;
}
.mvto-zoom-img{
  max-width: 100%;
  max-height: 100%;
  transform: translate(var(--mvto-zx, 0px), var(--mvto-zy, 0px)) scale(var(--mvto-zs, 1)) rotate(var(--mvto-zr, 0deg));
  transform-origin: center;
  transition: transform .12s ease-out;
  will-change: transform;
}
.mvto-zoom.is-gesture .mvto-zoom-img{ transition:none; }
.mvto-zoom-hint{
  position:static;
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 10px;
  border-radius:0;
}

/* -----------------------------------------------------------------
   Moopsi micro sizing pass (popup only)
   Makes popup text + buttons more minimal without affecting
   the product-page open button.
------------------------------------------------------------------ */

.mvto-modal .mvto-panel{
  font-size: var(--mvto-popup-font-size, 12px);
  color: var(--mvto-popup-text-color, #111);
}

/* --- MVTO: ensure Woo buttons respect Popup Designer sizing --- */
.mvto-modal{
  --btn-font-size: var(--mvto-popup-btn-font-size, 12px);
}
.mvto-modal :is(.btn,.button,button,[type=submit],[type=button]){
  font-size: var(--mvto-popup-btn-font-size, 12px) !important;
}

/* --- MVTO: Variation step header two-column help text --- */
#mvto-step-variation .mvto-steptext.mvto-steptext-2col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
#mvto-step-variation .mvto-stepcol-left{ min-width:0; width:100%; padding: 6px 8px; box-sizing: border-box; }
#mvto-step-variation .mvto-stepcol-right{
  padding: 6px 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  text-align: right;
}
#mvto-step-variation .mvto-stepcol-right .mvto-varthumbs-slot{ display:block; width:100%; }
#mvto-step-variation .mvto-stepcol-right #mvto-varthumbs-wrap{ margin-top: 0; }
#mvto-step-variation .mvto-stepcol-right .mvto-varthumbs{
  width: 100%;
  max-width: 100%;
  /* Natural wrap: as many thumbs per row as fit, wrap only on overflow */
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
}
#mvto-step-variation .mvto-stepcol-right .mvto-varthumb{
  width: 56px;
  height: 56px;
}
/* Mobile: stack columns + let thumbs breathe */
@media (max-width: 560px){
  #mvto-step-variation .mvto-steptext.mvto-steptext-2col{ grid-template-columns: 1fr;}
  #mvto-step-variation .mvto-stepcol-right{
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    text-align: left;
  }
  #mvto-step-variation .mvto-stepcol-right .mvto-varthumbs{ justify-content:start; }
}
#mvto-step-variation .mvto-stepcol-right .mvto-micro{ margin:0; }
#mvto-step-variation .mvto-stepcol-right .mvto-micro + .mvto-micro{ margin-top:4px; opacity:0.85; }
@media (max-width: 640px){
  #mvto-step-variation .mvto-steptext.mvto-steptext-2col{ flex-direction:column; }
  #mvto-step-variation .mvto-stepcol-right{ text-align:left; max-width:none; }
}
/* Hide duplicated helper lines (moved into header) */
#mvto-step-variation .mvto-varthumbs-title,
#mvto-step-variation .mvto-variation-note{ display:none !important; }

.mvto-modal .mvto-head{ padding: 12px 14px; }
.mvto-modal .mvto-title{ font-size: 15px; }
.mvto-modal .mvto-x{ font-size: 20px; padding: 4px 8px; }
.mvto-modal .mvto-body{ padding: 14px; }
.mvto-modal .mvto-greeting{ font-size: 12px; margin-bottom: 10px; }

.mvto-modal .mvto-previews{ gap: 10px; margin-bottom: 12px; }
.mvto-modal .mvto-underpreviews{ gap: 10px; margin-bottom: 12px; }

.mvto-modal .mvto-preview-card{ padding: 8px; }
.mvto-modal .mvto-underpreviews-col{ padding: 8px; }

.mvto-modal .mvto-stepcard{ padding: 10px; margin-bottom: 10px; }
.mvto-modal .mvto-stepbadge{ width: 20px; height: 20px; flex: 0 0 20px; font-size: 11px; }
.mvto-modal .mvto-steptitle{ font-size: 12.5px; }
.mvto-modal .mvto-stepsub{ font-size: 11px; line-height: 1.25; }

.mvto-modal .mvto-upload-drop{ padding: 9px 10px; }
.mvto-modal .mvto-upload-muted{ font-size: 10.5px; }

.mvto-modal .mvto-btn{
  padding: 6px 10px;
  font-size: var(--mvto-popup-btn-font-size, 12px);
  font-weight: 850;
  background: var(--mvto-popup-primary-bg, #121212);
  color: var(--mvto-popup-primary-text, #ffffff);
  border: var(--mvto-popup-btn-border-width, 1px) solid var(--mvto-popup-primary-border, rgba(0,0,0,0.16));
}
.mvto-modal .mvto-btn.mvto-secondary{
  background: var(--mvto-popup-secondary-bg, #ffffff);
  color: var(--mvto-popup-secondary-text, #111111);
  border-color: var(--mvto-popup-secondary-border, rgba(0,0,0,0.16));
}
.mvto-modal .mvto-flip-btn,
.mvto-modal .mvto-mini-btn{ padding: 6px 10px; font-size: var(--mvto-popup-btn-font-size, 12px); }

.mvto-modal .mvto-chip{ padding: 5px 8px; font-size: 11px; }
.mvto-modal .mvto-linkbtn{ font-size: 11.5px; color: var(--mvto-popup-link-color, #111); }
.mvto-modal .mvto-micro{ font-size: 11.5px; }

.mvto-modal .mvto-accordion-summary{ padding: 8px 10px; }
.mvto-modal .mvto-acc-title{ font-size: 12.5px; }
.mvto-modal .mvto-acc-sub{ font-size: 11px; }
.mvto-modal .mvto-acc-right{ font-size: 11px; }
.mvto-modal .mvto-accordion-body{ padding: 10px; }

.mvto-modal .mvto-status{ padding: 8px 10px; font-size: 12px; margin-top: 10px; }
.mvto-modal .mvto-progress-meta{ font-size: 11.5px; }

.mvto-modal .mvto-varthumb{ width: 50px; height: 50px; }



/* --- MVTO Pro upgrades (v1.7.0) --- */
.mvto-chip{
  border:1px solid #d6d6d6;
  background:#f2f2f2;
  color:#111;
  padding:6px 10px;
  font-size:12px;
  line-height:1;
  border-radius:0;
  cursor:pointer;
}
.mvto-chip:active{ transform:translateY(1px); }

.mvto-privacy-pop{ position:relative; }
.mvto-privacy-pop-inner{
  background:#fff;
  border:1px solid #e5e5e5;
  padding:10px 12px;
  border-radius:0;
  margin:0 0 10px 0;
}

.mvto-minirow{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin: 6px 0 0px;
}
.mvto-minirow--below{ margin:10px 0 0; }
.mvto-viewtoggle{ display:inline-flex; gap:6px; }
.mvto-segwrap{ display:inline-flex; gap:6px; }
.mvto-seg{
  border:1px solid #d6d6d6;
  background:#fff;
  color:#111;
  padding:6px 8px;
  font-size:12px;
  line-height:1;
  border-radius:0;
  cursor:pointer;
}
.mvto-seg.is-active{ background:#111; color:#fff; border-color:#111; }

.mvto-quality{ display:flex; gap:6px; align-items:center; font-size:12px; color:#444; }
.mvto-quality-label{ opacity:.85; }
.mvto-q{ display:inline-block; padding:4px 7px; border:1px solid #ddd; border-radius:0; font-size:11px; }
.mvto-q-great{ border-color:#111; }
.mvto-q-ok{ border-color:#999; }
.mvto-q-poor{ border-color:#bbb; opacity:.85; }

.mvto-mode-toggle{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-right:auto; }
.mvto-actionsbar{
  position:sticky;
  bottom:0;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.2) blur(6px);
  border-top:1px solid #eee;
  padding-top:10px;
  z-index:10;
  flex-wrap: wrap;
  align-items: center;
}

.mvto-activity{ margin-top:10px; }
.mvto-activity-list{ list-style:none; padding:0; margin:6px 0 0; }
.mvto-activity-list li{ font-size:12px; color:#444; padding:6px 0; border-bottom:1px solid #f0f0f0; }



/* Popup button hover/active (designer vars) */
.mvto-modal .mvto-btn:hover{
  opacity: 1;
  background: var(--mvto-popup-primary-hover-bg, var(--mvto-popup-primary-bg, #121212));
  color: var(--mvto-popup-primary-hover-text, var(--mvto-popup-primary-text, #ffffff));
  border-color: var(--mvto-popup-primary-hover-border, var(--mvto-popup-primary-border, #121212));
}
.mvto-modal .mvto-btn:active{
  opacity: 1;
  background: var(--mvto-popup-primary-active-bg, var(--mvto-popup-primary-hover-bg, var(--mvto-popup-primary-bg, #121212)));
  color: var(--mvto-popup-primary-active-text, var(--mvto-popup-primary-hover-text, var(--mvto-popup-primary-text, #ffffff)));
  border-color: var(--mvto-popup-primary-active-border, var(--mvto-popup-primary-hover-border, var(--mvto-popup-primary-border, #121212)));
}
.mvto-modal .mvto-btn.mvto-secondary:hover{
  opacity: 1;
  background: var(--mvto-popup-secondary-hover-bg, var(--mvto-popup-secondary-bg, #ffffff));
  color: var(--mvto-popup-secondary-hover-text, var(--mvto-popup-secondary-text, #111111));
  border-color: var(--mvto-popup-secondary-hover-border, var(--mvto-popup-secondary-border, rgba(0,0,0,0.16)));
}
.mvto-modal .mvto-btn.mvto-secondary:active{
  opacity: 1;
  background: var(--mvto-popup-secondary-active-bg, var(--mvto-popup-secondary-hover-bg, var(--mvto-popup-secondary-bg, #ffffff)));
  color: var(--mvto-popup-secondary-active-text, var(--mvto-popup-secondary-hover-text, var(--mvto-popup-secondary-text, #111111)));
  border-color: var(--mvto-popup-secondary-active-border, var(--mvto-popup-secondary-hover-border, var(--mvto-popup-secondary-border, rgba(0,0,0,0.16))));
}


/* Mobile bottom-sheet layout (optional) */
@media (max-width: 720px){
  #mvto-modal.mvto-mobile-sheet .mvto-panel{
    width: 100%;
    max-width: 100%;
    margin: 0;
    max-height: 88vh;
    height: auto;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid var(--mvto-theme-border, rgba(0,0,0,0.14));
    box-shadow: 0 -18px 50px rgba(0,0,0,0.25);
    transform: translateY(18px);
    border-radius: 0;
  }
  #mvto-modal.mvto-mobile-sheet.is-open .mvto-panel{
    transform: translateY(0);
  }
  #mvto-modal.mvto-mobile-sheet .mvto-backdrop{
    align-items: flex-end;
  }
}


/* Dark/Light theme (auto supports prefers-color-scheme) */
#mvto-modal{
  --mvto-theme-surface:#ffffff;
  --mvto-theme-surface2:#f5f5f5;
  --mvto-theme-text:#111111;
  --mvto-theme-muted:#5a5a5a;
  --mvto-theme-border: rgba(0,0,0,0.14);
  --mvto-theme-backdrop: 0.55;
}
#mvto-modal[data-theme="dark"]{
  --mvto-theme-surface:#101010;
  --mvto-theme-surface2:#171717;
  --mvto-theme-text:#f2f2f2;
  --mvto-theme-muted:#bdbdbd;
  --mvto-theme-border: rgba(255,255,255,0.14);
  --mvto-theme-backdrop: 0.68;
}
@media (prefers-color-scheme: dark){
  #mvto-modal[data-theme="auto"]{
    --mvto-theme-surface:#101010;
    --mvto-theme-surface2:#171717;
    --mvto-theme-text:#f2f2f2;
    --mvto-theme-muted:#bdbdbd;
    --mvto-theme-border: rgba(255,255,255,0.14);
    --mvto-theme-backdrop: 0.68;
  }
}
/* Apply theme */
#mvto-modal .mvto-backdrop{ background: rgba(0,0,0,var(--mvto-theme-backdrop,0.55)) !important; }
#mvto-modal .mvto-panel{ background: var(--mvto-theme-surface) !important; color: var(--mvto-theme-text) !important; border-color: var(--mvto-theme-border) !important; }
#mvto-modal .mvto-head{ background: var(--mvto-theme-surface2) !important; border-color: var(--mvto-theme-border) !important; }
#mvto-modal .mvto-body{ background: var(--mvto-theme-surface) !important; }
#mvto-modal .mvto-preview-box,
#mvto-modal .mvto-underpreviews,
#mvto-modal .mvto-step{ border-color: var(--mvto-theme-border) !important; }
#mvto-modal .mvto-preview-box{ background: var(--mvto-theme-surface2) !important; }
#mvto-modal .mvto-muted,
#mvto-modal .mvto-micro,
#mvto-modal .mvto-upload-muted{ color: var(--mvto-theme-muted) !important; }
#mvto-modal .mvto-linkbtn{ color: var(--mvto-popup-link-color, var(--mvto-theme-text)) !important; }



/* ------------------------------
   Phase 6: Guided selfie checks + compare upgrades
-------------------------------- */
.mvto-upload-warn{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
}
.mvto-upload-warn.is-warn{ background: #fff7e0; }
.mvto-upload-warn.is-ok{ background: #f4fff4; }

.mvto-compare.mvto-compare--slider .mvto-compare-overlay{
  opacity: 1 !important;
  transition: none !important;
}
.mvto-compare.mvto-compare--slider #mvto-compare-top{
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
}
.mvto-compare.mvto-compare--slider #mvto-compare-top::after{
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(0,0,0,0.35);
}
#mvto-compare-range{
  width: min(520px, 100%);
  max-width: 100%;
}

.mvto-compare-history{
  margin-bottom: 10px;
}
.mvto-recent-title{
  margin-bottom: 6px;
}
.mvto-recent-row{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mvto-recent-item{
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  padding: 0;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  cursor: pointer;
}
.mvto-recent-item.is-active{
  outline: 2px solid rgba(0,0,0,0.55);
  outline-offset: 1px;
}
.mvto-recent-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   Phase 7: Multi-compare + Outfit sets (minimalistic UI)
   ------------------------------------------------------------ */
.mvto-recent-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 4px 0 6px;
}
.mvto-recent-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.mvto-recent-hint{
  margin-top: 6px;
}
.mvto-recent-item{
  position:relative;
}
.mvto-recent-check{
  position:absolute;
  top:4px;
  right:4px;
  width:18px;
  height:18px;
  line-height:18px;
  text-align:center;
  font-size:12px;
  background: rgba(17,17,17,0.9);
  color: #fff;
  display:none;
}
.mvto-recent-item.is-selected{
  outline: 2px solid rgba(0,0,0,0.6);
  outline-offset: 1px;
}
.mvto-recent-item.is-selected .mvto-recent-check{
  display:block;
}

.mvto-overlay{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.98);
  z-index: 50;
  display:flex;
}
.mvto-overlay-inner{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
}
.mvto-overlay-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.mvto-overlay-title{
  font-weight:600;
  font-size: 13px;
}
.mvto-overlay-body{
  padding: 14px;
  overflow:auto;
}

.mvto-multi-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px){
  .mvto-multi-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mvto-multi-card{
  border: 1px solid rgba(0,0,0,0.14);
  background:#fff;
  padding:0;
  cursor:pointer;
}
.mvto-multi-card img{
  width:100%;
  height: 180px;
  object-fit:cover;
  display:block;
}
.mvto-multi-meta{
  padding: 8px 10px;
  font-size: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.mvto-sets{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.mvto-set{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border: 1px solid rgba(0,0,0,0.10);
  padding: 10px 12px;
  background:#fff;
}
.mvto-set-count{
  opacity:0.75;
}

.mvto-varwarn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(0,0,0,0.03);
  margin-top: 8px;
}
.mvto-varwarn-text{
  font-size:12px;
  opacity:0.9;
}


/* Phase 8: Fit notes + best-size memory (minimal) */
.mvto-fitpanel{
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  padding: 10px;
  margin-top: 12px;
}
.mvto-fitgrid{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-top: 6px;
}
.mvto-fitrow{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  font-size: 12px;
}
.mvto-fitk{ font-weight: 900; opacity:0.85; }
.mvto-fitv{ font-weight: 900; }

.mvto-bestsize{
  border: 1px solid rgba(0,0,0,0.10);
  background:#fafafa;
  padding: 10px;
  margin-top: 10px;
}
.mvto-bestsize .mvto-row{ margin-top: 8px; }
.mvto-bestsize-saved{
  margin-left: 8px;
  font-weight: 900;
  opacity: 0.7;
}


/* Phase 9: Outfit Layering (minimal) */
.mvto-layering{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
}
.mvto-layering-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.mvto-layering-controls{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mvto-chip-row{
  display:flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mvto-chip{
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #111;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor:pointer;
  border-radius: 0;
}
.mvto-chip.is-active{
  background: #f2f2f2;
}
.mvto-layer-search input{
  width: 220px;
  max-width: 100%;
  border: 1px solid #e6e6e6;
  padding: 8px 10px;
  border-radius: 0;
  font-size: 13px;
}
.mvto-layer-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 840px){
  .mvto-layer-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mvto-layer-card{
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 8px;
  text-align:left;
  cursor:pointer;
  display:flex;
  gap: 8px;
  align-items: center;
  border-radius: 0;
}
.mvto-layer-card.is-active{
  border-color: #111;
}
.mvto-layer-thumb{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: #f6f6f6;
  overflow:hidden;
}
.mvto-layer-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.mvto-layer-meta{
  display:flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mvto-layer-title{
  font-size: 12px;
  color: #111;
  line-height: 1.2;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.mvto-layering-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
#mvto-layer-msg{
  margin-top: 8px;
}
#mvto-layer-msg.is-error{
  color: #b00020;
}


/* MVTO polish: Activity feed is opt-in (hidden by default) */
#mvto-modal[data-activity="no"] #mvto-activity{
  display:none !important;
}


/* MVTO polish: consistent loading state + tighter alignment */
.mvto-modal.is-busy .mvto-btn{
  pointer-events: none;
  opacity: 0.85;
}
.mvto-modal.is-busy .mvto-generate{
  opacity: 0.75;
}
.mvto-modal.is-busy .mvto-generate::after{
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  display:inline-block;
  animation: mvto-spin 0.8s linear infinite;
}
@keyframes mvto-spin{ from{ transform:rotate(0deg);} to{ transform:rotate(360deg);} }

.mvto-previews{ align-items: stretch; }
.mvto-preview-card{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.mvto-preview-box{
  border: 1px solid rgba(0,0,0,0.10);
}
.mvto-minirow--below{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}
.mvto-quality{ white-space: nowrap; }

@media(max-width: 640px){
  .mvto-previews{ grid-template-columns: 1fr; }
}

/* ===========================================================
 * MVTO Frontend Polish Pack v1.9.7
 * Minimal, premium, no shouting (reduces heavy bold)
 * Add-only overrides.
 * =========================================================== */

/* Typography: calm weights */
.mvto-btn,
.mvto-title,
.mvto-label,
.mvto-actionlist .mvto-linkbtn,
.mvto-actionlist .mvto-actionrow .mvto-linkbtn,
.mvto-stepbadge,
.mvto-look-product,
.mvto-check-inline{
  font-weight: 500 !important;
}

/* Buttons: consistent hover without opacity fade (feels more SaaS) */
.mvto-btn:hover{ opacity: 1; background: #343434; }
.mvto-secondary:hover{ background: #f3f3f3; }

/* Focus: visible, clean */
.mvto-btn:focus,
.mvto-x:focus,
.mvto-linkbtn:focus,
.mvto-input:focus,
.mvto-select:focus,
.mvto-textarea:focus{
  outline: 2px solid rgba(0,0,0,0.14);
  outline-offset: 0;
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  .mvto-backdrop,
  .mvto-panel{
    transition: none !important;
  }
  .mvto-modal.mvto-busy .mvto-preview-box::after,
  .mvto-modal.mvto-busy .mvto-progress::after{
    animation: none !important;
  }
}


/* ==========================================================
   MVTO FRONTEND PREMIUM PASS (v1.9.8.1)
   Goals: keep everything minimalist, tighten alignment, and never trap users during busy state.
   SAFE: scoped to MVTO only. Add-only.
   ========================================================== */

/* While busy, keep close button clickable */
#mvto-modal.is-busy [data-mvto-close]{
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Button rhythm */
.mvto-btn{
  border-radius:0 !important;
}

/* Guardrails against theme overlays warping MVTO layout */
#mvto-modal, #mvto-modal *{
  box-sizing: border-box;
}



/* =========================================================
   MVTO 1.9.9 — Front-end Premium Pass (safe CSS overrides)
   Goal: minimal typography (no heavy bold), tighter alignment.
   Safe: CSS-only.
   ========================================================= */

.mvto-btn{ font-weight: 600 !important; }
.mvto-modal .mvto-title{ font-weight: 600 !important; }
.mvto-modal .mvto-label{ font-weight: 600 !important; }
.mvto-modal .mvto-actionlist .mvto-linkbtn{ font-weight: 600 !important; }
.mvto-modal .mvto-actionlist .mvto-actionrow .mvto-linkbtn{ font-weight: 600 !important; }
.mvto-modal .mvto-stepbadge{ font-weight: 650 !important; }
.mvto-modal .mvto-stepcard{ padding: 11px !important; }
.mvto-modal .mvto-head{ padding: 12px 14px !important; }
.mvto-modal .mvto-body{ padding: 14px !important; }

/* Keep preview cards consistent */
.mvto-modal .mvto-preview-card{ padding: 9px !important; }
.mvto-modal .mvto-underpreviews-col{ padding: 9px !important; }
.mvto-modal .mvto-previews{ gap: 10px !important; }
.mvto-modal .mvto-underpreviews{ gap: 10px !important; }

/* Consistent button heights inside modal */
.mvto-modal .mvto-btn{ padding: 8px 12px !important; }

/* Reduced-motion already supported, but ensure hover doesn't "pulse" */
@media (prefers-reduced-motion: reduce){
  .mvto-btn:hover{ opacity: 1 !important; }
}


/* =========================================================
   MVTO 1.9.10 — Final Product Feel Pack (Frontend)
   Goals: no jitter (stable blocks), tighter mobile spacing, extra theme guardrails.
   Safe: CSS-only. Does not change flow.
   ========================================================= */

/* Extra stacking guardrail */
#mvto-modal{ isolation: isolate; }

/* Calm remaining heavy weights inside the modal */
.mvto-modal .mvto-hint,
.mvto-modal .mvto-mini,
.mvto-modal .mvto-link,
.mvto-modal .mvto-linkbtn,
.mvto-modal .mvto-progress-pct,
.mvto-modal .mvto-progress-elapsed,
.mvto-modal .mvto-progress-eta{
  font-weight: 600 !important;
}

/* Stabilize progress + status blocks to avoid layout shifts */
.mvto-modal .mvto-progress{ min-height: 6px; }
.mvto-modal .mvto-progress-meta{ min-height: 16px; align-items: center; }
.mvto-modal .mvto-status{ min-height: 44px; }

/* Keep preview boxes stable even when images swap */
.mvto-modal .mvto-preview-box{ min-height: 160px; }

/* Mobile: tighter spacing while keeping tap targets */
@media (max-width: 640px){
  .mvto-modal .mvto-head{ padding: 11px 12px !important; }
  .mvto-modal .mvto-body{ padding: 12px !important; }
  .mvto-modal .mvto-previews,
  .mvto-modal .mvto-underpreviews{ gap: 8px !important; }
  .mvto-modal .mvto-stepcard{ padding: 10px !important; }
  .mvto-modal .mvto-btn{ padding: 9px 12px !important; }
}



/* === MVTO Safe Frontend Polish (no-jitter, minimalist) === */
#mvto-modal .mvto-status,
#mvto-modal .mvto-progress,
#mvto-modal .mvto-result{
  min-height: 42px;
}
#mvto-modal .mvto-actions button,
#mvto-modal .mvto-actions .button{
  font-weight: 500;
}
#mvto-modal .mvto-preview-grid{
  gap: 10px;
}
@media (max-width: 480px){
  #mvto-modal .mvto-preview-grid{ gap: 8px; }
}


/* ============================================================
 * MVTO Safe Polish Pack #5 (Frontend UI-only)
 * Calm typography + mobile spacing (no JS changes)
 * ============================================================ */

/* Calm boldness */
.mvto-btn{ font-weight: 600 !important; }
.mvto-title{ font-weight: 600 !important; }
.mvto-subtitle, .mvto-label, .mvto-help{ font-weight: 500 !important; }

/* Stabilize status layout (no jitter) */
.mvto-progress-meta{ min-height: 18px; }
.mvto-status{ min-height: 44px; }

/* Mobile polish */
@media (max-width: 520px){
  .mvto-head{ padding: 12px 12px !important; }
  .mvto-body{ padding: 12px !important; }
  .mvto-btn{ width: 100%; justify-content: center; }
  .mvto-actions{ gap: 8px !important; }
  .mvto-grid{ gap: 10px !important; }
}


/* ==========================================================
   MVTO – Popup Polish (add-only) v2.7.3
   - Move greeting into selfie header (legacy greeting hidden)
   - Tighten header padding
   - Make typography scale from mvto_popup_font_size
   - Image quality badge: no border/padding, aligned top-right
   ========================================================== */
.mvto-modal,
.mvto-modal .mvto-panel{
  font-size: var(--mvto-popup-font-size, 12px);
  color: var(--mvto-popup-text-color, #111111);
}

.mvto-modal .mvto-greeting--legacy{
  display:none !important;
}

.mvto-modal .mvto-head{
  padding: 9px 14px !important;
}

.mvto-modal .mvto-title{
  font-size: 1.05em !important;
  line-height: 1.15;
}

.mvto-modal .mvto-mini{
  font-size: .92em !important;
  margin-bottom: 6px !important;
}

.mvto-modal .mvto-empty-title{ font-size: .96em !important; }
.mvto-modal .mvto-empty-sub{ font-size: .90em !important; }
.mvto-modal .mvto-acc-title{ font-size: .96em !important; }
.mvto-modal .mvto-acc-sub{ font-size: .90em !important; }

.mvto-modal .mvto-steptitle{ font-size: .95em !important; }
.mvto-modal .mvto-stepsub{ font-size: .88em !important; }

.mvto-modal .mvto-stepcard{ padding: 9px !important; margin-bottom: 9px !important; }
.mvto-modal .mvto-preview-card{ padding: 7px !important; }

/* Selected Product header: match selfie title spacing so preview boxes align */
.mvto-preview-card--item{ position: relative; }
.mvto-modal .mvto-preview-card--item .mvto-minirow--top{
  display:block;
  /* Same bottom gap as the selfie title */
  margin: 0 0 6px !important;
  padding-right: 140px; /* reserve space for the top-right quality badge */
}

/* Title inside the header row should not add extra bottom space */
.mvto-modal .mvto-preview-card--item .mvto-minirow--top .mvto-mini{ margin-bottom:0 !important; }

/* Quality badge: absolute top-right so it never changes header height */
.mvto-modal .mvto-preview-card--item .mvto-quality--top{
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: nowrap;
}


/* When variation thumbnails are moved into the left column header, tighten spacing */
#mvto-step-variation .mvto-stepcol-left #mvto-varthumbs-wrap,
#mvto-step-variation .mvto-stepcol-right .mvto-varthumbs-wrap{
  margin-top: 0;
}
#mvto-step-variation .mvto-varthumbs-slot{ display:block; width:100%; }
#mvto-step-variation .mvto-stepcol-right .mvto-varthumbs{ justify-content:end; }


.mvto-modal .mvto-quality{
  font-size: .88em !important;
  color: rgba(0,0,0,0.62);
}

.mvto-modal.mvto-theme-dark .mvto-quality{
  color: rgba(255,255,255,0.72);
}

.mvto-modal .mvto-q{
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-weight: 900 !important;
  border-radius: 0 !important;
}

/* Slightly tighter micro text blocks */
.mvto-modal .mvto-micro,
.mvto-modal .mvto-upload-muted{
  font-size: .86em !important;
}

/* Thumbnails moved into the right column */
#mvto-step-variation .mvto-varthumbs-in-right{ margin-top: 0; }

/* Variation step: true 2-column layout (left = text/status, right = thumbnails) */
#mvto-step-variation .mvto-steptext.mvto-steptext-2col{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
}
#mvto-step-variation .mvto-stepcol-left{ flex: 1 1 auto; min-width:0; width:100%; padding: 6px 8px; box-sizing: border-box; }
#mvto-step-variation .mvto-stepcol-left #mvto-variation-chip{
  margin-top: 6px;
  display:inline-flex;
}
#mvto-step-variation .mvto-stepcol-right{
  padding: 6px 8px;
  box-sizing: border-box;
  flex: 0 0 42%;
  width: 42%;
  max-width: 42%;
  min-width: 180px;
  text-align: right;
}
#mvto-step-variation .mvto-stepcol-right #mvto-varthumbs-wrap{
  width: 100% !important;
  margin-top: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  /* Natural wrap: fit the column, wrap only when needed */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
@media (max-width: 560px){
  #mvto-step-variation .mvto-steptext.mvto-steptext-2col{ grid-template-columns: 1fr;}
  #mvto-step-variation .mvto-stepcol-right{
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    text-align: left;
  }
  #mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  /* Natural wrap: fit the column, wrap only when needed */
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
}

/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  background: #fff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}

/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  background: #fff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}

/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  background: #fff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}


/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  background: #fff !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}

/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}


/* =============================================================
   MVTO HOTFIX v2.7.9 — Variation thumbnails must stay thumbnails
   Prevent any right-column layout rules from ballooning thumbs.
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 56px !important;
  width: 56px !important;
  height: 56px !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  border-color: rgba(0,0,0,0.60) !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}




/* =============================================================
   MVTO HOTFIX v2.7.11 — Variation thumbs: real thumbnails (no 50% tiles)
   - Thumbs stay thumbnail-sized
   - Container fills the right column (100%)
   - Wrap only when needed (overflow)
   ============================================================= */
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb{
  flex: 0 0 auto !important;
  width: var(--mvto-varthumb-size, 56px) !important;
  height: var(--mvto-varthumb-size, 56px) !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs .mvto-varthumb.is-selected{
  outline: 1px solid rgba(0,0,0,0.60) !important;
  outline-offset: -1px !important;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.85) !important;
}


/* =============================================================
   MVTO HOTFIX v2.7.11 — Variation step: true 2-column grid
   Left: title + help + status chip
   Right: thumbnails panel (fills its column)
   ============================================================= */
#mvto-step-variation .mvto-steptext.mvto-steptext-2col{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  align-items: start !important;
}
#mvto-step-variation .mvto-stepcol-left,
#mvto-step-variation .mvto-stepcol-right{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}
#mvto-step-variation .mvto-stepcol-right{ text-align: right !important; }
#mvto-step-variation .mvto-stepcol-left{ text-align: left !important; }
#mvto-step-variation .mvto-stepcol-right #mvto-varthumbs-wrap{ width: 100% !important; margin: 0 !important; }
#mvto-step-variation .mvto-stepcol-right #mvto-variation-thumbs{ width: 100% !important; max-width: 100% !important; }

@media (max-width: 560px){
  #mvto-step-variation .mvto-steptext.mvto-steptext-2col{ grid-template-columns: 1fr !important; }
  #mvto-step-variation .mvto-stepcol-right{ text-align: left !important; }
}

/* ========================================================================
   Moopsi Try‑On Studio — Finishing Polish (Add‑only overrides)
   Goal: unify spacing + borders across popup sections so everything aligns.
   ======================================================================== */

.mvto-modal{
  --mvto-ui-pad: 14px;
  --mvto-ui-gap: 10px;
  --mvto-ui-card-pad: 10px;
  --mvto-ui-border: rgba(0,0,0,0.10);
  --mvto-ui-muted-bg: #fafafa;
}

/* Consistent container padding */
.mvto-modal .mvto-body{
  padding: var(--mvto-ui-pad) !important;
}

/* Consistent section gaps */
.mvto-modal .mvto-previews,
.mvto-modal .mvto-underpreviews{
  gap: var(--mvto-ui-gap) !important;
  margin-bottom: var(--mvto-ui-gap) !important;
}

/* One “card system” for all blocks */
.mvto-modal .mvto-preview-card,
.mvto-modal .mvto-underpreviews-col,
.mvto-modal .mvto-stepcard{
  padding: var(--mvto-ui-card-pad) !important;
  border-color: var(--mvto-ui-border) !important;
  box-sizing: border-box;
}

/* Step rhythm: tighter + consistent */
.mvto-modal .mvto-step{ margin-bottom: var(--mvto-ui-gap) !important; }
.mvto-modal .mvto-stepcard{ margin-bottom: var(--mvto-ui-gap) !important; }
.mvto-modal .mvto-stephead{ gap: 8px !important; }
.mvto-modal .mvto-stepbody{ margin-top: 8px !important; }
.mvto-modal .mvto-label{ margin-bottom: 6px !important; }
.mvto-modal .mvto-hint{ margin-top: 4px !important; }

/* Quick Actions / Saved profile: match spacing */
.mvto-modal .mvto-actionlist{ gap: 6px !important; margin-top: 6px !important; }
.mvto-modal .mvto-actionrow{ gap: 8px !important; }

/* Upload drop: match card system */
.mvto-modal .mvto-upload-drop{
  background: var(--mvto-ui-muted-bg) !important;
  padding: 10px !important;
}

/* Preview empty state: tidy + consistent */
.mvto-modal .mvto-preview-empty{ padding: 10px !important; }

/* Variation step: keep the two-column header aligned with other cards */
#mvto-step-variation .mvto-stepcol-left,
#mvto-step-variation .mvto-stepcol-right{
  padding: 0 !important;
}


/* Keep variation header padding (do not collapse spacing) */
#mvto-step-variation .mvto-stepcol-left,
#mvto-step-variation .mvto-stepcol-right{
  padding: 8px !important;
}


/* Phase V007.131 — Pinned compare strip (add-only) */
.mvto-pinbar{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mvto-pin-strip{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}
.mvto-pin-item{
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}
.mvto-pin-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.mvto-pin-item.is-active{
  outline: 2px solid #343434;
  outline-offset: 2px;
}
.mvto-pin-x{
  position:absolute;
  top:-8px;
  right:-8px;
  width:18px;
  height:18px;
  border:1px solid rgba(0,0,0,.25);
  background:#fff;
  font-size:12px;
  line-height:16px;
  text-align:center;
  cursor:pointer;
}



/* Zoom controls (toolbar-based) */
.mvto-zoom-toolbar .mvto-zoom-dl,
.mvto-zoom-toolbar .mvto-zoom-share,
.mvto-zoom-toolbar .mvto-zoom-fs,
.mvto-zoom-toolbar .mvto-zoom-rot,
.mvto-zoom-toolbar .mvto-zoom-rot2,
.mvto-zoom-toolbar .mvto-zoom-help{
  position: static !important;
  top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
  margin: 0 !important;
}

.mvto-zoom-toolbar .mvto-zoom-tools-left{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.mvto-zoom-toolbar .mvto-zoom-btn,
.mvto-zoom-toolbar :is(.mvto-zoom-rot,.mvto-zoom-rot2,.mvto-zoom-fs,.mvto-zoom-dl,.mvto-zoom-share,.mvto-zoom-help){
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 34px;
}

.mvto-zoom-toolbar :is(.mvto-zoom-rot,.mvto-zoom-rot2,.mvto-zoom-fs){
  white-space: nowrap !important;
}

.mvto-zoom-toolbar .mvto-zoom-help:hover{ filter: brightness(0.97); }

.mvto-zoom-helpbox{
  position:absolute;
  top: 56px;
  right: 14px;
  width: min(320px, calc(100vw - 28px));
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,.15);
  padding: 10px 12px;
  display:none;
  box-sizing:border-box;
}
.mvto-zoom.is-help .mvto-zoom-helpbox{ display:block; }
.mvto-zoom-help-title{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.mvto-zoom-helpbox ul{
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 12px;
  line-height: 1.55;
}
.mvto-zoom-helpbox li{ margin: 2px 0; }
.mvto-zoom-help-foot{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 700;
}


.mvto-zoom-rot:hover,
.mvto-zoom-rot2:hover{ filter: brightness(0.97); }

.mvto-zoom-dl:hover{ filter: brightness(0.97); }

/* --- Zoom toolbar: hard theme override to prevent overlap/stacking --- */
#mvto-zoom .mvto-zoom-toolbar{
  display:flex !important;
}
#mvto-zoom .mvto-zoom-toolbar .mvto-zoom-tools-left{
  display:flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}
#mvto-zoom .mvto-zoom-toolbar .mvto-zoom-tools-left > button,
#mvto-zoom .mvto-zoom-toolbar .mvto-zoom-tools-left > .mvto-zoom-btn{
  position: static !important;
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 10px 0 0 !important; /* gap fallback if theme kills flex-gap */
}
#mvto-zoom .mvto-zoom-toolbar .mvto-zoom-tools-left > button:last-child{
  margin-right: 0 !important;
}
#mvto-zoom #mvto-zoom-rl,
#mvto-zoom #mvto-zoom-rr,
#mvto-zoom #mvto-zoom-fs{
  position: static !important;
  inset: auto !important;
  transform: none !important;
}


/* Zoom toolbar disabled state */
#mvto-zoom .mvto-zoom-btn.is-disabled{opacity:.55; cursor:not-allowed;}

/* V007.171: highlight missing required variation options */
#mvto-modal form.variations_form select.mvto-missing{ outline:2px solid rgba(179,90,90,.9); outline-offset:2px; }
#mvto-modal #mvto-add-to-cart.is-busy{ opacity:.7; pointer-events:none; }

