.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 31;
}

.nav-shadow {
  box-shadow: 0px 6px 16px 0 rgba(61, 71, 81, 0.06), 0px 0px 4px -4px rgba(61, 71, 81, 0.04);
}

.b-nav {
  width: 100%;
  position: relative;
  background: #fff;
}

.b-nav a,
.b-nav button {
  cursor: pointer;
}

.b-nav a {
  text-decoration: none;
}

.b-nav button {
  outline: none;
  border: none;
  box-shadow: none;
  background: transparent;
}

.b-nav [data-btn-type] {
  display: inline-flex;
  height: 36px;
  width: 96px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  border: none;

  /* Button */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.25px;
  text-transform: capitalize;
}

.b-nav [data-btn-type='primary'] {
  background: var(--primary-500);
  color: #000;
}

.b-nav [data-btn-type='secondary'] {
  background: transparent;
  border: 1px solid var(--primary-800);
  color: var(--primary-800);
}

.b-nav [data-btn-type='secondary']:hover {
  background: rgba(95, 159, 47, 0.04);
}

.b-nav__main,
.b-nav__extended > div {
  width: 1120px;
  margin: 0 auto;
}

.b-nav__main {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b-nav__head-mobile > a {
  display: block;
  height: 40px;
}

.b-nav__head-mobile > a > img {
  max-height: 100%;
}

.b-nav__link {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: end;
}

.b-nav__link button,
.b-nav__link a {
  border-radius: 8px;
  margin: 0 8px;
  padding: 8px;

  /* Subtitle 2 Medium */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.25px;
  color: var(--onsurface-medium-emphasis);
}

.b-nav__link button:hover,
.b-nav__link a:hover {
 background-color: rgba(0, 0, 0, 0.04);
}

.b-nav__link button {
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease-out;
}

.b-nav__link button > svg {
  fill: currentColor;
  margin: 0 0 0 4px;
  transition: all 0.2s ease-out;
}

.b-nav__link button[data-active='1'] {
  background: rgba(0, 0, 0, 0.1);
}

.b-nav__link button[data-active='1'] * {
  color: var(--onsurface-high-emphasis);
}

.b-nav__link button[data-active='1'] > svg {
  transform: rotate(180deg);
}

.b-nav__menu-mobile,
.b-nav__account {
  display: flex;
  align-items: center;
}

.b-nav__account {
  margin: 0 0 0 8px;
}

.b-nav__account a {
  margin: 0 0 0 8px;
}

.b-nav__account button {
  margin: 0 0 0 16px;
}

.b-nav__account a[data-account='account'] {
  display: flex;
  align-items: center;
}

.b-nav__account--user {
  display: flex;
  align-items: center;
}

.b-nav__account--user svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
  margin: 0 8px 0 0;
}

.b-nav__account--user a {
  /* Body 2 Medium */
  font-family: Open Sans;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px; /* 142.857% */
  color: var(--onsurface-high-emphasis);
}

.b-nav__account--user a:hover {
  color: var(--primary-700);
}

