/* 1.8.17 — compact native header and stable account/cart space from first paint. */
@media(min-width:981px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-reference-strip>.at42-container{height:auto;min-height:34px;padding-block:3px;gap:12px;font-size:11px;line-height:1.3}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-reference-strip>.at42-container>span{gap:8px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-reference-strip>.at42-container>span>img{width:21px;height:21px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-reference-strip .at42-france-badge>img{width:25px;height:25px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-france-badge>span{font-size:10px;line-height:1.25}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-france-badge strong{font-size:12px;line-height:1.2}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-expert-access{grid-template-columns:23px auto;column-gap:7px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-expert-access>img{width:23px;height:23px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-expert-contact-link{font-size:11px;line-height:1.3}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-expert-access>.at42-header-phone strong{font-size:13px;line-height:1.3}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-grid{grid-template-columns:clamp(225px,17vw,300px) minmax(200px,1fr) 140px auto;min-height:76px;padding-block:6px;gap:20px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-logo{width:100%;max-width:300px;padding:0;margin:0}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-logo img{width:100%;height:auto;max-height:58px;aspect-ratio:310/78;object-fit:contain;object-position:left center}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-search{height:44px;min-height:44px;margin:0;padding-block:2px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-search input[type=search]{height:38px;min-height:0;font-size:15px;padding-block:0}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-search button[type=submit]{height:38px;min-height:38px;padding:7px 20px;font-size:14px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-vehicle-open{height:42px;min-height:42px;font-size:13px;padding:7px 12px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-vehicle-open img{width:22px;height:22px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions{gap:18px;padding-left:18px;min-height:46px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-account-link{gap:8px;font-size:13px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-account-link img{width:24px;height:24px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-account-link strong{font-size:13px;line-height:1.25}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-cart-link{font-size:12px;gap:3px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-cart-symbol img{width:27px;height:27px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav{min-height:44px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav-list{padding:0;min-height:44px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav-entry{min-height:44px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav-entry>a.at42-nav-label{min-height:44px;padding-block:10px!important;font-size:14px;line-height:1.3}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav-entry>.at42-submenu-toggle{height:44px;min-height:44px}
}
@media(min-width:981px) and (max-width:1240px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-grid{grid-template-columns:210px minmax(180px,1fr) 116px auto;gap:12px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions{gap:10px;padding-left:10px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-nav-entry>a.at42-nav-label{font-size:12px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-vehicle-open{font-size:12px;padding-inline:7px;gap:6px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-reference-strip>.at42-container{font-size:10px;gap:9px}
}
/* Existing mobile controls remain 44px touch targets, with only the strip compacted. */
@media(max-width:980px){
 body.at42-expert-header-ready #header .at42-reference-strip>.at42-container{min-height:34px;padding-block:3px}
 body.at42-expert-header-ready #header .at42-expert-access>.at42-expert-contact-link{font-size:10px;line-height:1.2}
 body.at42-expert-header-ready #header .at42-expert-access>.at42-header-phone strong{font-size:12px;line-height:1.25}
}
/* Reserve both native modules before JavaScript or a dynamic cache refresh.
   The guest and logged-in states share the same icon/name row and logout space.
   Keep overflow visible: the cart preview must still open outside this band. */
@media(min-width:981px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions{box-sizing:border-box;justify-content:flex-end;flex-shrink:0;min-width:300px;min-height:58px;gap:18px;padding-left:18px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions #_desktop_user_info,
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook[data-moudule="ps_customersignin"],
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook:has(#_desktop_user_info){box-sizing:border-box;flex:0 0 176px;width:176px;min-width:176px;max-width:176px;min-height:58px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions #_desktop_cart,
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook[data-moudule="ps_shoppingcart"],
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook:has(#_desktop_cart){box-sizing:border-box;flex:0 0 88px;width:88px;min-width:88px;max-width:88px;min-height:58px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .user-info.at42-account-block{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:35px 20px;align-content:start;align-items:start;row-gap:3px;width:100%;min-width:0;max-width:none;min-height:58px;padding:0 12px!important}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link{box-sizing:border-box;grid-column:1;grid-row:1;min-width:0;width:100%;height:35px;min-height:35px;gap:8px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link>img{flex:0 0 24px;width:24px;height:24px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link>span{flex:1;min-width:0}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link strong{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-logout{box-sizing:border-box;grid-column:1;grid-row:2;align-self:start;justify-self:start;min-width:0;max-width:calc(100% - 32px);height:20px;margin-left:32px;padding:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-cart-widget{width:100%;min-height:58px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-cart-header{min-height:58px}
}
@media(min-width:981px) and (max-width:1240px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions{min-width:248px;gap:10px;padding-left:10px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions #_desktop_user_info,
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook[data-moudule="ps_customersignin"],
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions>.ets_speed_dynamic_hook:has(#_desktop_user_info){flex-basis:140px;width:140px;min-width:140px;max-width:140px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .user-info.at42-account-block{padding-inline:8px!important}
}

/* 1.8.22 — approved restrained desktop guest account.
   Keep the existing 176/140px reservation and 58px height for both account states. */
@media(min-width:981px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-logo img{max-height:54px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .user-info.at42-account-block.is-guest{grid-template-rows:minmax(0,1fr);align-content:center;align-items:center;justify-items:center;row-gap:0;height:58px;min-height:58px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest{grid-column:1;grid-row:1/-1;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:58px;min-height:58px;text-align:center}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest>img{display:block;flex:0 0 23px;width:23px;height:23px;margin:0}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest>span{display:block;flex:0 0 auto;width:auto;max-width:100%;margin:0;text-align:center}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest strong{font-size:12px;line-height:16px;max-width:100%;text-align:center}
}

/* 1.8.23 — guest icon matches cart; preserve reserved header dimensions. */
@media(min-width:981px){
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest>img{flex-basis:27px;width:27px;height:27px}
 body:not(#checkout):not(#order):not(#order-confirmation) #header .at42-header-actions .at42-account-link.at42-account-link--guest strong{font-size:13px;line-height:16px}
}
