.epu-photo-box{margin:22px 0 18px;padding:20px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-family:Inter,Manrope,system-ui,sans-serif;color:#0f172a}.epu-photo-head{margin-bottom:14px}.epu-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.11em;color:#64748b;margin-bottom:5px}.epu-photo-head h3{font-size:20px;line-height:1.2;margin:0 0 5px}.epu-photo-head p{font-size:13px;line-height:1.45;color:#64748b;margin:0;max-width:560px}.epu-free{display:inline-flex;padding:6px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:700;margin:0 0 13px}.epu-file{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.epu-upload-btn{display:flex;min-height:82px;align-items:center;justify-content:center;gap:8px;flex-direction:column;border:1.5px dashed #94a3b8;border-radius:7px;background:#f8fafc;cursor:pointer;transition:.18s ease}.epu-upload-btn:hover{border-color:#0f766e;background:#f0fdfa}.epu-upload-btn span{font-size:23px;line-height:1}.epu-upload-btn strong{font-size:14px}.epu-upload-btn small{font-size:11px;color:#64748b}.epu-preview{margin-top:12px}.epu-preview-stage{height:210px;border-radius:7px;overflow:hidden;background:#f1f5f9;display:flex;align-items:center;justify-content:center}.epu-preview-stage img{width:100%;height:100%;object-fit:contain}.epu-preview-info{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;font-size:12px;color:#047857}.epu-change{appearance:none;border:0;background:none;color:#0f766e;font-weight:700;cursor:pointer;padding:5px}.epu-error{margin:10px 0 0;color:#b91c1c;font-size:12px;font-weight:600}@media(max-width:767px){.epu-photo-box{margin:18px 0 15px;padding:15px}.epu-photo-head h3{font-size:18px}.epu-preview-stage{height:190px}}


/* 0.1.1 — Mobile layout: scoped only to products with Photo Upload enabled */
@media (max-width:767px){
  body.epu-photo-product .epu-photo-box{
    width:100%;
    max-width:none;
    box-sizing:border-box;
    margin:16px 0 14px;
    padding:16px;
  }
  body.epu-photo-product .epu-upload-btn{
    width:100%;
    box-sizing:border-box;
    min-height:96px;
  }
  body.epu-photo-product .epu-preview,
  body.epu-photo-product .epu-preview-stage{
    width:100%;
    box-sizing:border-box;
  }
  body.epu-photo-product .epu-preview-stage{height:220px}

  /* Blocksy/WooCommerce add-to-cart area: only on photo-enabled products */
  body.epu-photo-product .ct-product-add-to-cart form.cart,
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
  }
  body.epu-photo-product .ct-product-add-to-cart form.cart{
    display:block !important;
  }
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions{
    display:grid !important;
    grid-template-columns:84px minmax(0,1fr) !important;
    gap:10px !important;
    align-items:stretch !important;
  }
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions > .quantity{
    grid-column:1 !important;
    width:84px !important;
    min-width:0 !important;
    margin:0 !important;
  }
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions > .single_add_to_cart_button{
    grid-column:2 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    white-space:normal !important;
  }
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions > .tinv-wraper,
  body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions > .tinv-wishlist{
    grid-column:1 / -1 !important;
    width:100% !important;
    margin:2px 0 0 !important;
  }
}
/* 0.2.0 — configurador visual alpha */
.epu-pro-controls{margin-top:12px}.epu-photo-tabs{display:flex;gap:8px;margin-bottom:10px}.epu-photo-tabs button{width:72px;height:64px;padding:3px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;cursor:pointer;font-size:10px}.epu-photo-tabs button.is-active{border:2px solid #0f766e}.epu-photo-tabs img{width:100%;height:38px;object-fit:cover;display:block;border-radius:3px}.epu-photo-tabs span{display:block;margin-top:2px}.epu-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.epu-actions button{border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:7px 9px;font-size:11px;cursor:pointer}.epu-actions button.is-active{border-color:#0f766e;background:#f0fdfa;color:#0f766e;font-weight:700}.epu-actions>span{font-size:11px;font-weight:700;margin-left:3px}.epu-hint{font-size:10px;color:#64748b;margin-top:8px}.epu-preview-stage{transition:.2s}.epu-preview-stage.is-landscape{height:160px}.epu-preview-stage img{transition:filter .15s ease}@media(max-width:767px){.epu-photo-tabs button{flex:1;max-width:90px}.epu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.epu-actions>span{grid-column:1/-1}.epu-actions button{width:100%}.epu-preview-stage.is-landscape{height:150px}}
/* 0.3.0 — Frame Preview Engine */
.epu-preview-stage{height:auto!important;min-height:330px;padding:18px;background:linear-gradient(145deg,#f8fafc,#eef2f7);box-sizing:border-box;overflow:hidden}.epu-frame{width:min(74%,290px);aspect-ratio:4/5;padding:16px;background:linear-gradient(135deg,#242424,#080808 52%,#303030);box-shadow:0 12px 28px rgba(15,23,42,.2),inset 0 0 0 1px rgba(255,255,255,.16);transition:.2s;touch-action:none;cursor:grab}.epu-frame.is-landscape{width:min(88%,360px);aspect-ratio:5/4}.epu-frame.is-dragging{cursor:grabbing}.epu-frame-window{width:100%;height:100%;overflow:hidden;background:#e2e8f0;position:relative}.epu-frame-window img{width:100%;height:100%;object-fit:cover!important;object-position:center!important;transform-origin:center;will-change:transform;user-select:none;pointer-events:none}.epu-step{display:flex;align-items:center;gap:8px;margin:14px 0 9px;font-size:13px;font-weight:750}.epu-step b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#0f172a;color:#fff;font-size:11px}.epu-photo-tabs{gap:10px}.epu-photo-tabs button{width:86px;height:76px}.epu-photo-tabs img{height:48px}.epu-adjust{display:flex;align-items:center;gap:10px}.epu-adjust>button,.epu-filters button,.epu-zoom button{border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:8px 10px;font-size:11px;cursor:pointer}.epu-zoom{display:flex;align-items:center;gap:7px;flex:1}.epu-zoom input{width:100%;accent-color:#0f766e}.epu-filters{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.epu-filters button.is-active{border-color:#0f766e;background:#f0fdfa;color:#0f766e;font-weight:700}.epu-quality{margin-top:11px;padding:9px 11px;border-radius:6px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:700}.epu-hint{margin:8px 0 2px}
@media(max-width:767px){.epu-preview-stage{min-height:300px;padding:14px}.epu-frame{width:min(78%,250px);padding:12px}.epu-frame.is-landscape{width:min(94%,320px)}.epu-adjust{flex-direction:column;align-items:stretch}.epu-zoom{width:100%}.epu-filters{grid-template-columns:repeat(2,1fr)}.epu-photo-tabs button{max-width:none;flex:0 0 86px}.epu-step{font-size:12px}}
/* 0.4.0 — Real Product Mockup */
.epu-frame.has-mockup{position:relative;padding:0;background:transparent;box-shadow:none;aspect-ratio:4/5}
.epu-frame.has-mockup .epu-frame-window{position:absolute;inset:9% 9%;z-index:1}
.epu-product-mockup{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none;user-select:none}
.epu-frame.has-mockup.is-landscape{aspect-ratio:5/4}
.epu-frame.has-mockup.is-landscape .epu-product-mockup{transform:rotate(90deg) scale(.8)}
.epu-filters{grid-template-columns:repeat(6,1fr)}
@media(max-width:767px){.epu-filters{grid-template-columns:repeat(3,1fr)}}

/* 0.4.1 — Real Frame Calibration: detecta automáticamente la ventana alfa interior del PNG */
.epu-frame.has-mockup{width:min(92%,420px);aspect-ratio:1/1!important;position:relative;overflow:visible}
.epu-frame.has-mockup .epu-frame-window{position:absolute;inset:auto;z-index:1;overflow:hidden;background:#e2e8f0}
.epu-frame.has-mockup .epu-product-mockup{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2;pointer-events:none;user-select:none;transform-origin:center center}
.epu-frame.has-mockup.is-landscape{aspect-ratio:1/1!important;width:min(92%,420px)}
.epu-frame.has-mockup.is-landscape .epu-product-mockup{transform:rotate(90deg);}
.epu-frame.has-mockup.mockup-calibration-fallback .epu-frame-window{left:25%;top:20%;width:50%;height:60%}
@media(max-width:767px){.epu-frame.has-mockup,.epu-frame.has-mockup.is-landscape{width:min(100%,360px)}}


/* 0.4.3 — Gallery Preview Layout: la personalización ocupa la imagen principal */
.epu-gallery-preview-target{position:relative!important}
.epu-gallery-preview{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:inherit;overflow:hidden}
.epu-gallery-preview .epu-preview-stage{width:100%;height:100%!important;min-height:0!important;margin:0;padding:18px;box-sizing:border-box;border-radius:inherit}
.epu-gallery-preview .epu-frame.has-mockup{width:min(94%,520px);max-height:94%;}
.epu-photo-box.has-photo>.epu-upload-btn{display:none}
.epu-photo-box.has-photo .epu-preview{margin-top:0}
.epu-photo-box.has-photo .epu-preview-info{padding-top:0;margin-bottom:4px}
.epu-photo-box.has-photo .epu-preview-info>strong{font-size:11px}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring .woocommerce-product-gallery__trigger{z-index:31}
@media(max-width:767px){
 .epu-gallery-preview .epu-preview-stage{padding:10px}
 .epu-gallery-preview .epu-frame.has-mockup,.epu-gallery-preview .epu-frame.has-mockup.is-landscape{width:min(96%,420px)}
}


/* 0.4.4 — Main Gallery Slot Fix: preview dentro de la caja visible de Blocksy/FlexSlider */
body.epu-photo-product .woocommerce-product-gallery .flex-viewport.epu-gallery-preview-target,
body.epu-photo-product .woocommerce-product-gallery__wrapper.epu-gallery-preview-target{
  position:relative!important;
}
body.epu-photo-product .woocommerce-product-gallery .flex-viewport.epu-gallery-preview-target > .epu-gallery-preview{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:30!important;
  margin:0!important;
  background:#fff;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}


/* 0.4.8 — SVI Zoom Suppression: solo durante la personalización activa */
body.epu-svi-zoom-off .sviZoomContainer,
body.epu-svi-zoom-off .zoomWindowContainer,
body.epu-svi-zoom-off .zoomWindow{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* 0.4.9 — Preview Visual Polish: 4 fotos, preview mayor y fondo blanco */
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{
  background:#fff!important;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{
  padding:4px!important;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup.is-landscape{
  width:min(100%,640px)!important;
  max-height:100%!important;
  box-shadow:none!important;
}
.epu-photo-tabs{flex-wrap:wrap}
@media(max-width:767px){
  body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{padding:4px!important}
  body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup,
  body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup.is-landscape{width:min(100%,440px)!important}
}

/* 0.5.0 — Session Persistence: evita el destello de la galería mientras se restaura una sesión con fotos */
html.epu-restoring-photo body.epu-photo-product .woocommerce-product-gallery{
  visibility:hidden!important;
}


/* 0.5.1 — Rotation Centering Fix: centra el mockup en ambos sentidos sin alterar el motor */
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-frame.has-mockup.is-landscape{
  flex:0 0 auto!important;
  margin:auto!important;
  left:auto!important;
  right:auto!important;
}


/* 0.5.3 — Frame Window Geometry Fix */
body.epu-photo-product .epu-frame.has-mockup .epu-frame-window .epu-user-photo{
 position:absolute!important;left:-3px!important;top:-3px!important;
 width:calc(100% + 6px)!important;height:calc(100% + 6px)!important;
 max-width:none!important;max-height:none!important;display:block!important;
 object-fit:cover!important;object-position:center center!important;
}


/* 0.5.6 — Orientation Fit: cuando foto y marco tienen orientaciones opuestas, muestra la foto completa como base; el zoom manual permite recortar después. */
body.epu-photo-product .epu-frame.has-mockup.epu-fit-contain .epu-frame-window .epu-user-photo{
 object-fit:contain!important;
 background:#fff!important;
}

/* 0.6.0 — Perspective View: capa visual independiente; motor frontal 0.5.9 intacto */
.epu-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:2px 0 12px;padding:3px;background:#f1f5f9;border-radius:8px}
.epu-view-switch button{border:0;background:transparent;border-radius:6px;padding:8px 10px;font-size:11px;font-weight:700;color:#64748b;cursor:pointer}
.epu-view-switch button.is-active{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.epu-perspective-canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;margin:auto;object-fit:contain}
.epu-perspective-canvas[hidden]{display:none!important}
.epu-preview-stage:has(.epu-perspective-canvas:not([hidden])){display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important}
@media(max-width:767px){.epu-view-switch button{padding:8px 6px;font-size:10.5px}}


/* 0.6.1 — Environment View: tercera vista independiente; frontal y perspectiva 0.6.0 intactos */
.epu-view-switch{grid-template-columns:repeat(3,1fr)}
.epu-environment-canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;margin:auto;object-fit:contain}
.epu-environment-canvas[hidden]{display:none!important}
.epu-preview-stage:has(.epu-environment-canvas:not([hidden])){display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important}


/* 0.6.5 — Product Showcase Motion: animación visual; motores Frontal/Perspectiva/Ambiente intactos */
.epu-showcase-btn{
  width:100%;margin:-4px 0 12px;padding:10px 12px;border:1px solid #dbe3ec;
  border-radius:8px;background:#fff;color:#0f172a;font-size:11px;font-weight:800;
  cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.epu-showcase-btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,23,42,.08);border-color:#b8c5d3}
.epu-showcase-btn.is-playing{background:#0f172a;color:#fff;border-color:#0f172a}
.epu-preview-stage.epu-showcase-running{perspective:1200px}
.epu-preview-stage.epu-showcase-front .epu-frame:not([hidden]){animation:epuShowFront 1.05s cubic-bezier(.22,.61,.36,1) both}
.epu-preview-stage.epu-showcase-perspective .epu-perspective-canvas:not([hidden]){animation:epuShowPerspective 1.35s cubic-bezier(.22,.61,.36,1) both}
.epu-preview-stage.epu-showcase-environment .epu-environment-canvas:not([hidden]){animation:epuShowEnvironment 1.55s cubic-bezier(.22,.61,.36,1) both}
@keyframes epuShowFront{0%{opacity:.15;transform:scale(.965) rotateY(-3deg)}45%{opacity:1;transform:scale(1.025) rotateY(0)}100%{opacity:1;transform:scale(1)}}
@keyframes epuShowPerspective{0%{opacity:0;transform:scale(.94) translateX(-12px) rotateY(-5deg)}48%{opacity:1;transform:scale(1.025) translateX(0) rotateY(0)}100%{opacity:1;transform:scale(1)}}
@keyframes epuShowEnvironment{0%{opacity:0;transform:scale(1.045);filter:brightness(1.04)}55%{opacity:1;transform:scale(.99);filter:brightness(1)}100%{opacity:1;transform:scale(1);filter:brightness(1)}}
@media(max-width:767px){.epu-showcase-btn{padding:10px 8px;font-size:10.5px}}
@media(prefers-reduced-motion:reduce){
 .epu-showcase-btn,.epu-preview-stage.epu-showcase-front .epu-frame:not([hidden]),
 .epu-preview-stage.epu-showcase-perspective .epu-perspective-canvas:not([hidden]),
 .epu-preview-stage.epu-showcase-environment .epu-environment-canvas:not([hidden]){
  animation:none!important;transition:none!important;transform:none!important
 }
}


/* 0.7.0 — Roma Motion II: transición física Frontal -> Perspectiva */
.epu-preview-stage.epu-showcase-running{
  perspective:1400px;
  transform-style:preserve-3d;
}
.epu-preview-stage.epu-showcase-turnout .epu-frame:not([hidden]){
  transform-origin:50% 62%;
  animation:epuRomaTurnOut .62s cubic-bezier(.55,.02,.35,1) both;
  will-change:transform,opacity,filter;
}
@keyframes epuRomaTurnOut{
  0%{
    opacity:1;
    transform:perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1);
    filter:brightness(1);
  }
  45%{
    opacity:1;
    transform:perspective(1400px) rotateY(-8deg) rotateX(1deg) translateX(-4px) scale(1.015);
    filter:brightness(.99);
  }
  100%{
    opacity:.08;
    transform:perspective(1400px) rotateY(-18deg) rotateX(2deg) translateX(-14px) scale(.965);
    filter:brightness(.94);
  }
}
.epu-preview-stage.epu-showcase-perspective .epu-perspective-canvas:not([hidden]){
  transform-origin:50% 62%;
  animation:epuRomaPerspectiveIn 1.48s cubic-bezier(.18,.72,.24,1) both;
  will-change:transform,opacity,filter;
}
@keyframes epuRomaPerspectiveIn{
  0%{
    opacity:.08;
    transform:perspective(1400px) rotateY(7deg) translateX(10px) scale(.965);
    filter:brightness(.95);
  }
  42%{
    opacity:1;
    transform:perspective(1400px) rotateY(-1deg) translateX(-1px) scale(1.018);
    filter:brightness(1.01);
  }
  100%{
    opacity:1;
    transform:perspective(1400px) rotateY(0deg) translateX(0) scale(1);
    filter:brightness(1);
  }
}
@media(prefers-reduced-motion:reduce){
 .epu-preview-stage.epu-showcase-turnout .epu-frame:not([hidden]),
 .epu-preview-stage.epu-showcase-perspective .epu-perspective-canvas:not([hidden]){
   animation:none!important;transform:none!important;filter:none!important;
 }
}

/* 0.8.1 — REAL PREVIEW DOCK / GEOMETRY LOCK */
@media(max-width:767px){
  .epu-real-preview-dock-shell{
    position:fixed!important;
    z-index:2147483000!important;
    top:6px!important;
    left:3vw!important;
    width:94vw!important;
    height:250px!important;
    overflow:hidden!important;
    background:rgba(255,255,255,.98)!important;
    border:1px solid #dbe3ec!important;
    border-radius:12px!important;
    box-shadow:0 10px 28px rgba(15,23,42,.16)!important;
    box-sizing:border-box!important;
  }

  /* IMPORTANTE:
     no damos tamaños a hijos, canvas, frame ni window.
     Se conserva la geometría original y se escala el stage entero. */
  .epu-real-preview-dock-shell > .epu-preview-stage.epu-real-preview-docked{
    box-sizing:border-box!important;
  }
}


/* 0.8.2 — Dock Layout Polish
   Sólo presentación del contenedor. El mirror interno 0.8.1 queda intacto. */
@media(max-width:767px){
  .epu-real-preview-dock-shell{
    left:2.5vw!important;
    width:95vw!important;
    height:250px!important;
  }
}


/* 0.8.3 — Preview Full Dock
   El fondo gris del stage deja de gobernar el encaje; el producto visible ocupa el dock. */
@media(max-width:767px){
  .epu-real-preview-dock-shell{
    background:#fff!important;
  }
}

/* 0.9.14 — Photo delete control */
.epu-photo-tab-wrap{position:relative;display:inline-flex;flex:0 0 auto}.epu-photo-tab-wrap>[data-photo]{margin:0}.epu-photo-remove{position:absolute!important;top:-7px!important;right:-7px!important;width:22px!important;height:22px!important;min-width:22px!important;padding:0!important;border:2px solid #fff!important;border-radius:50%!important;background:#111827!important;color:#fff!important;font-size:16px!important;line-height:18px!important;font-weight:700!important;display:grid!important;place-items:center!important;cursor:pointer!important;z-index:3;box-shadow:0 2px 7px rgba(0,0,0,.2)}.epu-photo-remove:hover{transform:scale(1.08)}


/* 0.9.15 — Delete Photo Modal PRO */
.epu-delete-modal[hidden]{display:none!important}.epu-delete-modal{position:fixed;inset:0;z-index:2147483646;display:grid;place-items:center;padding:20px}.epu-delete-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.36);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.epu-delete-modal-card{position:relative;z-index:1;width:min(430px,calc(100vw - 32px));box-sizing:border-box;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:28px 26px 24px;text-align:center;box-shadow:0 24px 70px rgba(15,23,42,.24);animation:epuDeleteModalIn .18s ease-out}.epu-delete-modal-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;background:#fff1f2;color:#be123c;font-size:27px;font-weight:800}.epu-delete-modal-card h3{margin:0 0 8px!important;font-size:20px!important;line-height:1.25!important;color:#111827!important}.epu-delete-modal-card p{margin:0 auto 22px!important;max-width:330px;color:#64748b!important;font-size:14px!important;line-height:1.5!important}.epu-delete-modal-actions{display:flex;gap:10px;justify-content:center}.epu-delete-modal-actions button{min-height:43px!important;padding:0 18px!important;border-radius:10px!important;font-size:14px!important;font-weight:700!important;cursor:pointer!important}.epu-delete-cancel{background:#fff!important;color:#334155!important;border:1px solid #dbe3ec!important}.epu-delete-confirm{background:#111827!important;color:#fff!important;border:1px solid #111827!important}.epu-delete-cancel:hover{background:#f8fafc!important}.epu-delete-confirm:hover{background:#020617!important}.epu-delete-modal-open{overflow:hidden!important}@keyframes epuDeleteModalIn{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:480px){.epu-delete-modal-card{padding:24px 18px 18px}.epu-delete-modal-actions{flex-direction:column-reverse}.epu-delete-modal-actions button{width:100%!important}}

/* 0.9.17 — Consentimiento de fotografía */
.epu-photo-consent{margin:16px 0 4px;padding:14px 15px;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc}.epu-photo-consent-label{display:flex;align-items:flex-start;gap:10px;margin:0!important;color:#334155;font-size:13px;line-height:1.45;cursor:pointer}.epu-photo-consent-label input{flex:0 0 auto;width:17px;height:17px;margin:2px 0 0!important;accent-color:#111827}.epu-photo-consent-links{margin:8px 0 0 27px;display:flex;gap:7px;flex-wrap:wrap;align-items:center;font-size:12px;line-height:1.35}.epu-photo-consent-links a{color:#475569;text-decoration:underline;text-underline-offset:2px}.epu-photo-consent-links a:hover{color:#111827}@media(max-width:480px){.epu-photo-consent{padding:13px}.epu-photo-consent-links{margin-left:27px}}

/* 0.10.1 — Studio UI: visual polish + compact mobile editor */
.epu-photo-box{border:1px solid #e7ebf0;border-radius:14px;padding:22px;box-shadow:0 8px 28px rgba(15,23,42,.045)}
.epu-photo-head{margin-bottom:12px}.epu-kicker{font-size:10px;letter-spacing:.14em;color:#64748b}.epu-photo-head h3{font-size:21px;letter-spacing:-.02em}.epu-photo-head p{font-size:12px}
.epu-free{padding:5px 9px;margin-bottom:10px;background:#ecfdf5;color:#047857}
.epu-view-switch{gap:4px;padding:4px;margin:6px 0 10px;border-radius:10px;background:#f4f6f8}.epu-view-switch button{min-height:34px;border-radius:8px}.epu-view-switch button.is-active{box-shadow:0 1px 4px rgba(15,23,42,.10)}
.epu-showcase-btn{margin:0 0 10px;border-radius:9px;min-height:36px}
.epu-step{margin:12px 0 8px;font-size:12px}.epu-step b{width:20px;height:20px;font-size:10px}
.epu-photo-tabs{gap:8px;margin-bottom:8px}.epu-photo-tab-wrap{position:relative}.epu-photo-tabs button{border-radius:9px}.epu-photo-tabs button.is-active{border-color:#0f766e;box-shadow:0 0 0 1px #0f766e}
.epu-adjust{display:grid;grid-template-columns:auto auto minmax(150px,1fr);gap:7px}.epu-adjust>button{border-radius:8px;padding:8px 11px}.epu-zoom{background:#f8fafc;border-radius:8px;padding:2px 4px}.epu-zoom button{border:0;background:transparent;font-size:15px}.epu-hint{color:#7c8797}
.epu-filters{grid-template-columns:repeat(4,1fr);gap:7px}.epu-filters button{min-height:36px;border-radius:9px}.epu-filters button.is-active{box-shadow:inset 0 0 0 1px #0f766e}
.epu-manual-adjust{margin-top:9px;border:1px solid #e2e8f0;border-radius:10px;background:#fbfcfd;overflow:hidden}.epu-manual-adjust summary{list-style:none;cursor:pointer;padding:11px 12px;font-size:11px;font-weight:800;color:#1e293b;display:flex;justify-content:space-between;gap:10px;align-items:center}.epu-manual-adjust summary::-webkit-details-marker{display:none}.epu-manual-adjust summary span{font-weight:500;color:#7c8797}.epu-manual-adjust[open] summary{border-bottom:1px solid #edf0f3}.epu-manual-body{padding:11px 12px}.epu-manual-body label{display:grid;grid-template-columns:92px 1fr 34px;align-items:center;gap:8px;margin:0 0 9px;font-size:11px;font-weight:650}.epu-manual-body label span{grid-column:1}.epu-manual-body input{grid-column:2;width:100%;accent-color:#0f766e}.epu-manual-body output{grid-column:3;grid-row:1;text-align:right;font-variant-numeric:tabular-nums;color:#64748b}.epu-reset-adjust{border:0;background:transparent;color:#0f766e;font-size:10.5px;font-weight:750;padding:3px 0;cursor:pointer}.epu-quality{display:inline-flex;margin-top:9px;padding:5px 8px;border-radius:999px;font-size:10px}
.epu-photo-consent{margin-top:12px!important;border-radius:10px!important;background:#f8fafc!important;border:1px solid #e7ebf0!important}
@media(max-width:767px){
 body.epu-photo-product .epu-photo-box{padding:13px;border-radius:12px;margin:12px 0}.epu-photo-head{margin-bottom:8px}.epu-photo-head h3{font-size:17px;margin-bottom:3px}.epu-photo-head p{font-size:10.5px;line-height:1.35}.epu-free{font-size:10px;margin-bottom:7px;padding:4px 7px}
 .epu-preview-info{font-size:10px}.epu-view-switch{margin:4px 0 7px}.epu-view-switch button{padding:6px 3px;font-size:9.5px;min-height:30px}.epu-showcase-btn{min-height:31px;padding:6px;margin-bottom:7px;font-size:9.5px}
 .epu-step{margin:9px 0 6px;font-size:10.5px}.epu-step b{width:18px;height:18px;font-size:9px}.epu-photo-tabs{gap:6px;overflow-x:auto}.epu-photo-tabs button{width:66px;height:59px;flex:0 0 66px;font-size:9px}.epu-photo-tabs img{height:34px}.epu-photo-remove{width:18px!important;height:18px!important}
 .epu-adjust{grid-template-columns:1fr 1fr;gap:6px}.epu-adjust>button{padding:7px 5px;font-size:9.5px}.epu-zoom{grid-column:1/-1;min-height:31px}.epu-hint{font-size:9px;margin:5px 0 0}
 .epu-filters{grid-template-columns:repeat(4,1fr);gap:5px}.epu-filters button{padding:7px 2px;min-height:32px;font-size:9px}
 .epu-manual-adjust{margin-top:7px}.epu-manual-adjust summary{padding:9px;font-size:10px}.epu-manual-adjust summary span{font-size:8.5px}.epu-manual-body{padding:9px}.epu-manual-body label{grid-template-columns:76px 1fr 28px;gap:5px;margin-bottom:7px;font-size:9.5px}.epu-quality{margin-top:7px;font-size:9px;padding:4px 7px}
 .epu-photo-consent{margin-top:8px!important;padding:9px!important}.epu-photo-consent-label{font-size:9.5px!important;line-height:1.35!important}
 body.epu-photo-product .ct-product-add-to-cart .ct-cart-actions{position:sticky;bottom:6px;z-index:40;background:rgba(255,255,255,.96);padding:7px;border:1px solid #e2e8f0;border-radius:11px;box-shadow:0 8px 24px rgba(15,23,42,.14);backdrop-filter:blur(8px)}
}

/* 0.10.2 — Studio UI II: producto completo + cabecera limpia */
/* La imagen principal del producto vuelve a verse completa, sin crop visual. */
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img,
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-media-container img,
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-image-container img{
  object-fit:contain!important;
  object-position:center center!important;
}

/* Cabecera: menos ruido y más aire útil para el editor. */
.epu-photo-box .epu-photo-head{margin-bottom:14px}
.epu-photo-box .epu-photo-head h3{font-weight:800;color:#10213d}
.epu-photo-box .epu-photo-head p{max-width:440px;color:#68758a}
.epu-photo-box.has-photo .epu-preview{margin-top:0}
.epu-photo-box.has-photo .epu-preview-info{display:none!important}
.epu-photo-box .epu-free{display:none!important}

@media(max-width:767px){
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-media-container,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-image-container{
    background:#fff!important;
  }
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-media-container img,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-image-container img{
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    object-fit:contain!important;
  }
  body.epu-photo-product .epu-photo-box{padding:14px 12px 12px}
  .epu-photo-box .epu-photo-head{margin-bottom:9px}
  .epu-photo-box .epu-kicker{font-size:9px;margin-bottom:3px}
  .epu-photo-box .epu-photo-head h3{font-size:18px;line-height:1.15;margin:0 0 3px}
  .epu-photo-box .epu-photo-head p{font-size:10px;line-height:1.35;margin:0}
}


/* 0.10.3 — Mockup Level Pro: tarjeta continua + presets definitivos + ajustes visibles */
/* Evita el efecto de "caja blanca rota" que introducía forzar 100% de alto en la galería. */
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img,
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-media-container img,
body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-image-container img{
  height:auto!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
}
/* El configurador vuelve a leerse como una sola tarjeta continua. */
body.epu-photo-product .epu-photo-box{
  overflow:hidden;
  background:#fff;
}
.epu-manual-adjust[open]{background:#fbfcfd}
.epu-manual-adjust[open] summary{cursor:default}
@media(max-width:767px){
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-media-container img,
  body.epu-photo-product .woocommerce-product-gallery .flex-viewport .ct-image-container img{
    height:auto!important;
  }
}


/* 0.10.4 — Responsive Render Fix + miniaturas protagonistas */
.epu-photo-tabs{align-items:flex-start;gap:10px!important;overflow:visible!important;padding:3px 4px 4px 2px}
.epu-photo-tab-wrap>[data-photo]{width:100px!important;height:92px!important;flex:0 0 100px!important;padding:4px!important;border-radius:11px!important}
.epu-photo-tab-wrap>[data-photo] img{height:62px!important;border-radius:7px!important;object-fit:cover!important}
.epu-photo-tab-wrap>[data-photo] span{font-size:10px!important;margin-top:3px!important}
.epu-photo-tabs>.epu-add-second{width:78px!important;height:92px!important;flex:0 0 78px!important;border-radius:11px!important}
/* Si Blocksy reconstruye flex-viewport, el host personalizado siempre rellena el slot visible. */
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview-target{position:relative!important}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview{inset:0!important;width:100%!important;height:100%!important;min-height:100%!important}
@media(max-width:767px){
 .epu-photo-tabs{gap:9px!important;overflow-x:auto!important;padding:4px 5px 5px 2px;scrollbar-width:none}
 .epu-photo-tabs::-webkit-scrollbar{display:none}
 .epu-photo-tab-wrap>[data-photo]{width:82px!important;height:78px!important;flex:0 0 82px!important}
 .epu-photo-tab-wrap>[data-photo] img{height:50px!important}
 .epu-photo-tabs>.epu-add-second{width:66px!important;height:78px!important;flex:0 0 66px!important}
 .epu-photo-remove{top:-6px!important;right:-6px!important;width:20px!important;height:20px!important;min-width:20px!important}
}


/* 0.10.5 — Big Thumbnails + Gallery Height Fix */
.epu-photo-tab-wrap>[data-photo]{width:120px!important;height:112px!important;flex:0 0 120px!important;padding:5px!important}
.epu-photo-tab-wrap>[data-photo] img{height:80px!important}
.epu-photo-tabs>.epu-add-second{width:84px!important;height:112px!important;flex:0 0 84px!important}
@media(min-width:768px){
 body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview-target{overflow:hidden!important}
 body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview{height:100%!important;min-height:0!important}
}
@media(max-width:767px){
 .epu-photo-tab-wrap>[data-photo]{width:100px!important;height:94px!important;flex:0 0 100px!important}
 .epu-photo-tab-wrap>[data-photo] img{height:64px!important}
 .epu-photo-tabs>.epu-add-second{width:74px!important;height:94px!important;flex:0 0 74px!important}
}


/* 0.10.6 — VERIFIED Big Thumbnails + adaptive gallery slot */
/* Especificidad alta para ganar a las reglas responsive antiguas del propio plugin. */
body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo]{
  width:128px!important;height:122px!important;min-width:128px!important;max-width:128px!important;flex:0 0 128px!important;padding:5px!important;
}
body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo] img{
  width:100%!important;height:88px!important;max-height:none!important;object-fit:cover!important;
}
body.epu-photo-product .epu-photo-box .epu-photo-tabs > button.epu-add-second{
  width:86px!important;height:122px!important;min-width:86px!important;max-width:86px!important;flex:0 0 86px!important;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview-target,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-preview-stage{
  min-height:0!important;
}
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-perspective-canvas,
body.epu-photo-product .woocommerce-product-gallery .epu-gallery-preview .epu-environment-canvas{
  width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;
}
@media(max-width:767px){
 body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo]{
   width:106px!important;height:101px!important;min-width:106px!important;max-width:106px!important;flex:0 0 106px!important;
 }
 body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo] img{height:70px!important}
 body.epu-photo-product .epu-photo-box .epu-photo-tabs > button.epu-add-second{
   width:76px!important;height:101px!important;min-width:76px!important;max-width:76px!important;flex:0 0 76px!important;
 }
}

/* 0.10.9 — native gallery flow: keep SVI mounted but out of layout while configuring. */
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .svi_wrapper{
  display:none!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring{
  height:auto!important;min-height:0!important;max-height:none!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .epu-gallery-preview{
  position:relative!important;inset:auto!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;display:flex!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .epu-gallery-preview > .epu-preview-stage{
  height:auto!important;min-height:0!important;
}

/* Studio IA 0.11.1: aislado del layout de galería y del mapper */
.epu-studio-ai{margin:20px 0 14px;padding:18px;border:1px solid #e2e5eb;border-radius:14px;background:#fafbfe;color:#252b35}
.epu-studio-ai-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.epu-studio-ai-head strong{display:block;font-size:16px;line-height:1.35}
.epu-studio-ai-head small{display:block;margin-top:4px;font-size:12px;line-height:1.45;color:#6c7480}
.epu-studio-ai-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#e8e9ff;color:#4d48ad;font-size:23px}
.epu-studio-ai-styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.epu-studio-ai-styles button{padding:11px 7px;border:1px solid #dce0e8;border-radius:10px;background:white;color:#303847;font-size:12px;line-height:1.35;cursor:pointer;min-width:0}
.epu-studio-ai-styles button.is-active{border-color:#5758b8;background:#efefff;box-shadow:inset 0 0 0 1px #5758b8}
.epu-studio-ai-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;margin:12px 0;color:#626b79;font-size:12px}
.epu-studio-ai-generate{width:100%;padding:12px;border:0;border-radius:10px;background:#e4e7ed;color:#69717c;cursor:not-allowed;font-weight:700}
.epu-studio-ai-note{font-size:11px;line-height:1.5;color:#737b89;margin:9px 0 0}
@media(max-width:460px){.epu-studio-ai{padding:13px}.epu-studio-ai-styles{grid-template-columns:1fr}.epu-studio-ai-styles button{text-align:left;padding:10px 12px}}

/* 0.11.2 — seis estilos con muestras estáticas, sin consumo de API */
.epu-studio-ai-styles button{display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:6px;overflow:hidden;text-align:center}
.epu-studio-ai-styles button img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:7px}
.epu-studio-ai-styles button span{display:block;font-weight:650;padding:2px 1px 4px}
@media(max-width:460px){.epu-studio-ai-styles{grid-template-columns:repeat(2,minmax(0,1fr))}.epu-studio-ai-styles button{text-align:center;padding:6px}}

/* 0.11.6: Studio IA - demostración estática, sin cambios en el pedido */
.epu-studio-ai-generate{background:#5049ae;color:white;cursor:pointer}
.epu-studio-ai-generate:hover{background:#3e388e}
.epu-ai-demo-modal[hidden]{display:none!important}
.epu-ai-demo-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px}
.epu-ai-demo-shade{position:absolute;inset:0;background:rgba(15,20,35,.74)}
.epu-ai-demo-dialog{position:relative;width:min(100%,480px);max-height:92vh;overflow:auto;padding:20px;background:white;border-radius:16px;box-shadow:0 20px 65px #0005;text-align:center;color:#222}
.epu-ai-demo-title{display:block;margin:0 34px 12px;font-size:18px}
.epu-ai-demo-image{display:block;width:100%;max-height:55vh;object-fit:contain;border-radius:10px;background:#f6f6f8}
.epu-ai-demo-dialog p{font-size:13px;line-height:1.5;color:#555}
.epu-ai-demo-close{position:absolute;right:12px;top:9px;border:0;background:transparent;font-size:28px;cursor:pointer}
.epu-ai-demo-done{border:0;border-radius:9px;padding:11px 18px;background:#5049ae;color:#fff;font-weight:650;cursor:pointer}

/* 0.11.9 — Tarjetas de filtros con la fotografía real del cliente */
.epu-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.epu-filters button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;min-height:104px!important;padding:9px 5px!important;border:1px solid #dce3ed!important;border-radius:12px!important;background:#fff!important;color:#263244!important;font-size:11px!important;font-weight:600!important;box-shadow:none!important;transition:border-color .15s,background .15s,box-shadow .15s!important}
.epu-filters button:hover{border-color:#8fa9d0!important;background:#f8fbff!important}
.epu-filters button.is-active{border-color:#2563eb!important;background:#eff6ff!important;color:#175cd3!important;box-shadow:inset 0 0 0 1px #2563eb!important}
.epu-filter-thumb{display:block;width:100%;max-width:74px;height:65px;overflow:hidden;border-radius:7px;background:#eef2f7}
.epu-filter-thumb img{display:block;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.epu-filter-label{display:block;white-space:nowrap;line-height:1.3}
@media(max-width:420px){.epu-filters{gap:5px!important}.epu-filters button{min-height:89px!important;padding:6px 3px!important;font-size:10px!important}.epu-filter-thumb{height:52px;max-width:62px}}

/* 0.11.10 — selector premium de iconos y controles en antracita */
.epu-filters{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.epu-filters button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:0!important;min-height:83px!important;padding:12px 5px!important;border:1px solid #dce3ed!important;border-radius:12px!important;background:#fff!important;color:#202a39!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important;transition:background .15s,border-color .15s!important}
.epu-filters button:hover{background:#f8fbff!important;border-color:#8fa9d0!important}
.epu-filters button.is-active{border-color:#2563eb!important;background:#eff6ff!important;color:#175cd3!important;box-shadow:inset 0 0 0 1px #2563eb!important;font-weight:700!important}
.epu-filter-icon{display:flex;align-items:center;justify-content:center;width:25px;height:25px;flex:none}
.epu-filter-icon svg{display:block;width:25px;height:25px}
.epu-filter-label{display:block;line-height:1.25;white-space:nowrap}
.epu-filters .epu-filter-thumb{display:none!important}
.epu-manual-adjust input[type="range"],.epu-zoom input[type="range"]{accent-color:#1f2937!important}
.epu-reset-adjust{color:#263244!important}
.epu-quality{display:none!important}
@media(max-width:420px){.epu-filters{gap:6px!important}.epu-filters button{min-height:76px!important;padding:10px 2px!important;font-size:11px!important}.epu-filter-icon,.epu-filter-icon svg{width:22px;height:22px}}

/* 0.11.11 — Vistas premium con SVG originales. Solo presentación. */
body.epu-photo-product .epu-view-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:#f1f3f6;border-radius:12px}
body.epu-photo-product .epu-view-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:65px;padding:9px 3px;border:1px solid transparent;border-radius:9px;background:transparent;color:#526071;font-size:11px;line-height:1.15;font-weight:600;transition:background .15s ease,box-shadow .15s ease,color .15s ease}
body.epu-photo-product .epu-view-switch button.is-active{background:#fff;border-color:#e2e8f0;color:#182436;box-shadow:0 2px 6px rgba(15,23,42,.09)}
body.epu-photo-product .epu-view-switch button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
body.epu-photo-product .epu-view-switch .epu-view-icon{display:block;flex:none;width:20px;height:20px}
@media(max-width:767px){body.epu-photo-product .epu-view-switch button{min-height:60px;padding:7px 2px;font-size:10px}body.epu-photo-product .epu-view-switch .epu-view-icon{width:19px;height:19px}}


/* 0.11.12 — Pulido premium: selección neutra, miniaturas móviles y giros SVG. */
body.epu-photo-product .epu-filters button.is-active{
  background:#fff!important;color:#182436!important;border-color:#c9d1dd!important;
  box-shadow:0 2px 7px rgba(15,23,42,.11),inset 0 0 0 1px #c9d1dd!important;
}
body.epu-photo-product .epu-filters button:hover{background:#f5f6f8!important;border-color:#aab4c2!important}
body.epu-photo-product .epu-filters button:focus-visible{outline:2px solid #334155!important;outline-offset:2px}
body.epu-photo-product .epu-adjust > button[data-rot],
body.epu-photo-product .epu-adjust > button[data-photo-rot]{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  min-height:42px!important;padding:9px 12px!important;border:1px solid #d9dfe8!important;
  border-radius:10px!important;background:#fff!important;color:#1e293b!important;
  font-size:12px!important;font-weight:600!important;line-height:1.2!important;box-shadow:none!important;
}
body.epu-photo-product .epu-adjust > button[data-rot]:hover,
body.epu-photo-product .epu-adjust > button[data-photo-rot]:hover{background:#f5f6f8!important;border-color:#aeb9c8!important}
body.epu-photo-product .epu-adjust .epu-rotate-icon{display:block;width:19px;height:19px;flex:0 0 19px}
body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-remove{
  top:-7px!important;right:-7px!important;width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important;
  padding:0!important;box-sizing:border-box!important;border:2px solid #fff!important;border-radius:50%!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-size:18px!important;font-family:Arial,sans-serif!important;font-weight:600!important;line-height:1!important;
  text-align:center!important;letter-spacing:0!important;text-indent:0!important;
}
@media(max-width:767px){
  body.epu-photo-product .epu-photo-box .epu-photo-tabs{gap:10px!important;overflow-x:auto!important;flex-wrap:nowrap!important;
    padding:8px 9px 8px 3px!important;scrollbar-width:none}
  body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap{flex:0 0 116px!important;width:116px!important;max-width:none!important}
  body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo]{
    width:116px!important;height:113px!important;min-width:116px!important;max-width:116px!important;flex:0 0 116px!important;
    padding:5px!important;border-radius:12px!important}
  body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap > button[data-photo] img{height:81px!important}
  body.epu-photo-product .epu-photo-box .epu-photo-tabs > button.epu-add-second{
    width:86px!important;height:113px!important;min-width:86px!important;max-width:86px!important;flex:0 0 86px!important}
  body.epu-photo-product .epu-adjust > button[data-rot],body.epu-photo-product .epu-adjust > button[data-photo-rot]{min-width:0!important}
}

/* 0.11.13 — Estado seleccionado antracita en vistas y filtros (solo CSS). */
body.epu-photo-product .epu-view-switch button.is-active,
body.epu-photo-product .epu-view-switch button.is-active:hover,
body.epu-photo-product .epu-view-switch button.is-active:focus-visible,
body.epu-photo-product .epu-filters button.is-active,
body.epu-photo-product .epu-filters button.is-active:hover,
body.epu-photo-product .epu-filters button.is-active:focus-visible{
  background:#1f2937!important;
  color:#fff!important;
  border-color:#1f2937!important;
  box-shadow:0 2px 7px rgba(15,23,42,.18)!important;
}
body.epu-photo-product .epu-view-switch button.is-active svg,
body.epu-photo-product .epu-filters button.is-active svg,
body.epu-photo-product .epu-filters button.is-active .epu-filter-label,
body.epu-photo-product .epu-view-switch button.is-active span{
  color:#fff!important;
  stroke:currentColor;
}

/* 0.11.14 — estado inicial antes de subir una fotografía. */
body.epu-photo-product .epu-photo-box.epu-empty-state .epu-preview{display:none!important}
body.epu-photo-product .epu-photo-box.epu-empty-state .epu-pro-controls{display:none!important}
body.epu-photo-product .epu-photo-box.epu-empty-state .epu-upload-btn{border-radius:12px;border-color:#cbd5e1;background:#f8fafc;min-height:104px}
body.epu-photo-product .epu-photo-box.epu-empty-state .epu-upload-btn:hover{border-color:#1f2937;background:#f1f5f9}
body.epu-photo-product .epu-frame-window .epu-user-photo[hidden]{display:none!important}
body.epu-photo-product .epu-frame-window .epu-empty-prompt[hidden]{display:none!important}
body.epu-photo-product .epu-frame-window .epu-empty-prompt{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:10px;box-sizing:border-box;background:linear-gradient(145deg,#f5f7fa,#e7edf4);color:#536274;pointer-events:none}
body.epu-photo-product .epu-frame-window .epu-empty-prompt svg{width:clamp(22px,15%,46px);height:auto;flex-shrink:0}
body.epu-photo-product .epu-frame-window .epu-empty-prompt strong{font-size:clamp(9px,1.3vw,15px);line-height:1.3;color:#253447}
body.epu-photo-product .epu-frame-window .epu-empty-prompt small{font-size:clamp(8px,1vw,11px);line-height:1.35;max-width:170px}
@media(max-width:767px){body.epu-photo-product .epu-frame-window .epu-empty-prompt{gap:5px;padding:5px}body.epu-photo-product .epu-frame-window .epu-empty-prompt small{font-size:8px}}

/* 0.11.17: stable gallery height across front/perspective/ambient views.
   The mockup remains square internally; do not clip it or force JS pixel heights. */
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .epu-gallery-preview > .epu-preview-stage:not(.epu-real-preview-docked){
  width:100%!important;aspect-ratio:1/1!important;height:auto!important;min-height:0!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .epu-gallery-preview > .epu-preview-stage .epu-frame.has-mockup{
  max-height:100%!important;
}

/* 0.11.19 — Sticky de edición a escala grande.
   El stage real conserva su geometría; sólo cambia el espacio del dock.
   95vw iguala aproximadamente el ancho de la vista principal móvil.
   62dvh deja accesibles los controles en pantallas bajas. */
@media (max-width:767px){
  body.epu-photo-product .epu-real-preview-dock-shell{
    height:min(95vw, 62dvh, 480px)!important;
  }
}

/* 0.11.24 — Un solo scroll: el documento conserva sus controles originales.
   El marco ocupa como máximo el 38% de la pantalla para dejar sitio al zoom. */
@media(max-width:767px){
 body.epu-photo-product .epu-real-preview-dock-shell{
   height:min(76vw, 38dvh, 320px)!important;
   top:4px!important;
   transition:opacity .18s ease-out!important;
 }
 body.epu-photo-product.epu-dock-active .epu-pro-controls{
   scroll-margin-top:min(76vw, 38dvh, 320px)!important;
 }
}

/* 0.11.28: aparición progresiva sin alterar el espacio ni los controles */
@media(max-width:767px){
 body.epu-photo-product .epu-real-preview-dock-shell{animation:epu-dock-enter .22s ease-out both!important}
 @keyframes epu-dock-enter{from{opacity:0}to{opacity:1}}
}

/* 0.11.29: vista ampliada; aislada del sticky y del scroll de edición */
.epu-fullscreen-overlay{position:fixed!important;inset:0!important;z-index:2147483600!important;background:rgba(238,242,247,.52)!important;-webkit-backdrop-filter:blur(12px) saturate(115%)!important;backdrop-filter:blur(12px) saturate(115%)!important;display:block!important;overflow:hidden!important}
.epu-fullscreen-panel{position:absolute!important;inset:58px 10px 18px!important;overflow:hidden!important}
.epu-fullscreen-close{position:absolute!important;right:16px!important;top:12px!important;z-index:2!important;width:40px!important;height:40px!important;border:1px solid #64748b!important;border-radius:50%!important;background:#fff!important;color:#111827!important;font-size:29px!important;line-height:36px!important;cursor:pointer!important}
.epu-preview-stage{cursor:zoom-in}
.epu-fullscreen-panel .epu-preview-stage{cursor:default}

/* 0.11.34: visor autónomo, sin mover el stage del configurador */
.epu-fullscreen-panel{isolation:isolate}
.epu-fullscreen-panel .epu-fullscreen-copy{pointer-events:none;cursor:default!important}
.epu-fullscreen-arrow{position:absolute!important;top:50%!important;z-index:4!important;transform:translateY(-50%)!important;width:42px!important;height:58px!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:12px!important;background:rgba(255,255,255,.94)!important;color:#101828!important;font-size:42px!important;line-height:45px!important;cursor:pointer!important}
.epu-fullscreen-prev{left:12px!important}.epu-fullscreen-next{right:12px!important}
@media(max-width:767px){.epu-fullscreen-prev{left:3px!important}.epu-fullscreen-next{right:3px!important}.epu-fullscreen-arrow{width:32px!important;height:48px!important;font-size:33px!important}}
