.pcj-tirantes-personalizador{width:100%;max-width:1100px;margin:18px auto 24px;font-family:inherit;color:#191919;box-sizing:border-box}.pcj-tirantes-personalizador *{box-sizing:border-box}.pcj-tirantes-personalizador h2{font-size:clamp(20px,2vw,28px);margin:0 0 9px}.pcj-tirantes-personalizador h3{font-size:17px;font-weight:700;margin:0 0 14px}.pcj-help{font-size:13px;color:#555;line-height:1.55}.pcj-preview-wrap{background:#f7f7f7;border-radius:11px;padding:12px;display:flex;flex-direction:column;align-items:center;margin:22px 0}.pcj-preview-wrap canvas{width:100%;max-width:750px;display:block;height:auto;aspect-ratio:1/1;background:#fff}.pcj-preview-note{font-size:12px;color:#777;text-align:center;margin:8px 0 2px}.pcj-field{margin:22px 0}.pcj-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.pcj-color-choice{display:flex;align-items:center;min-height:41px;gap:7px;border:1px solid #d7d7d7;border-radius:6px;padding:9px 10px;font-size:12px;cursor:pointer;line-height:1.25;margin:0;white-space:normal}.pcj-color-choice:has(input:checked){border:2px solid #171717;padding:8px 9px}.pcj-color-choice input{position:absolute;opacity:0;width:1px;height:1px}.pcj-color-choice input:focus-visible+.pcj-swatch{outline:3px solid #111;outline-offset:3px}.pcj-swatch{flex:0 0 16px;width:16px;height:16px;border-radius:50%;border:1px solid #aaa}.pcj-tirantes-personalizador select,.pcj-tirantes-personalizador textarea,.pcj-tirantes-personalizador input[type=file]{display:block;width:100%;max-width:540px;margin:9px 0 8px;padding:12px;border:1px solid #c9c9c9;border-radius:5px;background:#fff;color:#171717}.pcj-tirantes-personalizador #pcj-tirantes-subida{margin:15px 0;padding:14px;background:#f8f8f8;border-radius:7px}.pcj-tirantes-personalizador [hidden]{display:none!important}.pcj-tirantes-producto form.cart{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;clear:both!important}.pcj-tirantes-producto form.cart .pcj-tirantes-personalizador{order:0!important}.pcj-tirantes-producto form.cart .quantity{order:2!important}.pcj-tirantes-producto form.cart button.single_add_to_cart_button{order:3!important;float:none!important;max-width:100%;width:100%;margin:0!important;min-height:48px}.pcj-tirantes-producto form.cart .woocommerce-variation-add-to-cart{order:3!important}.pcj-tirantes-producto form.cart .woocommerce-variation-add-to-cart button.single_add_to_cart_button{width:100%}.pcj-validacion{margin:12px 0 20px!important}@media(max-width:900px){.pcj-colors{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:550px){.pcj-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.pcj-color-choice{font-size:12px;padding:8px 7px}.pcj-tirantes-personalizador{margin-top:8px}}

/* v1.1: únicamente en la ficha de tirantes: galería DESPUÉS del carrito */
body.pcj-tirantes-producto .woocommerce div.product .summary,
body.pcj-tirantes-producto.woocommerce div.product .summary,
body.pcj-tirantes-producto .single-product div.product .summary {width:100%!important;float:none!important;clear:both!important;max-width:1100px;margin-left:auto!important;margin-right:auto!important;}
body.pcj-tirantes-producto .woocommerce div.product .images:not(.pcj-tirantes-galeria-movida),
body.pcj-tirantes-producto.woocommerce div.product .images:not(.pcj-tirantes-galeria-movida){display:none!important;}
body.pcj-tirantes-producto .pcj-tirantes-galeria-movida{width:100%!important;max-width:750px!important;float:none!important;clear:both!important;margin:30px auto!important;display:block!important;}
body.pcj-tirantes-producto .pcj-tirantes-galeria-movida img{max-width:100%;height:auto;}
.pcj-tipo-opciones{display:flex;flex-wrap:wrap;gap:18px;align-items:center;}
.pcj-tipo-opciones label{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:14px;}
.pcj-tipo-opciones input{accent-color:#171717;}

/* v1.2: vista previa centrada, con más tamaño, sin columna vacía a la izquierda. */
body.pcj-tirantes-producto .pcj-tirantes-layout-raiz,
body.pcj-tirantes-producto .pcj-tirantes-layout-padre{display:block!important;grid-template-columns:minmax(0,1fr)!important;max-width:100%!important;min-width:0!important;}
body.pcj-tirantes-producto .pcj-tirantes-ancho-total{width:100%!important;max-width:100%!important;flex:0 1 100%!important;flex-basis:100%!important;float:none!important;clear:both!important;margin-left:auto!important;margin-right:auto!important;min-width:0!important;}
body.pcj-tirantes-producto .pcj-tirantes-columna-vacia{display:none!important;}
body.pcj-tirantes-producto #pcj-tirantes-personalizador{width:min(100%,1100px)!important;max-width:1100px!important;margin:24px auto!important;min-width:0!important;}
body.pcj-tirantes-producto #pcj-tirantes-personalizador .pcj-preview-wrap{width:100%!important;margin-left:auto!important;margin-right:auto!important;}
body.pcj-tirantes-producto #pcj-tirantes-canvas{width:min(100%,1000px)!important;max-width:1000px!important;margin:0 auto!important;}
body.pcj-tirantes-producto form.cart{width:100%!important;max-width:1100px!important;margin:0 auto!important;min-width:0!important;}
body.pcj-tirantes-producto .pcj-tirantes-galeria-movida{margin:24px auto!important;}
/* Protección específica contra desbordamientos horizontales en móvil. */
@media(max-width:767px){
 html:has(body.pcj-tirantes-producto),body.pcj-tirantes-producto{max-width:100%!important;overflow-x:clip!important;}
 body.pcj-tirantes-producto .pcj-tirantes-layout-raiz,
 body.pcj-tirantes-producto .pcj-tirantes-layout-padre,
 body.pcj-tirantes-producto .pcj-tirantes-ancho-total,
 body.pcj-tirantes-producto .pcj-tirantes-personalizador,
 body.pcj-tirantes-producto .pcj-preview-wrap,
 body.pcj-tirantes-producto form.cart,
 body.pcj-tirantes-producto .pcj-tirantes-galeria-movida{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;}
 body.pcj-tirantes-producto #pcj-tirantes-personalizador{padding:0 12px!important;margin:12px auto!important;}
 body.pcj-tirantes-producto #pcj-tirantes-canvas{display:block;max-width:100%!important;height:auto!important;}
 body.pcj-tirantes-producto .pcj-colors{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 body.pcj-tirantes-producto .pcj-tipo-opciones{max-width:100%;flex-wrap:wrap;}
}
