/* Ziemax utility bar; all native account and cart hooks are retained. */
@font-face {
  font-family:"Space Grotesk"; font-style:normal; font-weight:300 700; font-display:swap;
  src:url("./ziemax-space-grotesk.woff2") format("woff2");
}
#header .header-nav {
  position:relative; z-index:101; border-bottom:0; max-height:none;
  background-image:linear-gradient(90deg,#591f93 0%,#732eb8 45%,rgba(172,77,203,.85) 75%,rgba(196,121,210,.55) 100%),url("../img/ziemax-header-ate.jpg");
  background-size:cover; background-position:right center;
  color:#fff; font-family:"Space Grotesk",system-ui,sans-serif; box-shadow:0 4px 6px -1px rgba(0,0,0,.1);
}
body:not(#checkout) #header .header-nav .container > .row > .hidden-sm-down { min-height:56px; }
#header .header-nav .zx-nav-brand { display:flex; align-items:center; gap:24px; }
#header .header-nav #_desktop_logo { padding:0; margin:0; }
#header .header-nav #_desktop_logo h1 { margin:0; font-size:0; }
#header .header-nav #_desktop_logo a { display:flex; align-items:center; }
#header .header-nav #_desktop_logo .logo { width:187.2px; height:auto; max-width:187.2px; }
#header .header-top { padding:0; }
#header .header-top > .container > .row > .header-top-right { min-height:0; }
#header .header-nav #_desktop_contact_link #contact-link,
#header .header-nav #contact-link,
#header .header-nav #contact-link a { color:rgba(255,255,255,.85); }
#header .header-nav #_desktop_contact_link #contact-link { font-size:13px; white-space:nowrap; }
#header .header-nav #contact-link a { font-weight:400; }
#header .header-nav #contact-link strong { font-weight:600; color:#fff; }
#header .header-nav #contact-link a:hover { color:#fff; text-decoration:underline; text-underline-offset:4px; }
#header .header-nav #contact-link a:focus-visible { outline:2px solid #fff; outline-offset:4px; }
#header .header-nav .right-nav { gap:14px; }
#header .header-nav .ziemax-account__toggle,
#header .header-nav .user-info > a { min-height:42px; padding:10px 12px; color:rgba(255,255,255,.85); font-family:inherit; font-weight:500; font-size:14px; border-radius:6px; }
#header .header-nav .ziemax-account__toggle .ziemax-account__chevron,
#header .header-nav .ziemax-account.open .ziemax-account__chevron { color:#fff; }
#header .header-nav .ziemax-account__toggle:hover,
#header .header-nav .ziemax-account.open .ziemax-account__toggle,
#header .header-nav .user-info > a:hover { color:#fff; background:rgba(255,255,255,.12); }
#header .header-nav .ziemax-account__toggle:focus-visible,
#header .header-nav .user-info > a:focus-visible { outline:2px solid #fff; outline-offset:2px; box-shadow:none; }
#header .header-nav .ziemax-account__menu { margin-top:10px; background:#fff; border:1px solid #e8e2ec; }
#header .header-nav .blockcart,
#header .header-nav .cart-preview.active {
  position:relative; z-index:2; width:60px; height:70px; margin:0 0 -14px 0; padding:0;
  border-radius:0 0 24px 24px; background:#fa9338; box-shadow:0 5px 12px rgba(62,25,69,.17);
  transition:background-color .18s ease;
}
#header .header-nav .blockcart.active:hover { background:#ffa43b; }
#header .header-nav .blockcart.inactive .header,
#header .header-nav .blockcart.active .header > a {
  position:relative; display:flex; align-items:center; justify-content:center;
  width:60px; height:70px; padding:21px 10px 10px; gap:0; color:#42204f;
}
#header .header-nav .blockcart.active .header > a:focus-visible { outline:2px solid #fff; outline-offset:3px; border-radius:0 0 24px 24px; }
#header .header-nav .cart-preview .zx-cart-icon { width:32px; height:32px; flex:0 0 32px; display:block; color:#42204f; }
#header .header-nav .blockcart .cart-products-count {
  position:absolute; top:8px; right:7px; display:inline-flex; align-items:center; justify-content:center;
  height:22px; min-width:22px; padding:0 5px; border:2px solid #fa9338; border-radius:999px;
  color:#591f93; background:#fff; font-size:11px; font-weight:700; line-height:1;
}
@media (min-width:768px) {
  body:not(#checkout) #header .header-nav .zx-nav-brand { width:60%; }
  body:not(#checkout) #header .header-nav .right-nav { width:40%; }
}
@media (min-width:768px) and (max-width:991px) {
  body:not(#checkout) #header .header-nav .zx-nav-brand { width:55%; }
  body:not(#checkout) #header .header-nav .right-nav { width:45%; }
  #header .header-nav .zx-nav-brand { gap:16px; }
  #header .header-nav #_desktop_logo .logo { width:150px; max-width:150px; }
  #header .header-nav #contact-link .zx-support-label { display:block; font-size:11px; }
}
@media (max-width:767px) {
  #header .header-nav .mobile { min-height:66px; }
  #header .header-nav .mobile #_mobile_cart .blockcart { margin:0 8px 0 6px; width:52px; height:64px; border-radius:0 0 22px 22px; }
  #header .header-nav .mobile .blockcart.inactive .header,
  #header .header-nav .mobile .blockcart.active .header > a { width:52px; height:64px; }
  #header .header-nav .mobile #_mobile_user_info .user-info { margin-top:10px; }
  #header .header-nav .mobile #_mobile_user_info .ziemax-account__toggle { min-height:42px; padding:8px; gap:0; color:#fff; }
  #header .header-nav #menu-icon { color:#fff; }
  #header .header-nav .mobile .top-logo { padding-top:15px; }
  #header .header-nav .mobile .top-logo a { display:inline-flex; padding:0; background:transparent; }
  #header .header-nav .mobile .top-logo .logo { max-height:43.2px; width:auto; }
  #header .header-nav .mobile .top-logo h1 { margin:0; font-size:0; }
  #header .header-nav .zx-mobile-support { display:block; clear:both; padding:0 12px 12px; color:rgba(255,255,255,.85); font-size:12px; }
  #header .header-nav .zx-mobile-support strong { color:#fff; font-weight:600; }
}
@media (prefers-reduced-motion:reduce) { #header .header-nav .blockcart { transition:none; } }

/* Original full-color logo, twenty percent larger. */
#header .header-nav #_desktop_logo a { width:max-content; padding:12px 8px; border-radius:7px; background:transparent; }
@media (max-width:767px) {
  #header .header-nav .mobile .top-logo { padding-top:8px; }
  #header .header-nav .mobile .top-logo a { padding:9px 6px; border-radius:6px; background:transparent; }
}
