/* Scoped maintenance styles: preserve the established Mamasi palette. */
/* 2.5.1: readable collection labels and compact desktop product details. */
.mamasi-home-collection__copy{max-width:100%;min-width:0}
.mamasi-home-collection h3{font-size:clamp(20px,1.65vw,24px);line-height:1.15;word-break:normal;overflow-wrap:normal;hyphens:none}
.mamasi-product-modern div.product .summary .single-product-category,.mamasi-product-modern div.product .summary .single-product-category a{color:#8a6332!important;font-size:13px;line-height:1.5}
.mamasi-product-modern div.product .summary .single-product-category a:hover{color:#51402b!important;text-decoration:underline}
@media(min-width:922px){
 .mamasi-product-modern div.product .summary .product_title{font-size:clamp(25px,2vw,30px)!important;line-height:1.16!important;text-transform:none!important;margin-bottom:14px}
 .mamasi-product-modern div.product .summary .woocommerce-product-details__short-description,.mamasi-product-modern div.product .summary .woocommerce-product-details__short-description p{font-size:15px!important;line-height:1.6!important}
 .mamasi-product-modern div.product .summary .woocommerce-product-details__short-description p{margin:0 0 12px}
 .mamasi-product-modern div.product .woocommerce-tabs .panel,.mamasi-product-modern div.product .woocommerce-tabs .panel p,.mamasi-product-modern div.product .woocommerce-tabs .panel li{font-size:15px!important;line-height:1.65!important}
 .mamasi-product-modern .mamasi-product-highlights{margin-bottom:16px}
 .mamasi-product-modern div.product .summary p.iworks-omnibus{margin-bottom:14px}
 .mamasi-product-modern div.product form.cart{margin-top:12px;padding-top:14px}
}
.mamasi-info{max-width:900px;margin:0 auto;padding:clamp(20px,4vw,48px);background:#fffdf9;border:1px solid #e5dbce;border-radius:18px;color:#51483f;font-size:16px;line-height:1.7}
.mamasi-info h2{font-family:Georgia,serif;text-transform:none;font-size:clamp(24px,3vw,34px);color:#2f2923;margin:1.3em 0 .5em}
.mamasi-info h2:first-child{margin-top:0}
.mamasi-info a{text-decoration:underline;text-underline-offset:3px}
.mamasi-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px;background:#f5efe6;padding:22px;font-size:13px;color:#51483f}
.mamasi-legal-links a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.mamasi-digital-consent{padding:14px!important;border:1px solid #ddd0bc;border-radius:8px;background:#fff;font-size:13px;line-height:1.6}
.mamasi-digital-consent label{display:flex!important;align-items:flex-start;gap:10px;text-transform:none!important;font-weight:400!important;font-size:13px!important;letter-spacing:0!important}
.mamasi-digital-consent input{flex:0 0 auto;margin-top:5px}
@media(max-width:600px){.mamasi-home-collections__grid li{flex:0 0 min(82vw,330px)}}
.mamasi-archive-modern .price p.iworks-omnibus{flex:0 0 100%;margin:8px 0 0;padding:9px;background:#f7f2eb;border-radius:7px;font-size:12px;font-weight:400;line-height:1.5}
@media(min-width:921px){.mamasi-home-collections__grid>li:last-child:nth-child(4n+1){grid-column:1/-1}.mamasi-home-collections__grid>li:last-child:nth-child(4n+1) .mamasi-home-collection{min-height:180px}}
@media(min-width:601px) and (max-width:920px){.mamasi-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.mamasi-categories>article:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.mamasi-home *,.mamasi-product-modern *,.mamasi-cart-modern *,.mamasi-checkout-modern *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* 2.5.2: compact mobile shopping journey and on-brand success feedback. */
body.woocommerce-page .woocommerce-message{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;padding:18px 20px 18px 48px!important;border:1px solid #dfd2bf!important;border-radius:14px;background:#f8f4ed!important;color:#51483f!important;font-size:15px;line-height:1.5;box-shadow:none}
body.woocommerce-page .woocommerce-message:before{top:20px;left:18px;color:#9b7947!important}
body.woocommerce-page .woocommerce-message:after{display:none}
body.woocommerce-page .woocommerce-message .mamasi-added-message{flex:1 1 200px}
body.woocommerce-page .woocommerce-message a.button{float:none!important;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0!important;padding:10px 20px!important;border:0!important;border-radius:9px!important;background:#191713!important;color:#fff!important;font-size:13px!important;font-weight:700;letter-spacing:.02em!important;text-transform:none!important;text-decoration:none}
body.woocommerce-page .woocommerce-message a.button:hover{background:#725635!important}
body.woocommerce-page .woocommerce-message:focus{outline:2px solid #b28a52;outline-offset:3px}
.mamasi-fixed-quantity{display:inline-block;font-size:15px;font-weight:700;color:#332d27}
@media(max-width:768px){
 .mamasi-product-modern div.product .woocommerce-tabs .panel{padding:20px 16px!important;font-size:16px!important;line-height:1.6!important}
 .mamasi-product-modern div.product .woocommerce-tabs .panel p,.mamasi-product-modern div.product .woocommerce-tabs .panel li{font-size:16px!important;line-height:1.6!important}
 .mamasi-product-modern div.product .woocommerce-tabs .panel p{margin:0 0 16px!important}
 .mamasi-product-modern div.product .woocommerce-tabs .panel h1,.mamasi-product-modern div.product .woocommerce-tabs .panel h2{font-size:24px!important;line-height:1.25!important;text-transform:none!important;margin:22px 0 14px!important}
 .mamasi-product-modern div.product .woocommerce-tabs .panel h3{font-size:20px!important;line-height:1.3!important;text-transform:none!important;margin:20px 0 12px!important}
 .mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item{display:grid!important;grid-template-columns:72px minmax(0,1fr) 36px;gap:8px 12px;padding:18px 14px;border-bottom:1px solid #e5dbce}
 .mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td{display:block!important;float:none!important;width:auto!important;min-width:0;padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
 .mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td:before{display:none!important}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-thumbnail{grid-column:1;grid-row:1/4;align-self:start}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-thumbnail img{width:72px!important;height:82px!important;object-fit:contain}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-name{grid-column:2;grid-row:1;padding:0!important}
 .mamasi-cart-modern .woocommerce-cart-form td.product-name a{font-size:14px!important;line-height:1.45!important;display:block}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-remove{grid-column:3;grid-row:1;justify-self:end}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-price{grid-column:2/4;grid-row:2;font-size:13px;font-weight:400}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-price:before{display:inline!important;content:'Cena: ';float:none!important;font-weight:400}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-quantity{grid-column:2;grid-row:3;align-self:center}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-quantity:before{display:inline!important;content:'Ilość: ';float:none!important;font-size:13px;font-weight:400}
 .mamasi-cart-modern .woocommerce-cart-form td.product-quantity .quantity{display:inline-block!important;float:none!important}
 .mamasi-cart-modern .woocommerce-cart-form .quantity .qty{width:60px!important;min-width:0;height:44px;font-size:16px}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-subtotal{grid-column:2/4;grid-row:4;text-align:right!important;font-size:15px}
 .mamasi-cart-modern .woocommerce-cart-form tr.cart_item td.product-subtotal:before{display:inline!important;content:'Razem: ';float:none!important;font-size:12px;font-weight:400}
 .mamasi-cart-modern .woocommerce-cart-form dl.variation{margin:8px 0 0!important;width:auto}
 .mamasi-cart-modern .woocommerce-cart-form dl.variation dt{font-size:10px}
 .mamasi-cart-modern .woocommerce-cart-form dl.variation dd,.mamasi-cart-modern .woocommerce-cart-form dl.variation dd p{font-size:12px!important;line-height:1.45}
 .mamasi-cart-modern .cart_totals h2{font-size:24px!important;line-height:1.2!important;text-transform:none!important;padding:0!important}
 .mamasi-checkout-modern #order_review table.shop_table{table-layout:fixed;width:100%}
 .mamasi-checkout-modern #order_review table.shop_table .product-name{width:70%!important;overflow-wrap:anywhere;padding-right:12px!important;font-size:14px!important;line-height:1.5!important}
 .mamasi-checkout-modern #order_review table.shop_table .product-total{width:30%!important;white-space:nowrap;font-size:14px!important}
 body.woocommerce-page .woocommerce-message{margin-bottom:20px;padding:16px 16px 16px 42px!important;font-size:14px;gap:10px}
 body.woocommerce-page .woocommerce-message:before{top:18px;left:15px}
 body.woocommerce-page .woocommerce-message .mamasi-added-message{flex-basis:100%}
 body.woocommerce-page .woocommerce-message a.button{width:100%;min-height:44px}
}

/* 2.5.3: neutralize table sizing on mobile and keep cell labels above theme specificity. */
@media(max-width:768px){
.mamasi-cart-modern .woocommerce-cart-form table.shop_table,.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody{display:block!important;width:100%!important;height:auto!important}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item{height:auto!important;min-height:0!important;grid-template-rows:auto auto auto auto!important;align-content:start!important;align-items:start!important;row-gap:10px!important}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td{height:auto!important;min-height:0!important;margin:0!important;line-height:1.45!important;align-self:start!important}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-price:before{display:inline!important;content:"Cena / szt.: "!important;float:none!important;position:static!important;width:auto!important;margin-right:5px;font-size:12px!important;font-weight:400!important;color:#756a60}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity:before{display:inline!important;content:"Ilość: "!important;float:none!important;position:static!important;width:auto!important;margin-right:5px;font-size:12px!important;font-weight:400!important;color:#756a60}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal:before{display:inline!important;content:"Razem: "!important;float:none!important;position:static!important;width:auto!important;margin-right:5px;font-size:12px!important;font-weight:400!important;color:#756a60}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-subtotal{text-align:right!important}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity .quantity{margin:0!important;padding:0!important;height:auto!important;min-height:0!important}
.mamasi-cart-modern .woocommerce-cart-form table.shop_table tbody tr.cart_item td.product-quantity .mamasi-fixed-quantity{display:inline!important;visibility:visible!important}
}

/* 2.5.10: theme width overrides, readable consent and compact payment step. */
body.mamasi-checkout-modern form.checkout #customer_details{width:100%!important;max-width:none!important;min-width:0;float:none!important;box-sizing:border-box}
body.mamasi-checkout-modern #customer_details>.col-1,body.mamasi-checkout-modern #customer_details>.col-2{width:100%!important;max-width:none!important;float:none!important;box-sizing:border-box}
body.mamasi-checkout-modern .mamasi-checkout-summary{min-width:0;box-sizing:border-box}
body.mamasi-checkout-modern #payment .form-row label{font-size:14px!important;line-height:1.55!important;text-transform:none!important;letter-spacing:normal!important;font-weight:400!important}
body.mamasi-checkout-modern #payment .woocommerce-privacy-policy-text{font-size:13px;line-height:1.6}
body.mamasi-checkout-modern #payment a,body.mamasi-checkout-modern .woocommerce-info a{color:#775d35!important;text-decoration:underline}
body.mamasi-checkout-modern #payment input[type=checkbox]{width:18px;height:18px;accent-color:#8b7045;vertical-align:middle;margin-right:8px}
body.mamasi-checkout-modern #payment div.payment_box:empty{display:none!important}
body.mamasi-checkout-modern .mamasi-delivery-status td{font-size:13px!important;text-align:left!important;line-height:1.6}
body.mamasi-checkout-modern .mamasi-shipping-diagnostics{margin-top:10px;padding:10px;background:#f6f1e9;border-radius:8px;font-size:12px}
body.mamasi-checkout-modern .mamasi-shipping-diagnostics p{margin:8px 0;font-size:12px}
body.mamasi-checkout-modern .woocommerce-shipping-totals{display:table-row!important}
body.mamasi-checkout-modern ul#shipping_method{text-align:left;list-style:none;padding:0}
body.mamasi-checkout-modern ul#shipping_method li{padding:10px;border:1px solid #e3d8ca;border-radius:8px;margin-bottom:8px}
body.mamasi-checkout-modern ul#shipping_method label{font-size:14px;line-height:1.5}
body.mamasi-checkout-modern button:disabled{cursor:wait;opacity:.6}
@media(min-width:921px){
 body.mamasi-checkout-modern.mamasi-checkout-step-3 form.checkout{display:block;max-width:960px;margin-left:auto;margin-right:auto}
 body.mamasi-checkout-step-3 .mamasi-checkout-summary{position:static;width:100%;margin-top:16px}
 body.mamasi-checkout-step-3 .mamasi-payment-side{padding:0;border:0;background:none;box-shadow:none}
 body.mamasi-checkout-step-3 .mamasi-payment-side>h3,body.mamasi-checkout-step-3 .mamasi-payment-side>p,body.mamasi-checkout-step-3 .mamasi-payment-side__eyebrow,body.mamasi-checkout-step-3 .mamasi-payment-side__points{display:none}
 body.mamasi-checkout-step-3 #payment ul.payment_methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body.mamasi-checkout-step-3 #payment ul.payment_methods li{margin:0}
}

/* 2.5.11: WooCommerce clearfix pseudo-elements must not occupy payment grid cells. */
body.mamasi-checkout-modern #payment ul.payment_methods::before,
body.mamasi-checkout-modern #payment ul.payment_methods::after{content:none!important;display:none!important}
body.mamasi-checkout-modern #payment ul.payment_methods>li{float:none!important;width:auto!important;min-width:0;box-sizing:border-box;align-self:stretch}
body.mamasi-checkout-modern #payment ul.payment_methods>li>label{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;max-width:calc(100% - 34px);vertical-align:middle;line-height:1.5}
body.mamasi-checkout-modern #payment ul.payment_methods>li>input[type=radio]{accent-color:#8b7045;margin:0 8px 0 0;vertical-align:middle}
body.mamasi-checkout-modern #payment ul.payment_methods>li>label img{object-fit:contain;max-width:120px;margin:0!important}
body.mamasi-checkout-modern #payment ul.payment_methods>li .payment_box{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
body.mamasi-cart-modern .woocommerce-info{padding:18px 20px 18px 48px!important;border:1px solid #e3d8ca!important;border-radius:14px;background:#f6f1e9!important;color:#554c43;font-size:14px;line-height:1.6}
body.mamasi-cart-modern .woocommerce-info::before{content:"i"!important;font-family:Georgia,serif!important;font-weight:bold;color:#8b7045;left:20px;top:18px}
body.mamasi-cart-modern .woocommerce-info a.button{border-radius:9px!important;background:#181713!important;color:#fff!important;font-size:12px!important;font-weight:700!important;letter-spacing:.03em!important;text-transform:none!important;padding:13px 18px!important}
@media(max-width:600px){body.mamasi-cart-modern .woocommerce-info a.button{display:block;float:none!important;width:100%;margin:10px 0!important;text-align:center}}

/* 2.5.12: native BLPaczka control in the Mamasi palette. */
body.mamasi-checkout-modern #order_review .blpaczka-point-modal-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;width:100%;margin:10px 0 4px!important;padding:11px 14px!important;border:1px solid #181713!important;border-radius:9px!important;background:#181713!important;color:#fff!important;font-size:13px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:normal!important;text-transform:none!important;white-space:normal!important;cursor:pointer}
body.mamasi-checkout-modern #order_review .blpaczka-point-modal-btn:hover{background:#775d35!important;border-color:#775d35!important}
body.mamasi-checkout-modern #order_review .blpaczka-point-modal-btn:focus-visible{outline:2px solid #8b7045;outline-offset:3px}
body.mamasi-checkout-modern #order_review .blpaczka-chosen-point-info{display:block;margin-top:8px;padding:10px;border-radius:8px;background:#f6f1e9;color:#554c43;font-size:13px;line-height:1.5;text-align:left;overflow-wrap:anywhere}
