/* Magna Polonia modern storefront modules – WORK REVIEW */
:root{
  --mp-red:#ed1c24;
  --mp-red-dark:#c9161d;
  --mp-ink:#202124;
  --mp-muted:#6f7378;
  --mp-line:#e8e8ea;
  --mp-soft:#f7f7f8;
  --mp-card:#fff;
  --mp-radius:14px;
  --mp-shadow:0 8px 28px rgba(20,24,31,.07);
}

/* ---------- Header ---------- */
body.mp-modern-header .container_top{margin-top:.45rem;margin-bottom:.6rem}
body.mp-modern-header .topbar{border:0;margin-bottom:.55rem;padding:.3rem .15rem;color:var(--mp-muted);font-size:.78rem}
body.mp-modern-header .topbar a{color:#4c5055}
body.mp-modern-header .topbar .mp-account-link{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;color:var(--mp-ink)}
body.mp-modern-header .topbar .mp-account-dot{width:7px;height:7px;border-radius:50%;background:#26a269;display:inline-block}
body.mp-modern-header .toplogo{display:flex;align-items:center;justify-content:flex-start}
body.mp-modern-header .toplogo .logo{display:inline-flex;align-items:center}
body.mp-modern-header .toplogo .logo img{height:74px;max-width:100%;object-fit:contain}
body.mp-modern-header .topsearch{display:flex;align-items:center}
body.mp-modern-header .topsearch #search-box{width:100%}
body.mp-modern-header .topsearch form,
body.mp-modern-header .topsearch .is-form-style{margin:0!important}
body.mp-modern-header .topsearch input[type="search"],
body.mp-modern-header .topsearch input[type="text"]{height:48px!important;border:1px solid #dfe1e5!important;border-radius:12px 0 0 12px!important;padding:0 16px!important;background:#fff!important;box-shadow:none!important}
body.mp-modern-header .topsearch button,
body.mp-modern-header .topsearch input[type="submit"]{height:48px!important;border-radius:0 12px 12px 0!important;border:1px solid #dfe1e5!important;background:#f4f4f5!important;color:#2f3337!important}
body.mp-modern-header .topcart{display:flex;align-items:center;justify-content:flex-end}
body.mp-modern-header .topcart .cart{width:100%;max-width:270px}
body.mp-modern-header .topcart .cart a{min-height:48px;border:1px solid #efb3b6;border-radius:12px;padding:11px 14px;background:#fff;display:flex;align-items:center;justify-content:flex-end;gap:.6rem;font-weight:700;color:var(--mp-ink)}
body.mp-modern-header .topcart .cart a:hover{border-color:var(--mp-red);background:#fff8f8}
body.mp-modern-header nav.navbar{border:1px solid var(--mp-line);border-left:0;border-right:0;margin:.8rem 0 0;padding:.55rem 0;background:#fff}
body.mp-modern-header .navbar .nav-link{font-weight:600;color:#363a3f;padding:.72rem .85rem}
body.mp-modern-header .navbar .current-menu-item>.nav-link,
body.mp-modern-header .navbar .nav-link:hover{color:var(--mp-red)}
body.mp-modern-header .woocommerce-breadcrumb{margin-top:.5rem;color:var(--mp-muted)}

/* ---------- Product catalogue ---------- */
body.mp-modern-catalog.woocommerce ul.products,
body.mp-modern-catalog.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:0!important;padding:0!important}
body.mp-modern-catalog.woocommerce ul.products::before,
body.mp-modern-catalog.woocommerce ul.products::after{display:none!important}
body.mp-modern-catalog.woocommerce ul.products li.product,
body.mp-modern-catalog.woocommerce-page ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:14px!important;border:1px solid var(--mp-line);border-radius:var(--mp-radius);background:var(--mp-card);display:flex!important;flex-direction:column;min-width:0;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;position:relative;overflow:hidden}
body.mp-modern-catalog.woocommerce ul.products li.product:hover{transform:translateY(-2px);border-color:#d6d7da;box-shadow:var(--mp-shadow)}
body.mp-modern-catalog.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none;min-width:0}
body.mp-modern-catalog.woocommerce ul.products li.product a img{width:100%!important;height:auto!important;aspect-ratio:4/5;object-fit:contain;background:#fff;margin:0 0 12px!important;border-radius:10px}
body.mp-modern-catalog.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.mp-modern-catalog.woocommerce ul.products li.product span.woocommerce-loop-product__title{height:auto!important;min-height:3.2em;margin:0!important;padding:0!important;font-size:1rem!important;line-height:1.35;font-weight:700;color:var(--mp-ink);display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
body.mp-modern-catalog.woocommerce ul.products li.product .star-rating{margin:.55rem 0 0}
body.mp-modern-catalog.woocommerce ul.products li.product .price{margin:auto 0 0!important;padding-top:.7rem;text-align:left!important;font-size:1.08rem!important;line-height:1.2;color:var(--mp-red)!important;font-weight:800}
body.mp-modern-catalog.woocommerce ul.products li.product .price del{font-size:.82rem;color:#979ba1;opacity:1;font-weight:500}
body.mp-modern-catalog.woocommerce ul.products li.product .button{width:100%;min-height:42px;margin:12px 0 0!important;border-radius:10px!important;display:flex!important;align-items:center;justify-content:center;text-align:center;font-weight:800;background:var(--mp-red)!important;color:#fff!important}
body.mp-modern-catalog.woocommerce ul.products li.product .button:hover{background:var(--mp-red-dark)!important}
body.mp-modern-catalog.woocommerce ul.products li.product span.onsale{top:11px!important;left:11px!important;right:auto!important;transform:none!important;border-radius:999px!important;padding:6px 9px!important;min-height:0!important;line-height:1!important;font-size:.72rem!important;z-index:3;background:var(--mp-red)!important}
body.mp-modern-catalog .woocommerce-result-count{color:var(--mp-muted)}
body.mp-modern-catalog .woocommerce-ordering select{border:1px solid var(--mp-line);border-radius:10px;padding:9px 32px 9px 11px;background:#fff}

/* ---------- Single product ---------- */
/*
 * IMPORTANT: the legacy theme emits the product description directly from
 * description.php. 3.0.9 wraps the purchase area and description explicitly,
 * so third-party carousels can never be auto-placed under the sticky summary.
 */
body.mp-modern-product.single-product div.product{display:block!important;min-width:0}
body.mp-modern-product.single-product .mp-product-main{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.82fr);grid-template-areas:"title title" "gallery summary";column-gap:42px;row-gap:0;align-items:start;min-width:0}
body.mp-modern-product.single-product .mp-product-main>#content,
body.mp-modern-product.single-product .mp-product-main>.qty_storage{position:absolute!important;left:0;top:0;width:0!important;height:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
body.mp-modern-product.single-product .mp-product-main>h1.product_title{grid-area:title;margin:0 0 24px!important;font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.12;color:var(--mp-ink);min-width:0}
body.mp-modern-product.single-product .mp-product-main>.product-images{grid-area:gallery;min-width:0}
body.mp-modern-product.single-product .mp-product-main>.summary{grid-area:summary!important;width:auto!important;float:none!important;border:1px solid var(--mp-line);border-radius:18px;background:#fff;padding:24px;box-shadow:var(--mp-shadow);position:sticky;top:92px;min-width:0;align-self:start;z-index:2}
body.mp-modern-product.single-product .woocommerce-product-gallery,
body.mp-modern-product.single-product div.product div.images{width:100%!important;max-width:none!important;float:none!important;margin:0!important}
body.mp-modern-product.single-product div.product .summary p.price{font-size:1.75rem!important;font-weight:800;margin:0 0 16px;color:var(--mp-red)!important}
body.mp-modern-product.single-product div.product form.cart{margin:18px 0!important}
body.mp-modern-product.single-product div.product form.cart .quantity{margin-right:10px!important}
body.mp-modern-product.single-product div.product form.cart .qty{min-height:48px;border:1px solid #dfe1e5;border-radius:10px;padding:0 8px}
body.mp-modern-product.single-product div.product form.cart .single_add_to_cart_button{min-height:48px;border-radius:10px!important;padding:0 22px!important;font-size:1rem;font-weight:800}
body.mp-modern-product.single-product .variations{width:100%!important}
body.mp-modern-product.single-product .variations select{width:100%!important;max-width:none!important;border:1px solid #dfe1e5;border-radius:10px;min-height:44px;padding:6px 10px}
body.mp-modern-product.single-product .product_meta{margin-top:16px;padding-top:15px;border-top:1px solid var(--mp-line);font-size:.9rem;color:var(--mp-muted);line-height:1.6}
body.mp-modern-product.single-product .mp-product-confidence{display:grid;grid-template-columns:1fr;gap:8px;margin:18px 0 0;padding:14px;border-radius:12px;background:#fafafa;border:1px solid var(--mp-line)}
body.mp-modern-product.single-product .mp-product-confidence__item{display:flex;gap:10px;align-items:flex-start;font-size:.9rem;line-height:1.35;color:#4a4e53}
body.mp-modern-product.single-product .mp-product-confidence__icon{width:24px;height:24px;border-radius:50%;background:#fff1f1;color:var(--mp-red);display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;font-weight:800}
body.mp-modern-product.single-product div.product .woocommerce-product-details__short-description{color:#555;line-height:1.55}
body.mp-modern-product.single-product .mp-product-description{display:block;clear:both;width:100%;max-width:100%;box-sizing:border-box;margin-top:38px;position:relative;z-index:1}
body.mp-modern-product.single-product .mp-product-description>h2:first-child{margin-top:0}
/* Defensive full-width reset for sections injected by product-slider / recommendation plugins. */
body.mp-modern-product.single-product div.product>.related,
body.mp-modern-product.single-product div.product>.upsells,
body.mp-modern-product.single-product div.product>.cross-sells,
body.mp-modern-product.single-product div.product>[class*="carousel"],
body.mp-modern-product.single-product div.product>[class*="slider"]{display:block;clear:both;width:100%!important;max-width:100%!important;box-sizing:border-box;position:relative;z-index:1;margin-left:0!important;margin-right:0!important}

/* ---------- Cart ---------- */
body.mp-modern-cart.woocommerce-cart .woocommerce{max-width:1180px;margin:0 auto}
body.mp-modern-cart .mp-cart-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr);gap:28px;align-items:start}
body.mp-modern-cart .mp-cart-panel{border:1px solid var(--mp-line);border-radius:18px;background:#fff;box-shadow:var(--mp-shadow);overflow:hidden}
body.mp-modern-cart .mp-cart-panel__head{padding:20px 22px;border-bottom:1px solid var(--mp-line);display:flex;align-items:center;justify-content:space-between;gap:16px}
body.mp-modern-cart .mp-cart-panel__head h2{font-size:1.3rem;margin:0;color:var(--mp-ink)}
body.mp-modern-cart .mp-cart-item{display:grid;grid-template-columns:86px minmax(0,1fr) auto;gap:16px;padding:20px 22px;border-bottom:1px solid var(--mp-line);align-items:center}
body.mp-modern-cart .mp-cart-item:last-child{border-bottom:0}
body.mp-modern-cart .mp-cart-item__image img{width:86px;height:108px;object-fit:contain;border-radius:8px;background:#fff}
body.mp-modern-cart .mp-cart-item__name{font-size:1rem;font-weight:750;line-height:1.35;margin:0 0 6px}
body.mp-modern-cart .mp-cart-item__name a{color:var(--mp-ink)}
body.mp-modern-cart .mp-cart-item__meta{font-size:.82rem;color:var(--mp-muted)}
body.mp-modern-cart .mp-cart-item__unit{font-size:.85rem;color:var(--mp-muted);margin-top:7px}
body.mp-modern-cart .mp-cart-item__controls{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:150px}
body.mp-modern-cart .mp-cart-item__subtotal{font-size:1.05rem;font-weight:800;color:var(--mp-ink);white-space:nowrap}
body.mp-modern-cart .mp-qty-wrap{display:inline-flex;align-items:center;border:1px solid #dfe1e5;border-radius:10px;overflow:hidden;background:#fff}
body.mp-modern-cart .mp-qty-btn{width:36px;height:38px;border:0;background:#f7f7f8;color:#292d31;font-size:1.15rem;cursor:pointer}
body.mp-modern-cart .mp-qty-btn:hover{background:#ededee}
body.mp-modern-cart .mp-qty-wrap .quantity{margin:0!important}
body.mp-modern-cart .mp-qty-wrap .qty{width:48px!important;height:38px;border:0!important;border-radius:0!important;text-align:center;padding:0!important;box-shadow:none!important}
body.mp-modern-cart .mp-cart-remove{font-size:.82rem;color:#8b8f94;text-decoration:underline}
body.mp-modern-cart .mp-cart-remove:hover{color:var(--mp-red)}
body.mp-modern-cart .mp-cart-actions{padding:18px 22px;background:#fafafa;border-top:1px solid var(--mp-line);display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
body.mp-modern-cart .mp-cart-coupon{min-width:260px;max-width:430px;flex:1}
body.mp-modern-cart .mp-cart-coupon summary{cursor:pointer;font-weight:700;color:#555;list-style:none}
body.mp-modern-cart .mp-cart-coupon summary::-webkit-details-marker{display:none}
body.mp-modern-cart .mp-cart-coupon__form{display:flex;gap:8px;margin-top:10px}
body.mp-modern-cart .mp-cart-coupon__form input[type=text]{min-width:0;flex:1;border:1px solid #dfe1e5;border-radius:10px;padding:9px 11px}
body.mp-modern-cart .mp-cart-actions .button{border-radius:10px!important;min-height:42px!important}
body.mp-modern-cart .mp-cart-summary{position:sticky;top:92px}
body.mp-modern-cart .cart_totals{width:100%!important;float:none!important;border:1px solid var(--mp-line);border-radius:18px;background:#fff;box-shadow:var(--mp-shadow);padding:22px;overflow:hidden}
body.mp-modern-cart .cart_totals h2{font-size:1.35rem;margin:0 0 14px}
body.mp-modern-cart .cart_totals table.shop_table{margin:0!important;border:0!important}
body.mp-modern-cart .cart_totals table.shop_table th,
body.mp-modern-cart .cart_totals table.shop_table td{padding:11px 0!important;border-top:1px solid var(--mp-line)!important}
body.mp-modern-cart .cart_totals table.shop_table tr:first-child th,
body.mp-modern-cart .cart_totals table.shop_table tr:first-child td{border-top:0!important}
body.mp-modern-cart .cart_totals .order-total th,
body.mp-modern-cart .cart_totals .order-total td{font-size:1.1rem!important;color:var(--mp-ink)!important}
body.mp-modern-cart .cart_totals .wc-proceed-to-checkout{padding:16px 0 0!important;margin:0!important}
body.mp-modern-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{display:flex!important;width:100%!important;min-height:50px!important;margin:0!important;align-items:center;justify-content:center;border-radius:11px!important;font-weight:800;font-size:1rem!important}
body.mp-modern-cart .mp-cart-continue{display:block;text-align:center;margin-top:12px;font-weight:650;color:#666}
body.mp-modern-cart .cross-sells{margin-top:30px}
body.mp-modern-cart .cross-sells>h2{font-size:1.45rem}

/* ---------- Shared polish ---------- */
body.mp-modern-header .button,
body.mp-modern-catalog .button,
body.mp-modern-product .button,
body.mp-modern-cart .button{transition:background .15s ease,border-color .15s ease,transform .12s ease}
body.mp-modern-cart .woocommerce-message,
body.mp-modern-product .woocommerce-message,
body.mp-modern-catalog .woocommerce-message{border-radius:12px;border:1px solid #d8eadf;background:#f7fcf8;padding:14px 16px 14px 46px}

@media (max-width:991px){
  body.mp-modern-catalog.woocommerce ul.products,
  body.mp-modern-catalog.woocommerce-page ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.mp-modern-product.single-product .mp-product-main{grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);column-gap:26px}
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:1fr}
  body.mp-modern-cart .mp-cart-summary{position:static}
}
@media (max-width:767px){
  body.mp-modern-header .topbar .col-12:first-child{display:none}
  body.mp-modern-header .topbar .col-12:last-child{text-align:right!important}
  body.mp-modern-header .toplogo{justify-content:center;margin-bottom:8px}
  body.mp-modern-header .toplogo .logo img{height:58px}
  body.mp-modern-header .topsearch{order:3;margin-top:8px}
  body.mp-modern-header .topcart{order:2;justify-content:center}
  body.mp-modern-header .topcart .cart{max-width:none}
  body.mp-modern-header .topcart .cart a{justify-content:center}
  body.mp-modern-catalog.woocommerce ul.products,
  body.mp-modern-catalog.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body.mp-modern-catalog.woocommerce ul.products li.product{padding:10px!important;border-radius:12px}
  body.mp-modern-catalog.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.92rem!important;min-height:3.7em}
  body.mp-modern-product.single-product .mp-product-main{display:block}
  body.mp-modern-product.single-product .mp-product-main>h1.product_title{margin-bottom:16px!important}
  body.mp-modern-product.single-product .mp-product-main>.summary{position:static;margin-top:18px;padding:18px;border-radius:14px}
  body.mp-modern-product.single-product .mp-product-mobile-buybar{display:flex}
  body.mp-modern-cart .mp-cart-item{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:16px}
  body.mp-modern-cart .mp-cart-item__image img{width:72px;height:92px}
  body.mp-modern-cart .mp-cart-item__controls{grid-column:2;align-items:stretch;min-width:0;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap}
  body.mp-modern-cart .mp-cart-actions{padding:15px 16px;display:block}
  body.mp-modern-cart .mp-cart-coupon{min-width:0;max-width:none;margin-bottom:12px}
  body.mp-modern-cart .mp-cart-actions>button{width:100%}
}
@media (max-width:420px){
  body.mp-modern-catalog.woocommerce ul.products,
  body.mp-modern-catalog.woocommerce-page ul.products{gap:9px}
  body.mp-modern-catalog.woocommerce ul.products li.product{padding:8px!important}
  body.mp-modern-catalog.woocommerce ul.products li.product .button{font-size:.82rem;padding:8px 6px!important}
  body.mp-modern-cart .mp-cart-panel__head{padding:16px}
}

/* ---------- My account ---------- */
/* Apply the two-column shell ONLY to the shortcode's outer WooCommerce wrapper.
 * Loyalty and other plugins may render their own nested .woocommerce elements. */
body.logged-in.mp-modern-account .bodybar>.container>.row>.col-12>.woocommerce{display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-areas:"nav content";gap:28px;align-items:start;min-width:0}
body.logged-in.mp-modern-account .bodybar>.container>.row>.col-12>.woocommerce>.woocommerce-notices-wrapper{grid-column:1/-1}
body.mp-modern-account .woocommerce-MyAccount-navigation{grid-area:nav;float:none!important;width:auto!important;min-width:0;border:1px solid var(--mp-line);border-radius:16px;background:#fff;box-shadow:var(--mp-shadow);overflow:hidden;align-self:start}
body.mp-modern-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:8px}
body.mp-modern-account .woocommerce-MyAccount-navigation li{margin:0}
body.mp-modern-account .woocommerce-MyAccount-navigation a{display:block;padding:11px 13px;border-radius:9px;color:#4a4e53;font-weight:650;text-decoration:none}
body.mp-modern-account .woocommerce-MyAccount-navigation li.is-active a,
body.mp-modern-account .woocommerce-MyAccount-navigation a:hover{background:#fff1f1;color:var(--mp-red)}
body.mp-modern-account .woocommerce-MyAccount-content{grid-area:content;float:none!important;width:auto!important;max-width:100%!important;min-width:0;border:1px solid var(--mp-line);border-radius:16px;background:#fff;box-shadow:var(--mp-shadow);padding:24px;line-height:1.6;box-sizing:border-box}
/* Never turn plugin-generated nested WooCommerce wrappers into another account grid. */
body.mp-modern-account .woocommerce-MyAccount-content .woocommerce{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.mp-modern-account .woocommerce-MyAccount-content>*{max-width:100%;box-sizing:border-box}
body.mp-modern-account .woocommerce-MyAccount-content table.shop_table{width:100%;border:1px solid var(--mp-line);border-radius:12px;overflow:hidden}
body.mp-modern-account .woocommerce-MyAccount-content .button{border-radius:9px!important}
body.mp-modern-account .woocommerce form.login,
body.mp-modern-account .woocommerce form.register{border:1px solid var(--mp-line);border-radius:16px;padding:22px;box-shadow:var(--mp-shadow)}

/* ---------- Footer ---------- */
body.mp-modern-footer .footerbar{margin-top:48px;background:#f7f7f8;border-top:1px solid var(--mp-line)}
body.mp-modern-footer .footerbar .container{margin-top:0;margin-bottom:0;padding-top:30px;padding-bottom:28px}
body.mp-modern-footer .footer{border:0!important;color:#777;text-align:left;padding:0 15px}
body.mp-modern-footer .footer .menu{margin-bottom:15px}
body.mp-modern-footer .footer .menu ul{padding:0;margin:0;display:flex;gap:9px 20px;flex-wrap:wrap}
body.mp-modern-footer .footer .menu li{margin:0!important}
body.mp-modern-footer .footer .menu a{color:#333;font-weight:650;text-decoration:none}
body.mp-modern-footer .footer .menu a:hover{color:var(--mp-red)}
body.mp-modern-footer .footer p{font-size:.86rem;line-height:1.55;margin:0;max-width:900px}

/* Cross-sells inherit the modern card language inside the new cart. */
body.mp-modern-cart .cross-sells ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
body.mp-modern-cart .cross-sells ul.products::before,
body.mp-modern-cart .cross-sells ul.products::after{display:none!important}
body.mp-modern-cart .cross-sells ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:12px!important;border:1px solid var(--mp-line);border-radius:12px;background:#fff;display:flex!important;flex-direction:column}
body.mp-modern-cart .cross-sells ul.products li.product img{aspect-ratio:4/5;object-fit:contain;margin:0 0 10px!important}
body.mp-modern-cart .cross-sells ul.products li.product .woocommerce-loop-product__title{font-size:.92rem!important;line-height:1.35;min-height:3.6em}
body.mp-modern-cart .cross-sells ul.products li.product .price{text-align:left!important;font-weight:800;color:var(--mp-red)!important}
body.mp-modern-cart .cross-sells ul.products li.product .button{width:100%;text-align:center;margin-top:auto!important;border-radius:9px!important}

@media(max-width:991px){
  body.logged-in.mp-modern-account .bodybar>.container>.row>.col-12>.woocommerce{grid-template-columns:1fr;grid-template-areas:"nav" "content"}
  body.mp-modern-account .woocommerce-MyAccount-navigation ul{display:flex;gap:6px;overflow:auto;padding:8px}
  body.mp-modern-account .woocommerce-MyAccount-navigation li{flex:0 0 auto}
  body.mp-modern-cart .cross-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
  body.mp-modern-account .woocommerce-MyAccount-content{padding:17px}
  body.mp-modern-footer .footer{text-align:center}
  body.mp-modern-footer .footer .menu ul{justify-content:center}
}
body.mp-modern-cart .cross-sells ul.products li.product span.woocommerce-loop-product__title{height:auto!important;overflow:hidden}

/* ==========================================================
 * 3.0.10 — modern home + cart usability hotfix
 * ========================================================== */

/* ---------- Modern home ---------- */
body.mp-modern-home .mp-home-shell{padding:10px 0 34px}
body.mp-modern-home .mp-home{max-width:1180px}
body.mp-modern-home .mp-home-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:34px;align-items:center;padding:38px 42px;border:1px solid var(--mp-line);border-radius:22px;background:linear-gradient(135deg,#fff 0%,#fff8f8 100%);box-shadow:var(--mp-shadow);overflow:hidden;position:relative}
body.mp-modern-home .mp-home-hero:after{content:"";position:absolute;right:-90px;top:-90px;width:260px;height:260px;border-radius:50%;background:rgba(237,28,36,.055);pointer-events:none}
body.mp-modern-home .mp-home-hero__copy{position:relative;z-index:1;min-width:0}
body.mp-modern-home .mp-home-eyebrow{display:block;margin-bottom:8px;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;font-weight:850;color:var(--mp-red)}
body.mp-modern-home .mp-home-hero h1{font-size:clamp(2rem,4vw,3.35rem);line-height:1.06;margin:0 0 16px;color:var(--mp-ink);max-width:760px}
body.mp-modern-home .mp-home-hero__text{max-width:720px;font-size:1.04rem;line-height:1.62;color:#565b61}
body.mp-modern-home .mp-home-hero__text p:last-child{margin-bottom:0}
body.mp-modern-home .mp-home-hero__price{font-size:1.8rem;font-weight:850;color:var(--mp-red);margin-top:17px}
body.mp-modern-home .mp-home-hero__price del{font-size:1rem;color:#979ba1;margin-right:7px;font-weight:500}
body.mp-modern-home .mp-home-hero__actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:22px}
body.mp-modern-home .mp-home-primary{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:0 22px!important;border-radius:11px!important;background:var(--mp-red)!important;color:#fff!important;font-weight:850!important;text-decoration:none!important}
body.mp-modern-home .mp-home-primary:hover{background:var(--mp-red-dark)!important}
body.mp-modern-home .mp-home-secondary{font-weight:750;color:#43474c;text-decoration:none}
body.mp-modern-home .mp-home-secondary:hover{color:var(--mp-red)}
body.mp-modern-home .mp-home-hero__visual{display:flex;align-items:center;justify-content:center;position:relative;z-index:1;min-height:360px}
body.mp-modern-home .mp-home-hero__visual img{display:block;max-width:100%;width:auto;max-height:430px;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(20,24,31,.14))}

body.mp-modern-home .mp-home-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0 42px}
body.mp-modern-home .mp-home-benefits>div{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-areas:"icon title" "icon text";column-gap:11px;align-items:center;padding:15px 16px;border:1px solid var(--mp-line);border-radius:14px;background:#fff}
body.mp-modern-home .mp-home-benefits span{grid-area:icon;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff1f1;color:var(--mp-red);font-weight:900;font-size:1rem}
body.mp-modern-home .mp-home-benefits strong{grid-area:title;color:var(--mp-ink);font-size:.92rem;line-height:1.2}
body.mp-modern-home .mp-home-benefits small{grid-area:text;color:var(--mp-muted);font-size:.76rem;line-height:1.3;margin-top:2px}

body.mp-modern-home .mp-home-section{margin:44px 0}
body.mp-modern-home .mp-home-section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
body.mp-modern-home .mp-home-section__head h2{font-size:clamp(1.6rem,2.6vw,2.15rem);line-height:1.1;margin:0;color:var(--mp-ink)}
body.mp-modern-home .mp-home-section__head>a{font-weight:750;color:#555;text-decoration:none;white-space:nowrap}
body.mp-modern-home .mp-home-section__head>a:hover{color:var(--mp-red)}

body.mp-modern-home .mp-home-category-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
body.mp-modern-home .mp-home-category-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--mp-line);border-radius:15px;background:#fff;padding:12px;text-decoration:none;color:inherit;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
body.mp-modern-home .mp-home-category-card:hover{transform:translateY(-2px);border-color:#d7d8da;box-shadow:var(--mp-shadow);color:inherit}
body.mp-modern-home .mp-home-category-card__visual{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border-radius:11px;background:#fafafa;overflow:hidden;margin-bottom:10px}
body.mp-modern-home .mp-home-category-card__visual img{width:100%;height:100%;object-fit:contain}
body.mp-modern-home .mp-home-category-card__placeholder{font-size:1.6rem;font-weight:900;color:#c9c9cc}
body.mp-modern-home .mp-home-category-card__name{font-size:.93rem;font-weight:800;line-height:1.28;color:var(--mp-ink)}
body.mp-modern-home .mp-home-category-card small{font-size:.75rem;color:var(--mp-muted);margin-top:3px}

body.mp-modern-home .mp-home-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.mp-modern-home .mp-home-product-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--mp-line);border-radius:15px;background:#fff;overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
body.mp-modern-home .mp-home-product-card:hover{transform:translateY(-2px);border-color:#d7d8da;box-shadow:var(--mp-shadow)}
body.mp-modern-home .mp-home-product-card__image{display:block;position:relative;padding:14px 14px 0;background:#fff;min-height:0}
body.mp-modern-home .mp-home-product-card__image img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;margin:0;background:#fff}
body.mp-modern-home .mp-home-badge{position:absolute;left:22px;top:22px;z-index:2;border-radius:999px;background:var(--mp-red);color:#fff;padding:6px 9px;font-size:.7rem;font-weight:850;line-height:1}
body.mp-modern-home .mp-home-product-card__body{display:flex;flex-direction:column;flex:1;padding:13px 14px 14px}
body.mp-modern-home .mp-home-product-card h3{font-size:.98rem;line-height:1.35;font-weight:760;margin:0 0 10px;min-height:3.95em}
body.mp-modern-home .mp-home-product-card h3 a{color:var(--mp-ink);text-decoration:none}
body.mp-modern-home .mp-home-product-card__price{margin:auto 0 0;padding-top:5px;font-size:1.08rem;line-height:1.25;font-weight:850;color:var(--mp-red)}
body.mp-modern-home .mp-home-product-card__price del{font-size:.8rem;color:#999;font-weight:500;margin-right:5px}
body.mp-modern-home .mp-home-product-card .button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:42px;margin-top:12px!important;border-radius:9px!important;background:var(--mp-red)!important;color:#fff!important;font-size:.9rem!important;font-weight:800!important;text-align:center}
body.mp-modern-home .mp-home-product-card .button:hover{background:var(--mp-red-dark)!important}
body.mp-modern-home .mp-home-publisher{padding:28px;border-radius:20px;background:#fafafa;border:1px solid var(--mp-line)}
body.mp-modern-home .mp-home-loyalty{display:flex;align-items:center;justify-content:space-between;gap:30px;margin:48px 0 14px;padding:28px 30px;border-radius:19px;border:1px solid #f0c8ca;background:#fff7f7}
body.mp-modern-home .mp-home-loyalty h2{margin:0 0 8px;font-size:1.55rem;line-height:1.18;color:var(--mp-ink)}
body.mp-modern-home .mp-home-loyalty p{margin:0;color:#5d6166;max-width:720px;line-height:1.55}
body.mp-modern-home .mp-home-loyalty .button{flex:0 0 auto;margin:0!important}

/* ---------- Cart 3.0.10 ---------- */
body.mp-modern-cart .mp-cart-update-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;flex-wrap:wrap}
body.mp-modern-cart .mp-cart-update-status{font-size:.78rem;color:#777;line-height:1.35}
body.mp-modern-cart .mp-cart-update-status.is-busy{color:var(--mp-red);font-weight:700}
body.mp-modern-cart .mp-cart-update-button{display:inline-flex!important;align-items:center;justify-content:center!important;min-width:150px;background:#fff!important;border:1px solid #d6d8db!important;color:#34383d!important}
body.mp-modern-cart .mp-cart-update-button:hover{border-color:var(--mp-red)!important;color:var(--mp-red)!important}
body.mp-modern-cart .mp-cart-update-button:disabled{display:inline-flex!important;opacity:.48!important;cursor:not-allowed}

/* Recommended products stay directly under cart items rather than after the whole two-column layout. */
body.mp-modern-cart .mp-cart-cross-sells{border-top:1px solid var(--mp-line);padding:20px 22px 22px;background:#fcfcfc}
body.mp-modern-cart .mp-cart-cross-sells:empty{display:none}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells{margin:0!important}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells>h2{margin:0 0 14px!important;font-size:1.16rem!important;color:var(--mp-ink)}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products li.product{padding:10px!important;border-radius:11px}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products li.product .woocommerce-loop-product__title{font-size:.84rem!important;min-height:3.4em}
body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products li.product .button{font-size:.8rem!important;padding:8px 5px!important;min-height:38px!important}

/* Shipping methods in totals: full-width cards, no clipping in the narrow sticky column. */
body.mp-modern-cart .cart_totals table.shop_table tr.mp-cart-shipping-row>td{display:table-cell!important;width:100%!important;padding:14px 0!important;border-top:1px solid var(--mp-line)!important;overflow:visible!important;white-space:normal!important}
body.mp-modern-cart .mp-cart-shipping-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
body.mp-modern-cart .mp-cart-shipping-heading strong{font-size:.95rem;color:var(--mp-ink)}
body.mp-modern-cart .mp-cart-shipping-heading small{font-size:.72rem;color:var(--mp-muted);text-align:right;line-height:1.3}
body.mp-modern-cart ul.mp-cart-shipping-methods{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:0!important;padding:0!important;list-style:none!important;width:100%!important;max-width:none!important}
body.mp-modern-cart ul.mp-cart-shipping-methods li.mp-cart-shipping-method{position:relative;display:grid!important;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;width:100%!important;max-width:100%!important;margin:0!important;padding:10px 11px!important;border:1px solid #dedfe2;border-radius:10px;background:#fff;box-sizing:border-box;overflow:visible!important;min-width:0}
body.mp-modern-cart ul.mp-cart-shipping-methods li.mp-cart-shipping-method.is-selected{border-color:var(--mp-red);background:#fff8f8;box-shadow:0 0 0 1px rgba(237,28,36,.04)}
body.mp-modern-cart ul.mp-cart-shipping-methods input[type=radio]{grid-column:1;width:17px!important;height:17px!important;margin:0!important;flex:0 0 auto}
body.mp-modern-cart .mp-cart-shipping-check{grid-column:1;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--mp-red);color:#fff;font-size:.69rem;font-weight:900}
body.mp-modern-cart ul.mp-cart-shipping-methods label{grid-column:2;display:block!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;font-size:.84rem;line-height:1.35;color:#383c41;cursor:pointer;min-width:0}
body.mp-modern-cart ul.mp-cart-shipping-methods label img,
body.mp-modern-cart ul.mp-cart-shipping-methods li img{display:inline-block!important;max-width:72px!important;max-height:28px!important;width:auto!important;height:auto!important;object-fit:contain;vertical-align:middle;margin:0 5px 0 0!important}
body.mp-modern-cart ul.mp-cart-shipping-methods .woocommerce-Price-amount{font-weight:800;white-space:nowrap}
body.mp-modern-cart .mp-cart-shipping-method>*:not(input):not(label):not(.mp-cart-shipping-check){grid-column:2;max-width:100%;min-width:0;overflow-wrap:anywhere}
body.mp-modern-cart .mp-cart-shipping-note{font-size:.82rem;line-height:1.45;color:var(--mp-muted);margin:0}
body.mp-modern-cart .mp-cart-shipping-calculator{margin-top:9px}
body.mp-modern-cart .mp-cart-shipping-calculator .shipping-calculator-button{font-size:.8rem;font-weight:700;color:var(--mp-red)}
body.mp-modern-cart .mp-cart-shipping-calculator .shipping-calculator-form{margin-top:10px}
body.mp-modern-cart .mp-cart-shipping-calculator input,
body.mp-modern-cart .mp-cart-shipping-calculator select{max-width:100%!important;box-sizing:border-box}

@media(max-width:991px){
  body.mp-modern-home .mp-home-hero{grid-template-columns:minmax(0,1.1fr) minmax(240px,.7fr);padding:30px}
  body.mp-modern-home .mp-home-benefits{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mp-modern-home .mp-home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.mp-modern-home .mp-home-products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:767px){
  body.mp-modern-home .mp-home-shell{padding-top:0}
  body.mp-modern-home .mp-home-hero{display:flex;flex-direction:column-reverse;gap:20px;padding:22px 18px;border-radius:16px}
  body.mp-modern-home .mp-home-hero__visual{min-height:0;width:100%}
  body.mp-modern-home .mp-home-hero__visual img{max-height:280px}
  body.mp-modern-home .mp-home-hero__actions{align-items:stretch;flex-direction:column}
  body.mp-modern-home .mp-home-primary{width:100%}
  body.mp-modern-home .mp-home-secondary{text-align:center}
  body.mp-modern-home .mp-home-benefits{grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 34px}
  body.mp-modern-home .mp-home-benefits>div{padding:12px;grid-template-columns:32px minmax(0,1fr);column-gap:8px}
  body.mp-modern-home .mp-home-benefits span{width:31px;height:31px}
  body.mp-modern-home .mp-home-benefits small{font-size:.7rem}
  body.mp-modern-home .mp-home-section{margin:34px 0}
  body.mp-modern-home .mp-home-section__head{align-items:flex-start}
  body.mp-modern-home .mp-home-section__head>a{font-size:.8rem}
  body.mp-modern-home .mp-home-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.mp-modern-home .mp-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body.mp-modern-home .mp-home-product-card h3{font-size:.88rem;min-height:4.05em}
  body.mp-modern-home .mp-home-product-card__body{padding:10px}
  body.mp-modern-home .mp-home-publisher{padding:18px 12px}
  body.mp-modern-home .mp-home-loyalty{display:block;padding:21px 18px}
  body.mp-modern-home .mp-home-loyalty .button{width:100%;margin-top:16px!important}

  body.mp-modern-cart .mp-cart-update-tools{display:block;margin-top:12px}
  body.mp-modern-cart .mp-cart-update-status{display:block;margin-bottom:8px;text-align:center}
  body.mp-modern-cart .mp-cart-update-button{width:100%!important}
  body.mp-modern-cart .mp-cart-cross-sells{padding:16px}
  body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mp-modern-cart .mp-cart-shipping-heading{display:block}
  body.mp-modern-cart .mp-cart-shipping-heading small{display:block;text-align:left;margin-top:3px}
}

@media(max-width:420px){
  body.mp-modern-home .mp-home-benefits{grid-template-columns:1fr}
  body.mp-modern-home .mp-home-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.mp-modern-home .mp-home-product-card__image{padding:9px 9px 0}
  body.mp-modern-home .mp-home-product-card__body{padding:9px}
  body.mp-modern-home .mp-home-product-card .button{font-size:.76rem!important;padding:7px 4px!important}
  body.mp-modern-cart .mp-cart-cross-sells .cross-sells ul.products{grid-template-columns:1fr 1fr}
}

/* ============================================================
   3.0.13 — MODERN SHIPPING OWNERSHIP
   The legacy "MP – Poprawki sklepu" shipping grid is dequeued on
   the modern cart/checkout. These rules are the only shipping layout
   for the modern cart, so there is no post-load jump or nested cards.
   ============================================================ */
body.mp-modern-cart .mp-modern-shipping-row > td{
  display:table-cell!important;
  width:100%!important;
  padding:14px 0!important;
  border-top:1px solid var(--mp-line)!important;
  overflow:visible!important;
  white-space:normal!important;
}
body.mp-modern-cart .mp-modern-shipping-heading{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 10px!important;
}
body.mp-modern-cart .mp-modern-shipping-heading strong{font-size:.95rem;color:var(--mp-ink)}
body.mp-modern-cart .mp-modern-shipping-heading small{font-size:.72rem;color:var(--mp-muted);text-align:right;line-height:1.3}
body.mp-modern-cart ul.mp-modern-shipping-methods{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  text-align:left!important;
  box-sizing:border-box!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-shipping-provider-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:34px!important;
  margin:4px 0 0!important;
  padding:6px 9px!important;
  border:1px solid #e2e3e5!important;
  border-radius:8px!important;
  background:#fafafa!important;
  color:#24272b!important;
  font-size:.8rem!important;
  line-height:1.2!important;
  font-weight:800!important;
  box-sizing:border-box!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-shipping-provider-title:first-child{margin-top:0!important}
body.mp-modern-cart .mp-shipping-provider-title img{
  display:block!important;
  width:auto!important;
  max-width:42px!important;
  height:auto!important;
  max-height:21px!important;
  margin:0!important;
  object-fit:contain!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-modern-shipping-method{
  position:relative!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:54px!important;
  margin:0!important;
  padding:9px 11px!important;
  border:1px solid #dedfe2!important;
  border-radius:10px!important;
  background:#fff!important;
  list-style:none!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-modern-shipping-method.is-selected{
  border-color:var(--mp-red)!important;
  background:#fff8f8!important;
  box-shadow:0 0 0 1px rgba(237,28,36,.04)!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-modern-shipping-method > input.shipping_method{
  position:static!important;
  grid-column:1!important;
  width:17px!important;
  height:17px!important;
  margin:0!important;
  transform:none!important;
  accent-color:var(--mp-red)!important;
}
body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-modern-shipping-method > label{
  grid-column:2!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#35383d!important;
  font-size:.84rem!important;
  line-height:1.3!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow:visible!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
body.mp-modern-cart .mp-shipping-label-content{
  display:flex!important;
  align-items:center!important;
  flex:1 1 auto!important;
  gap:7px!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.mp-modern-cart .mp-shipping-label-content .logo{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:54px!important;
  min-width:54px!important;
  margin:0!important;
}
body.mp-modern-cart .mp-shipping-label-content .logo img{
  display:block!important;
  width:auto!important;
  max-width:50px!important;
  height:auto!important;
  max-height:24px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  object-fit:contain!important;
}
body.mp-modern-cart .mp-shipping-label-content .woocommerce-Price-amount{
  margin-left:auto!important;
  color:#24272b!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body.mp-modern-cart .mp-shipping-cod-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:19px!important;
  padding:2px 7px!important;
  border-radius:999px!important;
  background:#fff0b8!important;
  color:#765400!important;
  font-size:.64rem!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
body.mp-modern-cart .mp-modern-shipping-method > *:not(input):not(label):not(.mp-cart-shipping-check){
  grid-column:2!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-wrap:anywhere!important;
}

@media(max-width:767px){
  body.mp-modern-cart .mp-modern-shipping-heading{display:block!important}
  body.mp-modern-cart .mp-modern-shipping-heading small{display:block!important;text-align:left!important;margin-top:3px!important}
  body.mp-modern-cart ul.mp-modern-shipping-methods > li.mp-modern-shipping-method > label{align-items:flex-start!important;flex-wrap:wrap!important}
  body.mp-modern-cart .mp-shipping-label-content{width:100%!important}
  body.mp-modern-cart .mp-shipping-cod-badge{margin-left:61px!important}
}

/* Gift-wrap shortcut retained after disabling the legacy MP – Poprawki sklepu assets. */
body.mp-modern-cart .wcgwp-modal-toggle.mp-giftwrap-original-hidden[data-label="_after_cart"]{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;
  border:0!important;opacity:0!important;pointer-events:none!important;
}
body.mp-modern-cart .mp-giftwrap-promo-trigger{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-left:14px!important;
  padding:8px 14px!important;background:var(--mp-red)!important;color:#fff!important;border:1px solid var(--mp-red)!important;
  border-radius:7px!important;font-weight:700!important;line-height:1.3!important;text-decoration:none!important;cursor:pointer!important;
}
body.mp-modern-cart .mp-giftwrap-promo-trigger::before{content:"Dodaj opakowanie prezentowe"}
body.mp-modern-cart .mp-giftwrap-promo-trigger:hover,body.mp-modern-cart .mp-giftwrap-promo-trigger:focus{background:var(--mp-red-dark)!important;border-color:var(--mp-red-dark)!important;color:#fff!important}
@media(max-width:1023px){body.mp-modern-cart .mp-giftwrap-promo-trigger{margin:10px 0 0 10px!important}}

/* ============================================================
   3.0.14 — hierarchy + compact shipping + alignment hardening
   ============================================================ */

/* Keep cart content aligned with the same Bootstrap container as search/header. */
body.mp-modern-cart.woocommerce-cart .woocommerce{max-width:none!important;width:100%!important;margin:0!important}
body.mp-modern-cart .mp-cart-layout{grid-template-columns:minmax(0,1.7fr) minmax(360px,.78fr);gap:26px}

/* ---------- Home: shorter editorial carousel, product-first hierarchy ---------- */
body.mp-modern-home .mp-home{max-width:none}
body.mp-modern-home .mp-home-hero-carousel{position:relative;border:1px solid var(--mp-line);border-radius:20px;background:linear-gradient(135deg,#fff 0%,#fff8f8 100%);box-shadow:var(--mp-shadow);overflow:hidden;margin-bottom:18px}
body.mp-modern-home .mp-home-hero-track{position:relative;min-height:420px}
body.mp-modern-home .mp-home-hero-slide{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.72fr);gap:30px;align-items:center;padding:30px 64px 34px 38px;opacity:0;visibility:hidden;transform:translateX(14px);transition:opacity .28s ease,transform .28s ease,visibility .28s ease;pointer-events:none}
body.mp-modern-home .mp-home-hero-slide.is-active{position:relative;opacity:1;visibility:visible;transform:none;pointer-events:auto}
body.mp-modern-home .mp-home-hero-slide h1{font-size:clamp(1.85rem,3vw,2.75rem);line-height:1.07;margin:0 0 12px;color:var(--mp-ink);max-width:720px}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__text{max-width:690px;font-size:.98rem;line-height:1.52;color:#5a5f65;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__text p{margin:0}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__price{font-size:1.65rem;font-weight:850;color:var(--mp-red);margin-top:14px}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__actions{margin-top:18px}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__visual{min-height:300px;max-height:340px;padding:8px}
body.mp-modern-home .mp-home-hero-slide .mp-home-hero__visual img{max-height:320px;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 14px 18px rgba(20,24,31,.13))}
body.mp-modern-home .mp-home-hero-nav{position:absolute;top:50%;z-index:5;width:38px;height:38px;margin-top:-19px;border:1px solid #e0e2e5;border-radius:50%;background:rgba(255,255,255,.95);color:#31353a;font-size:1.65rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 10px rgba(20,24,31,.08)}
body.mp-modern-home .mp-home-hero-nav:hover{border-color:var(--mp-red);color:var(--mp-red)}
body.mp-modern-home .mp-home-hero-nav--prev{left:12px}
body.mp-modern-home .mp-home-hero-nav--next{right:12px}
body.mp-modern-home .mp-home-hero-dots{position:absolute;z-index:5;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:7px}
body.mp-modern-home .mp-home-hero-dot{width:8px;height:8px;border:0;border-radius:999px;padding:0;background:#d6d8db;cursor:pointer;transition:width .18s ease,background .18s ease}
body.mp-modern-home .mp-home-hero-dot.is-active{width:24px;background:var(--mp-red)}
body.mp-modern-home .mp-home-section--primary{margin-top:30px}
body.mp-modern-home .mp-home-category-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
body.mp-modern-home .mp-home-category-card--compact{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name arrow" "count arrow";column-gap:12px;align-items:center;min-height:76px;padding:14px 16px}
body.mp-modern-home .mp-home-category-card--compact .mp-home-category-card__name{grid-area:name;font-size:.95rem}
body.mp-modern-home .mp-home-category-card--compact small{grid-area:count;margin-top:3px}
body.mp-modern-home .mp-home-category-card__arrow{grid-area:arrow;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff1f1;color:var(--mp-red);font-size:1rem;font-weight:900}

/* Image failures should never expose browser broken-image icons / alt text. */
.mp-image-shell{position:relative;overflow:hidden}
.mp-product-image-fallback{position:absolute;inset:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:10px;background:#f7f7f8;color:#c3c5c8;z-index:0}
.mp-product-image-fallback span{font-size:1.4rem;font-weight:900;letter-spacing:.04em}
.mp-product-image-fallback small{font-size:.62rem;text-transform:uppercase;letter-spacing:.1em;margin-top:2px}
.mp-image-shell img.mp-product-image{position:relative;z-index:1;background:#fff}
.mp-image-shell.mp-image-error img{display:none!important}
body.mp-modern-cart .mp-cart-item__image.mp-image-error,
body.mp-modern-cart .cross-sells a.mp-image-error,
body.mp-modern-catalog ul.products a.mp-image-error{background:#f7f7f8!important}

/* ---------- Compact grouped shipping (cart) ---------- */
body.mp-modern-cart ul.mp-modern-shipping-methods{display:block!important;margin:0!important;padding:0!important}
body.mp-modern-cart .mp-shipping-provider-group{display:block!important;width:100%!important;margin:0 0 9px!important;padding:0!important;border:1px solid #e2e3e6!important;border-radius:11px!important;background:#fff!important;overflow:hidden!important;box-shadow:none!important;list-style:none!important}
body.mp-modern-cart .mp-shipping-provider-group:last-child{margin-bottom:0!important}
body.mp-modern-cart .mp-shipping-provider-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:34px!important;padding:6px 10px!important;background:#f8f8f9!important;border-bottom:1px solid #e8e9eb!important;color:#25292e!important;font-size:.78rem!important}
body.mp-modern-cart .mp-shipping-provider-head img{display:block!important;width:auto!important;max-width:46px!important;max-height:20px!important;margin:0!important;object-fit:contain!important}
body.mp-modern-cart .mp-shipping-provider-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important}
body.mp-modern-cart .mp-shipping-provider-options.has-one-option{grid-template-columns:1fr!important}
body.mp-modern-cart .mp-modern-shipping-method{position:relative!important;display:grid!important;grid-template-columns:19px minmax(0,1fr)!important;gap:7px!important;align-items:center!important;min-width:0!important;min-height:57px!important;margin:0!important;padding:8px 9px!important;border:0!important;border-right:1px solid #ececef!important;border-bottom:1px solid #ececef!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
body.mp-modern-cart .mp-shipping-provider-options .mp-modern-shipping-method:nth-child(2n){border-right:0!important}
body.mp-modern-cart .mp-shipping-provider-options .mp-modern-shipping-method:nth-last-child(-n+2){border-bottom:0!important}
body.mp-modern-cart .mp-shipping-provider-options.has-one-option .mp-modern-shipping-method{border-right:0!important;border-bottom:0!important}
body.mp-modern-cart .mp-modern-shipping-method.is-selected{background:#fff7f7!important;box-shadow:inset 3px 0 0 var(--mp-red)!important}
body.mp-modern-cart .mp-modern-shipping-method input.shipping_method{position:static!important;width:16px!important;height:16px!important;margin:0!important;accent-color:var(--mp-red)!important}
body.mp-modern-cart .mp-modern-shipping-method label{display:flex!important;flex-direction:column!important;gap:4px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:.78rem!important;line-height:1.18!important;cursor:pointer!important}
body.mp-modern-cart .mp-shipping-method-name{font-weight:800!important;color:#2b2f34!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
body.mp-modern-cart .mp-shipping-method-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;min-width:0!important}
body.mp-modern-cart .mp-shipping-method-price{margin-left:auto!important;color:#202124!important;font-size:.74rem!important;font-weight:850!important;white-space:nowrap!important}
body.mp-modern-cart .mp-shipping-cod-badge{font-size:.58rem!important;padding:2px 6px!important}
body.mp-modern-cart .mp-modern-shipping-method > *:not(input):not(label):not(.mp-cart-shipping-check){grid-column:1 / -1!important;margin-top:5px!important;max-width:100%!important}

@media(max-width:1199px){
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:minmax(0,1.5fr) minmax(330px,.8fr)}
}
@media(max-width:991px){
  body.mp-modern-home .mp-home-hero-slide{grid-template-columns:minmax(0,1.1fr) minmax(220px,.65fr);padding:28px 52px 32px 32px}
  body.mp-modern-home .mp-home-category-grid--compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:1fr}
}
@media(max-width:767px){
  body.mp-modern-home .mp-home-hero-track{min-height:560px}
  body.mp-modern-home .mp-home-hero-slide{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:16px;padding:22px 18px 42px}
  body.mp-modern-home .mp-home-hero-slide .mp-home-hero__visual{min-height:220px;max-height:250px;width:100%}
  body.mp-modern-home .mp-home-hero-slide .mp-home-hero__visual img{max-height:235px}
  body.mp-modern-home .mp-home-hero-nav{top:230px}
  body.mp-modern-home .mp-home-category-grid--compact{grid-template-columns:1fr}
  body.mp-modern-cart .mp-shipping-provider-options{grid-template-columns:1fr!important}
  body.mp-modern-cart .mp-modern-shipping-method{border-right:0!important;border-bottom:1px solid #ececef!important}
  body.mp-modern-cart .mp-modern-shipping-method:last-child{border-bottom:0!important}
}

/* ============================================================
   3.0.15 — loyalty visibility, cart proportions, pickup hardening
   ============================================================ */

/* Loyalty is a core purchasing signal: never hide it in modern product cards. */
body.mp-modern-home .mp-home-product-card__points{
  display:block;min-height:1.7em;margin:5px 0 0;color:var(--mp-red);font-size:.82rem;line-height:1.3;
}
body.mp-modern-home .mp-home-product-card__points:empty{display:none;min-height:0;margin:0}
body.mp-modern-home .mp-home-product-card__points .mp-loyalty-product-points,
body.mp-modern-catalog ul.products li.product .mp-loyalty-product-points,
body.mp-modern-cart .cross-sells ul.products li.product .mp-loyalty-product-points{
  display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;
  width:auto!important;max-width:100%!important;height:auto!important;margin:5px 0 0!important;
  color:var(--mp-red)!important;font-size:.8rem!important;line-height:1.3!important;font-weight:700!important;
  white-space:normal!important;overflow:visible!important;
}
body.mp-modern-home .mp-home-hero__points{margin:5px 0 0;color:var(--mp-red);font-size:.86rem;font-weight:700}
body.mp-modern-home .mp-home-hero__points:empty{display:none}
body.mp-modern-home .mp-home-hero__points .mp-loyalty-product-points{display:inline-flex!important;gap:3px!important;align-items:baseline!important}

/* The cart should feel balanced inside exactly the same Bootstrap container as the header. */
body.mp-modern-cart .mp-cart-layout{
  width:100%!important;max-width:100%!important;
  grid-template-columns:minmax(0,1.48fr) minmax(390px,.86fr)!important;
  gap:22px!important;
}
body.mp-modern-cart .mp-cart-panel,
body.mp-modern-cart .mp-cart-summary{min-width:0!important;width:100%!important;max-width:100%!important}
body.mp-modern-cart .cart_totals{padding:19px!important}

/* Pickup/parcel selectors injected after a shipping rate must never expand a grid column/page. */
body.mp-modern-cart .mp-modern-shipping-method:has(select),
body.mp-modern-cart .mp-modern-shipping-method:has(.select2-container),
#magna-checkout .mp-modern-shipping-method:has(select),
#magna-checkout .mp-modern-shipping-method:has(.select2-container){
  grid-column:1 / -1!important;border-right:0!important;
}
body.mp-modern-cart .mp-modern-shipping-method select,
body.mp-modern-cart .mp-modern-shipping-method .select2-container,
body.mp-modern-cart .mp-modern-shipping-method .select2-selection,
#magna-checkout .mp-modern-shipping-method select,
#magna-checkout .mp-modern-shipping-method .select2-container,
#magna-checkout .mp-modern-shipping-method .select2-selection{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.mp-modern-cart .mp-modern-shipping-method select,
#magna-checkout .mp-modern-shipping-method select{
  height:40px!important;min-height:40px!important;padding:5px 34px 5px 9px!important;
  border:1px solid #cfd5dd!important;border-radius:8px!important;background-color:#fff!important;
  white-space:nowrap!important;
}
body.mp-modern-cart .mp-modern-shipping-method option,
#magna-checkout .mp-modern-shipping-method option{max-width:100%!important}
body.mp-modern-cart .mp-modern-shipping-method > div,
body.mp-modern-cart .mp-modern-shipping-method > p,
body.mp-modern-cart .mp-modern-shipping-method > span:not(.mp-cart-shipping-check),
#magna-checkout .mp-modern-shipping-method > div,
#magna-checkout .mp-modern-shipping-method > p,
#magna-checkout .mp-modern-shipping-method > span:not(.mp-cart-shipping-check){
  width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}

@media(max-width:1199px){
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:minmax(0,1.35fr) minmax(350px,.85fr)!important}
}
@media(max-width:991px){
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:1fr!important}
}

/* ============================================================
   3.0.16 — visual polish: header cart, stable image areas,
   product-page height guard and bounded pickup selectors
   ============================================================ */

/* Header cart: compact, balanced and visually aligned with the search field. */
body.mp-modern-header .topsearch{padding-right:8px}
body.mp-modern-header .topcart{padding-left:8px}
body.mp-modern-header .topcart .cart{width:100%;max-width:none}
body.mp-modern-header .topcart .cart a.cart-customlocation{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto;
  grid-template-areas:"icon copy total";
  align-items:center;
  gap:10px;
  width:100%;
  min-height:48px;
  padding:6px 11px!important;
  border:1px solid #e1e3e6!important;
  border-radius:12px!important;
  background:#fff!important;
  color:var(--mp-ink)!important;
  text-align:left!important;
  box-shadow:none!important;
}
body.mp-modern-header .topcart .cart a.cart-customlocation:hover{
  border-color:#ef9ca0!important;
  background:#fffafa!important;
}
body.mp-modern-header .mp-header-cart-icon{
  grid-area:icon;
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  background:#fff1f1;
  color:var(--mp-red);
}
body.mp-modern-header .mp-header-cart-icon .wpmenucart-icon-shopping-cart-0{
  float:none!important;display:block!important;margin:0!important;
  color:var(--mp-red)!important;font-size:1.25rem!important;line-height:1!important;
}
body.mp-modern-header .mp-header-cart-copy{grid-area:copy;display:flex;flex-direction:column;min-width:0;line-height:1.15}
body.mp-modern-header .mp-header-cart-copy strong{font-size:.9rem;font-weight:850;color:var(--mp-ink)}
body.mp-modern-header .mp-header-cart-copy small{margin-top:3px;font-size:.69rem;color:var(--mp-muted);font-weight:600;white-space:nowrap}
body.mp-modern-header .mp-header-cart-total{grid-area:total;justify-self:end;font-size:.86rem;font-weight:850;color:var(--mp-red);white-space:nowrap}
body.mp-modern-header .mp-header-cart-total .woocommerce-Price-amount{color:inherit!important;font-weight:inherit!important}

/* Product cards must keep a real cover area even when staging cannot load images. */
body.mp-modern-home .mp-home-product-card__image{
  display:block;position:relative;
  aspect-ratio:4/5;
  min-height:0;
  margin:14px 14px 0;
  padding:0!important;
  overflow:hidden;
  border-radius:10px;
  background:#f7f7f8;
}
body.mp-modern-home .mp-home-product-card__image .mp-product-image-fallback{inset:0;border-radius:10px}
body.mp-modern-home .mp-home-product-card__image img.mp-product-image{
  position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;margin:0!important;
}
body.mp-modern-home .mp-home-product-card__image.mp-image-error .mp-product-image-fallback{display:flex!important}

/* Generic placeholder inserted by JS for broken catalogue / cross-sell images. */
.mp-loop-image-fallback{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  width:100%;aspect-ratio:4/5;margin:0 0 12px;
  border-radius:10px;background:#f7f7f8;color:#c3c5c8;
  font-weight:900;font-size:1.3rem;letter-spacing:.04em;
}
.mp-loop-image-fallback small{margin-top:3px;font-size:.6rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em}
body.mp-modern-catalog ul.products li.product a.mp-image-error>img,
body.mp-modern-cart .cross-sells ul.products li.product a.mp-image-error>img{display:none!important}

/* Product page: never reserve several screens of blank gallery space. */
body.mp-modern-product.single-product .mp-product-main>.product-images{position:relative;min-width:0;max-height:680px;overflow:visible}
body.mp-modern-product.single-product .product-images .woocommerce-product-gallery{opacity:1!important;max-height:660px!important;overflow:hidden!important;border-radius:14px;background:#fff}
body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__wrapper{max-height:640px!important;overflow:hidden!important;margin:0!important}
body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:420px!important;max-height:620px!important;
  overflow:hidden!important;background:#fafafa;border-radius:14px;
}
body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image>a{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-height:420px!important;
}
body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image img{
  display:block!important;width:auto!important;height:auto!important;
  max-width:100%!important;max-height:620px!important;object-fit:contain!important;margin:0 auto!important;
}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error .woocommerce-product-gallery{
  min-height:500px!important;max-height:500px!important;background:#f7f7f8!important;
}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error .woocommerce-product-gallery__wrapper{display:none!important}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error::before{
  content:"MP\A okładka";white-space:pre;
  display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:500px;border-radius:14px;background:#f7f7f8;color:#c5c7ca;
  font-size:1.35rem;font-weight:900;line-height:1.6;letter-spacing:.05em;
}
body.mp-modern-product.single-product .mp-product-description{margin-top:28px!important}

/* Keep pickup SelectWoo dropdowns inside the delivery column. */
body.mp-modern-cart .mp-modern-shipping-method .select2-container,
#magna-checkout .mp-modern-shipping-method .select2-container{width:100%!important;max-width:100%!important;min-width:0!important}
body.mp-modern-cart .mp-modern-shipping-method .select2-selection--single,
#magna-checkout .mp-modern-shipping-method .select2-selection--single{
  height:42px!important;min-height:42px!important;border:1px solid #cfd5dd!important;border-radius:8px!important;background:#fff!important;
}
body.mp-modern-cart .mp-modern-shipping-method .select2-selection--single .select2-selection__rendered,
#magna-checkout .mp-modern-shipping-method .select2-selection--single .select2-selection__rendered{
  line-height:40px!important;padding-left:10px!important;padding-right:34px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.mp-modern-cart .mp-modern-shipping-method .select2-selection--single .select2-selection__arrow,
#magna-checkout .mp-modern-shipping-method .select2-selection--single .select2-selection__arrow{height:40px!important;right:6px!important}
.mp-modern-pickup-dropdown.select2-dropdown{max-width:100%!important;border:1px solid #cfd5dd!important;border-radius:8px!important;overflow:hidden!important;z-index:99999!important}
.mp-modern-pickup-dropdown .select2-results__options{max-height:280px!important;overflow-y:auto!important}
.mp-modern-pickup-dropdown .select2-results__option{font-size:.86rem!important;line-height:1.32!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:8px 10px!important}
.mp-modern-pickup-dropdown .select2-search--dropdown{padding:8px!important}
.mp-modern-pickup-dropdown .select2-search__field{width:100%!important;box-sizing:border-box!important;border:1px solid #cfd5dd!important;border-radius:7px!important;padding:7px 9px!important}

/* Slightly tighter desktop rhythm after restoring real cover proportions. */
body.mp-modern-home .mp-home-section{margin:38px 0}

@media(max-width:767px){
  body.mp-modern-header .topsearch,body.mp-modern-header .topcart{padding-left:15px;padding-right:15px}
  body.mp-modern-header .topcart{margin-top:8px}
  body.mp-modern-product.single-product .mp-product-main>.product-images{max-height:none}
  body.mp-modern-product.single-product .product-images .woocommerce-product-gallery,
  body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__wrapper{max-height:520px!important}
  body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image,
  body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image>a{min-height:340px!important;max-height:500px!important}
  body.mp-modern-product.single-product .product-images .woocommerce-product-gallery__image img{max-height:500px!important}
}


/* ============================================================
   3.0.17 — header balance, resilient covers, product flow
   ============================================================ */

/* Desktop header: logo/search/cart form one balanced row. */
@media(min-width:768px){
  body.mp-modern-header .container_top>.row:nth-of-type(2){align-items:center}
  body.mp-modern-header .toplogo{padding-right:18px}
  body.mp-modern-header .toplogo .logo img{height:66px}
  body.mp-modern-header .topsearch{padding-left:8px!important;padding-right:8px!important}
  body.mp-modern-header .topcart{padding-left:8px!important}
}
body.mp-modern-header .topcart .cart a.cart-customlocation{
  grid-template-columns:42px minmax(0,1fr) auto!important;
  grid-template-areas:"icon label total"!important;
  min-height:48px!important;height:48px!important;
  padding:5px 12px!important;
  border-color:#efb3b6!important;
}
body.mp-modern-header .mp-header-cart-icon{grid-area:icon!important;position:relative;width:34px;height:34px;border-radius:9px}
body.mp-modern-header .mp-header-cart-count{
  position:absolute;right:-6px;top:-6px;display:flex;align-items:center;justify-content:center;
  min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--mp-red);color:#fff;
  border:2px solid #fff;font-size:.62rem;font-weight:900;line-height:1;
}
body.mp-modern-header .mp-header-cart-label{grid-area:label;font-size:.9rem;font-weight:850;color:var(--mp-ink);white-space:nowrap}
body.mp-modern-header .mp-header-cart-total{grid-area:total!important;justify-self:end;font-size:.82rem!important;color:#2f3337!important}
body.mp-modern-header .mp-header-cart-total small{font-size:.72rem;color:var(--mp-muted);font-weight:700}

/* Catalogue cards reserve cover space even if staging image files are missing. */
body.mp-modern-catalog.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link,
body.mp-modern-catalog.woocommerce-page ul.products li.product>a.woocommerce-LoopProduct-link{position:relative}
body.mp-modern-catalog .mp-loop-image-frame,
body.mp-modern-cart .cross-sells .mp-loop-image-frame{
  position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/5;
  margin:0 0 12px;border-radius:10px;overflow:hidden;background:#f7f7f8;
}
body.mp-modern-catalog .mp-loop-image-frame>img,
body.mp-modern-cart .cross-sells .mp-loop-image-frame>img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;margin:0!important;border-radius:0!important;background:#fff!important;
}
body.mp-modern-catalog .mp-loop-image-frame .mp-loop-image-fallback,
body.mp-modern-cart .cross-sells .mp-loop-image-frame .mp-loop-image-fallback{
  position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;border-radius:0;z-index:0;
}
body.mp-modern-catalog .mp-loop-image-frame>img{position:relative;z-index:1}
body.mp-modern-catalog .mp-loop-image-frame.mp-image-error>img,
body.mp-modern-cart .cross-sells .mp-loop-image-frame.mp-image-error>img{display:none!important}

/* Product description belongs to the left column below the gallery. The sticky
   buy card can remain taller without creating a screen of empty space. */
body.mp-modern-product.single-product .mp-product-main{
  grid-template-areas:"title title" "gallery summary" "description summary"!important;
  grid-template-rows:auto auto auto!important;
}
body.mp-modern-product.single-product .mp-product-description{
  grid-area:description!important;clear:none!important;margin:24px 0 0!important;min-width:0!important;
}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error .woocommerce-product-gallery{
  min-height:280px!important;max-height:280px!important;
}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error::before{
  min-height:280px!important;height:280px!important;
}
body.mp-modern-product.single-product .product-images.mp-product-gallery-error{max-height:280px!important;overflow:hidden!important}
body.mp-modern-product.single-product .woocommerce-product-gallery--without-images{
  min-height:280px!important;max-height:280px!important;background:#f7f7f8!important;
}

@media(max-width:767px){
  body.mp-modern-header .topcart .cart a.cart-customlocation{grid-template-columns:38px minmax(0,1fr) auto!important}
  body.mp-modern-product.single-product .mp-product-main{display:block!important}
  body.mp-modern-product.single-product .mp-product-description{margin-top:24px!important}
}

/* ============================================================
   3.0.18 — cleaner header cart, assisted ordering, compact cart,
   bounded pickup dropdowns
   ============================================================ */

/* Header cart: visually part of the search row, not a second boxed widget. */
body.mp-modern-header .topcart .cart{width:100%!important;max-width:none!important}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link{
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  grid-template-areas:"icon copy total"!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-height:48px!important;
  height:48px!important;
  margin:0!important;
  padding:5px 4px 5px 8px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:var(--mp-ink)!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link:hover,
body.mp-modern-header .topcart .cart>a.mp-header-cart-link:focus{
  background:#fff7f7!important;
  color:var(--mp-ink)!important;
  text-decoration:none!important;
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-icon{grid-area:icon!important}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-copy{
  grid-area:copy!important;display:flex!important;flex-direction:column!important;min-width:0!important;line-height:1.12!important
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-copy strong{
  font-size:.9rem!important;font-weight:850!important;color:var(--mp-ink)!important
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-copy small{
  margin-top:2px!important;font-size:.67rem!important;font-weight:650!important;color:var(--mp-muted)!important;white-space:nowrap!important
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-total{
  grid-area:total!important;justify-self:end!important;font-size:.82rem!important;font-weight:850!important;color:var(--mp-ink)!important;white-space:nowrap!important
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link .mp-header-cart-total .woocommerce-Price-amount{color:inherit!important}
body.mp-modern-header .topcart .cart>*:not(.mp-header-cart-link){display:none!important}

/* Modern cart: give product names more breathing room and make the old gift-wrap
   promotion look like an optional benefit instead of a giant red headline. */
body.mp-modern-cart .mp-cart-layout{
  grid-template-columns:minmax(0,1.62fr) minmax(350px,.78fr)!important;
  gap:24px!important;
}
body.mp-modern-cart .mp-cart-panel{border-color:#ececef!important;box-shadow:0 8px 24px rgba(20,24,31,.045)!important}
body.mp-modern-cart .mp-cart-item{
  grid-template-columns:78px minmax(0,1fr) 132px!important;
  gap:18px!important;
  padding:18px 22px!important;
}
body.mp-modern-cart .mp-cart-item__image img{width:78px!important;height:100px!important}
body.mp-modern-cart .mp-cart-item__body{min-width:0!important}
body.mp-modern-cart .mp-cart-item__name{font-size:.98rem!important;line-height:1.32!important;overflow-wrap:normal!important;word-break:normal!important}
body.mp-modern-cart .mp-cart-item__controls{min-width:132px!important}
body.mp-modern-cart .mp-qty-btn{width:34px!important}
body.mp-modern-cart .mp-qty-wrap .qty{width:44px!important}
body.mp-modern-cart .wcgwp-prompt-wrapper{
  margin:0!important;padding:14px 22px!important;border:0!important;border-bottom:1px solid var(--mp-line)!important;background:#fffafa!important
}
body.mp-modern-cart .wcgwp-prompt-wrapper p{
  margin:0!important;color:#45494f!important;font-size:.88rem!important;line-height:1.48!important
}
body.mp-modern-cart .wcgwp-prompt-wrapper p strong{
  color:var(--mp-red)!important;font-size:1rem!important;line-height:1.2!important
}
body.mp-modern-cart .wcgwp-prompt-wrapper p a{font-weight:750!important}
body.mp-modern-cart .mp-giftwrap-promo-trigger{
  margin:9px 0 0!important;padding:7px 11px!important;border-radius:8px!important;font-size:.82rem!important
}

/* CallPage / phone assistance on product cards. */
body.mp-modern-product.single-product .mp-product-confidence__icon{
  font-size:.72rem!important;letter-spacing:-.02em
}
body.mp-modern-product.single-product .mp-product-confidence__item a{
  color:var(--mp-red)!important;font-weight:800!important;text-decoration:none!important
}
body.mp-modern-product.single-product .mp-product-confidence__actions{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:3px!important
}
body.mp-modern-product.single-product .mp-product-phone-link,
body.mp-modern-product.single-product .mp-callpage-open{
  min-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  padding:8px 10px!important;border-radius:9px!important;font-size:.82rem!important;font-weight:800!important;text-decoration:none!important;cursor:pointer!important
}
body.mp-modern-product.single-product .mp-product-phone-link{
  border:1px solid #e1e3e6!important;background:#fff!important;color:#3d4146!important
}
body.mp-modern-product.single-product .mp-callpage-open{
  border:1px solid var(--mp-red)!important;background:var(--mp-red)!important;color:#fff!important
}
body.mp-modern-product.single-product .mp-callpage-open:hover{background:var(--mp-red-dark)!important;border-color:var(--mp-red-dark)!important}

/* Homepage: phone orders and COD deserve their own high-visibility strip without
   pushing product discovery below a second full row of generic benefits. */
body.mp-modern-home .mp-home-assisted-order{
  display:grid;grid-template-columns:1fr 1fr .8fr;gap:12px;align-items:stretch;margin:12px 0 28px
}
body.mp-modern-home .mp-home-assisted-order__item,
body.mp-modern-home .mp-home-assisted-order__cta{
  min-width:0;border:1px solid #ececef;border-radius:14px;background:#fff;padding:14px 16px
}
body.mp-modern-home .mp-home-assisted-order__item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;align-items:center}
body.mp-modern-home .mp-home-assisted-order__icon{
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff1f1;color:var(--mp-red);font-size:.72rem;font-weight:900
}
body.mp-modern-home .mp-home-assisted-order strong{display:block;font-size:.92rem;color:var(--mp-ink)}
body.mp-modern-home .mp-home-assisted-order small{display:block;margin-top:3px;color:var(--mp-muted);font-size:.78rem;line-height:1.35}
body.mp-modern-home .mp-home-assisted-order a{color:var(--mp-red);font-weight:850;text-decoration:none}
body.mp-modern-home .mp-home-assisted-order__cta{display:flex;flex-direction:column;justify-content:center;gap:5px;background:#fffafa}
body.mp-modern-home .mp-home-assisted-order__cta .mp-callpage-open{
  min-height:38px;border:0;border-radius:9px;background:var(--mp-red);color:#fff;font-size:.85rem;font-weight:850;cursor:pointer
}
body.mp-modern-home .mp-home-assisted-order__cta .mp-callpage-open:hover{background:var(--mp-red-dark)}

/* Pickup dropdown: attach SelectWoo to body and constrain the floating overlay to
   the actual control width. It must never become a grid child or widen checkout. */
.mp-modern-pickup-dropdown.select2-dropdown{
  box-sizing:border-box!important;
  min-width:0!important;
  max-width:calc(100vw - 32px)!important;
  border:1px solid #cfd5dd!important;
  border-radius:9px!important;
  overflow:hidden!important;
  box-shadow:0 12px 28px rgba(20,24,31,.16)!important;
  z-index:2147483000!important;
}
.select2-container--open .mp-modern-pickup-dropdown .select2-search--dropdown{padding:8px!important;background:#fff!important}
.select2-container--open .mp-modern-pickup-dropdown .select2-search__field{
  display:block!important;width:100%!important;max-width:100%!important;height:38px!important;box-sizing:border-box!important;margin:0!important;padding:6px 9px!important
}
.select2-container--open .mp-modern-pickup-dropdown .select2-results__options{
  max-height:260px!important;overflow-y:auto!important;overflow-x:hidden!important
}
.select2-container--open .mp-modern-pickup-dropdown .select2-results__option{
  max-width:100%!important;padding:8px 10px!important;font-size:.82rem!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important
}

@media(max-width:1199px){
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:minmax(0,1.45fr) minmax(340px,.82fr)!important}
  body.mp-modern-home .mp-home-assisted-order{grid-template-columns:1fr 1fr!important}
  body.mp-modern-home .mp-home-assisted-order__cta{grid-column:1 / -1;display:grid;grid-template-columns:minmax(180px,.35fr) minmax(0,1fr);align-items:center}
}
@media(max-width:991px){
  body.mp-modern-cart .mp-cart-layout{grid-template-columns:1fr!important}
}
@media(max-width:767px){
  body.mp-modern-header .topcart .cart>a.mp-header-cart-link{grid-template-columns:38px minmax(0,1fr) auto!important}
  body.mp-modern-cart .mp-cart-item{grid-template-columns:68px minmax(0,1fr)!important;gap:12px!important;padding:15px!important}
  body.mp-modern-cart .mp-cart-item__image img{width:68px!important;height:88px!important}
  body.mp-modern-cart .mp-cart-item__controls{grid-column:2!important;min-width:0!important}
  body.mp-modern-home .mp-home-assisted-order{grid-template-columns:1fr!important}
  body.mp-modern-home .mp-home-assisted-order__cta{grid-column:auto;display:flex}
  body.mp-modern-product.single-product .mp-product-confidence__actions{grid-template-columns:1fr!important}
}


/* ============================================================
   3.0.19 — compact benefits, clean description, checkout cleanup
   ============================================================ */

/* One compact benefits strip on the homepage. Telephone ordering and COD stay
   prominent without consuming a second full row before product discovery. */
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
  margin:12px 0 26px!important;
}
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact>div{
  min-height:58px!important;
  padding:9px 11px!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  column-gap:8px!important;
  border-radius:11px!important;
}
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact span{
  width:30px!important;height:30px!important;font-size:.69rem!important;
}
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact strong{
  font-size:.80rem!important;line-height:1.15!important;
}
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact small{
  margin-top:1px!important;font-size:.66rem!important;line-height:1.2!important;
}
body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact a{
  color:var(--mp-red)!important;font-weight:850!important;text-decoration:none!important;
}
body.mp-modern-home .mp-home-benefit-callback{
  background:#fffafa!important;border-color:#f3cfd1!important;
}

/* Product descriptions imported from older editor content sometimes arrive in
   a single-cell table. It must not look like an input/table wrapper. Product
   specification tables keep their normal styling. */
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes){
  width:100%!important;max-width:100%!important;margin:0!important;
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
  border-collapse:collapse!important;
}
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes) tr,
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes) td,
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes) th{
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
}
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes) td,
body.mp-modern-product.single-product .mp-product-description table:not(.shop_attributes):not(.woocommerce-product-attributes) th{
  padding-left:0!important;padding-right:0!important;
}

/* Gift wrapping belongs in the cart, not at the bottom of checkout. */
body.woocommerce-checkout .wcgwp-modal-toggle,
body.woocommerce-checkout .wcgwp-prompt-wrapper,
body.woocommerce-checkout .mp-gift-wrap-in-totals{
  display:none!important;
}

/* CallPage CTA is a link semantically, but should still look like a button. */
body.mp-modern-home .mp-home-benefit-callback .mp-callpage-open{display:inline!important}
body.mp-modern-product.single-product a.mp-callpage-open{box-sizing:border-box!important}

@media(max-width:1199px){
  body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:767px){
  body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    margin-bottom:22px!important;
  }
  body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact>div{
    min-height:54px!important;padding:8px 9px!important;
  }
}
@media(max-width:479px){
  body.mp-modern-home .mp-home-benefits.mp-home-benefits--compact{
    grid-template-columns:1fr!important;
  }
}


/* ============================================================
   3.0.20 — compact, layout-safe pickup-point chooser
   ============================================================ */
.mp-native-pickup-select{
  position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;
  opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;white-space:nowrap!important
}
.mp-pickup-modal-trigger{
  display:grid!important;grid-template-columns:26px minmax(0,1fr) 18px!important;align-items:center!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;margin:7px 0 0!important;padding:9px 10px!important;
  border:1px solid #cfd5dd!important;border-radius:9px!important;background:#fff!important;color:#30343a!important;
  text-align:left!important;font:inherit!important;line-height:1.25!important;cursor:pointer!important;box-sizing:border-box!important
}
.mp-pickup-modal-trigger:hover{border-color:#b8bec7!important;background:#fafafa!important}
.mp-pickup-modal-trigger.has-value{border-color:#bfc7d1!important;background:#f8fafc!important}
.mp-pickup-modal-trigger__icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#fff1f1;font-size:14px}
.mp-pickup-modal-trigger__text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.77rem;font-weight:700}
.mp-pickup-modal-trigger__arrow{justify-self:end;color:#6b7280;font-size:16px}
body.mp-pickup-modal-open{overflow:hidden!important}
.mp-pickup-modal{
  position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:20px;box-sizing:border-box
}
.mp-pickup-modal.is-open{display:flex}
.mp-pickup-modal__backdrop{position:absolute;inset:0;background:rgba(20,24,30,.52);backdrop-filter:blur(1px)}
.mp-pickup-modal__dialog{
  position:relative;z-index:1;width:min(680px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 40px));
  display:flex;flex-direction:column;overflow:hidden;border:1px solid #e0e3e7;border-radius:16px;background:#fff;
  box-shadow:0 24px 80px rgba(0,0,0,.24)
}
.mp-pickup-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid #eceef1}
.mp-pickup-modal__head strong{display:block;font-size:1.08rem;line-height:1.25;color:#222}
.mp-pickup-modal__head small{display:block;margin-top:3px;color:#6b7280;font-size:.76rem}
.mp-pickup-modal__close{flex:0 0 auto;width:34px;height:34px;border:0;border-radius:50%;background:#f3f4f6;color:#4b5563;font-size:24px;line-height:1;cursor:pointer}
.mp-pickup-modal__search-wrap{padding:14px 20px 10px}
.mp-pickup-modal__search{display:block;width:100%;height:44px;padding:0 13px;border:1px solid #cfd5dd;border-radius:9px;background:#fff;font-size:.92rem;box-sizing:border-box}
.mp-pickup-modal__search:focus{outline:0;border-color:#ed1c24;box-shadow:0 0 0 3px rgba(237,28,36,.08)}
.mp-pickup-modal__list{min-height:120px;overflow:auto;padding:4px 12px 16px}
.mp-pickup-modal__option{
  display:block;width:100%;margin:0;padding:11px 12px;border:0;border-bottom:1px solid #eceef1;background:#fff;
  color:#2b2f33;text-align:left;font-size:.84rem;line-height:1.35;cursor:pointer;box-sizing:border-box
}
.mp-pickup-modal__option:hover,.mp-pickup-modal__option:focus{outline:0;background:#fff6f6;color:#b80e15}
.mp-pickup-modal__option.is-selected{background:#fff0f0;color:#c51219;font-weight:800}
.mp-pickup-modal__empty{padding:18px 20px 24px;color:#6b7280;text-align:center;font-size:.84rem}
@media(max-width:600px){
  .mp-pickup-modal{padding:10px}
  .mp-pickup-modal__dialog{width:100%;max-height:calc(100vh - 20px);border-radius:13px}
  .mp-pickup-modal__head{padding:15px 15px 12px}
  .mp-pickup-modal__search-wrap{padding:12px 15px 8px}
  .mp-pickup-modal__list{padding:3px 8px 12px}
}

/* Account e-mail confirmation note in My Account. */
body.mp-modern-account .mp-account-email-confirmation-note{
  display:flex;flex-direction:column;gap:4px;margin:10px 0 20px;padding:12px 14px;
  border:1px solid #e1e5ea;border-left:3px solid var(--mp-red);border-radius:10px;background:#fafbfc;
  color:#4b5563;font-size:.86rem;line-height:1.45
}
body.mp-modern-account .mp-account-email-confirmation-note strong{color:#25292e}
body.mp-modern-account .mp-account-email-confirmation-note small{margin-top:3px;color:#6b7280}


/* ============================================================
   3.0.22 — all ABB pickup methods + conservative postcode helper
   ============================================================ */
/* ABB renders pickup selection as a separate table row, not inside the shipping-rate card.
   Every ABB method that actually renders a pickup select uses our fixed modal; courier methods never do. */
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup{
  display:table-row!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup > td:first-child,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup > td:first-child{
  width:28%!important;white-space:nowrap!important;vertical-align:middle!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup > td:last-child,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup > td:last-child{
  display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;gap:8px!important;align-items:center!important;
  min-width:0!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup .bootstrap-select,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup .bootstrap-select{
  display:none!important;width:0!important;max-width:0!important;overflow:hidden!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup .mp-pickup-modal-trigger,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup .mp-pickup-modal-trigger{
  grid-column:1!important;margin:0!important;min-width:0!important;width:100%!important;max-width:100%!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup #abb-shipping-show-map,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup #abb-shipping-show-map{
  grid-column:2!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;
  margin:0!important;padding:0!important;border-radius:9px!important;box-sizing:border-box!important;
}
@media(max-width:600px){
  #magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup > td:first-child,
  body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup > td:first-child{display:none!important}
  #magna-checkout tr#abb-shipping-location.mp-abb-modal-pickup > td:last-child,
  body.mp-modern-cart tr#abb-shipping-location.mp-abb-modal-pickup > td:last-child{display:grid!important;width:100%!important}
}

.mp-postcode-suggestions{display:flex;flex-direction:column;gap:6px;margin-top:6px;font-size:.76rem;line-height:1.3}
.mp-postcode-suggestions__ok{color:#397446;font-weight:700}
.mp-postcode-suggestions__label{color:#5e6670;font-weight:700}
.mp-postcode-suggestions__buttons{display:flex;flex-wrap:wrap;gap:5px}
.mp-postcode-place{margin:0!important;padding:5px 8px!important;border:1px solid #d8dde4!important;border-radius:8px!important;background:#fff!important;color:#343a40!important;font:inherit!important;line-height:1.2!important;cursor:pointer!important}
.mp-postcode-place:hover,.mp-postcode-place:focus{border-color:#e36b70!important;background:#fff7f7!important;outline:0!important}

/* ============================================================
   3.0.23 — pickup points: use ABB/Apaczka official map, no huge DOM list
   ============================================================ */
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup{
  display:table-row!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup > td:first-child,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup > td:first-child{
  width:28%!important;white-space:nowrap!important;vertical-align:middle!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup > td:last-child,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup > td:last-child{
  display:block!important;min-width:0!important;width:auto!important;max-width:100%!important;box-sizing:border-box!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup .bootstrap-select,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup .bootstrap-select{
  display:none!important;width:0!important;max-width:0!important;overflow:hidden!important;
}
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup .mp-native-pickup-map-button,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup .mp-native-pickup-map-button{
  position:absolute!important;width:1px!important;height:1px!important;min-width:1px!important;max-width:1px!important;
  opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
}
.mp-pickup-map-trigger{
  display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:10px 12px!important;
  border:1px solid #d6d9de!important;border-radius:10px!important;background:#fff!important;color:#272b30!important;
  text-align:left!important;font:inherit!important;line-height:1.25!important;cursor:pointer!important;box-sizing:border-box!important;
  box-shadow:none!important;
}
.mp-pickup-map-trigger:hover,.mp-pickup-map-trigger:focus{outline:0!important;border-color:#b9bec6!important;background:#fafafa!important}
.mp-pickup-map-trigger.has-value{border-color:#c3c9d1!important;background:#fafbfc!important}
.mp-pickup-map-trigger.is-loading{opacity:.65!important;cursor:wait!important}
.mp-pickup-map-trigger__icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#fff1f1;font-size:16px}
.mp-pickup-map-trigger__copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.mp-pickup-map-trigger__title{font-size:.72rem;font-weight:800;color:#333;line-height:1.15}
.mp-pickup-map-trigger__text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.76rem;color:#656b73;font-weight:600}
.mp-pickup-map-trigger__action{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:7px 10px;border-radius:8px;background:#f4f5f7;color:#b51219;font-size:.74rem;font-weight:800;white-space:nowrap}
@media(max-width:600px){
  #magna-checkout tr#abb-shipping-location.mp-abb-map-pickup > td:first-child,
  body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup > td:first-child{display:none!important}
  #magna-checkout tr#abb-shipping-location.mp-abb-map-pickup > td:last-child,
  body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup > td:last-child{display:block!important;width:100%!important}
  .mp-pickup-map-trigger{grid-template-columns:30px minmax(0,1fr) auto!important;padding:9px 10px!important;gap:8px!important}
  .mp-pickup-map-trigger__icon{width:30px;height:30px}
}

/* ============================================================
   3.0.24 — postcode suggestions for billing + alternate shipping address
   ============================================================ */
.mp-postcode-suggestions{margin-top:7px!important}
.mp-postcode-suggestions__checking,.mp-postcode-suggestions__notice,.mp-postcode-suggestions__error{display:flex;align-items:flex-start;gap:7px;padding:7px 9px;border-radius:8px;font-size:.76rem;line-height:1.35}
.mp-postcode-suggestions__checking{background:#f6f7f8;color:#5f6872}
.mp-postcode-suggestions__notice{background:#fff9ea;color:#705a1f;border:1px solid #efe0ad}
.mp-postcode-suggestions__error{background:#fff2f2;color:#a0353a;border:1px solid #efc5c7;font-weight:700}
.mp-postcode-spinner{width:12px;height:12px;min-width:12px;margin-top:1px;border:2px solid #d7dbe0;border-top-color:#b31d25;border-radius:50%;animation:mp-postcode-spin .7s linear infinite}
@keyframes mp-postcode-spin{to{transform:rotate(360deg)}}
.mp-postcode-mismatch{margin-top:7px;padding:9px 10px;border:1px solid #efc77f;border-radius:9px;background:#fffaf0;font-size:.76rem;line-height:1.35;color:#65501c}
.mp-postcode-mismatch__warning{display:flex;flex-direction:column;gap:3px;margin-bottom:7px}
.mp-postcode-mismatch__warning strong{color:#8a5c00}
.mp-postcode-confirm{display:flex;align-items:flex-start;gap:7px;margin:0;cursor:pointer;font-weight:600;color:#4d4533}
.mp-postcode-confirm input{width:16px;height:16px;min-width:16px;margin:1px 0 0!important}
.mp-postcode-suggestions__buttons{max-height:150px;overflow:auto;padding:1px 1px 2px}
.mp-postcode-place{max-width:100%;text-align:left!important;white-space:normal!important}

/* ============================================================
   3.0.26 — stable pickup chooser: compact summary + list + map
   ============================================================ */
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup .mp-pickup-chooser,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup .mp-pickup-chooser{
  display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;max-width:100%!important;
  margin:0!important;padding:10px!important;border:1px solid #dfe3e8!important;border-radius:10px!important;background:#fff!important;
  box-sizing:border-box!important;overflow:hidden!important
}
.mp-pickup-chooser__summary{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;min-width:0}
.mp-pickup-chooser__pin{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#fff1f1;font-size:15px}
.mp-pickup-chooser__copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.mp-pickup-chooser__status{font-size:.72rem;line-height:1.15;font-weight:800;color:#34383d}
.mp-pickup-chooser__value{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.77rem;line-height:1.25;color:#646b74;font-weight:600}
.mp-pickup-chooser.has-value{background:#fafbfc!important;border-color:#c8ced6!important}
.mp-pickup-chooser__actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:0}
.mp-pickup-list-button,.mp-pickup-map-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;
  min-height:36px!important;margin:0!important;padding:7px 10px!important;border:1px solid #d4d9df!important;border-radius:8px!important;
  background:#f8f9fa!important;color:#34383d!important;font:inherit!important;font-size:.76rem!important;font-weight:800!important;line-height:1.2!important;
  box-shadow:none!important;cursor:pointer!important;box-sizing:border-box!important
}
.mp-pickup-list-button:hover,.mp-pickup-list-button:focus,.mp-pickup-map-button:hover,.mp-pickup-map-button:focus{
  outline:0!important;border-color:#ed1c24!important;background:#fff6f6!important;color:#b51219!important
}
.mp-pickup-map-button.is-loading{opacity:.6!important;cursor:wait!important}
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup .mp-pickup-map-trigger,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup .mp-pickup-map-trigger{display:none!important}

/* The original ABB/bootstrap-select remains available to its map callback but
   never participates in layout. Our list searches the native <select> lazily. */
#magna-checkout tr#abb-shipping-location.mp-abb-map-pickup .bootstrap-select,
body.mp-modern-cart tr#abb-shipping-location.mp-abb-map-pickup .bootstrap-select{
  display:none!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;pointer-events:none!important
}

.mp-pickup-modal__list{overscroll-behavior:contain}
.mp-pickup-modal__option{white-space:normal!important;overflow-wrap:anywhere!important}

/* Postcode/locality feedback survives checkout fragment refreshes visually. */
.mp-postcode-place.is-selected{border-color:#8ec49b!important;background:#f2fbf4!important;color:#2f6e3d!important;font-weight:800!important}

@media(max-width:600px){
  .mp-pickup-chooser__actions{grid-template-columns:1fr!important}
  .mp-pickup-chooser__value{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}

/* 3.0.27: non-blocking pickup-point search feedback */
.mp-pickup-search-spinner{display:inline-block;width:13px;height:13px;margin-right:6px;border:2px solid #d5d8dd;border-top-color:#ed1c24;border-radius:50%;vertical-align:-2px;animation:mpPickupSpin .7s linear infinite}
@keyframes mpPickupSpin{to{transform:rotate(360deg)}}

/* 3.0.29: browser-side bestseller rotation so CDN/page cache cannot pin the
   same four products forever. Show the first four only until JS picks a set. */
body.mp-modern-home [data-mp-bestsellers] .mp-home-bestseller-card{display:none}
body.mp-modern-home [data-mp-bestsellers]:not(.is-ready) .mp-home-bestseller-card:nth-child(-n+4),
body.mp-modern-home [data-mp-bestsellers].is-ready .mp-home-bestseller-card.is-picked{display:flex}

/* Lost/set-password flow should look like a deliberate account screen rather
   than a narrow legacy WooCommerce form floating on the left. */
body.mp-modern-account:not(.logged-in) .bodybar>.container>.row>.col-12>.woocommerce{
  width:min(100%,760px);max-width:760px;margin:34px auto 56px!important;
}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword.lost_reset_password{
  width:100%;max-width:680px;margin:0 auto;padding:26px 28px;border:1px solid var(--mp-line);
  border-radius:16px;background:#fff;box-shadow:var(--mp-shadow);box-sizing:border-box;
}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword.lost_reset_password>p:first-child{
  font-size:1.02rem;line-height:1.65;color:#4d535b;margin-bottom:22px;
}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword .form-row{
  float:none!important;width:100%!important;max-width:100%!important;margin:0 0 16px!important;
}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword label{font-weight:760;color:var(--mp-ink)}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword input.input-text{
  width:100%!important;min-height:48px;border:1px solid #cfd4da;border-radius:9px;padding:10px 12px;
}
body.mp-modern-account:not(.logged-in) .woocommerce-ResetPassword .button{
  min-height:46px;border-radius:9px!important;background:var(--mp-red)!important;color:#fff!important;font-weight:800!important;
}

/* ============================================================
   3.0.31 — compact premium header: KDR + search + visible cart
   ============================================================ */
body.mp-modern-header .container_top{
  margin-top:.25rem!important;
  margin-bottom:.25rem!important;
}
body.mp-modern-header .topbar{
  margin-bottom:.15rem!important;
  padding:.22rem .15rem!important;
}
body.mp-modern-header .mp-header-brand-row{
  align-items:center;
  min-height:74px;
  margin-bottom:0;
}
body.mp-modern-header .mp-header-brand-row .toplogo{
  padding-right:22px!important;
  margin-bottom:0!important;
}
body.mp-modern-header .mp-header-brand-row .toplogo .logo img{
  height:68px!important;
}
body.mp-modern-header .mp-header-brand-row .navbar-parent{
  min-height:0!important;
  display:flex;
  align-items:center;
  padding-left:4px;
}
body.mp-modern-header .mp-header-brand-row nav.navbar{
  width:100%;
  margin:0!important;
  padding:.3rem 0!important;
  border:0!important;
  background:transparent!important;
}
body.mp-modern-header .mp-header-brand-row .navbar-collapse{
  justify-content:flex-end;
}
body.mp-modern-header .mp-header-brand-row .navbar-nav{
  margin-left:auto!important;
  margin-right:0!important;
}
body.mp-modern-header .mp-header-brand-row .navbar .nav-link{
  padding:.68rem .78rem!important;
  font-size:.96rem;
  font-weight:700;
}

body.mp-modern-header .mp-header-tools-row{
  align-items:stretch;
  margin-top:2px;
  padding-top:9px;
  padding-bottom:7px;
  border-top:1px solid #ececef;
}
body.mp-modern-header .mp-header-tools-row .mp-kdr-col,
body.mp-modern-header .mp-header-tools-row .topsearch,
body.mp-modern-header .mp-header-tools-row .topcart{
  display:flex!important;
  align-items:stretch!important;
  margin-top:0!important;
}
body.mp-modern-header .mp-header-tools-row .mp-kdr-col{padding-right:8px}
body.mp-modern-header .mp-header-tools-row .topsearch{padding-left:8px!important;padding-right:8px!important}
body.mp-modern-header .mp-header-tools-row .topcart{padding-left:8px!important}

body.mp-modern-header .mp-kdr-card{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  grid-template-areas:"icon copy";
  gap:10px;
  align-items:center;
  width:100%;
  min-height:54px;
  padding:6px 12px;
  border:1px solid #d9dadd;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 13px rgba(20,24,31,.035);
  box-sizing:border-box;
}
body.mp-modern-header .mp-kdr-icon{
  grid-area:icon;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  background:#f2f3f4;
  color:#202124;
  font-size:1.05rem;
}
body.mp-modern-header .mp-kdr-copy{
  grid-area:copy;
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.1;
}
body.mp-modern-header .mp-kdr-copy strong{
  color:#25282c;
  font-size:.78rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.02em;
  white-space:nowrap;
}
body.mp-modern-header .mp-kdr-copy small{
  margin-top:4px;
  color:#666b70;
  font-size:.72rem;
  font-weight:650;
}
body.mp-modern-header .mp-kdr-copy b{color:var(--mp-red);font-weight:900}

body.mp-modern-header .mp-header-tools-row .topsearch #search-box,
body.mp-modern-header .mp-header-tools-row .topsearch .is-form-style,
body.mp-modern-header .mp-header-tools-row .topsearch form{
  width:100%!important;
  height:54px!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch input[type="search"],
body.mp-modern-header .mp-header-tools-row .topsearch input[type="text"]{
  height:54px!important;
  min-height:54px!important;
  border-color:#d9dadd!important;
  border-radius:12px 0 0 12px!important;
  padding-left:17px!important;
  font-size:.94rem!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch button,
body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]{
  height:54px!important;
  min-height:54px!important;
  min-width:54px!important;
  border-color:var(--mp-red)!important;
  border-radius:0 12px 12px 0!important;
  background:var(--mp-red)!important;
  color:#fff!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch button:hover,
body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]:hover{
  background:var(--mp-red-dark)!important;
  border-color:var(--mp-red-dark)!important;
}

body.mp-modern-header .mp-header-tools-row .topcart .cart{
  width:100%!important;
  max-width:none!important;
}
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{
  min-height:54px!important;
  height:54px!important;
  grid-template-columns:40px minmax(0,1fr) auto!important;
  gap:9px!important;
  padding:6px 11px!important;
  border:2px solid var(--mp-red)!important;
  border-radius:12px!important;
  background:#fff8f8!important;
  box-shadow:0 5px 16px rgba(237,28,36,.08)!important;
}
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link:hover,
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link:focus{
  background:#fff1f1!important;
  box-shadow:0 7px 18px rgba(237,28,36,.12)!important;
}
body.mp-modern-header .mp-header-tools-row .mp-header-cart-icon{
  width:38px!important;
  height:38px!important;
  border-radius:10px!important;
  background:var(--mp-red)!important;
  color:#fff!important;
}
body.mp-modern-header .mp-header-tools-row .mp-header-cart-icon .wpmenucart-icon-shopping-cart-0{
  color:#fff!important;
  font-size:1.28rem!important;
}
body.mp-modern-header .mp-header-tools-row .mp-header-cart-copy strong{
  font-size:.92rem!important;
  color:#22262a!important;
}
body.mp-modern-header .mp-header-tools-row .mp-header-cart-copy small{
  font-size:.68rem!important;
  color:#696d72!important;
}
body.mp-modern-header .mp-header-tools-row .mp-header-cart-total{
  color:var(--mp-red)!important;
  font-size:.86rem!important;
  font-weight:900!important;
}

/* Remove the empty band between the utility row and the homepage hero. */
body.mp-modern-home .mp-home-shell{padding-top:2px!important}
body.mp-modern-home .mp-home{margin-top:0!important}
body.mp-modern-home .mp-home-hero-carousel{margin-top:0!important}

@media(max-width:1199px) and (min-width:992px){
  body.mp-modern-header .mp-header-brand-row .navbar .nav-link{padding-left:.55rem!important;padding-right:.55rem!important;font-size:.9rem}
  body.mp-modern-header .mp-kdr-copy strong{font-size:.7rem}
  body.mp-modern-header .mp-kdr-copy small{font-size:.67rem}
}

@media(max-width:991px){
  body.mp-modern-header .mp-header-brand-row{min-height:0}
  body.mp-modern-header .mp-header-brand-row .toplogo{justify-content:center!important;padding-right:15px!important;margin-bottom:2px!important}
  body.mp-modern-header .mp-header-brand-row .toplogo .logo img{height:62px!important}
  body.mp-modern-header .mp-header-brand-row .navbar-parent{display:block;padding-left:15px}
  body.mp-modern-header .mp-header-brand-row nav.navbar{border-top:1px solid #ececef!important;border-bottom:1px solid #ececef!important;padding:.38rem 0!important}
}

@media(max-width:767px){
  body.mp-modern-header .mp-header-tools-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    margin-left:0!important;
    margin-right:0!important;
    padding-top:8px;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch{
    grid-column:1 / -1;
    grid-row:1;
    padding:0!important;
    margin:0!important;
  }
  body.mp-modern-header .mp-header-tools-row .mp-kdr-col{
    grid-column:1;
    grid-row:2;
    padding:0!important;
  }
  body.mp-modern-header .mp-header-tools-row .topcart{
    grid-column:2;
    grid-row:2;
    padding:0!important;
    margin:0!important;
  }
  body.mp-modern-header .mp-kdr-card,
  body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{
    min-height:52px!important;
    height:52px!important;
  }
  body.mp-modern-header .mp-kdr-card{grid-template-columns:34px minmax(0,1fr);gap:7px;padding:5px 8px}
  body.mp-modern-header .mp-kdr-icon{width:32px;height:32px;font-size:.9rem}
  body.mp-modern-header .mp-kdr-copy strong{font-size:.64rem;white-space:normal;line-height:1.05}
  body.mp-modern-header .mp-kdr-copy small{font-size:.63rem;margin-top:3px}
  body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{grid-template-columns:36px minmax(0,1fr)!important;padding:5px 8px!important}
  body.mp-modern-header .mp-header-tools-row .mp-header-cart-total{display:none!important}
  body.mp-modern-header .mp-header-tools-row .mp-header-cart-icon{width:34px!important;height:34px!important}
  body.mp-modern-header .mp-header-tools-row .mp-header-cart-copy strong{font-size:.84rem!important}
  body.mp-modern-header .mp-header-tools-row .mp-header-cart-copy small{font-size:.62rem!important}
  body.mp-modern-home .mp-home-shell{padding-top:0!important}
}


/* ============================================================
   3.0.32 — header polish: KDR image, elegant cart, search fix
   ============================================================ */
body.mp-modern-header .mp-header-brand-row{
  align-items:center;
}
body.mp-modern-header .mp-header-brand-row .toplogo{
  padding-right:14px!important;
}
body.mp-modern-header .mp-header-brand-row .toplogo .logo img{
  height:62px!important;
}
body.mp-modern-header .mp-header-brand-row .navbar-parent{
  padding-left:0;
}
body.mp-modern-header .mp-header-brand-row .navbar .nav-link{
  padding:.64rem .68rem!important;
  font-size:.94rem;
}
body.mp-modern-header .mp-header-tools-row{
  display:flex;
  align-items:stretch;
  margin-top:3px;
  padding-top:10px;
  padding-bottom:8px;
  border-top:1px solid #ececef;
}
body.mp-modern-header .mp-header-tools-row .row{min-width:0}
body.mp-modern-header .mp-header-tools-row .mp-kdr-col,
body.mp-modern-header .mp-header-tools-row .topsearch,
body.mp-modern-header .mp-header-tools-row .topcart{
  display:flex!important;
  align-items:stretch!important;
  min-width:0;
}
body.mp-modern-header .mp-header-tools-row .mp-kdr-col{padding-right:8px}
body.mp-modern-header .mp-header-tools-row .topsearch{padding-left:8px!important;padding-right:8px!important;min-width:0}
body.mp-modern-header .mp-header-tools-row .topcart{padding-left:8px!important}
body.mp-modern-header .mp-kdr-card{
  position:relative;
  display:grid;
  grid-template-columns:4px 58px minmax(0,1fr);
  gap:12px;
  align-items:center;
  width:100%;
  min-height:56px;
  padding:7px 12px 7px 0;
  border:1px solid #dfdfdf;
  border-radius:13px;
  background:#fff;
  box-shadow:0 3px 12px rgba(20,24,31,.035);
  overflow:hidden;
}
body.mp-modern-header .mp-kdr-accent{
  display:block;
  align-self:stretch;
  width:4px;
  background:var(--mp-red);
  border-radius:13px;
}
body.mp-modern-header .mp-kdr-media{
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:44px;
}
body.mp-modern-header .mp-kdr-media img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
body.mp-modern-header .mp-kdr-icon{display:none!important}
body.mp-modern-header .mp-kdr-copy{line-height:1.08;min-width:0}
body.mp-modern-header .mp-kdr-copy strong{
  color:#202124;
  font-size:.8rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.02em;
  white-space:normal;
}
body.mp-modern-header .mp-kdr-copy small{
  margin-top:4px;
  color:#666b70;
  font-size:.72rem;
  font-weight:650;
}
body.mp-modern-header .mp-header-tools-row .topsearch #search-box,
body.mp-modern-header .mp-header-tools-row .topsearch .is-form-style,
body.mp-modern-header .mp-header-tools-row .topsearch form,
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form{
  width:100%!important;
  min-width:0!important;
  height:56px!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 56px;
  align-items:stretch!important;
  gap:0!important;
  float:none!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-input,
body.mp-modern-header .mp-header-tools-row .topsearch input[type="search"],
body.mp-modern-header .mp-header-tools-row .topsearch input[type="text"]{
  width:100%!important;
  min-width:0!important;
  height:56px!important;
  min-height:56px!important;
  border:1px solid #d9dadd!important;
  border-right:0!important;
  border-radius:13px 0 0 13px!important;
  padding:0 17px!important;
  font-size:.95rem!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  float:none!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit,
body.mp-modern-header .mp-header-tools-row .topsearch button,
body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]{
  width:56px!important;
  min-width:56px!important;
  height:56px!important;
  min-height:56px!important;
  margin:0!important;
  border:1px solid var(--mp-red)!important;
  border-radius:0 13px 13px 0!important;
  background:var(--mp-red)!important;
  color:#fff!important;
  box-shadow:none!important;
  float:none!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-icon,
body.mp-modern-header .mp-header-tools-row .topsearch .fa-search{color:#fff!important}
body.mp-modern-header .mp-header-tools-row .topcart .cart{
  width:100%!important;
  max-width:none!important;
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link,
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  min-height:56px!important;
  height:56px!important;
  width:100%!important;
  padding:7px 13px!important;
  border:1px solid #efc5c8!important;
  border-radius:13px!important;
  background:linear-gradient(180deg,#fff 0%,#fff9f9 100%)!important;
  box-shadow:0 6px 16px rgba(237,28,36,.08)!important;
  color:#23272b!important;
}
body.mp-modern-header .topcart .cart>a.mp-header-cart-link:hover,
body.mp-modern-header .topcart .cart>a.mp-header-cart-link:focus,
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link:hover,
body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link:focus{
  border-color:#e8a5aa!important;
  background:linear-gradient(180deg,#fff 0%,#fff3f3 100%)!important;
  box-shadow:0 8px 20px rgba(237,28,36,.11)!important;
}
body.mp-modern-header .mp-header-cart-icon{
  position:relative;
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,var(--mp-red) 0%,var(--mp-red-dark) 100%)!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
body.mp-modern-header .mp-header-cart-icon .wpmenucart-icon-shopping-cart-0{
  color:#fff!important;
  font-size:1.22rem!important;
}
body.mp-modern-header .mp-header-cart-count{
  top:-6px!important;
  right:-7px!important;
  min-width:19px!important;
  height:19px!important;
  line-height:19px!important;
  border:2px solid #fff!important;
  background:#ff3b44!important;
}
body.mp-modern-header .mp-header-cart-copy{display:flex!important;flex-direction:column;min-width:0}
body.mp-modern-header .mp-header-cart-copy strong{font-size:.94rem!important;color:#202124!important;line-height:1.05}
body.mp-modern-header .mp-header-cart-copy small{font-size:.69rem!important;color:#666b70!important;line-height:1.05}
body.mp-modern-header .mp-header-cart-total{
  color:#202124!important;
  font-size:.9rem!important;
  font-weight:900!important;
  white-space:nowrap;
}
body.mp-modern-home .mp-home-shell{padding-top:0!important}
body.mp-modern-home .mp-home{margin-top:0!important}
body.mp-modern-home .mp-home-hero-carousel{margin-top:0!important}
@media(max-width:1199px){
  body.mp-modern-header .mp-header-brand-row .navbar .nav-link{padding:.62rem .5rem!important;font-size:.89rem}
  body.mp-modern-header .mp-kdr-media{width:52px}
  body.mp-modern-header .mp-kdr-copy strong{font-size:.74rem}
  body.mp-modern-header .mp-kdr-copy small{font-size:.67rem}
  body.mp-modern-header .mp-header-cart-copy strong{font-size:.9rem!important}
  body.mp-modern-header .mp-header-cart-total{font-size:.82rem!important}
}
@media(max-width:991px){
  body.mp-modern-header .mp-header-brand-row{min-height:0;margin-bottom:0}
  body.mp-modern-header .mp-header-brand-row .toplogo{justify-content:center!important;padding-right:15px!important;margin-bottom:3px!important}
  body.mp-modern-header .mp-header-brand-row .toplogo .logo img{height:60px!important}
  body.mp-modern-header .mp-header-brand-row .navbar-parent{display:block;padding-left:15px!important}
  body.mp-modern-header .mp-header-brand-row nav.navbar{border-top:1px solid #ececef!important;border-bottom:1px solid #ececef!important;padding:.38rem 0!important}
}
@media(max-width:767px){
  body.mp-modern-header .mp-header-tools-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
    margin-left:0!important;
    margin-right:0!important;
    padding-top:8px;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch{grid-column:1/-1;grid-row:1;padding:0!important;margin:0!important}
  body.mp-modern-header .mp-header-tools-row .mp-kdr-col{grid-column:1;grid-row:2;padding:0!important}
  body.mp-modern-header .mp-header-tools-row .topcart{grid-column:2;grid-row:2;padding:0!important;margin:0!important}
  body.mp-modern-header .mp-kdr-card,
  body.mp-modern-header .topcart .cart>a.mp-header-cart-link,
  body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{min-height:54px!important;height:54px!important}
  body.mp-modern-header .mp-kdr-card{grid-template-columns:4px 48px minmax(0,1fr);gap:8px;padding:5px 8px 5px 0}
  body.mp-modern-header .mp-kdr-media{width:48px;height:36px}
  body.mp-modern-header .mp-kdr-copy strong{font-size:.66rem;line-height:1.02}
  body.mp-modern-header .mp-kdr-copy small{font-size:.6rem;margin-top:3px}
  body.mp-modern-header .topcart .cart>a.mp-header-cart-link,
  body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{grid-template-columns:38px minmax(0,1fr)!important;padding:6px 8px!important}
  body.mp-modern-header .mp-header-cart-total{display:none!important}
  body.mp-modern-header .mp-header-cart-icon{width:36px!important;height:36px!important;border-radius:10px!important}
  body.mp-modern-header .mp-header-cart-copy strong{font-size:.84rem!important}
  body.mp-modern-header .mp-header-cart-copy small{font-size:.61rem!important}
}


/* ============================================================
   3.0.33 — header realignment: left logo/menu + balanced search
   ============================================================ */
@media(min-width:992px){
  body.mp-modern-header .mp-header-brand-row{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.mp-modern-header .mp-header-brand-row > .toplogo{
    flex:0 0 auto!important;
    width:auto!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:24px!important;
    justify-content:flex-start!important;
    text-align:left!important;
  }
  body.mp-modern-header .mp-header-brand-row > .toplogo .logo{
    justify-content:flex-start!important;
  }
  body.mp-modern-header .mp-header-brand-row > .toplogo .logo img{
    height:58px!important;
    width:auto!important;
    max-width:220px!important;
  }
  body.mp-modern-header .mp-header-brand-row > .navbar-parent{
    flex:1 1 auto!important;
    width:auto!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  body.mp-modern-header .mp-header-brand-row nav.navbar{
    justify-content:flex-start!important;
  }
  body.mp-modern-header .mp-header-brand-row .navbar-collapse{
    justify-content:flex-start!important;
  }
  body.mp-modern-header .mp-header-brand-row .navbar-nav{
    margin-left:0!important;
    margin-right:0!important;
    justify-content:flex-start!important;
    flex-wrap:wrap!important;
  }
  body.mp-modern-header .mp-header-brand-row .navbar .nav-link{
    padding:.62rem .72rem!important;
    font-size:.95rem!important;
    font-weight:700!important;
  }

  body.mp-modern-header .mp-header-tools-row{
    display:flex!important;
    align-items:stretch!important;
    margin-left:0!important;
    margin-right:0!important;
    column-gap:0!important;
  }
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex:0 0 280px!important;
    max-width:280px!important;
    width:280px!important;
    padding-left:0!important;
    padding-right:10px!important;
  }
  body.mp-modern-header .mp-header-tools-row > .topsearch{
    flex:1 1 auto!important;
    max-width:none!important;
    width:auto!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  body.mp-modern-header .mp-header-tools-row > .topcart{
    flex:0 0 330px!important;
    max-width:330px!important;
    width:330px!important;
    padding-left:10px!important;
    padding-right:0!important;
  }

  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 62px minmax(0,1fr)!important;
    min-height:58px!important;
    height:58px!important;
    padding:7px 12px 7px 0!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:62px!important;
    height:46px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    font-size:.78rem!important;
    line-height:1.02!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    font-size:.72rem!important;
    line-height:1.05!important;
  }

  body.mp-modern-header .mp-header-tools-row .topsearch #search-box,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-form-style,
  body.mp-modern-header .mp-header-tools-row .topsearch form,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:58px!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form{
    display:flex!important;
    align-items:stretch!important;
    gap:0!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-input,
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="search"],
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="text"]{
    flex:1 1 auto!important;
    width:1%!important;
    min-width:0!important;
    height:58px!important;
    border:1px solid #d8dade!important;
    border-right:0!important;
    border-radius:14px 0 0 14px!important;
    padding:0 18px!important;
    font-size:.98rem!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit,
  body.mp-modern-header .mp-header-tools-row .topsearch button,
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]{
    flex:0 0 58px!important;
    width:58px!important;
    min-width:58px!important;
    height:58px!important;
    border:1px solid var(--mp-red)!important;
    border-left:0!important;
    border-radius:0 14px 14px 0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-icon{
    width:auto!important;
    height:auto!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  body.mp-modern-header .topcart .cart>a.mp-header-cart-link,
  body.mp-modern-header .mp-header-tools-row .topcart .cart>a.mp-header-cart-link{
    min-height:58px!important;
    height:58px!important;
    padding:7px 14px!important;
    grid-template-columns:44px minmax(0,1fr) auto!important;
    gap:12px!important;
    border-radius:14px!important;
  }
  body.mp-modern-header .mp-header-cart-icon{
    width:44px!important;
    height:44px!important;
  }
  body.mp-modern-header .mp-header-cart-copy strong{font-size:.98rem!important}
  body.mp-modern-header .mp-header-cart-copy small{font-size:.71rem!important}
  body.mp-modern-header .mp-header-cart-total{font-size:.94rem!important}
}

@media(min-width:992px) and (max-width:1199px){
  body.mp-modern-header .mp-header-brand-row > .toplogo .logo img{max-width:190px!important;height:54px!important}
  body.mp-modern-header .mp-header-brand-row .navbar .nav-link{padding:.58rem .5rem!important;font-size:.88rem!important}
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{flex-basis:250px!important;max-width:250px!important;width:250px!important}
  body.mp-modern-header .mp-header-tools-row > .topcart{flex-basis:300px!important;max-width:300px!important;width:300px!important}
}


/* ============================================================
   3.0.34 — KDR fit + header search repair
   ============================================================ */
@media(min-width:992px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex:0 0 260px!important;
    max-width:260px!important;
    width:260px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 44px minmax(0,1fr)!important;
    min-height:58px!important;
    height:58px!important;
    gap:8px!important;
    padding:6px 10px 6px 0!important;
    overflow:hidden!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:44px!important;
    height:34px!important;
    align-self:center!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:44px!important;
    max-height:34px!important;
    width:auto!important;
    height:auto!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    font-size:.72rem!important;
    line-height:1.0!important;
    margin:0!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    font-size:.62rem!important;
    line-height:1.02!important;
    margin-top:2px!important;
  }

  body.mp-modern-header .mp-header-tools-row > .topsearch{
    flex:1 1 auto!important;
    min-width:0!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch #search-box,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-form-style,
  body.mp-modern-header .mp-header-tools-row .topsearch form,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form{
    display:flex!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:58px!important;
    overflow:visible!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form label,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-form .is-search-input-wrap,
  body.mp-modern-header .mp-header-tools-row .topsearch .is-form-style label{
    display:block!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-input,
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="search"],
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="text"]{
    display:block!important;
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    border:1px solid #d8dade!important;
    border-right:0!important;
    border-radius:14px 0 0 14px!important;
    padding:0 18px!important;
    font-size:.98rem!important;
    background:#fff!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit,
  body.mp-modern-header .mp-header-tools-row .topsearch button,
  body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 58px!important;
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    height:58px!important;
    min-height:58px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--mp-red)!important;
    border-left:0!important;
    border-radius:0 14px 14px 0!important;
    background:var(--mp-red)!important;
    color:#fff!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
  }
  body.mp-modern-header .mp-header-tools-row .topsearch .is-search-icon{
    margin:0!important;
    width:auto!important;
    height:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

@media(min-width:992px) and (max-width:1199px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex-basis:235px!important;
    max-width:235px!important;
    width:235px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 40px minmax(0,1fr)!important;
    gap:7px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:40px!important;
    height:30px!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:40px!important;
    max-height:30px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{font-size:.67rem!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.58rem!important}
}

@media(max-width:767px){
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 40px minmax(0,1fr)!important;
    gap:7px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:40px!important;
    height:28px!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:40px!important;
    max-height:28px!important;
  }
}


/* ============================================================
   3.0.35 — KDR fully visible + clickable
   ============================================================ */
body.mp-modern-header .mp-kdr-card{
  color:#202124!important;
  text-decoration:none!important;
}
body.mp-modern-header a.mp-kdr-card:hover,
body.mp-modern-header a.mp-kdr-card:focus{
  text-decoration:none!important;
  border-color:#e1e2e5!important;
  box-shadow:0 6px 16px rgba(20,24,31,.06)!important;
}

@media(min-width:992px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex:0 0 285px!important;
    max-width:285px!important;
    width:285px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 36px minmax(0,1fr)!important;
    min-height:58px!important;
    height:auto!important;
    gap:8px!important;
    padding:6px 10px 6px 0!important;
    overflow:hidden!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:36px!important;
    height:28px!important;
    align-self:center!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:36px!important;
    max-height:28px!important;
    width:auto!important;
    height:auto!important;
  }
  body.mp-modern-header .mp-kdr-copy{
    justify-content:center!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    display:block!important;
    font-size:.68rem!important;
    line-height:1.02!important;
    margin:0!important;
    letter-spacing:.01em!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    display:block!important;
    font-size:.63rem!important;
    line-height:1.02!important;
    margin-top:2px!important;
    white-space:nowrap!important;
  }
}

@media(min-width:992px) and (max-width:1199px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex-basis:255px!important;
    max-width:255px!important;
    width:255px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 32px minmax(0,1fr)!important;
    gap:7px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:32px!important;
    height:24px!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:32px!important;
    max-height:24px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{font-size:.63rem!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.58rem!important}
}

@media(max-width:767px){
  body.mp-modern-header .mp-kdr-card{
    height:auto!important;
    min-height:54px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{font-size:.64rem!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.58rem!important;white-space:nowrap!important}
}


/* ============================================================
   3.0.36 — aesthetic KDR header card + remove cramped feel
   ============================================================ */
body.mp-modern-header .mp-kdr-card{
  color:#202124!important;
  text-decoration:none!important;
  background:linear-gradient(180deg,#fff 0%,#fffdfd 100%)!important;
}
body.mp-modern-header .mp-kdr-card:hover,
body.mp-modern-header .mp-kdr-card:focus{
  text-decoration:none!important;
}
@media(min-width:992px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex:0 0 320px!important;
    max-width:320px!important;
    width:320px!important;
    padding-right:12px!important;
  }
  body.mp-modern-header .mp-header-tools-row > .topsearch{
    padding-left:8px!important;
    padding-right:12px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 54px minmax(0,1fr)!important;
    gap:12px!important;
    min-height:60px!important;
    height:60px!important;
    padding:7px 14px 7px 0!important;
    border:1px solid #ececef!important;
    border-radius:14px!important;
    box-shadow:0 4px 12px rgba(20,24,31,.035)!important;
  }
  body.mp-modern-header .mp-kdr-accent{
    border-radius:14px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:54px!important;
    height:40px!important;
    align-self:center!important;
    justify-content:flex-start!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:54px!important;
    max-height:40px!important;
    width:auto!important;
    height:auto!important;
    display:block!important;
  }
  body.mp-modern-header .mp-kdr-copy{
    justify-content:center!important;
    align-self:center!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    display:block!important;
    margin:0!important;
    font-size:.93rem!important;
    line-height:1.08!important;
    font-weight:800!important;
    text-transform:none!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    color:#202124!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    display:block!important;
    margin-top:4px!important;
    font-size:.76rem!important;
    line-height:1.08!important;
    font-weight:600!important;
    color:#6b7075!important;
    white-space:nowrap!important;
  }
  body.mp-modern-header .mp-kdr-copy small b{color:var(--mp-red)!important}
}
@media(min-width:992px) and (max-width:1199px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex-basis:285px!important;
    max-width:285px!important;
    width:285px!important;
  }
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 46px minmax(0,1fr)!important;
    gap:10px!important;
    padding-right:12px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:46px!important;
    height:34px!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:46px!important;
    max-height:34px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{font-size:.82rem!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.68rem!important}
}
@media(max-width:767px){
  body.mp-modern-header .mp-kdr-card{
    grid-template-columns:4px 42px minmax(0,1fr)!important;
    gap:8px!important;
    padding-right:8px!important;
  }
  body.mp-modern-header .mp-kdr-media{
    width:42px!important;
    height:30px!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    max-width:42px!important;
    max-height:30px!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    font-size:.66rem!important;
    white-space:normal!important;
    text-transform:none!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    font-size:.59rem!important;
    white-space:normal!important;
  }
}


/* ============================================================
   3.0.38 — KDR redesign / archive KDR removal / white search icon
   ============================================================ */
body.mp-modern-header .mp-kdr-card,
body.mp-modern-header a.mp-kdr-card{
  text-decoration:none!important;
  color:#202124!important;
  background:#fff!important;
}
body.mp-modern-header .mp-kdr-card:hover,
body.mp-modern-header .mp-kdr-card:focus{
  text-decoration:none!important;
}
body.mp-modern-header .mp-kdr-accent{
  width:4px!important;
  align-self:stretch!important;
  background:var(--mp-red)!important;
  border-radius:14px!important;
}
@media(min-width:992px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex:0 0 336px!important;
    max-width:336px!important;
    width:336px!important;
    padding-right:12px!important;
  }
  body.mp-modern-header .mp-header-tools-row > .topsearch{
    padding-left:8px!important;
    padding-right:12px!important;
  }
  body.mp-modern-header .mp-kdr-card,
  body.mp-modern-header a.mp-kdr-card{
    display:grid!important;
    grid-template-columns:4px minmax(0,1fr) 54px!important;
    align-items:center!important;
    gap:12px!important;
    width:100%!important;
    min-height:62px!important;
    height:62px!important;
    padding:7px 12px 7px 0!important;
    border:1px solid #ececef!important;
    border-radius:14px!important;
    box-shadow:0 4px 12px rgba(20,24,31,.035)!important;
    overflow:hidden!important;
  }
  body.mp-modern-header .mp-kdr-copy{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    min-width:0!important;
    order:2!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{
    display:block!important;
    margin:0!important;
    font-size:.94rem!important;
    line-height:1.08!important;
    font-weight:800!important;
    white-space:nowrap!important;
    text-transform:none!important;
    letter-spacing:0!important;
    color:#202124!important;
  }
  body.mp-modern-header .mp-kdr-copy small{
    display:block!important;
    margin-top:4px!important;
    font-size:.76rem!important;
    line-height:1.08!important;
    font-weight:600!important;
    white-space:nowrap!important;
    color:#6b7075!important;
  }
  body.mp-modern-header .mp-kdr-copy small b{color:var(--mp-red)!important}
  body.mp-modern-header .mp-kdr-media{
    order:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:54px!important;
    height:40px!important;
    min-width:54px!important;
    overflow:hidden!important;
  }
  body.mp-modern-header .mp-kdr-media img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:54px!important;
    max-height:40px!important;
  }
}
@media(min-width:992px) and (max-width:1199px){
  body.mp-modern-header .mp-header-tools-row > .mp-kdr-col{
    flex-basis:300px!important;
    max-width:300px!important;
    width:300px!important;
  }
  body.mp-modern-header .mp-kdr-card,
  body.mp-modern-header a.mp-kdr-card{grid-template-columns:4px minmax(0,1fr) 44px!important;gap:10px!important}
  body.mp-modern-header .mp-kdr-copy strong{font-size:.84rem!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.68rem!important}
  body.mp-modern-header .mp-kdr-media{width:44px!important;height:34px!important;min-width:44px!important}
  body.mp-modern-header .mp-kdr-media img{max-width:44px!important;max-height:34px!important}
}
@media(max-width:767px){
  body.mp-modern-header .mp-kdr-card,
  body.mp-modern-header a.mp-kdr-card{
    display:grid!important;
    grid-template-columns:4px minmax(0,1fr) 34px!important;
    gap:8px!important;
    min-height:54px!important;
    height:auto!important;
    padding:6px 8px 6px 0!important;
  }
  body.mp-modern-header .mp-kdr-copy strong{font-size:.66rem!important;white-space:normal!important}
  body.mp-modern-header .mp-kdr-copy small{font-size:.58rem!important;white-space:normal!important}
  body.mp-modern-header .mp-kdr-media{width:34px!important;height:26px!important;min-width:34px!important}
  body.mp-modern-header .mp-kdr-media img{max-width:34px!important;max-height:26px!important}
}

/* hard-hide archive description/KDR block on product category archives when modern header is enabled */
body.mp-modern-header.tax-product_cat .term-description,
body.mp-modern-header.tax-product_cat .woocommerce-products-header__description,
body.mp-modern-header.post-type-archive-product .woocommerce-products-header__description{
  display:none!important;
}

/* Search button clean icon */
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit,
body.mp-modern-header .mp-header-tools-row .topsearch button,
body.mp-modern-header .mp-header-tools-row .topsearch input[type="submit"]{
  background:var(--mp-red)!important;
  color:#fff!important;
  background-image:none!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit > *,
body.mp-modern-header .mp-header-tools-row .topsearch button > *{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  color:#fff!important;
  fill:#fff!important;
  stroke:#fff!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit .is-search-icon,
body.mp-modern-header .mp-header-tools-row .topsearch button .is-search-icon,
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit i,
body.mp-modern-header .mp-header-tools-row .topsearch button i,
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit svg,
body.mp-modern-header .mp-header-tools-row .topsearch button svg{
  background:transparent!important;
  color:#fff!important;
  fill:#fff!important;
  stroke:#fff!important;
}
body.mp-modern-header .mp-header-tools-row .topsearch .is-search-submit svg path,
body.mp-modern-header .mp-header-tools-row .topsearch button svg path{
  fill:#fff!important;
  stroke:#fff!important;
}


/* ============================================================
   3.0.40 — pickup point list: neutral rows, red only when selected
   ============================================================ */
body.mp-modern-checkout .mp-pickup-modal__option,
body.woocommerce-checkout .mp-pickup-modal__option,
.mp-pickup-modal__option{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:11px 12px!important;
  border:0!important;
  border-bottom:1px solid #eceef1!important;
  border-radius:0!important;
  background:#fff!important;
  background-image:none!important;
  color:#2b2f33!important;
  font-size:.84rem!important;
  font-weight:600!important;
  line-height:1.35!important;
  text-align:left!important;
  text-transform:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
body.mp-modern-checkout .mp-pickup-modal__option:hover,
body.mp-modern-checkout .mp-pickup-modal__option:focus,
body.woocommerce-checkout .mp-pickup-modal__option:hover,
body.woocommerce-checkout .mp-pickup-modal__option:focus,
.mp-pickup-modal__option:hover,
.mp-pickup-modal__option:focus{
  outline:0!important;
  background:#f7f8f9!important;
  color:#202124!important;
  border-color:#e6e8eb!important;
  box-shadow:none!important;
}
body.mp-modern-checkout .mp-pickup-modal__option.is-selected,
body.woocommerce-checkout .mp-pickup-modal__option.is-selected,
.mp-pickup-modal__option.is-selected{
  background:#fff1f1!important;
  color:#c51219!important;
  border-bottom-color:#f1d6d8!important;
  font-weight:800!important;
}


/* 3.0.41 — ukryj akcje telefoniczne pod jednym rozwijanym CTA */
body.mp-modern-product.single-product .mp-product-contact-disclosure{
  margin-top:6px!important;
  border-top:1px solid #ececef!important;
  padding-top:10px!important;
}
body.mp-modern-product.single-product .mp-product-contact-toggle{
  list-style:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  padding:10px 14px!important;
  border:1px solid #e1e3e6!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#42474d!important;
  font-size:.88rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  cursor:pointer!important;
  text-align:center!important;
  transition:background .18s ease,border-color .18s ease,color .18s ease, box-shadow .18s ease!important;
}
body.mp-modern-product.single-product .mp-product-contact-toggle:hover{
  background:#fafafa!important;
  border-color:#d5d9de!important;
}
body.mp-modern-product.single-product .mp-product-contact-toggle::-webkit-details-marker{display:none!important}
body.mp-modern-product.single-product .mp-product-contact-toggle::before{
  content:'☎'!important;
  width:22px!important;
  height:22px!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#fff1f1!important;
  color:var(--mp-red)!important;
  font-size:.75rem!important;
  font-weight:900!important;
  flex:0 0 22px!important;
}
body.mp-modern-product.single-product .mp-product-contact-toggle::after{
  content:'+'!important;
  margin-left:auto!important;
  color:var(--mp-red)!important;
  font-size:1rem!important;
  font-weight:900!important;
  line-height:1!important;
}
body.mp-modern-product.single-product .mp-product-contact-disclosure[open] .mp-product-contact-toggle{
  border-color:#f0c8c8!important;
  background:#fff8f8!important;
}
body.mp-modern-product.single-product .mp-product-contact-disclosure[open] .mp-product-contact-toggle::after{
  content:'–'!important;
}
body.mp-modern-product.single-product .mp-product-contact-panel{
  margin-top:10px!important;
  padding-top:2px!important;
}
body.mp-modern-product.single-product .mp-product-contact-panel .mp-product-confidence__actions{
  margin-top:8px!important;
}

/* ============================================================
   3.0.43 — account dropdown, global login/register modal, sticky bar
   ============================================================ */
body.mp-modern-header .mp-account-menu{position:relative;display:inline-block;text-align:left;z-index:1050}
body.mp-modern-header .mp-account-menu-toggle{
  appearance:none;border:0;background:transparent;padding:0;display:inline-flex;align-items:center;gap:.42rem;
  font:inherit;font-weight:700;color:var(--mp-ink);cursor:pointer
}
body.mp-modern-header .mp-account-menu-toggle:hover{color:var(--mp-red)}
body.mp-modern-header .mp-account-chevron{font-size:.62rem;transition:transform .16s ease}
body.mp-modern-header .mp-account-menu.is-open .mp-account-chevron{transform:rotate(180deg)}
body.mp-modern-header .mp-account-dropdown{
  display:none;position:absolute;right:0;top:calc(100% + 9px);z-index:1060;min-width:205px;padding:7px;
  border:1px solid #e3e4e6;border-radius:12px;background:#fff;box-shadow:0 14px 38px rgba(20,24,31,.14)
}
body.mp-modern-header .mp-account-menu.is-open .mp-account-dropdown{display:block}
body.mp-modern-header .mp-account-dropdown:before{
  content:"";position:absolute;right:22px;top:-6px;width:11px;height:11px;background:#fff;border-left:1px solid #e3e4e6;border-top:1px solid #e3e4e6;transform:rotate(45deg)
}
body.mp-modern-header .mp-account-dropdown a{
  position:relative;z-index:1;display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:8px;color:#30343a!important;font-size:.88rem;font-weight:700;text-decoration:none!important
}
body.mp-modern-header .mp-account-dropdown a i{width:17px;text-align:center;color:#7a7f85}
body.mp-modern-header .mp-account-dropdown a:hover{background:#f6f6f7;color:var(--mp-red)!important}
body.mp-modern-header .mp-account-dropdown .mp-account-logout{margin-top:4px;border-top:1px solid #eee;border-radius:0 0 8px 8px;color:#6d7278!important}

.mp-global-account-modal{z-index:2147482500!important}
.mp-global-account-modal+.modal-backdrop,.modal-backdrop{z-index:2147482400}
.mp-global-account-modal .modal-dialog{max-width:520px}
.mp-global-account-modal .modal-content{border:0;border-radius:16px;overflow:hidden;box-shadow:0 24px 70px rgba(10,14,20,.22)}
.mp-global-account-modal .modal-header{padding:20px 22px 15px;border-bottom:1px solid #ececef;align-items:flex-start}
.mp-global-account-modal .modal-title{margin:0;font-size:1.22rem;font-weight:850;color:#202124}
.mp-global-account-modal .mp-account-modal-subtitle{margin:5px 0 0;color:#70747a;font-size:.86rem;line-height:1.35}
.mp-global-account-modal .mp-account-modal-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f7f7f8;border-bottom:1px solid #e8e8ea}
.mp-global-account-modal .mp-account-modal-tab{border:0;border-bottom:3px solid transparent;background:transparent;padding:12px 10px;font-weight:800;color:#666b70;cursor:pointer}
.mp-global-account-modal .mp-account-modal-tab.is-active{background:#fff;border-bottom-color:var(--mp-red);color:#202124}
.mp-global-account-modal .modal-body{padding:21px 22px 23px}
.mp-global-account-modal .mp-account-modal-pane{display:none}
.mp-global-account-modal .mp-account-modal-pane.is-active{display:block}
.mp-global-account-modal .form-row{margin:0 0 14px!important}
.mp-global-account-modal label{font-size:.84rem;font-weight:750;color:#42464b}
.mp-global-account-modal input.input-text{width:100%;min-height:45px;border:1px solid #dfe1e5;border-radius:9px;padding:9px 11px;box-shadow:none}
.mp-global-account-modal input.input-text:focus{border-color:#bbbfc5;outline:0;box-shadow:0 0 0 3px rgba(32,33,36,.05)}
.mp-global-account-modal .mp-account-modal-login-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:3px 0 16px;font-size:.8rem}
.mp-global-account-modal .mp-account-modal-login-meta label{margin:0;font-weight:600}
.mp-global-account-modal .mp-account-modal-login-meta a{color:var(--mp-red);font-weight:750}
.mp-global-account-modal .mp-account-modal-submit{width:100%;min-height:46px;border:0!important;border-radius:9px!important;background:var(--mp-red)!important;color:#fff!important;font-size:.94rem!important;font-weight:850!important}
.mp-global-account-modal .mp-account-modal-submit:hover{background:var(--mp-red-dark)!important}
.mp-global-account-modal .mp-account-register-intro{margin:0 0 16px;padding:12px 14px;border:1px solid #f0dddd;border-radius:10px;background:#fffafa}
.mp-global-account-modal .mp-account-register-intro strong,.mp-global-account-modal .mp-account-register-intro span{display:block}
.mp-global-account-modal .mp-account-register-intro strong{font-size:.9rem;color:#2b2f34}
.mp-global-account-modal .mp-account-register-intro span{margin-top:3px;color:#6b7075;font-size:.78rem;line-height:1.35}
.mp-global-account-modal .mp-account-register-note{font-size:.8rem;color:#666b70}

/* Koszyk: tworzenie konta nad logowaniem i bez przejścia na stronę konta. */
body.mp-modern-cart .mp-loyalty-guest-cart-buttons{display:flex!important;flex-direction:column!important;gap:8px!important}
body.mp-modern-cart .mp-loyalty-guest-cart-buttons .button{width:100%!important;margin:0!important}
body.mp-modern-cart .mp-account-create-highlight{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-height:54px!important;line-height:1.15!important}
body.mp-modern-cart .mp-account-create-highlight span{font-size:.72rem!important;font-weight:650!important;opacity:.86}
body.mp-modern-cart .mp-account-create-highlight strong{font-size:.86rem!important;font-weight:850!important}

/* Sticky menu ma być pełnym paskiem nad stroną, nie samą „pływającą” listą. */
nav.navbar.fixed-top{
  left:0!important;right:0!important;width:100%!important;max-width:none!important;margin:0!important;
  border:0!important;border-bottom:1px solid #e7e8ea!important;background:#fff!important;
  box-shadow:0 5px 20px rgba(20,24,31,.10)!important;z-index:1038!important
}
@media(min-width:1200px){
  nav.navbar.fixed-top{padding:.34rem calc((100vw - 1140px)/2 + 15px)!important}
}
@media(min-width:992px) and (max-width:1199px){
  nav.navbar.fixed-top{padding:.34rem calc((100vw - 960px)/2 + 15px)!important}
}
@media(min-width:992px){
  nav.navbar.fixed-top{min-height:58px!important;align-items:center!important}
  nav.navbar.fixed-top .navbar-brand.hide{display:flex!important;align-items:center!important;margin:0 20px 0 0!important;padding:0!important}
  nav.navbar.fixed-top .navbar-brand.hide img{height:38px!important;width:auto!important;max-width:145px!important}
  nav.navbar.fixed-top .navbar-collapse{display:flex!important;flex:1 1 auto!important;align-items:center!important}
  nav.navbar.fixed-top .navbar-nav{align-items:center!important;margin:0!important}
  nav.navbar.fixed-top .navbar .nav-link,nav.navbar.fixed-top .nav-link{padding:.55rem .66rem!important;font-size:.88rem!important}
  nav.navbar.fixed-top .d-flex.order-lg-1{margin-left:auto!important;padding-right:0!important}
  nav.navbar.fixed-top .d-flex.order-lg-1 .hide{display:flex!important}
}
@media(max-width:991px){
  nav.navbar.fixed-top{padding:.38rem 15px!important}
}


/* ============================================================
   3.0.44 — stabilne konto, koszyk i pełny nieprzezroczysty sticky bar
   ============================================================ */
body.mp-modern-cart .mp-loyalty-guest-cart-buttons{display:flex!important;flex-direction:column!important;gap:8px!important}
body.mp-modern-cart .mp-loyalty-guest-cart-buttons .button{
  width:100%!important;height:auto!important;min-height:48px!important;margin:0!important;padding:10px 12px!important;
  white-space:normal!important;line-height:1.18!important;text-align:center!important;border-radius:8px!important
}
body.mp-modern-cart .mp-account-create-highlight{min-height:62px!important;padding:9px 12px!important}
body.mp-modern-cart .mp-account-create-highlight span{display:block!important;font-size:.68rem!important;line-height:1.1!important;margin-bottom:2px!important}
body.mp-modern-cart .mp-account-create-highlight strong{display:block!important;font-size:.82rem!important;line-height:1.16!important}

.mp-global-account-modal .mp-account-auth-message{margin:0 0 14px;padding:10px 12px;border-radius:9px;font-size:.82rem;line-height:1.4}
.mp-global-account-modal .mp-account-auth-message.is-error{background:#fff2f2;border:1px solid #f1c0c2;color:#a81920}
.mp-global-account-modal .mp-account-auth-message.is-success{background:#f1fbf4;border:1px solid #cde8d5;color:#237044}

body.mp-modern-header .mp-account-menu--sticky .mp-account-menu-toggle--icon{
  display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;padding:0!important;border-radius:9px!important;color:#333!important
}
body.mp-modern-header .mp-account-menu--sticky .mp-account-menu-toggle--icon:hover{background:#f4f4f5!important;color:var(--mp-red)!important}
body.mp-modern-header .mp-account-menu--sticky .mp-account-dropdown{top:calc(100% + 11px)!important;right:-8px!important}

.mp-sticky-nav-surface{
  display:none;position:fixed;left:0;right:0;top:0;height:58px;background:#fff!important;opacity:1!important;
  border-bottom:1px solid #e5e7ea;box-shadow:0 5px 20px rgba(20,24,31,.10);z-index:1037;pointer-events:none
}
.mp-sticky-nav-surface.is-active{display:block}
.admin-bar .mp-sticky-nav-surface{top:32px}
nav.navbar.fixed-top{background:#fff!important;background-color:#fff!important;opacity:1!important;box-shadow:none!important;isolation:isolate!important}
body.mp-sticky-nav-active nav.navbar.fixed-top:before{
  content:"";position:absolute;inset:0;background:#fff!important;z-index:-1;pointer-events:none
}
@media screen and (max-width:782px){.admin-bar .mp-sticky-nav-surface{top:46px}}
/* 3.0.44 specificity fix: wcześniejsza reguła nowego headera ustawiała navbar na transparent!important. */
body.mp-modern-header.mp-sticky-nav-active .mp-header-brand-row nav.navbar.fixed-top,
body.mp-modern-header .mp-header-brand-row nav.navbar.fixed-top{
  background:#fff!important;
  background-color:#fff!important;
  opacity:1!important;
}


/* ============================================================
   3.0.45 — auth/CAPTCHA + explicit checkout account state
   ============================================================ */
.mp-global-account-modal .cf-turnstile,
.mp-global-account-modal [id^="cf-turnstile"],
.mp-checkout-modal .cf-turnstile,
.mp-checkout-modal [id^="cf-turnstile"]{
  margin:10px 0 14px!important;
  max-width:100%!important;
}
body.woocommerce-checkout .mp-checkout-create-account-cta{
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease!important;
}
body.woocommerce-checkout .mp-checkout-create-account-cta.is-selected{
  border-color:#94cba5!important;
  background:#f4fbf6!important;
  box-shadow:0 0 0 2px rgba(39,129,66,.07)!important;
}
body.woocommerce-checkout .mp-checkout-create-account-cta.is-selected .mp-checkout-create-account-cta__eyebrow{
  color:#237044!important;
  font-weight:850!important;
}
body.woocommerce-checkout .mp-checkout-create-account-cta.is-selected strong{
  color:#1f542f!important;
}
body.woocommerce-checkout .mp-checkout-create-account-cta.is-selected small{
  color:#496452!important;
}


/* ============================================================
   3.0.46 — cart hierarchy: shipping + checkout first, loyalty compact
   ============================================================ */
body.mp-modern-cart .mp-cart-summary{
  align-self:start!important;
}
body.mp-modern-cart .cart_totals{
  padding:17px!important;
}
body.mp-modern-cart .cart_totals table.shop_table th,
body.mp-modern-cart .cart_totals table.shop_table td{
  padding:8px 0!important;
}
body.mp-modern-cart .cart_totals .wc-proceed-to-checkout{
  padding-top:12px!important;
}
body.mp-modern-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{
  min-height:48px!important;
}

/* Logged-in loyalty controls no longer block shipping and checkout. */
body.mp-modern-cart .mp-cart-loyalty-disclosure{
  margin-top:12px!important;
  border:1px solid #ececef!important;
  border-radius:11px!important;
  background:#fff!important;
  overflow:hidden!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure > summary{
  list-style:none!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:center!important;
  min-height:46px!important;
  padding:10px 12px!important;
  cursor:pointer!important;
  background:#fffafa!important;
  color:#25292e!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure > summary::-webkit-details-marker{display:none!important}
body.mp-modern-cart .mp-cart-loyalty-disclosure > summary::before{
  content:'★'!important;
  width:25px!important;
  height:25px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#fff1f1!important;
  color:var(--mp-red)!important;
  font-size:.72rem!important;
  position:absolute!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure > summary{
  position:relative!important;
  padding-left:47px!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure > summary::after{
  content:'+'!important;
  color:var(--mp-red)!important;
  font-size:1rem!important;
  font-weight:900!important;
  line-height:1!important;
  grid-column:2!important;
  grid-row:1 / span 2!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure[open] > summary::after{content:'–'!important}
body.mp-modern-cart .mp-cart-loyalty-disclosure__title{
  grid-column:1!important;
  font-size:.84rem!important;
  font-weight:850!important;
  line-height:1.15!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure__meta{
  grid-column:1!important;
  font-size:.68rem!important;
  color:#777c81!important;
  line-height:1.1!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure__body{
  border-top:1px solid #ececef!important;
}
body.mp-modern-cart .mp-cart-loyalty-disclosure__body .mp-loyalty-redeem{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}

/* Guest promo stays visible, but is deliberately much shorter. */
body.mp-modern-cart .mp-cart-loyalty-guest-compact{
  margin-top:12px!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-redeem{
  margin:0!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-benefit,
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-guest-cart-actions{
  padding:11px 12px!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-benefit small,
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-guest-cart-note{
  display:none!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-benefit-title{
  font-size:.92rem!important;
  line-height:1.2!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-benefit-value{
  margin-top:4px!important;
  font-size:.78rem!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-guest-cart-actions > strong{
  font-size:.8rem!important;
  line-height:1.25!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-guest-cart-buttons{
  margin-top:8px!important;
  gap:6px!important;
}
body.mp-modern-cart .mp-cart-loyalty-guest-compact .mp-loyalty-guest-cart-buttons .button{
  min-height:37px!important;
  padding:7px 9px!important;
  font-size:.76rem!important;
}

/* Keep the purchase summary usable within one viewport on desktop. */
@media(min-width:992px){
  body.mp-modern-cart .mp-cart-summary{
    top:76px!important;
  }
  body.mp-modern-cart .mp-cart-summary .cart_totals{
    max-height:calc(100vh - 92px)!important;
    overflow-y:auto!important;
    scrollbar-width:thin;
  }
}


/* ============================================================
   3.0.49 — Loyalty is a primary cart action, not hidden below checkout
   ============================================================ */
body.mp-modern-cart .cart_totals table.shop_table tr.mp-cart-loyalty-priority-row>td{
  display:table-cell!important;
  width:100%!important;
  padding:10px 0 12px!important;
  border-top:1px solid var(--mp-line)!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority{
  position:relative!important;
  margin:0!important;
  border:1px solid #f0c9cb!important;
  border-left:4px solid var(--mp-red)!important;
  border-radius:12px!important;
  background:#fffafa!important;
  overflow:hidden!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-redeem{
  margin:0!important;
  padding:12px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-benefit{
  margin:0!important;
  padding:0 0 10px!important;
  border-bottom:1px solid #f0dfe0!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-benefit-kicker{
  display:block!important;
  margin:0 0 3px!important;
  font-size:.66rem!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  color:var(--mp-red)!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-benefit-title{
  display:block!important;
  margin:0!important;
  font-size:.91rem!important;
  line-height:1.2!important;
  font-weight:850!important;
  color:#202429!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-benefit-value{
  display:block!important;
  margin-top:3px!important;
  font-size:.76rem!important;
  line-height:1.2!important;
  color:#4f555b!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-benefit>small{
  display:none!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet{
  display:grid!important;
  grid-template-columns:110px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:center!important;
  margin:0!important;
  padding:10px 0 0!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet-main{
  min-width:0!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet-main span{
  display:block!important;
  font-size:.67rem!important;
  color:#6d7278!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet-main strong{
  display:block!important;
  margin-top:1px!important;
  font-size:1.05rem!important;
  line-height:1.05!important;
  color:#202429!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet-limit{
  font-size:.73rem!important;
  line-height:1.25!important;
  color:#4c5156!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet-limit strong{
  color:var(--mp-red)!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-form{
  display:grid!important;
  grid-template-columns:84px minmax(0,1fr)!important;
  gap:8px!important;
  align-items:stretch!important;
  margin:10px 0 0!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-form input[type="number"]{
  width:84px!important;
  min-width:0!important;
  height:40px!important;
  margin:0!important;
  padding:0 8px!important;
  border-radius:8px!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-form .button{
  min-height:40px!important;
  margin:0!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  background:var(--mp-red)!important;
  color:#fff!important;
  font-size:.78rem!important;
  font-weight:850!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-active{
  margin:9px 0 0!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  background:#f3fff6!important;
  color:#235b35!important;
  font-size:.76rem!important;
  font-weight:750!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-block-reason{
  margin-top:9px!important;
  padding:8px 10px!important;
  border-radius:8px!important;
  background:#fff!important;
  border:1px solid #ececef!important;
  font-size:.72rem!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-guest-cart-actions{
  padding:10px 0 0!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-guest-cart-actions>strong{
  display:block!important;
  font-size:.76rem!important;
  line-height:1.25!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-guest-cart-note{
  display:block!important;
  margin-top:4px!important;
  font-size:.7rem!important;
  line-height:1.25!important;
  color:#666b70!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-guest-cart-buttons{
  margin-top:8px!important;
}
body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-guest-cart-buttons .button{
  min-height:38px!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  font-size:.76rem!important;
  font-weight:850!important;
}
/* No hidden inner-scroll on the full cart summary. Normal page scrolling is clearer. */
@media(min-width:992px){
  body.mp-modern-cart .mp-cart-summary .cart_totals{
    max-height:none!important;
    overflow:visible!important;
  }
}
@media(max-width:767px){
  body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-wallet{
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  body.mp-modern-cart .mp-cart-loyalty-priority .mp-loyalty-form{
    grid-template-columns:76px minmax(0,1fr)!important;
  }
}


/* 3.0.61 — CallPage: zachowaj oryginalny wygląd kafla; cały kafel klikalny */
body.mp-modern-home .mp-home-benefit-callback{position:relative!important}
body.mp-modern-home .mp-home-benefit-callback>.mp-callpage-tile-link{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:5!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:transparent!important;
  font-size:0!important;
}
body.mp-modern-home .mp-home-benefit-callback>span,
body.mp-modern-home .mp-home-benefit-callback>strong,
body.mp-modern-home .mp-home-benefit-callback>small{position:relative;z-index:1}


/* 3.0.62 — ujednolicenie wielkości okładek bez kadrowania.
   Wszystkie książki dostają ten sam "stage"; typowe pionowe okładki mają
   tę samą wysokość, zachowując oryginalne proporcje. */
body.mp-modern-home .mp-home-product-card__image{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  aspect-ratio:4/5!important;
  padding:12px!important;
  margin:14px 14px 0!important;
  overflow:hidden!important;
  background:#f8f8f9!important;
  border-radius:10px!important;
}
body.mp-modern-home .mp-home-product-card__image img.mp-product-image{
  position:static!important;
  inset:auto!important;
  display:block!important;
  width:auto!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0 auto!important;
  background:transparent!important;
}

/* Na węższych ekranach zostawiamy mniejszy margines wewnętrzny,
   ale tę samą zasadę wymiarowania. */
@media (max-width: 767px){
  body.mp-modern-home .mp-home-product-card__image{
    padding:8px!important;
    margin:9px 9px 0!important;
  }
}
