.o-menu-b {
  padding-top: 0;
  padding-bottom: 0;

  @media (width >=576px) {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

.o-menu-b__container {
  @media (width <575px) {
    width: 100%;
  }
}

.o-menu-b__panel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  position: absolute;
  background: var(--color-white);
  width: 100%;
  box-shadow: 0 1.875rem 0.9375rem -0.1875rem rgb(0 0 0 / 10%);

  @media (width >=576px) {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.625rem;
    max-height: unset;
    background: unset;
    box-shadow: unset;
    overflow: unset;
  }
}

.o-menu-b__mobile-heading {
  background: #415243;
  padding: 1.75rem 0.9375rem 1.625rem 1.4375rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;

  @media (width >=576px) {
    display: none;
  }

  &:hover {
    background-color: #4f6351;
  }
}

.o-menu-b__mobile-arrow {
  display: flex;
  align-items: center;

  & svg {
    stroke: var(--color-white);
    transition: transform 0.3s ease;
  }
}

.o-menu-b__mobile-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-base-size);
  color: var(--color-white);
  text-transform: uppercase;
  margin: 0;
}

.o-menu-b__link-wrapper {
  margin-bottom: 0;

  &:last-of-type {
    margin-bottom: 0;

    @media (width >=576px) {
      margin-bottom: unset;
    }
  }
}

.o-menu-b__link {
  padding: 1.625rem 0.9375rem 1.625rem 1.4375rem;
  width: 100%;
  color: var(--color-black);

  &:hover {
    background-color: #c1ab94 !important;
    color: var(--color-white);
  }

  &:not(.a-button--primary) {
    background-color: var(--color-white);

    &:hover {
      background-color: var(--color-red);
    }
  }

  @media (width >=576px) {
    padding: 0.625rem 1.25rem;
    width: auto;
  }

  &.active {
    color: var(--color-white);
  }
}

.o-menu-b__nav.active {
  & .o-menu-b__mobile-arrow svg {
    transform: rotate(180deg);
  }

  & .o-menu-b__mobile-title {
    color: var(--color-white);
  }

  & .o-menu-b__mobile-heading {
    background-color: #415243;

    &:hover {
      .o-menu-b__mobile-title {
        color: var(--color-white);
      }

      .o-menu-b__mobile-arrow svg {
        stroke: var(--color-white);
      }
    }
  }
}