:root {
  --elgatec-header-blue: #071d2a;
  --elgatec-header-blue-2: #0a4055;
  --elgatec-header-yellow: #ffe066;
}

.elg-brand-mark {
  overflow: hidden;
  background: transparent !important;
  background-image: var(--elgatec-brand-image) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: none !important;
}

.elg-brand-mark svg { display: none !important; }

.site-header .elg-brand-copy .elg-brand-name { color: inherit; }
.site-header .elg-brand-copy .elg-brand-tech {
  color: #f5b900;
}

.site-preloader__bolt {
  overflow: hidden;
  color: transparent !important;
  background: transparent var(--elgatec-brand-image) center / cover no-repeat !important;
  border-radius: 19px;
}

.site-preloader__bolt svg { display: none !important; }

.site-header .site-header__inner { gap: 18px; }
.site-header .site-nav { gap: 16px; font-size: .84rem; }
.site-header .header-cta { min-width: 128px; padding-inline: 12px; }

.site-header .elgatec-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.site-header .elgatec-header-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  pointer-events: none;
}

.site-header .elgatec-header-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .elgatec-header-client,
.site-header .elgux-header-cart,
.site-header .elgatec-header-cart {
  position: relative;
  min-height: 46px;
  height: 46px;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #153c4c !important;
  border-radius: 13px !important;
  color: #fff !important;
  background: linear-gradient(145deg, var(--elgatec-header-blue), var(--elgatec-header-blue-2)) !important;
  box-shadow: 0 9px 22px rgba(7, 31, 44, .16);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.site-header .elgatec-header-client {
  width: 46px;
  min-width: 46px;
  padding: 0 !important;
}

.site-header .elgatec-header-client:hover,
.site-header .elgatec-header-client:focus-visible,
.site-header .elgux-header-cart:hover,
.site-header .elgux-header-cart:focus-visible {
  border-color: #4cd6ed !important;
  box-shadow: 0 12px 28px rgba(4, 64, 85, .24);
  transform: translateY(-1px);
}

.site-header .elgatec-header-action-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.site-header .elgatec-header-cart { min-width: 86px; }
.site-header .elgatec-header-cart > b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #05202c;
  background: #30d9eb;
  font-size: 9px;
  font-weight: 900;
}

.site-header .site-nav > a.elgatec-header-shop {
  min-width: 92px;
  min-height: 46px !important;
  height: 46px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px !important;
  overflow: hidden;
  border: 1px solid rgba(177, 127, 0, .18) !important;
  border-radius: 13px !important;
  color: #071522 !important;
  background: linear-gradient(145deg, var(--elgatec-header-yellow), #ffd43b) !important;
  box-shadow: 0 9px 22px rgba(197, 145, 0, .18);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.site-header .site-nav > a.elgatec-header-shop::after { display: none !important; }
.site-header .site-nav > a.elgatec-header-shop > .elgux-shop-link__icon { display: none !important; }

body #elgatec-calendar-float.elgatec-calendar-in-nav {
  position: static !important;
  z-index: 2 !important;
  display: block !important;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px;
  margin: 0 !important;
  perspective: 620px !important;
}

body.elgtf-store-page .site-header #elgatec-calendar-float.elgatec-calendar-in-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body #elgatec-calendar-float.elgatec-calendar-in-nav > a,
body #elgatec-calendar-float.elgatec-calendar-in-nav .flip-container,
body #elgatec-calendar-float.elgatec-calendar-in-nav .flipper {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body #elgatec-calendar-float.elgatec-calendar-in-nav .front,
body #elgatec-calendar-float.elgatec-calendar-in-nav .back {
  border-radius: 13px !important;
}

body #elgatec-calendar-float.elgatec-calendar-in-nav .front { background-size: 22px !important; }
body #elgatec-calendar-float.elgatec-calendar-in-nav .tick { width: 56% !important; height: 56% !important; margin-bottom: 1px !important; }
body #elgatec-calendar-float.elgatec-calendar-in-nav .tick-text { font-size: 6px !important; }
body #elgatec-calendar-float.elgatec-calendar-in-nav .elgatec-wow-glow { filter: blur(9px) !important; }

@media (max-width: 1450px) {
  .site-header .site-header__inner { gap: 13px; }
  .site-header .site-nav { gap: 12px; font-size: .78rem; }
  .site-header .header-cta { min-width: 108px; }
  .site-header .header-cta > span { display: none; }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .site-header .site-nav { gap: 10px; }
  .site-header .header-cta { display: none; }
}

@media (max-width: 1100px) {
  .site-header .site-header__inner { gap: 10px; }
  .site-header .site-logo { margin-right: auto; }
  .site-header .elgatec-header-actions { order: 2; margin-left: auto; }
  .site-header .nav-toggle { order: 3; margin-left: 0; flex: 0 0 auto; }

  .site-header .site-nav.is-open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    align-content: start;
  }

  .site-header .site-nav > a:not(.nav-account):not(.elgatec-header-shop),
  .site-header .site-nav > .nav-dropdown {
    grid-column: 1 / -1;
  }

  .site-header .site-nav > a.elgatec-header-shop,
  .site-header .site-nav > .elgatec-header-client,
  .site-header .site-nav > #elgatec-calendar-float {
    width: 100% !important;
    min-width: 0;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    justify-self: stretch;
  }

  .site-header .site-nav > #elgatec-calendar-float { grid-column: 1; }
  .site-header .site-nav > .elgatec-header-client { grid-column: 2; }
  .site-header .site-nav > a.elgatec-header-shop { grid-column: 1 / -1; }
  .site-header .site-nav > .elgatec-header-client .elgatec-header-action-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

/* Match the already visible menu button at intermediate widths. */
@media (min-width: 980px) and (max-width: 1100px) {
  .site-header .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    max-height: calc(100vh - var(--header-height));
    margin: 0;
    padding: 20px 16px 32px;
    display: none;
    overflow-y: auto;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-header .nav-dropdown > button { width: 100%; justify-content: space-between; }
  .site-header .nav-dropdown__panel {
    position: static;
    width: auto;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
  }
  .site-header .nav-dropdown.is-open .nav-dropdown__panel { display: grid; transform: none; }
}

@media (max-width: 980px) {
  .site-header .elgatec-header-cart { width: 44px; min-width: 44px; height: 44px; padding: 0 !important; }
  .site-header .elgatec-header-cart .elgux-header-cart__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (max-width: 560px) {
  .site-header .elg-brand-copy small { display: none; }
  .site-header .elg-brand-copy strong { font-size: 1.15rem; }
  .site-header .elg-brand-mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  body #elgatec-calendar-float.elgatec-calendar-in-nav .flipper,
  body #elgatec-calendar-float.elgatec-calendar-in-nav .front,
  body #elgatec-calendar-float.elgatec-calendar-in-nav .tick-circle,
  body #elgatec-calendar-float.elgatec-calendar-in-nav .tick-path,
  body #elgatec-calendar-float.elgatec-calendar-in-nav .elgatec-wow-glow {
    animation: none !important;
  }
}
