.bnacbr-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
  background: var(--bnacbr-color-header);
}

.bnacbr-header__frame {
  display: grid;
  grid-template-columns: 197px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  min-height: 88px;
  padding-inline: 32px;
}

.bnacbr-header__brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 4px;
}

.bnacbr-header__logo {
  display: block;
  width: 120px;
  height: 24px;
  object-fit: contain;
}

.bnacbr-header__navigation {
  display: flex;
  min-width: 0;
  align-self: stretch;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bnacbr-header__navigation::-webkit-scrollbar {
  display: none;
}

.bnacbr-header__item {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--bnacbr-color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.bnacbr-header__item[aria-current="page"],
.bnacbr-header__item:hover {
  color: var(--bnacbr-color-text);
}

.bnacbr-header__item:focus-visible {
  outline-offset: -4px;
}

.bnacbr-header__item[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--bnacbr-color-text);
  content: "";
}

.bnacbr-header__icon {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.bnacbr-header__icon::before {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  mask: var(--bnacbr-icon-source) center / contain no-repeat;
  content: "";
}

.bnacbr-header__icon--application {
  --bnacbr-icon-source: url("../images/bnacbr-icone-aplicativo.svg");
}

.bnacbr-header__icon--casino {
  --bnacbr-icon-source: url("../images/bnacbr-icone-cassino.svg");
}

.bnacbr-header__icon--gift {
  --bnacbr-icon-source: url("../images/bnacbr-icone-presente.svg");
}

.bnacbr-header__icon--login {
  --bnacbr-icon-source: url("../images/bnacbr-icone-acesso-conta.svg");
}

.bnacbr-header__icon--about {
  --bnacbr-icon-source: url("../images/bnacbr-icone-sobre-empresa.svg");
}

.bnacbr-header__icon--contact {
  --bnacbr-icon-source: url("../images/bnacbr-icone-contato.svg");
}

.bnacbr-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.bnacbr-header__gift,
.bnacbr-header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bnacbr-color-surface);
  color: var(--bnacbr-color-text);
}

.bnacbr-header__gift {
  width: 40px;
  height: 40px;
}

.bnacbr-header__account {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.bnacbr-header__account--primary {
  background: var(--bnacbr-color-accent);
}

@media (hover: hover) {
  .bnacbr-header__gift:hover,
  .bnacbr-header__account:hover {
    background: var(--bnacbr-color-surface-hover);
  }

  .bnacbr-header__account--primary:hover {
    background: var(--bnacbr-color-accent-hover);
  }
}

@media (max-width: 1000px) {
  .bnacbr-header__frame {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    padding-inline: 24px;
  }

  .bnacbr-header__navigation {
    gap: 8px;
  }
}

@media (max-width: 800px) {
  .bnacbr-header__frame {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding-inline: 16px;
  }

  .bnacbr-header__brand,
  .bnacbr-header__actions {
    margin-block: 14px;
  }

  .bnacbr-header__navigation {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: 16px;
  }

  .bnacbr-header__actions {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (max-width: 400px) {
  .bnacbr-header__frame {
    padding-inline: 12px;
  }

  .bnacbr-header__logo {
    width: 100px;
    height: 20px;
  }

  .bnacbr-header__actions {
    gap: 6px;
  }

  .bnacbr-header__gift {
    width: 32px;
    height: 32px;
  }

  .bnacbr-header__account {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .bnacbr-header__navigation {
    gap: 8px;
  }
}
