/* Photo Upload 0.11.43 — único editor de foto, compacto y sin galerías duplicadas.
   Este archivo está AISLADO de otras fichas: body.epu-photo-product. */

/* La galería original y la personalizada permanecen en DOM, pero SOLO una se ve. */
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > :not(.epu-gallery-preview){
  display:none!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring > .epu-gallery-preview{
  display:flex!important;position:relative!important;width:100%!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  border-radius:12px!important;background:#fff!important;
}
body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring .epu-gallery-preview > .epu-preview-stage{
  display:flex!important;width:100%!important;aspect-ratio:1/1!important;
  max-width:100%!important;margin:0!important;
}
/* Portátil: reducir el tamaño del marco SIN deformar el stage cuadrado. */
@media(min-width:768px) and (max-height:850px){
  body.epu-photo-product .woocommerce-product-gallery.epu-gallery-configuring{
    width:min(100%,calc(100dvh - 255px))!important;
    max-width:100%!important;margin-inline:auto!important;
  }
}

/* Cabecera de producto reducida (no cambia el texto, título SEO ni precio). */
body.epu-photo-product .entry-summary .product_title,
body.epu-photo-product .entry-summary > h1.product_title{
  font-size:clamp(20px,1.55vw,26px)!important;
  line-height:1.17!important;
  letter-spacing:-.025em!important;
  margin:0 0 7px!important;
}
body.epu-photo-product .entry-summary .woocommerce-product-details__short-description{
  margin:0 0 9px!important;font-size:12px!important;line-height:1.4!important;
}
body.epu-photo-product .entry-summary .woocommerce-product-details__short-description p{
  margin:0 0 6px!important;
}
body.epu-photo-product .entry-summary .price{
  margin-block:6px 10px!important;
}
body.epu-photo-product .epu-photo-box{
  margin:10px 0 12px!important;padding:14px 15px!important;
  border-radius:13px!important;
  box-shadow:none!important;
}
body.epu-photo-product .epu-photo-head{margin:0 0 9px!important;}
body.epu-photo-product .epu-photo-head h3{
  font-size:17px!important;line-height:1.2!important;margin:0 0 4px!important;
}
body.epu-photo-product .epu-photo-head p{
  font-size:11.5px!important;line-height:1.35!important;margin:0!important;
}
body.epu-photo-product .epu-kicker{
  font-size:9px!important;letter-spacing:.11em!important;margin-bottom:4px!important;
}
body.epu-photo-product .epu-upload-btn{
  display:flex!important;flex-direction:row!important;justify-content:center!important;
  flex-wrap:wrap!important;min-height:58px!important;
  gap:5px 10px!important;padding:9px!important;
  background:#f8fafc!important;border-radius:9px!important;
}
body.epu-photo-product .epu-upload-btn span{font-size:22px!important;line-height:1!important;}
body.epu-photo-product .epu-upload-btn strong{font-size:13px!important;}
body.epu-photo-product .epu-upload-btn small{font-size:10px!important;}
body.epu-photo-product .epu-pro-controls{margin-top:12px!important;}
body.epu-photo-product .epu-step{font-size:11px!important;margin:12px 0 7px!important;}
body.epu-photo-product .epu-step b{width:19px!important;height:19px!important;font-size:10px!important;}
body.epu-photo-product .epu-view-switch{gap:3px!important;padding:3px!important;}
body.epu-photo-product .epu-view-switch button{min-height:47px!important;padding:5px 4px!important;gap:3px!important;font-size:10px!important;}
body.epu-photo-product .epu-view-switch .epu-view-icon{width:17px!important;height:17px!important;}
body.epu-photo-product .epu-filters{gap:6px!important;}
body.epu-photo-product .epu-filters button{min-height:55px!important;padding:7px 4px!important;gap:3px!important;font-size:10.5px!important;}
body.epu-photo-product .epu-filter-icon,body.epu-photo-product .epu-filter-icon svg{width:20px!important;height:20px!important;}
body.epu-photo-product .epu-adjust{gap:6px!important;}
body.epu-photo-product .epu-adjust>button[data-rot],
body.epu-photo-product .epu-adjust>button[data-photo-rot]{min-height:36px!important;padding:6px 9px!important;font-size:10px!important;}
body.epu-photo-product .epu-zoom{gap:4px!important;}
body.epu-photo-product .epu-photo-consent{margin:10px 0 0!important;padding:10px!important;}
body.epu-photo-product .epu-photo-consent-label{font-size:11px!important;line-height:1.38!important;}
body.epu-photo-product .epu-photo-box.epu-empty-state .epu-upload-btn{
  min-height:67px!important;
}

/* Opciones avanzadas, presentes pero sin bloquear el flujo principal. */
body.epu-photo-product .epu-extra-editor{
  border:1px solid #e2e8f0;border-radius:10px;margin:12px 0 2px;
  background:#fff;color:#263244;
}
body.epu-photo-product .epu-extra-editor > summary{
  display:list-item;cursor:pointer;font-size:11.5px;line-height:1.45;
  font-weight:650;padding:10px 12px;list-style-position:inside;
}
body.epu-photo-product .epu-extra-editor[open] > summary{border-bottom:1px solid #e2e8f0;}
body.epu-photo-product .epu-extra-body{padding:11px;}
body.epu-photo-product .epu-extra-body .epu-manual-adjust{margin:0 0 11px!important;}
body.epu-photo-product .epu-extra-body .epu-showcase-btn{margin:6px 0 10px!important;}
body.epu-photo-product .epu-extra-body .epu-studio-ai{margin:10px 0 0!important;}

/* Indicador no vinculante de resolución: el pedido nunca queda bloqueado. */
body.epu-photo-product .epu-quality.epu-quality-inline{
  display:block!important;margin:7px 0!important;
  padding:6px 9px!important;border-radius:8px!important;
  font-size:10.5px!important;line-height:1.3!important;
  background:#f0fdf4!important;color:#166534!important;font-weight:600!important;
}
body.epu-photo-product .epu-quality.epu-quality-inline[data-quality="justa"]{
 background:#fffbeb!important;color:#92400e!important;
}
body.epu-photo-product .epu-quality.epu-quality-inline[data-quality="baja"]{
 background:#fff7ed!important;color:#9a3412!important;
}

/* Móvil: el configurador se apila; no hay sticky en ordenadores con ratón/trackpad. */
@media(max-width:767px){
 body.epu-photo-product .epu-photo-box{margin:10px 0!important;padding:12px!important;}
 body.epu-photo-product .epu-filters button{min-height:49px!important;}
 body.epu-photo-product .epu-adjust{display:grid!important;grid-template-columns:1fr 1fr!important;}
 body.epu-photo-product .epu-adjust .epu-zoom{grid-column:1/-1!important;}
 body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap{width:83px!important;flex:0 0 83px!important;}
 body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap>button[data-photo]{width:83px!important;height:87px!important;min-width:83px!important;max-width:83px!important;padding:4px!important;}
 body.epu-photo-product .epu-photo-box .epu-photo-tabs .epu-photo-tab-wrap>button[data-photo] img{height:56px!important;}
 body.epu-photo-product .epu-photo-box .epu-photo-tabs>button.epu-add-second{width:78px!important;height:87px!important;min-width:78px!important;max-width:78px!important;flex:0 0 78px!important;}
}
@media(min-width:768px) and (max-width:1200px){
 body.epu-photo-product .epu-photo-head h3{font-size:16px!important;}
 body.epu-photo-product .epu-photo-box{padding:12px!important;}
}


/* EPU 0.11.44 — cabecera dentro del editor, precio junto a compra.
   Solo se aplica después de que el DOM original se haya movido correctamente. */
body.epu-photo-product.epu-editor-layout-ready .entry-summary > form.cart,
body.epu-photo-product.epu-editor-layout-ready .entry-summary > form.variations_form{
  margin-top:0!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-photo-box{
  margin-top:0!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-photo-head{
  margin-bottom:8px!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-photo-head h3,
body.epu-photo-product.epu-editor-layout-ready .epu-photo-head > p{
  display:none!important; /* copy is repeated on the upload action */
}
body.epu-photo-product.epu-editor-layout-ready .entry-summary .epu-photo-head h1.product_title{
  display:block!important;
  font-size:clamp(17px,1.25vw,21px)!important;
  line-height:1.23!important;
  font-weight:700!important;
  letter-spacing:-.025em!important;
  color:#172536!important;
  margin:3px 0 0!important;
  padding:0!important;
  text-align:left!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-buy-price-slot{
  width:100%;min-width:0;box-sizing:border-box;
  display:flex;align-items:baseline;justify-content:flex-start;
  margin:5px 0 8px!important;padding:0!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-buy-price-slot > .epp-purchase-price,
body.epu-photo-product.epu-editor-layout-ready .epu-buy-price-slot > .price{
  display:block!important;margin:0!important;padding:0!important;
  font-size:clamp(20px,1.5vw,24px)!important;line-height:1.18!important;
  font-weight:750!important;color:#172536!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-product-after-buy{
  margin:10px 0 8px!important;display:flex;flex-wrap:wrap;
  gap:6px 14px;align-items:center;
  color:#677486;font-size:11px;line-height:1.45;
}
body.epu-photo-product.epu-editor-layout-ready .epu-product-after-buy .proposter-rating,
body.epu-photo-product.epu-editor-layout-ready .epu-product-after-buy .woocommerce-product-rating,
body.epu-photo-product.epu-editor-layout-ready .epu-product-after-buy .woocommerce-product-details__short-description{
  margin:0!important;padding:0!important;max-width:100%!important;
  border:0!important;box-shadow:none!important;
}
body.epu-photo-product.epu-editor-layout-ready .epu-product-after-buy p{margin:0!important;}
@media(max-width:767px){
  body.epu-photo-product.epu-editor-layout-ready .entry-summary .epu-photo-head h1.product_title{
    font-size:18px!important;
  }
  body.epu-photo-product.epu-editor-layout-ready .epu-buy-price-slot{margin:7px 0 8px!important;}
}


/* EPU 0.11.45 — recuperar el espacio perdido arriba al mover el título.
   Exclusivo de productos de foto con el editor realmente inicializado.
   Eliminar la línea huérfana de Blocksy no modifica separadores inferiores. */
body.single-product.epu-photo-product.epu-editor-layout-ready .entry-summary {
  padding-top:0!important;
  margin-top:0!important;
}
body.single-product.epu-photo-product.epu-editor-layout-ready
.entry-summary .ct-product-divider.epu-orphan-heading-divider {
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
body.single-product.epu-photo-product.epu-editor-layout-ready .entry-summary .epu-photo-box[data-epu] {
  margin-top:0!important;
}
