#mxpc-header { display:none; }
@media (min-width:1024px) {
    html { --mxpc-admin-offset:0px; }
    html:has(#wpadminbar) { --mxpc-admin-offset:32px; }
    body { padding-top:76px!important; }
    html body #header,html body #fix_header,html body #mxh-mobile-tools,html body #mxh-desktop-menu,html body #mxh-quick-search { display:none!important; }
    #mxpc-header {
        display:block!important;position:fixed!important;
        top:var(--mxpc-admin-offset);left:0;right:0;
        height:76px;z-index:9999;background:#fff;color:#333;
        border-bottom:1px solid #eee;box-shadow:0 2px 6px #0000000d;
    }
    #mxpc-header .mxpc-inner { display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1280px;height:76px;margin:auto;padding:0 28px; }
    #mxpc-header .mxpc-logo { flex-shrink:0;font-size:28px;font-weight:700;color:#333;text-decoration:none;line-height:1.2; }
    #mxpc-header nav { display:flex;align-items:center;gap:24px;height:100%; }
    #mxpc-header nav > a { display:flex;align-items:center;height:100%;font-size:15px;font-weight:500;color:#333;text-decoration:none;white-space:nowrap; }
    #mxpc-header nav > a:hover { color:#ef4056; }
    #mxpc-header button { cursor:pointer; }
    #mxpc-search-toggle { display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;border:0;background:transparent;color:#333; }
    #mxpc-search-toggle:hover { background:#fff0f5; }
    #mxpc-header a:focus-visible,#mxpc-header button:focus-visible,#mxpc-header input:focus-visible { outline:2px solid #ef4056;outline-offset:3px; }
    #mxpc-search[hidden] { display:none!important; }
    #mxpc-search:not([hidden]) { display:block;position:absolute;top:76px;right:0;left:0;margin:0;padding:16px max(28px,calc((100% - 920px)/2));background:#fff;border-bottom:1px solid #ddd;box-shadow:0 4px 6px #0000000d; }
    #mxpc-search label { display:block;margin:0 0 8px;font-size:13px; }
    #mxpc-header .mxpc-search-row { display:flex;gap:8px; }
    #mxpc-search input { min-width:0;flex:1;height:44px;padding:8px 12px;border:1px solid #ccc;background:#fff;color:#333; }
    #mxpc-search button { min-width:76px;border:0;background:#ef4056;color:#fff; }
}

/* Keep the utility search usable below the fixed desktop-header breakpoint. */
@media (min-width:601px) and (max-width:1023px) {
 html body #mxh-quick-search:not([hidden]) { display:block!important;position:relative!important;top:auto!important;z-index:102;margin:0;padding:12px 20px;background:#fff0f5;border-bottom:1px solid #ddd; }
 #mxh-quick-search label { display:block;font-size:13px;margin-bottom:6px; }
 #mxh-quick-search>div { display:flex;gap:8px; }
 #mxh-quick-search input { min-width:0;flex:1;height:44px;padding:8px 12px;border:1px solid #ccc;background:#fff; }
 #mxh-quick-search button { min-width:72px;border:0;background:#ef4056;color:#fff; }
}

/* Match the utility menu to the custom header breakpoint. */
@media (min-width:960px) and (max-width:1023px) {
 html[data-spmenu="opened"] body #sp_menu { display:block!important;z-index:10010!important; }
 html:not([data-spmenu="opened"]) body #sp_menu { display:none!important; }
}

/* Use the theme header controls on phones and small tablets. */
@media (max-width:959px) {
 html body #mxh-mobile-tools, html body #mxh-quick-search { display:none!important; }
}
