/*
Theme Name: Cai Pro Print Autoadministrable
Theme URI: https://caiproprint.cl
Author: Cai Pro Print
Description: Tema de bloques totalmente editable para Cai Pro Print.
Version: 60.3.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: caiproprint
*/
/* Los estilos completos se cargan directamente desde functions.php. */
.cai-plan-match.is-error{background:#fff0f0!important;color:#a51f28!important;border-left:4px solid #c7333c!important}
#cai-plan-status.is-error{margin-top:10px;padding:10px 12px;background:#fff0f0;color:#a51f28;border-left:4px solid #c7333c;font-weight:800}#cai-plan-status.is-success{margin-top:10px;padding:10px 12px;background:#edf9f1;color:#18733a;border-left:4px solid #27a85a;font-weight:800}
.cai-plan-upload input[type=file]{width:100%;box-sizing:border-box}.cai-plan-previews{grid-template-columns:1fr!important}.cai-plan-card{grid-template-columns:minmax(130px,190px) minmax(0,1fr)!important;gap:16px!important;border:1px solid #cad6dd!important;border-radius:10px!important;padding:14px!important;background:#fff!important;box-shadow:0 4px 14px rgba(17,18,23,.06)}.cai-plan-card canvas{height:180px!important;border-radius:6px!important}.cai-plan-card>div{gap:8px!important}.cai-plan-assignment{display:block;padding:9px 11px;background:#eaf8fd;color:#006c93;border-left:4px solid #00a8df;font-size:13px}.cai-plan-format-label,.cai-plan-copy-label{display:grid!important;grid-template-columns:minmax(110px,150px) minmax(0,1fr);align-items:center;gap:8px;font-weight:800!important}.cai-plan-format-select,.cai-plan-copy-label input{width:100%!important;min-height:40px;padding:7px 9px;border:1px solid #9eabb3;background:#fff}.cai-plan-copy-label input{max-width:100px}.cai-plan-remove{justify-self:start;padding:8px 13px;border:1px solid #c7333c;background:#fff;color:#a51f28;font-weight:800;cursor:pointer}.cai-plan-remove:hover{background:#c7333c;color:#fff}@media(max-width:700px){.cai-plan-card{grid-template-columns:1fr!important}.cai-plan-card canvas{height:200px!important}.cai-plan-format-label,.cai-plan-copy-label{grid-template-columns:1fr}}
.cai-plan-view-pdf{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;padding:9px 14px!important;background:#00a8df!important;color:#fff!important;text-decoration:none!important;font-weight:800!important;border-radius:3px!important}
.cai-plan-reupload{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;padding:10px 14px!important;background:#e51d68!important;color:#fff!important;border:0!important;font-weight:900!important;cursor:pointer!important}
.cai-plan-upload-state{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:10px 12px;border-radius:7px;background:#eef5f8;color:#31444e;font-size:13px;font-weight:900}.cai-plan-upload-track{display:block;width:100%;height:12px;overflow:hidden;border-radius:999px;background:#d6e0e5;box-shadow:inset 0 1px 2px rgba(0,0,0,.12)}.cai-plan-upload-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#00a8df,#0879bd);border-radius:inherit;transition:width .18s ease}.cai-plan-upload-state.is-success{background:#edf9f1;color:#18733a}.cai-plan-upload-state.is-success .cai-plan-upload-fill{background:#27a85a}.cai-plan-upload-state.is-error{background:#fff0f0;color:#a51f28}.cai-plan-upload-state.is-error .cai-plan-upload-fill{background:#c7333c}.cai-plan-upload-retry{justify-self:start;padding:8px 12px;border:0;border-radius:3px;background:#e51d68;color:#fff;font-weight:900;cursor:pointer}.single_add_to_cart_button.cai-plan-files-pending,.single_add_to_cart_button.cai-plan-files-pending:hover{cursor:not-allowed!important;background:#9aa8af!important;color:#fff!important;opacity:.82!important}.single_add_to_cart_button.cai-plan-files-ready{background:#00a8df!important;opacity:1!important}
.cai-plan-page-selector{display:grid;gap:9px;padding:12px;border:1px solid #b9d6e2;border-radius:7px;background:#f5fbfd}.cai-plan-page-selector>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cai-plan-page-summary{font-size:12px;color:#3f5965;font-weight:800}.cai-plan-page-actions{display:flex;gap:7px;flex-wrap:wrap}.cai-plan-page-actions button{padding:7px 10px;border:1px solid #00a8df;background:#fff;color:#00769e;font-weight:800;cursor:pointer}.cai-plan-page-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:6px;max-height:190px;overflow:auto;padding:2px}.cai-plan-page-grid button{min-height:38px;border:1px solid #aebbc2;border-radius:4px;background:#fff;color:#25333a;font-weight:900;cursor:pointer}.cai-plan-page-grid button.is-selected{border-color:#00a8df;background:#00a8df;color:#fff;box-shadow:0 0 0 2px rgba(0,168,223,.16)}
.cai-cart-design-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin:8px 0!important}.cai-cart-plan-view{background:#fff!important;color:#00769e!important;border:1px solid #00a8df!important;padding:8px 11px!important;font-size:12px!important}.cai-cart-plan-thumb{display:block!important;width:var(--cai-cart-image,88px)!important;height:var(--cai-cart-image,88px)!important;overflow:hidden!important;background:#f3f6f8!important}.cai-cart-plan-thumb img,.cai-cart-plan-thumb object{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;border:0!important;pointer-events:none!important}.cai-cart-pdf-thumb{position:relative!important}.cai-cart-pdf-thumb:after{content:"Ver PDF";position:absolute;left:3px;right:3px;bottom:3px;padding:2px;background:rgba(0,0,0,.72);color:#fff;text-align:center;font-size:9px;font-weight:800}
.cai-custom-product .cai-design-purchase,.cai-roller-product .cai-roller-purchase{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}@media(min-width:1101px){body.cai-custom-product .cai-fields:has(>.cai-designer),body.cai-roller-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(650px,1fr) minmax(300px,390px)!important}body.cai-roller-product .cai-roller-purchase{width:100%!important;max-width:390px!important}}
.cai-orientation-option,.cai-side-tabs{padding:14px;border:2px solid #00a8df;background:#f4fbfe}.cai-orientation-option>div,.cai-side-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cai-orientation-option>div{margin:9px 0 5px}.cai-orientation-option button,.cai-side-tabs button{min-width:115px;padding:11px 16px;border:1px solid #aab5bc;background:#fff;font-weight:900;cursor:pointer}.cai-orientation-option button.is-active,.cai-side-tabs button.is-active{border-color:#00a8df;background:#00a8df;color:#fff}.cai-side-tabs{margin:0 0 14px}.cai-side-tabs strong{margin-right:4px}
.hero-product .cai-featured-image{padding:10px;background:#f5f8fa}.hero-product .cai-featured-image img{display:block;width:100%;height:100%;object-fit:contain;margin:0}.hero-product .price .amount{font-size:inherit}
@media(min-width:1101px){body.cai-custom-product main.site-main,body.cai-custom-product .content-area{max-width:1920px!important;width:100%!important;padding-left:2vw!important;padding-right:2vw!important}body.cai-custom-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(760px,1fr) 340px!important;gap:18px!important}body.cai-custom-product .cai-designer .cai-canvas-wrap{min-height:820px!important;padding:12px!important}body.cai-custom-product .cai-designer.is-landscape .cai-canvas-wrap canvas{max-height:820px!important;width:100%!important}body.cai-roller-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(720px,1fr) 430px!important}body.cai-roller-product .cai-roller-purchase{width:430px!important;position:sticky!important;top:15px!important}body.cai-roller-product .cai-roller-purchase .cai-roller-preview{min-height:650px!important}}
.cai-design-purchase{background:#eef3f6;padding:12px;align-self:start}.cai-design-purchase .single_add_to_cart_button{display:block!important;float:none!important;width:100%!important;min-height:58px!important;margin:0!important;background:#00a8df!important;color:#fff!important;font-size:18px!important;font-weight:900!important}@media(min-width:1101px){body.cai-custom-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(820px,1fr) 350px!important;gap:14px 18px!important}body.cai-custom-product .cai-designer .cai-canvas-wrap{min-height:850px!important}body.cai-custom-product .cai-design-purchase{grid-column:2!important}body.cai-roller-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(780px,1fr) 430px!important}}
.simple-header nav ul{display:flex;align-items:center;gap:25px;margin:0;padding:0;list-style:none}.simple-header nav li{margin:0;padding:0}.cai-admin-edit-link{display:inline-block!important;margin-top:8px!important;padding:6px 9px!important;background:#23282d!important;color:#fff!important;font-size:11px!important;font-weight:800!important;text-decoration:none!important}
.cai-editable-page-intro{padding:55px 7vw 35px;background:#f5f5f3}.cai-editable-page-intro h1{font-size:clamp(40px,5vw,70px);line-height:1;margin:0 0 18px}.cai-editable-page-intro .entry-content{max-width:900px;font-size:17px}.cai-editable-page-intro .entry-content:empty:after{content:"Agrega aquí el texto de presentación desde Páginas > Plantillas editables.";color:#687078}
.cai-template-thumb.shape-circle{width:145px!important;margin:auto;border-radius:50%!important}.cai-template-thumb.shape-oval{width:130px!important;margin:auto;border-radius:50%!important}.cai-template-thumb.shape-square{width:145px!important;margin:auto}.cai-template-thumb.shape-rounded-square{width:145px!important;margin:auto;border-radius:22px!important}.cai-template-thumb.shape-rounded-rectangle{border-radius:20px!important}
body .cai-roller-print canvas{display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;background:transparent!important;object-fit:fill!important}
.cai-cut-square{width:29px!important;height:29px!important}
.cai-quick-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cai-quick-template-grid>button{padding:8px!important;min-height:180px!important;text-align:center!important}.cai-quick-template-grid>button>small{display:block;margin-top:7px;font-weight:900;color:#171719}.cai-template-thumb{position:relative;width:100%;height:145px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px;background:#171719;color:#fff}.cai-template-thumb b,.cai-template-thumb span,.cai-template-thumb em{position:relative;z-index:2;display:block;max-width:88%;text-align:center}.cai-template-thumb b{font-size:17px;line-height:1}.cai-template-thumb span{margin-top:8px;font-size:10px;font-weight:800}.cai-template-thumb em{margin-top:8px;font-size:8px;font-style:normal}.cai-template-thumb.style-elegant-circle{width:145px;margin:auto;border-radius:50%;background:#b8ae99;color:#2b2722}.cai-template-thumb.style-elegant-circle b{font-family:Georgia,serif}.cai-template-thumb.style-elegant-circle em{color:#fff}.cai-template-thumb.style-blue-badge{width:145px;margin:auto;border-radius:50%;background:#08abc5}.cai-template-thumb.style-blue-badge:after{content:"";position:absolute;z-index:1;left:12%;right:12%;bottom:28px;height:24px;background:#153d5c}.cai-template-thumb.style-blue-badge b,.cai-template-thumb.style-blue-badge span{color:#fff}.cai-template-thumb.style-modern-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:14%;background:#e51d68}.cai-template-thumb.style-modern-card span{color:#00a8df}.cai-template-thumb.style-sale{width:145px;margin:auto;border-radius:50%;background:#ffd51f;color:#171719}.cai-template-thumb.style-sale:after{content:"";position:absolute;z-index:1;left:8%;right:8%;bottom:35px;height:34px;background:#e51d68}.cai-template-thumb.style-sale span{color:#fff}.cai-template-thumb.style-social{width:145px;margin:auto;border-radius:50%;background:#e51d68}.cai-template-thumb.style-social span{background:#fff;color:#e51d68;padding:5px 12px}.cai-template-thumb.style-schedule{background:#153d5c}.cai-template-thumb.style-schedule:before{content:"";position:absolute;left:0;right:0;top:0;height:38px;background:#00a8df}.cai-template-thumb.style-schedule em{color:#ffd51f}.cai-template-thumb.style-delivery{background:#ff6b21}.cai-template-thumb.style-delivery:before{content:"➜";position:absolute;top:4px;font-size:38px;color:#fff}.cai-template-thumb.style-thanks{width:145px;margin:auto;border-radius:50%;background:#4c2a72}.cai-template-thumb.style-thanks:before{content:"♥";position:absolute;top:5px;font-size:34px;color:#e51d68}@media(max-width:600px){.cai-quick-template-grid{grid-template-columns:1fr!important}}
body .cai-roller-print{width:var(--cai-roller-width,240px)!important;height:var(--cai-roller-height,470px)!important;left:var(--cai-roller-left,15px)!important;top:var(--cai-roller-top,17px)!important;background:transparent!important;transition:height .7s cubic-bezier(.2,.8,.2,1),top .7s cubic-bezier(.2,.8,.2,1),width .35s ease,left .35s ease!important}
body .cai-roller-preview[data-roller-state="closed"] .cai-roller-print{height:34px!important;top:450px!important}
.cai-roller-upload-button{position:relative;z-index:1;background:#00a8df!important;color:#fff!important;border-color:#00a8df!important;box-shadow:0 0 0 0 rgba(0,168,223,.5);animation:caiRollerButton 1.6s ease-in-out infinite}
@keyframes caiRollerButton{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(0,168,223,.45)}50%{transform:scale(1.06);box-shadow:0 0 0 9px rgba(0,168,223,0)}}
@media(prefers-reduced-motion:reduce){.cai-roller-upload-button{animation:none}}
.cai-more-button{font-weight:900!important}.cai-more-panel{position:relative;margin:0 0 14px;padding:18px;background:#fff;border:2px solid #171719;box-shadow:8px 8px 0 rgba(0,0,0,.08)}.cai-more-panel[hidden]{display:none!important}.cai-qr-tool{display:grid;grid-template-columns:58px minmax(0,1fr);gap:14px;align-items:center;margin-top:14px}.cai-qr-icon{display:grid;place-items:center;width:58px;height:58px;background:#171719;color:#fff;font-size:34px}.cai-qr-tool label{display:block;font-weight:900;margin-bottom:8px}.cai-qr-tool>div>div{display:flex;gap:8px}.cai-qr-tool input{flex:1;min-width:0;padding:11px;border:1px solid #9aa0a6}.cai-qr-tool button{border:0;background:#00a8df;color:#fff;padding:11px 18px;font-weight:900;cursor:pointer}.cai-qr-tool small{display:block;margin-top:7px;color:#687078}@media(max-width:600px){.cai-qr-tool{grid-template-columns:1fr}.cai-qr-tool>div>div{display:block}.cai-qr-tool button{width:100%;margin-top:8px}}
@media(min-width:901px){body .cai-designer{display:grid!important;grid-template-columns:125px minmax(0,1fr)!important;column-gap:16px!important;align-items:start!important}body .cai-designer>:not(.cai-designer-tools){grid-column:2!important}body .cai-designer-tools{grid-column:1!important;grid-row:1/span 30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:4px!important;margin:0!important;padding:6px!important;background:#fff!important;border:1px solid #e1e4e7!important;position:sticky!important;top:12px!important}body .cai-designer-tools>button,body .cai-designer-tools>label{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:58px!important;margin:0!important;padding:8px 5px!important;border:0!important;border-bottom:1px solid #eceff1!important;background:#fff!important;color:#171719!important;text-align:center!important;font-size:11px!important;line-height:1.15!important;cursor:pointer!important}body .cai-designer-tools>button:hover,body .cai-designer-tools>label:hover{background:#eef8fc!important;color:#007ca8!important}body .cai-designer-tools .cai-roller-upload-button{background:#00a8df!important;color:#fff!important}body .cai-designer-tools input[type=color]{width:34px!important;height:28px!important;margin-top:5px!important}body .cai-designer-tools .cai-more-button{font-size:13px!important}}
.cai-graphics-panel,.cai-templates-panel{position:relative;margin:0 0 14px;padding:18px;background:#fff;border:2px solid #171719;box-shadow:8px 8px 0 rgba(0,0,0,.08)}.cai-graphics-panel[hidden],.cai-templates-panel[hidden]{display:none!important}.cai-shape-grid,.cai-quick-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.cai-shape-grid button,.cai-quick-template-grid button{border:1px solid #d8e2e8;background:#fff;padding:12px 8px;cursor:pointer;text-align:center}.cai-shape-grid button:hover,.cai-quick-template-grid button:hover{border-color:#00a8df;background:#eef8fc}.cai-shape-grid b{display:block;font-size:34px;line-height:1;color:#171719}.cai-shape-grid span{display:block;margin-top:7px;font-size:11px;font-weight:800}.cai-quick-template-grid button{text-align:left;min-height:105px}.cai-quick-template-grid strong{display:block;color:#007ca8;font-size:14px}.cai-quick-template-grid span{display:block;margin-top:8px;font-size:10px;line-height:1.35;color:#5c6670}.cai-templates-panel>p{font-size:11px;color:#5c6670}@media(max-width:700px){.cai-shape-grid,.cai-quick-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cai-cut-shape-buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:9px}.cai-cut-shape-buttons button{display:flex;align-items:center;gap:8px;min-height:58px;padding:8px 12px;border:2px solid #d8e2e8;background:#fff;cursor:pointer;font-weight:800}.cai-cut-shape-buttons button:hover,.cai-cut-shape-buttons button.is-active{border-color:#00a8df;background:#eef8fc;color:#007ca8}.cai-cut-icon{display:block;width:34px;height:25px;border:3px solid currentColor;background:rgba(0,168,223,.08)}.cai-cut-circle{width:29px;height:29px;border-radius:50%}.cai-cut-rounded-square{width:29px;height:29px;border-radius:7px}.cai-cut-rounded-rectangle{border-radius:7px}.cai-cut-oval{border-radius:50%}.cai-cut-option.is-portrait .cai-cut-rectangle,.cai-cut-option.is-portrait .cai-cut-rounded-rectangle,.cai-cut-option.is-portrait .cai-cut-oval{width:22px;height:34px}.cai-cut-option.is-landscape .cai-cut-rectangle,.cai-cut-option.is-landscape .cai-cut-rounded-rectangle,.cai-cut-option.is-landscape .cai-cut-oval{width:38px;height:24px}@media(max-width:600px){.cai-cut-shape-buttons button{flex:1 1 44%;justify-content:center}}
@media(min-width:1101px){body.cai-custom-product .cai-fields:has(>.cai-designer){display:grid!important;grid-template-columns:minmax(0,1fr) 390px!important;gap:18px 24px!important;align-items:start!important}body.cai-custom-product .cai-fields:has(>.cai-designer)>.cai-designer{grid-column:1!important;grid-row:1/span 40!important;max-width:none!important;margin:0!important}body.cai-custom-product .cai-fields:has(>.cai-designer)>:not(.cai-designer){grid-column:2!important}body.cai-custom-product .cai-print-options{padding:18px!important}body.cai-custom-product .cai-print-options>h3{margin-bottom:14px!important}body.cai-custom-product .cai-designer .cai-canvas-wrap{min-height:650px!important}}
.cai-background-upload{background:#e51d68!important;border-bottom-color:#00a8df!important}
.cai-roller-purchase{grid-column:2!important;background:#eef3f6!important;padding:14px!important;align-self:start!important}.cai-roller-purchase .cai-roller-preview{margin:0 0 16px!important;padding:14px!important;background:#fff!important}.cai-roller-purchase .single_add_to_cart_button{display:block!important;float:none!important;width:100%!important;min-height:56px!important;margin:0!important;background:#00a8df!important;color:#fff!important;font-size:18px!important;font-weight:900!important}.cai-roller-purchase .cai-roller-scene{height:510px!important}.cai-roller-purchase .cai-roller-unit{transform:scale(.88)}body.cai-custom-product .cai-designer.is-portrait .cai-canvas-wrap canvas{height:min(760px,75vh)!important;width:auto!important;max-width:100%!important}body.cai-custom-product .cai-designer.is-portrait .cai-canvas-wrap{justify-content:center!important;min-height:780px!important}
@media(max-width:1100px){.cai-roller-purchase{grid-column:1!important}.cai-roller-purchase .cai-roller-scene{height:540px!important}}
body.cai-custom-product .woocommerce div.product .summary>.product_title{font-size:clamp(27px,3vw,38px)!important;line-height:1.05!important;margin:0 0 8px!important;letter-spacing:-.035em!important}body.cai-custom-product .summary>p.price{font-size:22px!important;margin:6px 0!important}body.cai-custom-product .woocommerce-product-details__short-description{margin:4px 0 10px!important;font-size:14px!important}body.cai-custom-product .woocommerce-tabs{display:none!important}body.cai-custom-product .cai-print-options{margin-top:8px!important}body.cai-custom-product .content-area,body.cai-custom-product .site-main{padding-top:15px!important}.cai-order-invite{grid-column:1/-1;background:linear-gradient(100deg,#00a8df,#0879bd);color:#fff;padding:14px 18px;margin:-2px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.cai-order-invite strong{font-size:21px}.cai-order-invite span{font-size:12px;line-height:1.4;text-align:right;max-width:520px}.cai-print-options>h3{font-size:14px!important;color:#56616b!important;margin:0 0 10px!important;text-transform:uppercase;letter-spacing:.08em}@media(max-width:700px){.cai-order-invite{display:block}.cai-order-invite span{display:block;text-align:left;margin-top:6px}}
body.cai-custom-product .product_title,body.cai-custom-product h1.product_title,body.cai-custom-product .woocommerce-products-header__title{font-size:clamp(24px,2.2vw,32px)!important;line-height:1.05!important;margin:0 0 7px!important;letter-spacing:-.025em!important}body.cai-custom-product .woocommerce div.product,body.cai-custom-product .woocommerce div.product .summary,body.cai-custom-product form.cart{display:block!important;width:100%!important;max-width:none!important;float:none!important;clear:both!important}body.cai-custom-product .cai-print-options{display:block!important;width:100%!important;max-width:none!important}body.cai-custom-product .related.products{display:block!important;position:static!important;width:100%!important;max-width:none!important;float:none!important;clear:both!important;margin:55px 0 0!important;padding-top:30px!important;border-top:1px solid #d8e2e8!important}body.cai-custom-product .related.products>h2{font-size:27px!important;margin-bottom:22px!important}body.cai-custom-product .related.products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important}body.cai-custom-product .cai-fields:has(>.cai-designer){width:100%!important;grid-template-columns:minmax(0,1.55fr) minmax(360px,.75fr)!important}@media(max-width:900px){body.cai-custom-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:520px){body.cai-custom-product .related.products ul.products{grid-template-columns:1fr!important}}
body.cai-custom-product h1.product_title,body.cai-custom-product .product_title{font-size:24px!important;line-height:1.1!important}.cai-related-bottom,body.cai-custom-product main.site-main>.related.products{display:block!important;width:100%!important;max-width:none!important;float:none!important;clear:both!important;grid-column:1/-1!important;order:999!important;margin:60px 0 0!important}.cai-related-bottom ul.products,body.cai-custom-product main.site-main>.related.products ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important}.cai-related-bottom ul.products li.product,body.cai-custom-product main.site-main>.related.products ul.products li.product{display:flex!important;flex-direction:column!important;width:100%!important;min-height:390px!important;margin:0!important;padding:14px!important}.cai-related-bottom li.product>a:first-child,body.cai-custom-product main.site-main>.related.products li.product>a:first-child{display:flex!important;flex-direction:column!important;flex:1!important}.cai-related-bottom li.product img,body.cai-custom-product main.site-main>.related.products li.product img{width:100%!important;aspect-ratio:1/1!important;height:auto!important;object-fit:contain!important;background:#f5f8fa!important}.cai-related-bottom li.product .woocommerce-loop-product__title,body.cai-custom-product main.site-main>.related.products li.product .woocommerce-loop-product__title{min-height:54px!important;font-size:16px!important;line-height:1.15!important}.cai-related-bottom li.product .price,body.cai-custom-product main.site-main>.related.products li.product .price{min-height:42px!important;margin:8px 0!important}.cai-related-bottom li.product .button,body.cai-custom-product main.site-main>.related.products li.product .button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:52px!important;margin:auto 0 0!important;padding:10px!important;text-align:center!important;line-height:1.05!important}.cai-print-options,.cai-fields{max-width:none!important;width:100%!important}@media(max-width:900px){.cai-related-bottom ul.products,body.cai-custom-product main.site-main>.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:520px){.cai-related-bottom ul.products,body.cai-custom-product main.site-main>.related.products ul.products{grid-template-columns:1fr!important}}
body.cai-product-presentation-active.cai-custom-product .woocommerce div.product form.cart{display:none!important}body.cai-product-presentation-active .cai-product-presentation{display:grid!important}
.cai-main-upload-button{background:#e51d68!important;color:#fff!important;border-bottom-color:#ffd51f!important;box-shadow:0 0 0 0 rgba(229,29,104,.45);animation:caiMainUpload 1.55s ease-in-out infinite!important}@keyframes caiMainUpload{0%,100%{transform:scale(1)}50%{transform:scale(1.045);box-shadow:0 0 0 8px rgba(229,29,104,0)}}@media(prefers-reduced-motion:reduce){.cai-main-upload-button{animation:none!important}}
.simple-home .woocommerce ul.products{grid-template-columns:repeat(var(--cai-home-columns,4),minmax(0,1fr))!important}.simple-home.cai-home-layout-centered .simple-hero{grid-template-columns:1fr!important;text-align:center!important}.simple-home.cai-home-layout-centered .simple-hero>div:first-child{max-width:1000px;margin:auto}.simple-home.cai-home-layout-centered .simple-hero>div:first-child>p{margin-left:auto;margin-right:auto}.simple-home.cai-home-layout-centered .hero-buttons{justify-content:center}.simple-home.cai-home-layout-centered .hero-product{width:min(520px,100%);margin:auto}
body.cai-related-compact .cai-related-bottom ul.products,body.cai-related-compact main.site-main>.related.products ul.products{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}body.cai-related-compact .cai-related-bottom ul.products li.product,body.cai-related-compact main.site-main>.related.products ul.products li.product{min-height:300px!important;padding:10px!important}body.cai-related-compact .cai-related-bottom li.product img,body.cai-related-compact main.site-main>.related.products li.product img{height:185px!important;aspect-ratio:auto!important;object-fit:contain!important}body.cai-related-normal .cai-related-bottom ul.products,body.cai-related-normal main.site-main>.related.products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}body.cai-related-large .cai-related-bottom ul.products,body.cai-related-large main.site-main>.related.products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(min-width:1101px){body.cai-custom-product main.site-main,body.cai-custom-product .content-area{padding-left:1vw!important;padding-right:1vw!important}body.cai-custom-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(900px,1fr) 320px!important}body.cai-custom-product .cai-editor-shell{grid-template-columns:175px minmax(0,1fr)!important}body.cai-custom-product .cai-designer .cai-canvas-wrap{min-height:900px!important}body.cai-roller-product .cai-fields:has(>.cai-designer){grid-template-columns:minmax(840px,1fr) 430px!important}}@media(max-width:1250px) and (min-width:901px){body.cai-related-compact .cai-related-bottom ul.products,body.cai-related-compact main.site-main>.related.products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important}}@media(max-width:900px){.simple-home .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.cai-related-compact .cai-related-bottom ul.products,body.cai-related-compact main.site-main>.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Diplomas PDF multipágina */
.cai-diploma-pdf-upload{display:grid;gap:12px;padding:16px;border:2px solid #00a8df;background:#f4fbfe}.cai-diploma-pdf-upload>input[type=file]{width:100%;padding:12px;background:#fff;border:1px solid #9fb8c3}.cai-diploma-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;background:#e9f7fc;border-left:4px solid #00a8df}.cai-diploma-toolbar>div{display:flex;gap:7px;flex-wrap:wrap}.cai-diploma-toolbar button{padding:8px 11px;border:1px solid #00a8df;background:#fff;color:#006f96;font-weight:800;cursor:pointer}.cai-diploma-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;max-height:620px;overflow:auto}.cai-diploma-page{display:grid;gap:7px;padding:9px;border:2px solid #c8d5db;background:#fff;cursor:pointer}.cai-diploma-page.is-selected{border-color:#00a8df;box-shadow:0 0 0 2px rgba(0,168,223,.12)}.cai-diploma-page canvas{display:block;width:100%;height:170px;object-fit:contain;background:#f4f4f4}.cai-diploma-page span{font-weight:900;text-align:center}.cai-diploma-page input{margin-right:5px}#cai-diploma-status{font-weight:800}#cai-diploma-status.is-success{padding:10px 12px;background:#edf9f1;color:#18733a;border-left:4px solid #27a85a}#cai-diploma-status.is-error{padding:10px 12px;background:#fff0f0;color:#a51f28;border-left:4px solid #c7333c}.cai-diploma-thumb-error{height:170px;display:grid;place-items:center;background:#f3f3f3;color:#777;font-size:12px}@media(max-width:600px){.cai-diploma-pages{grid-template-columns:repeat(2,minmax(0,1fr))}.cai-diploma-page canvas{height:140px}}


/* CAI 60.3.2 - Vista móvil del diseñador */
@media (max-width: 700px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.cai-custom-product main.site-main,
  body.cai-custom-product .content-area,
  body.cai-custom-product .woocommerce main,
  body.cai-custom-product .woocommerce-page main{width:100%!important;max-width:100%!important;padding-left:8px!important;padding-right:8px!important;margin-left:0!important;margin-right:0!important;overflow-x:hidden!important}
  body.cai-custom-product .cai-print-options{width:100%!important;max-width:100%!important;margin:10px 0!important;padding:10px!important;overflow:hidden!important}
  body.cai-custom-product .cai-fields,
  body.cai-custom-product .cai-fields:has(>.cai-designer){display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:1fr!important;overflow:visible!important}
  body.cai-custom-product .cai-fields>*{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  body.cai-custom-product .cai-designer{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:10px!important;overflow:hidden!important}
  body.cai-custom-product .designer-steps{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:-10px -10px 14px!important;width:auto!important}
  body.cai-custom-product .designer-steps b{min-width:0!important;padding:10px 2px!important;font-size:8px!important;white-space:normal!important;line-height:1.15!important}

  body.cai-custom-product .cai-designer-tools{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important}
  body.cai-custom-product .cai-designer-tools>button,
  body.cai-custom-product .cai-designer-tools>label{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:48px!important;margin:0!important;padding:9px 7px!important;box-sizing:border-box!important;text-align:center!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important}
  body.cai-custom-product .cai-designer-tools>label:not(.tool-upload){gap:8px!important;background:#f1f1f1!important;color:#171719!important}
  body.cai-custom-product .cai-designer-tools input[type=color]{flex:0 0 34px!important;width:34px!important;height:30px!important;margin:0!important;padding:0!important}
  body.cai-custom-product .cai-print-view-button{grid-column:1/-1!important}

  body.cai-custom-product .cai-editor-shell{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
  body.cai-custom-product .image-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;max-width:100%!important;margin:0 0 12px!important;padding:12px!important;box-sizing:border-box!important;overflow:hidden!important}
  body.cai-custom-product .image-controls>h5{grid-column:1/-1!important;margin:0!important;font-size:16px!important}
  body.cai-custom-product .image-controls>label{min-width:0!important;margin:0!important}
  body.cai-custom-product .image-controls input,
  body.cai-custom-product .image-controls select{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  body.cai-custom-product .image-controls>button{width:100%!important;max-width:100%!important;min-width:0!important;min-height:46px!important;margin:0!important;padding:8px 5px!important;white-space:normal!important}
  body.cai-custom-product .cai-history-controls{grid-column:1/-1!important;width:100%!important}
  body.cai-custom-product .cai-text-options{grid-column:1/-1!important;width:100%!important}

  body.cai-custom-product .cai-canvas-area,
  body.cai-custom-product .cai-canvas-wrap{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  body.cai-custom-product .cai-canvas-wrap{min-height:300px!important;max-height:none!important;padding:8px!important;overflow:auto!important}
  body.cai-custom-product .cai-canvas-wrap canvas{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:72vh!important;object-fit:contain!important;margin:auto!important}
  body.cai-custom-product .cai-align-controls{gap:5px!important;padding:7px!important}
  body.cai-custom-product .cai-align-controls strong{width:100%!important;text-align:center!important}
  body.cai-custom-product .cai-align-controls button{flex:1 1 30%!important;width:auto!important;min-width:0!important;padding:8px 3px!important;font-size:10px!important}

  body.cai-custom-product .cai-design-purchase{position:static!important;display:block!important;float:none!important;clear:both!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:14px 0 0!important;padding:12px!important;box-sizing:border-box!important;transform:none!important;inset:auto!important;z-index:auto!important}
  body.cai-custom-product .cai-design-purchase .single_add_to_cart_button{position:static!important;display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:56px!important;margin:0!important;padding:12px 8px!important;font-size:17px!important;white-space:normal!important;transform:none!important}
  body.cai-custom-product .cai-design-purchase button,
  body.cai-custom-product .cai-design-purchase select,
  body.cai-custom-product .cai-design-purchase input{max-width:100%!important;box-sizing:border-box!important}

  body.cai-custom-product .cai-order-invite{width:100%!important;margin:0 0 10px!important;padding:12px!important}
}
@media (max-width: 430px){
  body.cai-custom-product .cai-designer-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.cai-custom-product .image-controls{grid-template-columns:1fr!important}
  body.cai-custom-product .image-controls>h5,
  body.cai-custom-product .cai-history-controls,
  body.cai-custom-product .cai-text-options{grid-column:1!important}
  body.cai-custom-product .cai-canvas-wrap{min-height:260px!important}
}
