#pea-overlay,#pea-overlay *{box-sizing:border-box!important}
#pea-overlay[hidden]{display:none!important}
#pea-overlay{position:fixed!important;top:0!important;right:0!important;bottom:0!important;left:0!important;z-index:2147483000!important;margin:0!important;padding:0!important;background:rgba(10,12,18,.6);display:flex;align-items:flex-end;justify-content:center;animation:pea-fade .2s ease}
body.pea-single{background:#2a2c31!important}
body.pea-single>*:not(#pea-overlay):not(script):not(style):not(link):not(noscript){visibility:hidden!important}
body.pea-single #pea-overlay{background:#2a2c31}

#pea-sheet{position:relative;width:100%;max-width:520px;max-height:92vh;max-height:92dvh;margin:0;padding:0;background:#fff;border-radius:24px 24px 0 0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 -10px 40px rgba(0,0,0,.25);animation:pea-up .28s cubic-bezier(.2,.8,.2,1);transition:transform .2s ease;font-family:inherit;font-size:14px;line-height:1.3;text-align:left;color:#111;text-transform:none;letter-spacing:0}
#pea-sheet.pea-out{animation:pea-down .2s ease forwards}
#pea-sheet h2,#pea-sheet h3,#pea-sheet p,#pea-sheet ul,#pea-sheet li,#pea-sheet label,#pea-sheet form{margin:0;padding:0;text-transform:none;letter-spacing:0}
#pea-sheet #pea-body{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}

#pea-sheet .pea-handle{position:absolute;top:8px;left:50%;width:44px;height:4px;margin-left:-22px;border-radius:4px;background:#d6d1c8;z-index:4}
#pea-sheet .pea-close,#pea-sheet .pea-close:hover,#pea-sheet .pea-close:focus,#pea-sheet .pea-close:active{position:absolute!important;top:16px!important;right:14px!important;left:auto!important;bottom:auto!important;z-index:5!important;width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#fff!important;color:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;box-shadow:0 2px 10px rgba(0,0,0,.2)!important;cursor:pointer}
#pea-sheet .pea-close svg{width:16px;height:16px;display:block}

/* Misma caja para todas las imágenes (tamaño woocommerce_single) */
#pea-sheet .pea-hero{flex:0 0 auto;height:clamp(150px,30vh,250px);padding:30px 24px 6px;background:#fff;display:flex;align-items:center;justify-content:center}
#pea-sheet .pea-hero img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;margin:0}
#pea-sheet .pea-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto}
#pea-sheet .pea-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:8px 18px 12px}
#pea-sheet .pea-title{font-size:18px;line-height:1.2;font-weight:800;letter-spacing:-.1px;color:#111;margin:0 0 6px;word-break:break-word}
#pea-sheet .pea-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0 0 6px}
#pea-sheet .pea-price strong{font-size:21px;line-height:1.1;font-weight:800;color:#111}
#pea-sheet .pea-price small{font-size:12px;color:#6b6b6b;font-weight:600}
#pea-sheet .pea-price small:empty{display:none}
#pea-sheet .pea-desc{font-size:13px;line-height:1.4;color:#6b6b6b;margin:0 0 8px}
#pea-sheet .pea-sec{margin:16px 0 0}
#pea-sheet .pea-sec h3{font-size:16px;line-height:1.2;font-weight:800;color:#111;margin:0 0 8px}
#pea-sheet .pea-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 4px}
#pea-sheet .pea-sec-head h3{margin:0}
#pea-sheet .pea-hint{font-size:12px;color:#6b6b6b;white-space:nowrap}

#pea-sheet .pea-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#pea-sheet .pea-card{position:relative;display:block;cursor:pointer;margin:0}
#pea-sheet .pea-card input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
#pea-sheet .pea-card-in{display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-height:62px;padding:10px 12px;border:2px solid #e6e1da;border-radius:14px;background:#fff;transition:.15s}
#pea-sheet .pea-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
#pea-sheet .pea-card-name{font-size:14px;font-weight:600;color:#111;min-width:0;word-break:break-word}
#pea-sheet .pea-card-in b{font-size:16px;font-weight:800;color:#111}
#pea-sheet .pea-radio{flex:0 0 auto;width:22px;height:22px;border-radius:50%;border:2px solid #d9d3ca;background:#efece6;transition:.15s}
#pea-sheet .pea-card input:checked+.pea-card-in{border-color:var(--pea,#1e4340);background:#eef4f3}
#pea-sheet .pea-card input:checked+.pea-card-in .pea-card-name{font-weight:800}
#pea-sheet .pea-card input:checked+.pea-card-in .pea-radio{border-color:var(--pea,#1e4340);background:var(--pea,#1e4340);box-shadow:inset 0 0 0 4px #fff}

#pea-sheet .pea-extras{list-style:none;margin:0;padding:0;border-top:1px solid #ece8e1}
#pea-sheet .pea-extras li{margin:0;padding:0;border-bottom:1px solid #ece8e1;list-style:none}
#pea-sheet .pea-extras label{position:relative;display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer;margin:0}
#pea-sheet .pea-extras input{position:absolute;opacity:0;pointer-events:none;width:0;height:0}
#pea-sheet .pea-check{flex:0 0 auto;width:26px;height:26px;border-radius:8px;border:2px solid #d9d3ca;background:#fff;position:relative;transition:.15s}
#pea-sheet .pea-extras input:checked+.pea-check{background:var(--pea,#1e4340);border-color:var(--pea,#1e4340)}
#pea-sheet .pea-extras input:checked+.pea-check:after{content:"";position:absolute;left:7px;top:2px;width:7px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
#pea-sheet .pea-extras input:disabled+.pea-check{opacity:.4}
#pea-sheet .pea-extras input:disabled~span{opacity:.5}
#pea-sheet .pea-ex-name{flex:1 1 auto;min-width:0;font-size:14px;color:#111}
#pea-sheet .pea-ex-price{flex:0 0 auto;font-size:14px;color:#111;white-space:nowrap}

#pea-sheet .pea-bar{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f0ece6;box-shadow:0 -6px 18px rgba(0,0,0,.05)}
#pea-sheet .pea-qty{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;width:100px;height:44px;padding:0 4px;border-radius:22px;background:#f1ede6}
#pea-sheet .pea-qty button,#pea-sheet .pea-qty button:hover,#pea-sheet .pea-qty button:focus,#pea-sheet .pea-qty button:active{flex:0 0 auto;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#111!important;font-size:22px!important;line-height:1!important;box-shadow:none!important;cursor:pointer;display:flex!important;align-items:center;justify-content:center}
#pea-sheet .pea-q{font-size:16px;font-weight:800;min-width:16px;text-align:center;color:#111}
#pea-sheet .pea-add,#pea-sheet .pea-add:hover,#pea-sheet .pea-add:focus,#pea-sheet .pea-add:active{flex:1 1 0!important;min-width:0!important;width:auto!important;height:44px!important;min-height:0!important;margin:0!important;padding:0 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px;border:0!important;border-radius:22px!important;background:var(--pea,#1e4340)!important;color:#fff!important;text-transform:none!important;letter-spacing:0!important;font-family:inherit;line-height:1.1!important;overflow:hidden;white-space:nowrap;box-shadow:0 6px 16px rgba(30,67,64,.3)!important;cursor:pointer}
#pea-sheet .pea-add:disabled{opacity:.55;cursor:not-allowed;box-shadow:none!important}
#pea-sheet .pea-add.pea-busy{opacity:.7;pointer-events:none}
#pea-sheet .pea-add-label{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:700;color:#fff}
#pea-sheet .pea-add-tot{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;line-height:1.1;color:#fff}
#pea-sheet .pea-add-tot b{font-size:15px;font-weight:800;color:#fff}
#pea-sheet .pea-add-tot small{font-size:10.5px;opacity:.9;color:#fff}
#pea-sheet .pea-add-tot small:empty{display:none}

#pea-sheet .pea-loading{padding:56px 20px;text-align:center;color:#6b6b6b;font-size:14px}
#pea-sheet .pea-spin{display:block;width:28px;height:28px;margin:0 auto 12px;border:4px solid #eee;border-top-color:var(--pea,#1e4340);border-radius:50%;animation:pea-rot .8s linear infinite}

/* Mensaje "Agregado al carrito": una sola línea, píldora alargada */
body .pea-toast{position:fixed!important;left:0!important;right:0!important;margin:0 auto!important;width:max-content!important;max-width:94vw!important;bottom:calc(96px + env(safe-area-inset-bottom))!important;transform:none!important;z-index:2147483600!important;background:#111;color:#fff;padding:10px 30px!important;border-radius:999px!important;font-size:13px!important;line-height:1.2!important;font-weight:500;white-space:nowrap!important;text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.3);animation:pea-fade .2s ease}
body.pea-lock{overflow:hidden!important}

/* Aviso de "Categoría única en el carrito" (mismos textos y colores que ese plugin) */
.pea-cuc,.pea-cuc *{box-sizing:border-box}
.pea-cuc{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483300;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,0);transition:background .25s ease}
.pea-cuc.is-open{background:rgba(0,0,0,.55)}
.pea-cuc .pea-cuc-sheet{width:100%;max-width:520px;background:#f8f8f6;color:#1d1d1b;border-radius:26px 26px 0 0;padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px));transform:translateY(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:0 -8px 30px rgba(0,0,0,.15);font-family:inherit;text-align:left}
.pea-cuc.is-open .pea-cuc-sheet{transform:none}
.pea-cuc .pea-cuc-title{margin:0 0 14px;padding:0;font-size:22px;line-height:1.2;font-weight:700;color:inherit;text-transform:none;letter-spacing:0}
.pea-cuc .pea-cuc-hr{border:0;border-top:1px solid #e4e6ea;margin:0 0 14px;height:0}
.pea-cuc .pea-cuc-msg{font-size:16px;line-height:1.45;margin:0 0 20px;color:inherit}
.pea-cuc .pea-cuc-btns{display:flex;gap:12px}
.pea-cuc .pea-cuc-btns button{flex:1;min-height:50px;margin:0;padding:0 14px;border-radius:999px;font-size:16px;font-weight:600;line-height:1.2;text-transform:none;letter-spacing:0;box-shadow:none;cursor:pointer;font-family:inherit}
.pea-cuc .pea-cuc-btns button.pea-cuc-keep{background:#fff;color:#1d1d1b;border:2px solid #e4e6ea}
.pea-cuc .pea-cuc-btns button.pea-cuc-remove{background:var(--pea,#1e4340);color:#fff;border:2px solid transparent}
.pea-cuc .pea-cuc-btns button:disabled{opacity:.6;cursor:wait}
@media(min-width:700px){.pea-cuc{align-items:center}.pea-cuc .pea-cuc-sheet{border-radius:26px;max-width:460px}}

/* Productos relacionados */
#pea-sheet .pea-rel{margin-top:20px}
#pea-sheet .pea-rel-row{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding:2px 18px 8px 18px;margin:0 -18px;scroll-padding-left:18px;scroll-padding-right:18px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#pea-sheet .pea-rel-row::-webkit-scrollbar{display:none}
#pea-sheet .pea-rel-row::after{content:"";flex:0 0 6px}
#pea-sheet .pea-rel-card{flex:0 0 116px;width:116px;scroll-snap-align:start}
#pea-sheet .pea-rel-img{position:relative;width:116px;height:116px;border-radius:14px;background:#f6f4f0;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}
#pea-sheet .pea-rel-img img{display:block;max-width:84%;max-height:84%;width:auto;height:auto;object-fit:contain;margin:0}
#pea-sheet .pea-rel-add,#pea-sheet .pea-rel-add:hover,#pea-sheet .pea-rel-add:focus,#pea-sheet .pea-rel-add:active{position:absolute!important;top:6px!important;right:6px!important;left:auto!important;width:32px!important;height:32px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#2e9e44!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;box-shadow:0 2px 8px rgba(0,0,0,.22)!important;cursor:pointer}
#pea-sheet .pea-rel-ctl{display:none;position:absolute;top:6px;left:6px;right:6px;height:34px;border-radius:17px;background:#fff;border:1.5px solid #e1ddd5;align-items:center;justify-content:space-between;padding:0 2px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
#pea-sheet .pea-rel-in .pea-rel-ctl{display:flex}
#pea-sheet .pea-rel-in .pea-rel-add{display:none!important}
#pea-sheet .pea-rel-ctl button,#pea-sheet .pea-rel-ctl button:hover,#pea-sheet .pea-rel-ctl button:focus,#pea-sheet .pea-rel-ctl button:active{width:28px!important;height:28px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:#111!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;line-height:1!important;cursor:pointer}
#pea-sheet .pea-rel-q{font-size:14px;font-weight:800;color:#111;min-width:14px;text-align:center}
#pea-sheet .pea-rel-one .i-minus{display:none}
#pea-sheet .pea-rel-card:not(.pea-rel-one) .i-trash{display:none}
#pea-sheet .pea-rel-card.pea-rel-busy{opacity:.6;pointer-events:none}
#pea-sheet .pea-rel-price{margin-top:8px;font-size:14px;font-weight:800;color:#111}
#pea-sheet .pea-rel-name{margin-top:2px;font-size:12.5px;line-height:1.25;color:#444;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}

@keyframes pea-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes pea-down{to{transform:translateY(100%)}}
@keyframes pea-fade{from{opacity:0}to{opacity:1}}
@keyframes pea-rot{to{transform:rotate(360deg)}}

@media(max-height:640px){#pea-sheet .pea-hero{height:clamp(110px,22vh,170px)}}
@media(min-width:700px){
#pea-overlay{align-items:center}
#pea-sheet{border-radius:24px;max-height:90vh}
}
