.pcj-pisa{max-width:1050px;margin:25px auto;padding:26px;background:#fff;border:1px solid #e6e6e6;border-radius:14px;color:#171717;font:inherit;clear:both}.pcj-pisa *{box-sizing:border-box}.pcj-pisa h2{font-size:26px;margin:0 0 6px;font-weight:700}.pcj-pisa .pcj-sub{color:#616161;margin:0 0 14px}.pcj-preview{background:#f5f5f5;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:center}.pcj-clip{max-width:100%;width:740px;height:auto;display:block}.pcj-hint{font-size:12px;color:#666;margin:10px 0 24px}.pcj-fieldset{border:0;margin:0 0 22px;padding:0}.pcj-fieldset legend,.pcj-label{display:block;font-size:17px;font-weight:700;margin-bottom:12px}.pcj-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pcj-choice{display:flex;min-height:124px;flex-direction:column;align-items:center;justify-content:center;border:1px solid #d9d9d9;border-radius:10px;cursor:pointer;gap:7px;text-align:center;padding:12px;font-size:14px;background:#fff}.pcj-choice:has(input:checked){border:2px solid #202020;background:#fafafa}.pcj-choice input{accent-color:#222;width:16px;height:16px;margin:0}.pcj-shape{font-size:38px;line-height:1;color:#7a8590}.pcj-fieldset input[type=file]{width:100%;padding:14px;border:1px dashed #bbb;border-radius:8px;background:#fafafa}.pcj-fieldset small{display:block;margin-top:8px;color:#777}.pcj-fieldset textarea{width:100%;border:1px solid #ccc;border-radius:8px;padding:12px}.pcj-error{color:#a00000;font-weight:600}@media(max-width:640px){.pcj-pisa{padding:16px;margin:15px 0}.pcj-pisa h2{font-size:21px}.pcj-options{grid-template-columns:1fr}.pcj-choice{min-height:78px;flex-direction:row;justify-content:flex-start;text-align:left}.pcj-shape{font-size:30px}}

/* v1.1: layout exclusively for the personalized silver tie clip. */
body.pcj-pisa-product .product .summary,
body.pcj-pisa-product .woocommerce div.product div.summary,
body.pcj-pisa-product .woocommerce div.product div.images {width:100%!important;float:none!important;clear:both!important;max-width:1050px;margin-left:auto!important;margin-right:auto!important}
body.pcj-pisa-product .pcj-pisa-gallery-after-cart{max-width:1050px;margin:24px auto 32px;clear:both}
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0 auto!important}
body.pcj-pisa-product .pcj-pisa-gallery-after-cart img{max-width:100%;height:auto}
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .flex-direction-nav,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .flex-prev,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .flex-next,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .slick-arrow,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .swiper-button-next,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .swiper-button-prev,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .owl-prev,
body.pcj-pisa-product .pcj-pisa-gallery-after-cart .owl-next{display:none!important}
body.pcj-pisa-product .woocommerce div.product form.cart{max-width:1050px;margin:0 auto 24px}
body.pcj-pisa-product .woocommerce div.product form.cart .single_add_to_cart_button{display:block;width:100%;max-width:none;clear:both}
body.pcj-pisa-product .woocommerce div.product .woocommerce-tabs{clear:both;max-width:1050px;margin:22px auto}
body.pcj-pisa-product .woocommerce div.product .related{clear:both}

/* v1.3: una única columna para este producto, independientemente de las
   columnas que aplique la plantilla WooCommerce/Elementor. */
body.pcj-pisa-product .woocommerce div.product,
body.pcj-pisa-product div.product.product,
body.pcj-pisa-product .woocommerce-page div.product{display:block!important;grid-template-columns: minmax(0,1fr)!important;}
body.pcj-pisa-product .woocommerce div.product .summary,
body.pcj-pisa-product .product .summary,
body.pcj-pisa-product .woocommerce div.product .product-summary,
body.pcj-pisa-product .woocommerce div.product form.cart,
body.pcj-pisa-product .woocommerce div.product form.cart .pcj-pisa{
 width:100%!important;max-width:1050px!important;float:none!important;
 clear:both!important;margin-left:auto!important;margin-right:auto!important;
 position:relative!important;left:auto!important;right:auto!important;
}
body.pcj-pisa-product form.cart{display:flex!important;flex-direction:column!important;align-items:stretch!important;grid-template-columns:none!important;gap:12px!important;}
body.pcj-pisa-product form.cart > *,
body.pcj-pisa-product form.cart > .quantity,
body.pcj-pisa-product form.cart > .single_add_to_cart_button{float:none!important;align-self:stretch!important;order:initial!important;}
body.pcj-pisa-product form.cart > .pcj-pisa{order:-20!important;}
body.pcj-pisa-product form.cart > .quantity{order:-10!important;margin:0!important;}
body.pcj-pisa-product form.cart > .single_add_to_cart_button{order:-9!important;width:100%!important;margin:0!important;min-height:46px!important;}
body.pcj-pisa-product .pcj-pisa-gallery-after-cart{display:block!important;width:100%!important;max-width:1050px!important;margin:32px auto!important;clear:both!important;}
body.pcj-pisa-product .pcj-pisa{box-sizing:border-box!important;margin-top:14px!important;}
/* Selección de archivo y previsualización como el personalizador de gemelos. */
body.pcj-pisa-product .pcj-upload-zone{border:2px dashed #d2d2d2;border-radius:12px;min-height:128px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-align:center;background:#fff;padding:22px 14px;position:relative;}
body.pcj-pisa-product .pcj-upload-zone:hover,body.pcj-pisa-product .pcj-upload-zone:focus-within{border-color:#bc0058;}
body.pcj-pisa-product .pcj-upload-title{color:#c00059;font-weight:700;font-size:15px;}
body.pcj-pisa-product .pcj-upload-subtitle{color:#666;font-size:12px;}
body.pcj-pisa-product .pcj-upload-zone input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:1!important;padding:0!important;}
body.pcj-pisa-product .pcj-file-preview{border:1px solid #ddd;border-radius:12px;min-height:130px;display:flex;align-items:center;justify-content:center;margin-top:12px;background:#fff;padding:16px;overflow:hidden;}
body.pcj-pisa-product .pcj-file-preview span{font-size:12px;color:#999;}
body.pcj-pisa-product .pcj-file-preview img{display:block;max-height:240px;max-width:100%;width:auto;height:auto;object-fit:contain;}
body.pcj-pisa-product .pcj-file-preview img[hidden]{display:none!important;}
@media(max-width:720px){body.pcj-pisa-product .pcj-pisa{width:100%!important;padding:14px!important}body.pcj-pisa-product .pcj-upload-zone{min-height:110px}}


/* v1.4: refuerzo visual del acabado integrado en plata. */
body.pcj-pisa-product .pcj-preview svg image{image-rendering:auto;}
body.pcj-pisa-product .pcj-file-preview{background:#fff;}

/* v1.6: solo móvil — el zoom lo controla el SVG sin alterar escritorio. */
@media(max-width:720px){
 body.pcj-pisa-product .pcj-preview{padding:8px 3px;overflow:hidden;}
 body.pcj-pisa-product .pcj-clip{display:block;width:100%;max-width:none;height:auto;}
}
