.header-bar {
  align-items: center;
  background: #fff;
  column-gap: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, max-content);
  min-height: 58px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 14px;
  padding-left: 18px;
  padding-right: 18px;
  position: relative;
  width: 100%;
  z-index: 20;
}

.header-bar .header-orders-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #303034;
  display: grid;
  justify-self: end;
  line-height: 0;
  margin: 6px 0 0;
  padding: 4px;
  place-items: center;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.header-bar .header-orders-button svg {
  display: block;
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.header-bar .header-orders-button b {
  background: #111114;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 7px;
  font-weight: 700;
  height: 12px;
  line-height: 1;
  margin: 0;
  min-width: 12px;
  padding: 0 3px;
  place-items: center;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.header-fixed {
  margin-inline: auto;
  position: static;
  width: min(430px, 100vw);
  z-index: 900;
}

.header-avatar-group {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.header-avatar-button {
  --header-avatar-fade-duration: 300ms;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #1d1d1f;
  display: grid;
  flex: 0 0 auto;
  height: 40px;
  isolation: isolate;
  justify-self: start;
  margin: 0;
  overflow: visible;
  padding: 3px;
  place-items: center;
  position: relative;
  transform: none;
  width: 40px;
  -webkit-tap-highlight-color: transparent;
}

.header-avatar-button::before {
  animation: header-avatar-skeleton-shimmer 0.65s ease-in-out infinite;
  background: linear-gradient(100deg, #f1f1f3 22%, #fafafa 42%, #f1f1f3 62%);
  background-size: 220% 100%;
  border-radius: 999px;
  content: "";
  height: 48px;
  inset: 0;
  margin: auto;
  opacity: 1;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--header-avatar-fade-duration) ease;
  width: 48px;
  z-index: 0;
}

.header-avatar-button--initialized::before {
  animation: none;
  opacity: 0;
}


.header-avatar-image {
  animation: header-avatar-bob 9.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  background: transparent;
  background-color: transparent;
  border-radius: 999px;
  display: block;
  height: 48px;
  inset: 0;
  margin: auto;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity var(--header-avatar-fade-duration) ease;
  transform-origin: center bottom;
  width: 48px;
  will-change: opacity, transform;
  z-index: 1;
}

.header-avatar-button--ready .header-avatar-image {
  opacity: 1;
}

.header-store-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  margin-left: 6px;
  min-width: 0;
  text-align: left;
}

.header-store-title h1 {
  font-family: inherit;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-store-title p {
  font-family: inherit;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-store-title h1 {
  color: #1d1d1f;
  font-size: 14.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.header-store-title p {
  color: #6f7785;
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.24px;
  line-height: normal;
  min-height: 1em;
}

.header-items-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #303034;
  display: grid;
  justify-self: end;
  line-height: 0;
  margin: 6px 0 0;
  padding: 4px;
  place-items: center;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.header-items-button svg {
  display: block;
  fill: currentColor;
  height: 24px;
  width: 24px;
}

.header-items-button b {
  background: #111114;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 7px;
  font-weight: 700;
  height: 12px;
  line-height: 1;
  margin: 0;
  min-width: 12px;
  padding: 0 3px;
  place-items: center;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.header-items-count-wrap {
  align-content: center;
  display: grid;
  gap: 3px;
  justify-items: center;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.header-items-count-value {
  color: #303034;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.24px;
  line-height: normal;
}

.header-items-count-label {
  color: #6f7785;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.24px;
  line-height: normal;
}

@keyframes header-avatar-bob {

  0%,
  68%,
  to {
    transform: translateY(0) scale(1);
  }

  76% {
    transform: translateY(-2px) scale(1.025);
  }

  84% {
    transform: translateY(-4px) scale(1.045);
  }

  92% {
    transform: translateY(-1px) scale(1.015);
  }
}

@keyframes header-avatar-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-avatar-button::before {
    animation: none;
  }

  .header-avatar-image {
    animation: none;
  }
}

@media (max-width: 380px) {
  .header-bar {
    column-gap: 14px;
    grid-template-columns: minmax(0, 1fr) repeat(2, max-content);
    min-height: 56px;
    padding-left: 12px;
    padding-right: 10px;
  }

  .header-avatar-group {
    gap: 8px;
  }

  .header-avatar-button {
    height: 38px;
    width: 38px;
  }

  .header-store-title h1 {
    font-size: 13.5px;
  }

  .header-store-title p {
    font-size: 13px;
  }
}
