@media(max-width:1199px){
  #jas-header .header__mid{padding:0 12px !important;}
  #jas-header .header__mid>.jas-row{display:grid !important;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;margin:0;min-height:64px;}
  #jas-header .header__mid>.jas-row>div{width:auto !important;max-width:none !important;padding:0;min-width:0;}
  #jas-header .header__mid>.jas-row>div:first-child{display:flex !important;}
  #jas-header .header__mid>.jas-row>div:nth-child(3){display:none !important;}
  #jas-header .jas-branding{padding:0 !important;}
  #jas-header .header__mid>.jas-row>div:nth-child(2){grid-column:2;grid-row:1;justify-self:stretch;text-align:center;}
  #jas-header .header__mid>.jas-row>div:first-child{grid-column:1;grid-row:1;}
  #jas-header .jas-branding>a{height:64px;width:100%;justify-content:center;padding:0;margin:0;}
  #jas-header .jas-branding img.regular-logo{display:block !important;width:90px !important;max-width:100% !important;height:auto !important;max-height:none !important;margin:0 !important;object-fit:contain;transform:none !important;}
  #jas-header .jas-branding img.retina-logo,
  #jas-header .jas-branding img.sticky-logo{display:none !important;}
  #jas-header .jas-push-menu-btn{display:flex !important;align-items:center;justify-content:center;position:relative;z-index:5;flex:0 0 44px !important;width:44px !important;min-width:44px;max-width:44px !important;height:44px;margin:0;padding:0;border:0;background:transparent;cursor:pointer;pointer-events:auto;touch-action:manipulation;}
  #jas-header .header__mid>.jas-row>div:first-child{position:relative;z-index:5;}
  #jas-header .jas-push-menu-btn img{pointer-events:none;}
  #jas-header .jas-push-menu-btn img{width:24px;height:auto;}
  #jas-header .jas-action{display:flex !important;flex-wrap:nowrap;gap:0;margin:0;padding:0;}
  #jas-header .jas-action>.sf-open{display:inline-flex !important;width:36px;margin:0;padding:0;font-size:22px;}
  #jas-header .fx-actions{gap:0;margin:0;}
  #jas-header .fx-action{width:36px;height:44px;padding:0;gap:0;}
  #jas-header .fx-action-text{display:none;}
  #jas-header .header__mid>.jas-row>div:last-child{display:none !important;}
}
.modal-menu .mobile-menu-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px;}
.modal-menu .mobile-menu-tools :is(a,button){display:flex;align-items:center;gap:9px;min-height:48px;padding:10px;border:1px solid #dce8f2;border-radius:10px;background:#f5f9fd;color:#214765;font-size:13px;line-height:1.5;text-align:left;}
.mobile-menu-tools :is(i,svg){flex:none;font-size:22px;width:22px;height:22px;}
.mobile-menu-language{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 20px 16px;border-bottom:1px solid #e8eef5;font-size:13px;}
.replica-modal.modal-menu{width:360px;max-width:calc(100vw - 24px);padding:0 0 max(20px,env(safe-area-inset-bottom));background:#fff;border-radius:0 18px 18px 0;overscroll-behavior:contain;}
.modal-menu .drawer-heading{height:68px;display:flex;align-items:center;justify-content:flex-start;padding:0 64px 0 22px;background:#eef6ff;color:#164872;letter-spacing:0;font-size:18px;line-height:1.4;border-bottom:1px solid #dce8f2;}
.modal-menu .modal-close{top:12px;right:12px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;background:#fff;color:#214765;border:1px solid #dce8f2;border-radius:50%;line-height:1;font-size:26px;}
.modal-menu .mobile-menu-actions{height:auto;margin:0;padding:14px 18px;gap:12px;justify-content:flex-start;border-bottom:1px solid #edf1f5;background:#f8fbfe;}
.modal-menu .mobile-menu-actions :is(button,a){display:flex;align-items:center;justify-content:center;width:44px;height:44px;line-height:1;border:1px solid #d9e5ef;border-radius:10px;background:white;color:#1967a4;}
.modal-menu .replica-mobile-menu{padding:8px 12px;}
.modal-menu .mobile-menu-row{height:auto;min-height:48px;border-bottom:1px solid #edf1f5;}
.modal-menu .mobile-menu-row a{padding:12px 10px;line-height:1.6;font-size:14px;color:#263e52;}
.modal-menu .mobile-menu-row button{flex:0 0 44px;width:44px;height:44px;line-height:1;color:#126aa9;font-size:23px;}
.modal-menu .replica-mobile-menu ul{padding:4px 8px 4px 14px;background:#f5f9fc;border-radius:10px;}
.modal-menu .mobile-menu-row:focus-within{background:#edf6ff;border-radius:8px;}
/* Match the storefront's restrained white, slate and blue palette. */
html body .replica-modal.modal-menu{color:#304759;background:#fff;}
html body .modal-menu .drawer-heading{background:#f7f9fb;color:#25445b;border-bottom:1px solid #e7ecf0;font-size:18px;font-weight:600;}
html body .modal-menu .modal-close{background:#fff;color:#526878;border:1px solid #e1e7ed;box-shadow:none;}
html body .modal-menu .mobile-menu-tools{gap:8px;}
html body .modal-menu .mobile-menu-tools :is(a,button){background:#f5f7f9;border:1px solid transparent;color:#34566f;border-radius:8px;font-weight:500;text-decoration:none;box-shadow:none;}
html body .modal-menu .mobile-menu-tools :is(a,button):hover{background:#eaf1f7;color:#174c73;}
html body .modal-menu a,html body .modal-menu a span{text-decoration:none;}
html body .modal-menu .mobile-menu-language{color:#65788a;border-color:#e7ecf0;}
html body .modal-menu .mobile-menu-row{border-bottom:0;margin:2px 0;border-radius:8px;}
html body .modal-menu .mobile-menu-row a{color:#304759;text-decoration:none;font-weight:400;}
html body .modal-menu .mobile-menu-row button{display:flex;align-items:center;justify-content:center;padding:0;background:transparent;color:#65788a;}
html body .modal-menu .mobile-menu-row:hover,html body .modal-menu .mobile-menu-row:focus-within{background:#f1f5f8;}
html body .modal-menu .replica-mobile-menu ul{background:#f7f9fb;border-left:2px solid #dce6ee;border-radius:0 8px 8px 0;}
html body .modal-menu :is(a,button):focus-visible{outline:2px solid #0069bd;outline-offset:2px;}

/* The consent banner is injected after the drawer with an extreme z-index.
   Temporarily hide it only while navigation is open so it cannot cover or
   intercept the lower mobile-menu links; it returns unchanged on close. */
body.menu-opened .dpdpa--popup{display:none !important;visibility:hidden !important;opacity:0 !important;pointer-events:none !important;}

@media(max-width:1199px){
  #jas-header .header__mid>.jas-row>div:last-child{
    display:flex !important;
    grid-column:3;
    grid-row:1;
    align-items:center;
    justify-content:flex-end;
    justify-self:end;
    width:44px !important;
    height:44px;
    position:relative;
    z-index:6;
  }
  #jas-header .header__mid>.jas-row>div:last-child>.jas-action{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    overflow:visible;
  }
  #jas-header .header__mid>.jas-row>div:last-child>.jas-action>.sf-open,
  #jas-header .header__mid>.jas-row>div:last-child>.jas-action>.jas-my-account,
  #jas-header .header__mid>.jas-row>div:last-child>.jas-action>.jas-icon-cart{
    display:none !important;
  }
  #jas-header .ft-header-mobile-search{
    display:block !important;
    position:relative !important;
    inset:auto !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
  }
  #jas-header .ft-header-mobile-search .dgwt-wcas-search-form,
  #jas-header .ft-header-mobile-search .dgwt-wcas-preloader,
  #jas-header .ft-header-mobile-search .dgwt-wcas-sf-wrapp{
    display:none !important;
  }
  #jas-header .ft-header-mobile-search .dgwt-wcas-enable-mobile-form{
    display:block !important;
    position:absolute !important;
    inset:0 !important;
    width:44px !important;
    height:44px !important;
    z-index:2;
  }
  #jas-header .ft-header-mobile-search .dgwt-wcas-search-icon{
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:44px !important;
    height:44px !important;
    margin:0 !important;
    padding:0 !important;
    color:#253c53;
  }
  #jas-header .ft-header-mobile-search .dgwt-wcas-search-icon svg{
    display:block;
    width:21px !important;
    height:21px !important;
    margin:0 !important;
  }
  #jas-header .ft-header-mobile-search:focus-within{
    outline:2px solid #1976b9;
    outline-offset:2px;
    border-radius:8px;
  }
}
