/* Scoped mapping of hydrated canonical S purchase block. Gallery and commerce are untouched. */
body.m3-sorpresa-top .m3-product-summary .product_title{font-family:Fredoka,"Nunito Sans",sans-serif;font-size:48px;line-height:1.05;font-weight:700;letter-spacing:-.025em;color:#4c2474;margin:0 0 10px}
body.m3-sorpresa-top .m3s-top-includes{font:700 16px/1.4 "Nunito Sans",Arial,sans-serif;color:#584971;margin:0 0 12px}
body.m3-sorpresa-top .m3s-top-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
body.m3-sorpresa-top .m3s-top-option{display:flex;flex-direction:column;justify-content:center;padding:12px 8px;border:2px solid #7542a5;border-radius:12px;color:#4c2474;background:#fff;text-align:center;font:400 14px/1.35 "Nunito Sans",Arial,sans-serif;min-width:0;box-sizing:border-box}
body.m3-sorpresa-top .m3s-top-option strong,body.m3-sorpresa-top .m3s-top-option span{display:block}
body.m3-sorpresa-top .m3s-top-option strong{font-weight:700}
body.m3-sorpresa-top .m3s-top-option span{margin-top:4px}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate){display:grid;grid-template-columns:minmax(0,1fr) 144px;column-gap:16px;row-gap:4px;align-items:start;margin:0 0 20px}
body.m3-sorpresa-top .m3s-top-estimate{position:relative;grid-column:1;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:84px;min-width:0;padding-right:0;color:#321565}
body.m3-sorpresa-top .m3s-top-caption{font:600 14px/1.4 "Nunito Sans",Nunito,sans-serif;color:#685775;order:0}
body.m3-sorpresa-top .m3s-top-current{font:500 34px/1.1 Fredoka,sans-serif;color:#321565;order:1;white-space:normal;overflow-wrap:anywhere}
body.m3-sorpresa-top .m3s-top-before{min-height:15.4px;font:500 14px/1.1 "Nunito Sans",Nunito,sans-serif;color:#756582;order:2}
body.m3-sorpresa-top .m3s-top-discount{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-block;background:#dcefe2;color:#155b34;border-radius:7px;padding:4px 6px;font:800 14px/1.2 "Nunito Sans",Arial,sans-serif;order:3}
body.m3-sorpresa-top .m3s-top-discount[hidden]{display:none!important}
body.m3-sorpresa-top .m3s-top-before[hidden]{display:block!important;visibility:hidden}
body.m3-sorpresa-top .m3s-top-estimate-unavailable .m3s-top-current{font-size:20px;white-space:normal}
body.m3-sorpresa-top .m3s-top-quantity-label{grid-column:2;grid-row:1;text-align:center;font:400 14px/1.4 "Nunito Sans",Arial,sans-serif;color:#584971}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.quantity{grid-column:2;grid-row:2;width:144px;min-width:0;height:44px;border:1px solid #ded8e8;border-radius:10px;background:#fff;justify-content:space-between}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.quantity input.qty{font:700 18px/1.2 Fredoka,sans-serif;color:#4c2474}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.quantity .m3-qty-step{height:40px;font-size:21px}
body.m3-sorpresa-top .m3s-top-shipping{grid-column:1/-1;grid-row:3;display:flex;align-items:center;justify-content:center;gap:8px;margin:20px 0 6px;color:#4c2474;font:400 14px/1.4 "Nunito Sans",Arial,sans-serif;text-align:center}
body.m3-sorpresa-top .m3s-top-shipping svg{width:24px;height:24px;flex:0 0 24px;fill:currentColor}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.single_add_to_cart_button{grid-column:1/-1;grid-row:4;width:100%;min-width:0;min-height:50px;border-radius:12px!important;border:1px solid #4c2474!important;background:#4c2474!important;color:#fff!important;box-shadow:none!important;font:700 16px/1.2 "Nunito Sans",Arial,sans-serif!important}
body.m3-sorpresa-top .m3s-top-tiers{display:block;margin:18px 0 0;border:1px solid #ded3e8;border-radius:12px;color:#4c2474;overflow:hidden;font:400 14px/1.4 "Nunito Sans",Arial,sans-serif}
body.m3-sorpresa-top .m3s-top-tiers>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:14px;background:#f3edf8;cursor:pointer;list-style:none;font-weight:700}
body.m3-sorpresa-top .m3s-top-tiers>summary::-webkit-details-marker{display:none}
body.m3-sorpresa-top .m3s-top-tiers-toggle{text-decoration:underline;text-underline-offset:3px;font-weight:400}
body.m3-sorpresa-top .m3s-top-hide,body.m3-sorpresa-top .m3s-top-tiers[open] .m3s-top-show{display:none}
body.m3-sorpresa-top .m3s-top-tiers[open] .m3s-top-hide{display:inline}
body.m3-sorpresa-top .m3s-top-tiers>ol{list-style:none;padding:0 14px;margin:0}
body.m3-sorpresa-top .m3s-top-tiers li{display:grid;grid-template-columns:minmax(80px,.8fr) minmax(0,1.3fr);gap:8px 12px;align-items:start;padding:14px 0;border-bottom:1px solid #eee5f5;margin:0;color:#4c2474}
body.m3-sorpresa-top .m3s-top-tiers li:is(:nth-child(3),:nth-child(5)){background:#f3edf8;border:1px solid #ded3e8;border-radius:9px;padding:9px;margin-inline:-8px}
body.m3-sorpresa-top .m3s-top-tier-quantity{font-weight:600;line-height:1.4}
body.m3-sorpresa-top .m3s-top-tier-prices{display:grid;gap:4px;justify-items:end;text-align:right}
body.m3-sorpresa-top .m3s-top-tier-prices strong{font-size:17px;font-weight:700}
body.m3-sorpresa-top .m3s-top-tier-prices del{color:#766184}
body.m3-sorpresa-top .m3s-top-tier-extra{grid-column:1/-1;color:#655273;line-height:1.45}
body.m3-sorpresa-top .m3s-top-tier-note{margin:0;padding:12px 14px;color:#685775;font-size:13px;line-height:1.4}
body.m3-sorpresa-top :is(.m3s-top-tiers>summary,.single_add_to_cart_button):focus-visible{outline:3px solid #eaad05!important;outline-offset:3px!important}
@media(max-width:767px){
body.m3-sorpresa-top .m3-product-summary .product_title{font-size:32px;margin-bottom:8px}
body.m3-sorpresa-top .m3s-top-includes{margin-bottom:8px}
body.m3-sorpresa-top .m3s-top-offers{display:grid;gap:6px}
body.m3-sorpresa-top .m3s-top-option{padding:10px 4px;font-size:12px}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate){grid-template-columns:minmax(0,1fr) 136px;column-gap:8px;margin-top:0}
body.m3-sorpresa-top .m3s-top-estimate{min-height:70px}
body.m3-sorpresa-top .m3s-top-current{font-size:28px;line-height:1.15}
body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.quantity{width:136px;background:#f1edf9}
body.m3-sorpresa-top .m3s-top-shipping{margin-top:12px}
body.m3-sorpresa-top .m3s-top-discount{top:auto;bottom:0;transform:none;font-size:12px}
}

/* Canonical outer geometry: live1165 and388 source readback0707/0708.
 * This is Sorpresa only. The generic42/58 split belongs to Elegí, not Sorpresa.
 * Container720/960/1140/1300 minus32px gutters, with native grid cap1180.
 */
@media(min-width:768px){
body.m3-sorpresa-top .m3-woocommerce-shell{max-width:none;padding:22px 24px 44px}
body.m3-sorpresa-top .m3-product[data-m3-product-kind="sorpresa"]{width:calc(100% - 32px);max-width:688px;margin-inline:auto;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:30px;align-items:start}
}
@media(min-width:992px){body.m3-sorpresa-top .m3-product[data-m3-product-kind="sorpresa"]{max-width:928px}}
@media(min-width:1200px){body.m3-sorpresa-top .m3-product[data-m3-product-kind="sorpresa"]{max-width:1108px}}
@media(min-width:1400px){body.m3-sorpresa-top .m3-product[data-m3-product-kind="sorpresa"]{max-width:1180px}}
/* Native elements remain in their original form. Match the canonical mobile
 * display:contents/order flow without cloning fields, handlers or purchase UI. */
@media(max-width:767px){
body.m3-sorpresa-top .m3-woocommerce-shell{max-width:none;padding:16px 20px 36px}
body.m3-sorpresa-top .m3-product[data-m3-product-kind="sorpresa"]{display:flex!important;flex-direction:column;align-items:stretch;gap:0;width:100%;max-width:none;margin:0}
body.m3-sorpresa-top .m3-product-summary{display:contents!important}
body.m3-sorpresa-top .m3-product-summary>*{order:7}
body.m3-sorpresa-top .m3-product-summary>.product_title{order:0;margin-bottom:8px}
body.m3-sorpresa-top .m3-product-summary>.m3s-top-includes{order:1;margin-bottom:8px}
body.m3-sorpresa-top .m3-product-summary>.m3-review-summary{order:1;margin:0 0 8px}
body.m3-sorpresa-top .m3-product>.m3-product-media{order:2;width:100%;min-width:0}
body.m3-sorpresa-top .m3-product-summary>:is(.price,.stock){order:3}
body.m3-sorpresa-top .m3-product-summary>form.cart{order:4}
body.m3-sorpresa-top .m3-product-summary>.m3-retail-tools{order:5}
body.m3-sorpresa-top .m3-product-summary>.m3s-top-tiers{order:6}
body.m3-sorpresa-top .m3-product>.m3-product-below{order:8;min-width:0}
body.m3-sorpresa-top .m3s-top-current{font-size:28px;line-height:1.15}
}

/* The canon's compact-height variant is conditional, not every mobile viewport. */
@media(max-width:360px),(max-width:767px) and (max-height:700px){
body.m3-sorpresa-top .m3-woocommerce-shell{padding-top:8px}
body.m3-sorpresa-top .m3-product-summary>.product_title,
body.m3-sorpresa-top .m3-product-summary>.m3s-top-includes{margin-bottom:4px}
body.m3-sorpresa-top .m3s-top-current{font-size:26px}
}

/* Owner mobile review2026-10-28: same media width as Elegí; remove unused first-quantity air. */
@media(max-width:767px){
 body.m3-sorpresa-top .m3-product>.m3-product-media{width:calc(100% + 16px);max-width:none;margin-inline:-8px}
 body.m3-sorpresa-top .m3s-top-before[hidden]{display:none!important}
 body.m3-sorpresa-top .m3s-top-estimate{min-height:64px}
 body.m3-sorpresa-top .m3s-top-shipping{margin:6px 0 4px}
 body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate){margin-bottom:12px}
}

/* Informational offers sit before quantity/purchase on mobile too. */
@media(max-width:767px){body.m3-sorpresa-top .m3-product-summary>.m3s-top-offers{order:3}}

/* Owner phone review 2026-10-31: align offers with gallery thumbnails;
 * slightly larger copy without increasing the purchase block height. */
@media(max-width:767px){
 body.m3-sorpresa-top .m3s-top-offers{width:calc(100% + 16px);margin-inline:-8px}
 body.m3-sorpresa-top .m3s-top-option{padding:8px 4px;font-size:13px}
}

/* Owner review 2026-10-31: compact notices only; gallery stays unchanged. */
body.m3-sorpresa-top .m3s-top-offer-compact{display:none}
@media(max-width:767px){
 body.m3-sorpresa-top .m3s-top-option{padding:2px 4px;line-height:1.2}
 body.m3-sorpresa-top .m3s-top-option span{margin-top:0}
 body.m3-sorpresa-top .m3s-top-offer-full{display:none}
 body.m3-sorpresa-top .m3s-top-offer-compact{display:block}
}
/* OPTIONAL, separate review: keep shipping visible after the native button.
 * No changes to photos, thumbnails, button semantics or promotion typography. */
@media(max-width:767px) and (max-height:800px) and (orientation:portrait){
 body.m3-sorpresa-top .m3s-top-offers{margin-block:4px}
 body.m3-sorpresa-top .m3-product-summary form.cart:has(.m3s-top-estimate)>.single_add_to_cart_button{grid-row:3}
 body.m3-sorpresa-top .m3s-top-shipping{grid-row:4}
}
