/* Authoritative install banner layout, shared by desktop and mobile. */
body.pdv-custom-header-enabled .pdv-site-header .pdv-header-appbar {
    margin:0;
    border:1px solid #e4e7ec;
    border-bottom-color:#e0e4ff;
    border-radius:0;
    background:linear-gradient(105deg,#f4f6ff,#eef2ff);
    color:#172033;
    box-shadow:none;
}
body.pdv-custom-header-enabled .pdv-header-appbar::before { display:none; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-inner {
    display:grid;
    grid-template-columns:32px minmax(0,1fr) auto 22px;
    grid-template-rows:auto;
    width:100%;
    min-height:40px;
    margin:0;
    padding:4px 12px;
    gap:10px;
    box-sizing:border-box;
}
body.pdv-custom-header-enabled .pdv-header-appbar :is(.pdv-header-appbar-badge,.pdv-header-appbar-text,.pdv-appbar-desktop-label,.pdv-appbar-desktop-icon) { display:none!important; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-icon {
    display:grid;
    place-items:center;
    grid-column:1;
    grid-row:1;
    width:32px;
    height:32px;
    border-radius:50%;
    background:#6366f6;
    color:#fff;
}
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-laptop-icon { display:grid;place-items:center; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-laptop-icon svg { width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-heading { display:block;grid-column:2;grid-row:1;min-width:0;line-height:1.35; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-heading strong { display:block;font-size:12px;font-weight:600;color:#172033;white-space:nowrap; }
body.pdv-custom-header-enabled .pdv-header-appbar button.pdv-header-appbar-cta {
    display:flex!important;
    grid-column:3;
    grid-row:1;
    align-items:center;
    justify-content:center;
    width:auto!important;
    height:30px!important;
    margin:0!important;
    padding:0 18px!important;
    border:0!important;
    border-radius:999px!important;
    background:linear-gradient(110deg,#4f67f6,#6265f5)!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.2!important;
    box-shadow:0 2px 6px rgba(79,103,246,.16)!important;
    white-space:nowrap;
}
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-label { display:inline;font-size:inherit; }
body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-label span { font-size:inherit; }
body.pdv-custom-header-enabled .pdv-header-appbar button[data-pdv-header-app-close] {
    grid-column:4;grid-row:1;align-self:center;
    width:22px!important;height:28px!important;margin:0!important;padding:0!important;
    color:#98a2b3!important;font-size:23px!important;background:transparent!important;
}
@media(max-width:991px) {
    body.pdv-custom-header-enabled .pdv-site-header { display:block!important;position:sticky!important;top:0;z-index:99990; }
    body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-inner { grid-template-columns:24px minmax(0,1fr) auto 18px;min-height:36px;padding:4px 6px;gap:5px; }
    body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-icon { width:24px;height:24px; }
    body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-laptop-icon svg { width:15px;height:15px; }
    body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-heading strong { font-size:clamp(8.5px,2.4vw,10.5px); }
    body.pdv-custom-header-enabled .pdv-header-appbar button.pdv-header-appbar-cta { height:26px!important;padding:0 7px!important;font-size:9px!important; }
    body.pdv-custom-header-enabled .pdv-header-appbar button[data-pdv-header-app-close] { width:18px!important; }
}

/* Desktop reference: airy centered menu and a quiet, compact install strip. */
.pdv-appbar-desktop-copy,.pdv-appbar-store-links,.pdv-header-desktop-search{display:none}
@media(min-width:992px){
 body.pdv-custom-header-enabled .pdv-header-appbar{background:#f1f2ff}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-inner{grid-template-columns:28px minmax(0,1fr) auto auto 20px;min-height:42px;padding:5px 24px;gap:12px}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-header-appbar-icon{width:28px;height:28px}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-mobile-heading{display:none}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-desktop-copy{display:flex;grid-column:2;grid-row:1;align-items:center;gap:9px;min-width:0;color:#667085;font-size:12px;line-height:1.3;white-space:nowrap}
 .pdv-appbar-desktop-copy strong{color:#344054;font-weight:600}
 .pdv-appbar-desktop-copy .pdv-appbar-dot{color:#d0d5dd}
 .pdv-appbar-desktop-copy .pdv-appbar-alerts{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:5px 10px;border:1px solid #dfe4ff;border-radius:999px;background:#fff;color:#6366f6;font-size:10px;font-weight:500}
 .pdv-appbar-alerts svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-store-links{display:flex;grid-column:3;grid-row:1;align-items:center;gap:6px}
 body.pdv-custom-header-enabled .pdv-header-appbar .pdv-appbar-store-links a{display:grid!important;place-items:center;width:20px;height:20px;margin:0;padding:0;border:0;border-radius:4px;background:#171717;color:#fff!important;box-shadow:none}
 .pdv-appbar-store-links svg{width:12px;height:12px;fill:currentColor}
 body.pdv-custom-header-enabled .pdv-header-appbar button.pdv-header-appbar-cta{grid-column:4;height:30px!important;padding:0 17px!important;font-size:11px!important}
 body.pdv-custom-header-enabled .pdv-header-appbar button.pdv-header-appbar-cta .pdv-appbar-mobile-label:after{content:'\2192';margin-left:8px}
 body.pdv-custom-header-enabled .pdv-header-appbar button[data-pdv-header-app-close]{grid-column:5}
 body.pdv-custom-header-enabled .pdv-site-header{box-shadow:none;border-bottom:1px solid #e9ecf2}
 .pdv-site-header .pdv-header-wrap{width:min(calc(100% - 48px),1280px);min-height:68px;gap:22px}
 .pdv-site-header .pdv-header-logo img{max-width:180px;max-height:44px}
 .pdv-site-header .pdv-header-menu a>i,.pdv-site-header .pdv-header-account>button>i,.pdv-site-header .pdv-header-post>i{width:5px;height:5px;border-width:1px}
 .pdv-site-header .pdv-header-menu{gap:12px;align-items:center}
 .pdv-site-header .pdv-header-menu>li>a{min-height:40px;padding:0 12px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:500!important;line-height:1.3;letter-spacing:0;color:#44454f!important;gap:9px}
 .pdv-site-header .pdv-header-menu>li>a>i{width:6px;height:6px;border-right:1px solid #9ca3af;border-bottom:1px solid #9ca3af}
 .pdv-site-header .pdv-header-menu>li.is-current>a{border-color:#d9dcff;background:#f1f2ff;color:#6366f6!important}
 .pdv-site-header .pdv-header-menu>li>a:after{display:none}
 .pdv-site-header .pdv-header-actions{gap:10px}
 .pdv-site-header .pdv-header-desktop-search{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #e4e7ec;border-radius:50%;background:#fafafa;color:#667085}
 .pdv-header-desktop-search svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
 .pdv-site-header .pdv-header-account>button{min-height:30px!important;height:30px!important;padding:2px 9px 2px 3px!important;gap:6px;border:1px solid #e4e7ec!important;border-radius:999px!important;background:#fafafa!important;font-size:11px!important;font-weight:500!important;line-height:1.2!important;color:#475467!important}
 .pdv-site-header .pdv-header-account>button img{width:22px!important;height:22px!important;min-width:22px!important;max-width:22px!important;max-height:22px!important;border-radius:50%;flex:0 0 22px!important}
 .pdv-site-header .pdv-header-signin{min-height:36px;padding:0 12px;border:1px solid #e4e7ec;border-radius:999px;background:#fafafa;font-size:12px;font-weight:500}
 .pdv-site-header .pdv-header-post{min-height:32px;padding:0 12px;border-radius:999px;background:#6366f6;font-size:12px;font-weight:600;box-shadow:0 3px 9px rgba(99,102,246,.19)}
}

.pdv-site-header .pdv-header-post-label{display:inline-flex;align-items:center;gap:8px;min-width:0}
.pdv-site-header .pdv-header-post-label>svg{flex:0 0 18px;width:18px;height:18px;color:#6366f6;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Compact four-column desktop mega menus, retaining all existing links. */
@media(min-width:992px){
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu{top:calc(100% + 8px);width:min(820px,calc(100vw - 40px));grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:18px 20px;border:1px solid #e4e7ec;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(16,24,40,.09);max-height:min(430px,calc(100dvh - 120px));overflow-y:auto}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li{min-width:0;padding:0 16px;border-right:1px solid #f0f1f4}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li:first-child{padding-left:0}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li:last-child{padding-right:0;border-right:0}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li>a{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:28px;padding:0 0 9px;border:0;border-radius:0;background:transparent;color:#172033!important;font-size:12px;font-weight:600!important;line-height:1.4}
 .pdv-site-header .pdv-mega-heading-icon{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;color:#6366f6}
 .pdv-site-header .pdv-mega-heading-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li>.pdv-header-submenu{margin-top:4px;padding:0}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li>.pdv-header-submenu a{display:flex;justify-content:flex-start;align-items:center;gap:8px;min-height:28px;padding:5px 0;border-radius:5px;font-size:11.5px;font-weight:400!important;line-height:1.4;color:#667085!important;transform:none}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li>.pdv-header-submenu a:before{content:'';flex:0 0 4px;width:4px;height:4px;border-radius:50%;background:#d0d5dd}
 .pdv-site-header .pdv-header-menu>li.is-mega>.pdv-header-submenu>li>.pdv-header-submenu a:hover{background:#f7f8ff;color:#6366f6!important;transform:none}
}
/* 3.7.78: tighter mega-menu columns, with category icons on Parts headings. */
@media(min-width:992px) {
    body.pdv-custom-header-enabled .pdv-site-header .pdv-header-menu > li.is-mega > .pdv-header-submenu {
        width:min(740px,calc(100vw - 40px));
        padding:14px;
    }
    body.pdv-custom-header-enabled .pdv-site-header .pdv-header-menu > li.is-mega > .pdv-header-submenu > li {
        padding:0 10px;
    }
    body.pdv-custom-header-enabled .pdv-site-header .pdv-header-menu > li.is-mega > .pdv-header-submenu > li:first-child {
        padding-left:0;
    }
    body.pdv-custom-header-enabled .pdv-site-header .pdv-header-menu > li.is-mega > .pdv-header-submenu > li:last-child {
        padding-right:0;
    }
}
