@media(min-width:561px){

body img[src="/assets/mrs-logo-perf-v1.webp"]{filter:url(#mrs-mobile-logo-sharpen);image-rendering:-webkit-optimize-contrast}
body .site-header .brand img[src="/assets/mrs-logo-perf-v1.webp"],body.home-page footer .foot>img[src="/assets/mrs-logo-perf-v1.webp"]{filter:contrast(1.12) url(#mrs-mobile-logo-sharpen)}
.mrs-mobile-header-announcement{display:flex;position:absolute;top:14px;left:0;right:0;flex-direction:column;align-items:center;gap:3px;background:transparent;color:#fff;text-align:center;font:700 clamp(12px,3vw,14px)/1.35 Arial,sans-serif;pointer-events:none}
.mrs-mobile-header-announcement>span:last-child{color:var(--red,#d3242b)}
body .site-header.mrs-mobile-header-ready{height:calc(68px + min(clamp(140px,40vw,180px),calc((100vw - 52px - clamp(112px,28vw,128px)) / 1.2)) / 3);box-sizing:border-box}
body .site-header.mrs-mobile-header-ready .head{position:relative;display:flex;align-items:center;justify-content:center;height:calc(123px + min(clamp(140px,40vw,180px),calc((100vw - 52px - clamp(112px,28vw,128px)) / 1.2)) / 3);min-height:0;padding:0;width:calc(100% - 32px);box-sizing:border-box}
body .site-header.mrs-mobile-header-ready .head>nav,body .site-header.mrs-mobile-header-ready .built-badge{display:none}
body .site-header.mrs-mobile-header-ready .brand{display:flex;width:clamp(100px,30vw,136px);margin:0;justify-content:center;position:relative;z-index:1}
body .site-header.mrs-mobile-header-ready .brand img{width:100%;max-width:100%;height:auto;transform:none}
.mrs-mobile-header-controls{display:flex;position:absolute;inset:0;align-items:center;gap:10px;pointer-events:none}
.mrs-header-icon{display:flex;width:32px;height:44px;padding:0;align-items:center;justify-content:center;border:0;background:transparent;color:#fff;cursor:pointer;pointer-events:auto}
.mrs-header-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body .mrs-mobile-header-controls .mrs-mobile-cart{display:flex;position:relative!important;left:auto!important;top:auto!important;margin-left:auto;align-items:center;justify-content:center;width:32px;height:44px;border:0;padding:0;background:transparent;color:#fff;pointer-events:auto}
body .mrs-mobile-header-controls .mrs-mobile-cart svg{width:28px;height:28px}
.mrs-mobile-menu-overlay:not([hidden]){display:block;position:fixed;inset:0;background:#0009;z-index:2000}
.mrs-mobile-menu-drawer{position:absolute;inset:0 auto 0 0;width:51.8%;max-width:294px;background:#fff;color:#111;overflow:auto;box-sizing:border-box;padding:76px 20px 24px;box-shadow:8px 0 30px #0005}
.mrs-menu-close{position:absolute;right:16px;top:12px;color:#111}
.mrs-mobile-menu-row{display:flex;align-items:center;min-height:58px;gap:8px}
.mrs-mobile-menu-row>a{flex:1;color:#111;text-decoration:none;font:20px/1.4 Arial,sans-serif;padding:12px 0}
.mrs-mobile-menu-row .mrs-header-icon{color:#111;flex:none}
.mrs-mobile-submenu{padding:0 0 12px 12px}
.mrs-mobile-submenu[hidden]{display:none}
.mrs-mobile-submenu>a,.mrs-mobile-submenu>.unavailable{display:block;padding:12px 0;color:#111;text-decoration:none;font:16px/1.4 Arial,sans-serif}
.mrs-mobile-submenu>.unavailable{color:#777}
body .site-header.mrs-mobile-header-ready .head>.mobile-site-search{display:none;position:absolute;left:0;right:0;top:calc(100% - 47px);z-index:1200;width:100%;max-width:none;height:42px;margin:0;padding:4px;background:#070b0e;border:1px solid #465158;border-radius:8px;box-sizing:border-box}
body .site-header.mrs-mobile-header-ready .head.mrs-header-search-open>.mobile-site-search{display:flex}
body .site-header.mrs-mobile-header-ready .mobile-site-search input{height:32px}
body .site-header.mrs-mobile-header-ready .mobile-site-search button{height:32px}
body .site-header.mrs-mobile-header-ready .mobile-search-results{width:100%;box-sizing:border-box}
.mrs-header-icon:focus-visible,.mrs-mobile-menu-row>a:focus-visible{outline:2px solid #d3242b;outline-offset:3px}


.site-header nav .mrs-mobile-cart{display:flex;position:absolute;left:0;top:0;width:30px;height:40px;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:#fff;cursor:pointer}
.mrs-mobile-cart svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mrs-cart-count{position:absolute;top:0;right:-3px;min-width:16px;height:16px;padding:0 3px;border-radius:9px;background:#d3242b;color:#fff;font:11px/16px Arial,sans-serif;text-align:center}
.mrs-cart-count[hidden]{display:none}
.mrs-cart-panel:not([hidden]){display:block;position:fixed;z-index:1000;right:20px;width:min(340px,calc(100vw - 40px));max-height:65vh;overflow:auto;box-sizing:border-box;background:#0d1215;color:#fff;border:1px solid #465158;border-radius:6px;box-shadow:0 10px 30px #000a;padding:16px;font:14px/1.5 Arial,sans-serif}
.mrs-cart-panel h2{font-size:18px;margin:0 0 14px}.mrs-cart-panel p{margin:10px 0}.mrs-cart-panel button{background:#202b31;color:#fff;border:1px solid #465158;border-radius:4px;min-height:32px;min-width:32px;cursor:pointer}.mrs-cart-close{float:right}.mrs-cart-row{padding:12px 0;border-top:1px solid #465158}.mrs-cart-controls{display:flex;align-items:center;gap:10px;margin-top:8px}.mrs-cart-remove{margin-left:auto}.mrs-cart-total{border-top:1px solid #465158;padding-top:12px;font-weight:bold}

body .site-header.mrs-mobile-header-ready .head{height:100%;min-height:0;width:calc(100% - 32px);display:flex;justify-content:center;align-items:center;padding:0;box-sizing:border-box}
body .site-header.mrs-mobile-header-ready .brand{width:136px;position:relative;justify-content:center;margin:0}
body .site-header.mrs-mobile-header-ready .brand img{width:100%;max-width:100%;height:auto;transform:none}
body .site-header.mrs-mobile-header-ready .head>.mobile-site-search{top:calc(100% + 8px);left:0;right:auto;width:440px;max-width:calc(100vw - 32px)}
body .mrs-mobile-header-controls .mrs-mobile-cart{display:flex;position:relative!important;left:auto!important;top:auto!important;margin-left:auto;align-items:center;justify-content:center;width:32px;height:44px;padding:0;border:0;background:transparent;color:#fff}
}

/* Preserve the current desktop logo dimensions when moving it to centre. */
@media(min-width:561px){
body .site-header.mrs-mobile-header-ready .mrs-mobile-header-announcement{display:none}
body .site-header.mrs-mobile-header-ready .brand{width:210px}
body .site-header.mrs-mobile-header-ready .brand img{width:210px;max-width:none;transform:none}
}
@media(min-width:1001px){
body .site-header.mrs-mobile-header-ready .brand{width:264px}
body .site-header.mrs-mobile-header-ready .brand img{width:220px;max-width:none;transform:scale(1.2);transform-origin:center}
}

/* Open desktop search in the existing space between the icon and logo. */
@media(min-width:561px){
body .site-header.mrs-mobile-header-ready .head>.mobile-site-search{left:var(--mrs-search-left,84px);top:var(--mrs-search-top,0px);right:auto;width:var(--mrs-search-width,0px);max-width:none}
body .site-header.mrs-mobile-header-ready .head>.mobile-site-search input{flex:1;min-width:0}
}

/* Keep desktop content stationary when an overlay locks scrolling. */
@media(min-width:561px){html{scrollbar-gutter:stable}}

/* Desktop offer strip above the existing header, shared by every page. */
@media(min-width:561px){
 body .site-header.mrs-mobile-header-ready{height:131px!important;box-sizing:border-box;padding-top:30px}
 body .site-header.mrs-mobile-header-ready .head{height:100px}
 body .site-header.mrs-mobile-header-ready .mrs-mobile-header-announcement{display:flex;position:absolute;top:-24px;left:var(--mrs-offer-center,50%);right:auto;width:max-content;transform:translateX(-50%);height:30px;flex-direction:row;justify-content:center;align-items:center;gap:0;color:#fff;font:700 14px/1.35 "MRS Offer",Arial,sans-serif;text-transform:uppercase;white-space:nowrap;pointer-events:none}
 body .mrs-cart-overlay.mrs-offer-overlay:not([hidden]){display:flex;align-items:center;justify-content:center;pointer-events:auto}
 body .mrs-cart-overlay.mrs-offer-overlay .mrs-cart-panel.mrs-offer-panel:not([hidden]){position:relative;inset:auto}
}

/* New desktop controls are absolute so the existing header cannot grow or shift. */
.mrs-desktop-header-socials,.mrs-desktop-header-currency{display:none}
@media(min-width:561px){
 body .site-header .head>.mrs-desktop-header-socials{display:flex;position:absolute;left:0;top:-10px;align-items:center;gap:12px;height:28px;z-index:3}
 .mrs-desktop-header-socials>a,.mrs-desktop-header-socials>button{display:flex;align-items:center;justify-content:center;width:24px;height:28px;padding:2px;border:0;background:transparent;cursor:pointer;box-sizing:border-box}
 .mrs-desktop-header-socials img{display:block;width:20px;height:20px;filter:invert(1);object-fit:contain}
 body .site-header .head>.mrs-desktop-header-currency{display:block;position:absolute;right:44px;top:calc(50% - 17px);z-index:3}
 .mrs-desktop-header-currency select{width:88px;min-height:34px;box-sizing:border-box;padding:5px 8px;border:1px solid #465158;border-radius:4px;background:#070b0e;color:#fff;font:14px/1.4 Arial,sans-serif;cursor:pointer;color-scheme:dark}
 body .site-header .head>.mrs-desktop-header-currency::before{content:"";position:absolute;inset:-4px;border:2px solid var(--red,#ff102b);border-radius:8px;pointer-events:none}
 .mrs-desktop-header-currency select:disabled{cursor:wait;opacity:.65}
 .mrs-desktop-header-socials>a:focus-visible,.mrs-desktop-header-socials>button:focus-visible,.mrs-desktop-header-currency select:focus-visible{outline:2px solid var(--red,#ff102b);outline-offset:3px}
 .mrs-desktop-header-social-status:empty,.mrs-desktop-header-currency-status:empty{display:none}
 .mrs-desktop-header-social-status,.mrs-desktop-header-currency-status{position:absolute;top:calc(100% + 6px);margin:0;padding:8px 10px;width:max-content;max-width:260px;border:1px solid #465158;border-radius:4px;background:#0d1215;color:#fff;font:12px/1.5 Arial,sans-serif;box-shadow:0 4px 12px #0008}
 .mrs-desktop-header-social-status{left:0}
 .mrs-desktop-header-currency-status{right:0}
}
