.gl-header-profile-mobile-avatar[hidden],
.gl-header-profile-desktop[hidden],
.gl-header-login-mobile-menu[hidden] {
  display: none !important;
}

.burger-menu.gl-header-profile-slot--boot,
.gl-header-profile-desktop.gl-header-profile-slot--boot {
  visibility: hidden;
}

.burger-menu.gl-header-profile-slot--ready,
.gl-header-profile-desktop.gl-header-profile-slot--ready {
  visibility: visible;
}

.gl-header-profile-mobile-avatar {
  display: block;
  width: 38px;
  height: 38px;
  margin-top: -2px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f4fa;
}

.navik-menu > ul > li.gl-header-profile-desktop {
  align-items: center;
  padding: 0 8px !important;
}

.gl-header-profile-desktop__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(148, 95, 253, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #20173a;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  box-shadow: 0 10px 24px rgba(34, 23, 74, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gl-header-profile-desktop__button:hover,
.gl-header-profile-desktop__button:focus {
  border-color: rgba(148, 95, 253, .32);
  box-shadow: 0 12px 28px rgba(34, 23, 74, .12);
  transform: translateY(-1px);
  outline: 0;
}

.gl-header-profile-desktop__avatar {
  width: 34px;
  height: 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f4fa;
  box-shadow: 0 8px 18px rgba(148, 95, 253, .18);
}

.gl-header-profile-desktop__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  text-align: left;
  line-height: 1.05;
}

