/* Balance the storefront navigation between the brand and header controls. */
.gf-top > .gf-tabs > :is(a, button) {
  flex: 1 1 0;
  min-width: max-content;
  justify-content: center;
  padding-inline: clamp(5px, 1vw, 14px);
}

@media (min-width: 861px) {
  .gf-top > .gf-tabs {
    flex: 1 1 0;
  }
}

@media (min-width: 861px) and (max-width: 1240px) {
  .gf-top > .gf-brand .gf-full {
    height: 88px;
    margin-block: -24px -20px;
  }

  .gf-top .gf-right > .gf-find {
    display: none;
  }

  .gf-top .gf-right > .gf-find-btn {
    display: grid;
  }
}

@media (min-width: 861px) and (max-width: 960px) {
  .gf-top > .gf-tabs > :is(a, button) {
    padding-inline: 5px;
    font-size: 15px;
  }
}

/* A large cart total must not push the menu or the search onto another line. */
@media (min-width: 761px) and (max-width: 1020px),
       (min-width: 1241px) and (max-width: 1300px) {
  .gf-top .gf-loot-sum {
    display: none;
  }
}

.gf-tabs .gf-login--telegram {
  padding-inline: 9px;
}

.gf-top > .gf-tabs > .gf-login:not(.gf-login--telegram) {
  display: block;
  min-width: 0;
  align-content: center;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
}

.gf-tabs .gf-login--telegram .gf-login-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 13px;
  color: var(--gf-navy);
  background: linear-gradient(180deg, #fff1b0, var(--gf-gold));
  box-shadow: 0 4px 0 #b87a1d;
  transform: skewX(-10deg);
  animation: gf-login-glow 5.5s ease-in-out infinite;
  transition: box-shadow .15s;
}

.gf-tabs .gf-login--telegram .gf-login-face > * {
  transform: skewX(10deg);
}

@keyframes gf-login-glow {
  0%, 100% { box-shadow: 0 4px 0 #b87a1d, 0 0 5px #ffda7745; }
  50% { box-shadow: 0 4px 0 #b87a1d, 0 0 18px #ffda77a0; }
}

.gf-tabs .gf-login--telegram:hover .gf-login-face {
  animation: none;
  background: #fff1b0;
  box-shadow: 0 4px 0 #b87a1d, 0 0 12px #ffdb7866;
}

.gf-tabs .gf-login--telegram:focus-visible {
  outline: none;
}

.gf-tabs .gf-login--telegram:focus-visible .gf-login-face {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .gf-tabs .gf-login--telegram .gf-login-face {
    min-height: 32px;
    gap: 6px;
    padding-inline: 10px;
  }
}

@media (max-width: 760px) {
  .gf-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .gf-top > .gf-burger {
    grid-area: 1 / 1;
    justify-self: start;
  }

  .gf-top > .gf-brand {
    grid-area: 1 / 2;
    justify-self: center;
  }

  .gf-top > .gf-right {
    grid-area: 1 / 3;
    justify-self: end;
    margin-left: 0;
  }

  .gf-top > .gf-tabs {
    grid-area: 2 / 1 / auto / -1;
  }
}

@media (max-width: 480px) {
  .gf-top > .gf-tabs > :is(a, button) {
    padding-inline: 4px;
    font-size: clamp(11px, 3.4vw, 14px);
  }

  .gf-tabs .gf-login--telegram .gf-login-face {
    gap: 4px;
    padding-inline: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-tabs .gf-login--telegram .gf-login-face {
    animation: none;
    transition: none;
  }
}