.b-nav__extended {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 10;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.b-nav__extended > div {
  padding: 16px 0;
}

.b-nav__extended [data-grid='1'] {
  margin: 0 -16px;
  display: grid;
  column-gap: 24px;
  row-gap: 6px;
}

.b-nav__extended [data-grid-count='2'] {
  grid-template-columns: 400px 400px;
}

.b-nav__extended [data-grid-count='3'] {
  grid-template-columns: auto auto auto;
}

.b-nav__extended [data-grid-count='4'] {
  grid-template-columns: auto auto auto auto;
}

.b-nav__extended [data-grid='1'] > a {
  min-height: 80px;
  padding: 16px;
  display: flex;
  align-items: start;
  justify-content: start;
  border-radius: 8px;
}

.b-nav__extended [data-grid='1'] > a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.b-nav__extended [data-grid='1'] > a > img {
  width: 48px;
  height: 48px;
  margin: 0 16px 0 0;
}

.b-nav__extended [data-grid='1'] > a [data-wrapper='title'] {
  display: flex;
  align-items: center;
}

.b-nav__extended [data-grid='1'] > a [data-wrapper='title'] > div {
  border-radius: 4px;
  background: #e63312;
  padding: 2px 6px;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px; /* 142.857% */
  letter-spacing: 0.25px;
  color: #fff;
  margin: 0 0 0 8px;
}

.b-nav__extended [data-grid='1'] > a [data-text='title'] {
  /* Subtitle 1 Medium */
  font-family: Montserrat;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px; /* 150% */
  letter-spacing: 0.25px;
  color: var(--onsurface-high-emphasis);
}

.b-nav__extended [data-grid='1'] > a [data-text='desc'],
.b-nav__extended [data-grid='1'] > a [data-text='desc'] * {
  margin: 4px 0 0;
  /* Body 2 Regular */
  font-family: Open Sans;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px; /* 142.857% */
  color: var(--onsurface-medium-emphasis);
}

@media screen and (min-width: 1200px) {
  .b-nav__head-mobile > img,
  .b-nav__head-mobile > button,
  .b-nav__mobile-menu-footer,
  .b-nav__account--user button[data-btn-type] {
    display: none;
  }

  .b-nav__head-mobile > a {
    padding: 0 16px;
  }
}

/* Tab Large */
@media screen and (max-width: 1199px) {
  .b-nav__main,
  .b-nav__extended > div {
    width: auto;
    margin: 0;
  }

  .b-nav__main {
    display: block;
    position: relative;
    /* overflow: hidden; */
  }

  .b-nav__head-mobile,
  .b-nav__link button,
  .b-nav__link a,
  .b-nav__extended [data-grid='1'] > a,
  .b-nav__account--guest,
  .b-nav__account--user,
  .b-nav__mobile-menu-footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .b-nav__head-mobile {
    width: 100%;
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .b-nav__head-mobile > img {
    display: block;
    cursor: pointer;
  }

  .b-nav__menu-mobile {
    display: block;
    position: absolute;
    left: 100%;
    top: 56px;
    background: #fff;
    width: 100%;
    transition: all 0.2s ease-out;
    height: calc(100vh - 56px);
    overflow: hidden;
    width: 0;
  }

  /* .b-nav__main:has(.b-nav__menu-mobile--active) {
    overflow: inherit;
  } */
  .b-nav__menu-mobile--active {
    width: 100%;
    left: 0;
    overflow: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .b-nav__link {
    flex-direction: column;
    align-items: stretch;
  }

  .b-nav__link button,
  .b-nav__link a {
    padding-top: 16px;
    padding-bottom: 16px;
    width: 100%;
    margin: 0;

    /* Subtitle 1 Medium */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    letter-spacing: 0.25px;
    color: var(--onsurface-high-emphasis);
  }

  .b-nav__link > div,
  .b-nav__link > a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }



  /* .b-nav__link button:hover,
  .b-nav__link a:hover {
    color: #5f9f2f;
  }
 */
  .b-nav__link button {
    border-radius: 0;
    display: flex;
    justify-content: space-between;
  }

  .b-nav__link button[data-active='1'] {
    background: none;
  }

  .b-nav__extended {
    position: relative;
    width: 100%;
    z-index: 0;
    max-height: 0;
    transition: max-height 0.2s ease-out;
    box-shadow: none;
  }

  .b-nav__extended [data-grid='1'] {
    margin: 0;
    /* display: flex;
    flex-direction: column; */
    column-gap: 0;
    row-gap: 0;
    grid-template-columns: auto;
  }

  .b-nav__extended > div {
    padding: 0;
  }

  .b-nav__extended [data-grid='1'] > a {
    padding-top: 16px;
    padding-bottom: 16px;
    flex-direction: column;
    border: none;
  }

  .b-nav__extended [data-grid='1'] > a > img {
    width: 24px;
    height: 24px;
    margin: 0 0 8px 0;
  }

  .b-nav__account {
    margin: 0;
  }

  .b-nav__account--user,
  .b-nav__account--guest {
    padding-top: 24px;
    padding-bottom: 0;
  }

  .b-nav__account--guest {
    display: grid;
    width: 100%;
    grid-template-columns: auto auto;
    column-gap: 16px;
  }

  .b-nav__account--guest > *,
  .b-nav__account--user > * {
    margin: 0 !important;
  }

  .b-nav__account--guest [data-btn-type] {
    width: 100%;
  }

  .b-nav__account--user {
    display: block;
    width: 100%;
  }

  .b-nav__account--user a {
    /* Body 1 Medium */
    font-family: Open Sans;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    color: var(--onsurface-high-emphasis);
  }

  .b-nav__account--user button[data-btn-type] {
    display: block;
    width: 100%;
    margin-top: 16px !important;
  }

  .b-nav__mobile-menu-footer {
    padding-top: 0;
    padding-bottom: 48px;
  }

  .b-nav__mobile-menu-footer > div {
    margin: 32px 0 0;
  }

  .b-nav__mobile-menu-footer [data-footer='social-media'] p {
    /* Subtitle 1 Medium */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    letter-spacing: 0.25px;
    color: var(--onsurface-high-emphasis);
  }

  .b-nav__mobile-menu-footer [data-footer='social-media'] a {
    display: inline-block;
    margin: 12px 12px 0 0;
  }

  .b-nav__mobile-menu-footer [data-footer='social-media'] img {
    width: 48px;
    height: 48px;
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] span {
    /* H6 */
    font-family: Montserrat;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px; /* 150% */
    letter-spacing: 0.25px;
    color: var(--onsurface-high-emphasis);
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] p {
    margin: 12px 0 0;
    /* Body 2 Regular */
    font-family: Open Sans;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
    color: var(--onsurface-medium-emphasis);
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] div {
    margin: 20px 0 0;
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] div > a {
    margin: 0 12px 0 0;
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] div a img {
    width: auto;
    height: 48px;
  }

  .b-nav__mobile-menu-footer [data-footer='copyright'] {
    padding: 16px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
  }

  .b-nav__mobile-menu-footer [data-footer='copyright'] p {
    /* Body 3 Regular */
    font-family: Open Sans;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    color: var(--onsurface-medium-emphasis);
  }
}

/* Tab Small */
@media screen and (max-width: 768px) {
  .b-nav__head-mobile,
  .b-nav__link button,
  .b-nav__link a,
  .b-nav__extended [data-grid='1'] > a,
  .b-nav__account--guest,
  .b-nav__account--user,
  .b-nav__mobile-menu-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .b-nav__mobile-menu-footer > div {
    margin: 24px 0 0;
  }

  .b-nav__mobile-menu-footer [data-footer='social-media'] img {
    width: 36px;
    height: 36px;
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] span {
    /* Subtitle 1 Medium */
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
    letter-spacing: 0.25px;
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] p {
    /* Body 3 Regular */
    font-family: Open Sans;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
  }

  .b-nav__mobile-menu-footer [data-footer='downloads'] div a img {
    width: auto;
    height: 32px;
  }

  .b-nav__extended [data-grid='1'] > a [data-text='title'] {
    /* Subtitle 2 Medium */
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
    letter-spacing: 0.25px;
  }

  .b-nav__extended [data-grid='1'] > a [data-text='desc'],
  .b-nav__extended [data-grid='1'] > a [data-text='desc'] * {
    /* Body 3 Regular */
    font-family: Open Sans;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
  }
}

/* Mobile */
@media screen and (max-width: 480px) {
  .b-nav__head-mobile,
  .b-nav__link button,
  .b-nav__link a,
  .b-nav__extended [data-grid='1'] > a,
  .b-nav__account--guest,
  .b-nav__account--user,
  .b-nav__mobile-menu-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}