.gl-header-profile-desktop__username {
  max-width: 110px;
  overflow: hidden;
  color: #20173a;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .burger-menu.gl-has-instagram-profile {
    display: none !important;
  }

  .navik-menu > ul > li.gl-header-profile-desktop,
  .navik-menu > ul > li.gl-header-orders-desktop {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
  }

  .navik-menu > ul > li.gl-header-profile-desktop:not([hidden]) {
    display: inline-flex !important;
    align-items: center !important;
  }

  .navik-menu > ul > li.gl-header-orders-desktop > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin-left: 4px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 1199px) {
  .navik-header-container {
    --gl-header-height: 70px;
    --gl-header-edge: clamp(8px, 3.4vw, 14px);
    --gl-header-gap: clamp(4px, 1.8vw, 8px);
    --gl-header-login-width: clamp(66px, 22vw, 80px);
    --gl-header-profile-width: clamp(50px, 16vw, 58px);
    --gl-header-orders-width: clamp(82px, 27vw, 104px);
    --gl-header-pill-height: clamp(38px, 10.8vw, 42px);
    --gl-header-orders-font: clamp(10px, 3vw, 12px);
    --gl-header-login-font: clamp(10.5px, 3vw, 12px);
    --gl-header-login-reserved: calc(var(--gl-header-login-width) + var(--gl-header-orders-width) + (var(--gl-header-edge) * 2) + (var(--gl-header-gap) * 2));
    --gl-header-profile-reserved: calc(var(--gl-header-profile-width) + var(--gl-header-orders-width) + (var(--gl-header-edge) * 2) + (var(--gl-header-gap) * 2));
  }

  .gl-header-profile-desktop {
    display: none !important;
  }

  .navik-menu > ul > li.gl-header-login-mobile-menu {
    display: block !important;
    padding: 14px 18px 18px !important;
  }

  .gl-header-login-mobile-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 999px !important;
    background-color: #945ffd !important;
    background-image: linear-gradient(135deg, #945ffd 0%, #6f4cff 45%, #4f71ff 100%) !important;
    color: #fff !important;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 14px 30px rgba(79, 113, 255, .22), 0 8px 20px rgba(148, 95, 253, .18);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .gl-header-login-mobile-button:before {
    content: "";
    position: absolute;
    inset: 1px 1px auto;
    height: 48%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .28), transparent);
    pointer-events: none;
  }

  .gl-header-login-mobile-button:hover {
    transform: translateY(-1px);
    filter: saturate(1.06);
    box-shadow: 0 18px 36px rgba(79, 113, 255, .28), 0 10px 24px rgba(148, 95, 253, .22);
  }

  .gl-header-login-mobile-button:active {
    transform: translateY(1px) scale(.99);
  }

  .gl-header-login-mobile-button:focus-visible {
    outline: 3px solid rgba(148, 95, 253, .28);
    outline-offset: 3px;
  }

  .burger-menu.gl-has-instagram-profile {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--gl-header-profile-width);
    height: var(--gl-header-pill-height);
    right: var(--gl-header-edge);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(148, 95, 253, .24);
    padding: 2px 16px 2px 2px;
    transition: opacity .18s ease, transform .18s ease, width .18s ease, box-shadow .18s ease;
  }

  .burger-menu.gl-has-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--gl-header-login-width);
    height: var(--gl-header-pill-height);
    right: var(--gl-header-edge);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(148, 95, 253, .24);
    padding: 0 clamp(20px, 6vw, 24px) 0 clamp(10px, 3.5vw, 14px);
    transition: opacity .18s ease, transform .18s ease, width .18s ease, box-shadow .18s ease;
  }

  .burger-menu.gl-has-instagram-profile:before,
  .burger-menu.gl-has-login-prompt:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #f77737, #e3316b 45%, #945ffd);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .burger-menu.gl-has-instagram-profile:after,
  .burger-menu.gl-has-login-prompt:after {
    content: "";
    position: absolute;
    top: 50%;
    right: 7px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #945ffd;
    border-bottom: 2px solid #945ffd;
    transform: translateY(-62%) rotate(45deg);
    transition: transform .18s ease;
  }

  .burger-menu.gl-has-instagram-profile.menu-open:after,
  .burger-menu.gl-has-login-prompt.menu-open:after {
    transform: translateY(-35%) rotate(225deg);
  }

  .burger-menu.gl-has-instagram-profile .line-menu,
  .burger-menu.gl-has-login-prompt .line-menu {
    display: none !important;
  }

  .gl-header-mobile-login-label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    color: #20173a;
    font-family: "Nunito", sans-serif;
    font-size: var(--gl-header-login-font);
    font-weight: 950;
    line-height: 1;
    pointer-events: none;
  }

  .burger-menu.gl-has-instagram-profile .gl-header-mobile-login-label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
  }

  .navik-header-container {
    position: relative !important;
    display: block !important;
    min-height: var(--gl-header-height);
  }

  .navik-header-container .logo {
    display: flex !important;
    align-items: center !important;
    float: none !important;
    height: var(--gl-header-height) !important;
    max-width: 187px !important;
    max-width: min(187px, max(92px, calc(100% - var(--gl-header-login-reserved)))) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .navik-header-container .logo a {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .navik-header-container .logo img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .gl-header-orders-mobile {
    position: absolute !important;
    top: calc((var(--gl-header-height) - (var(--gl-header-pill-height) - 4px)) / 2) !important;
    right: calc(var(--gl-header-edge) + var(--gl-header-login-width) + var(--gl-header-gap)) !important;
    z-index: 95;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--gl-header-orders-width) !important;
    max-width: var(--gl-header-orders-width) !important;
    min-height: calc(var(--gl-header-pill-height) - 4px) !important;
    padding: 0 clamp(7px, 2.6vw, 12px) !important;
    border-radius: 999px !important;
    font-size: var(--gl-header-orders-font) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transform: none !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap;
  }

  .navik-header-container:has(.burger-menu.gl-has-instagram-profile) .logo {
    max-width: min(187px, max(104px, calc(100% - var(--gl-header-profile-reserved)))) !important;
  }

  .navik-header-container:has(.burger-menu.gl-has-instagram-profile) .gl-header-orders-mobile {
    right: calc(var(--gl-header-edge) + var(--gl-header-profile-width) + var(--gl-header-gap)) !important;
  }

  .burger-menu.gl-has-instagram-profile,
  .burger-menu.gl-has-login-prompt {
    position: absolute !important;
    top: calc((var(--gl-header-height) - var(--gl-header-pill-height)) / 2) !important;
    right: var(--gl-header-edge) !important;
    z-index: 90;
    transform: none !important;
  }

  .navik-menu {
    position: relative;
    z-index: 20;
  }
}

@media (min-width: 1200px) {
  .gl-header-login-mobile-menu {
    display: none !important;
  }
}
