.mobile-menu {
  z-index: 100000;
  opacity: 0;
  display: flex;
  position: fixed;
  width: calc(100% - 32px);
  right: 16px;
  bottom: 16px;
  align-items: flex-start;
  justify-content: center;
  transform: translateY(300px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  max-height: 80vh;
  overflow: hidden;
  padding-top: 21px;
  pointer-events: none;
  &.open {
    opacity: 1;
    visibility: visible;
    position: fixed;
    transform: translateY(0px);
    pointer-events: auto;
  }
  .mobile-menu__close {
    width: 42px;
    height: 42px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 0;
    z-index: 10;
    svg {
      transform: rotateZ(45deg);
    }
    &:hover {
      svg {
        path {
          stroke: var(--hp-color-blue);
        }
      }
    }
  }

  .mobile-menu__wrapper {
    background-color: #fff;
    border-radius: 8px;
    overflow-y: auto;
    width: 100%;
    max-height: 80vh;
    .mobile-menu__content {
      width: 100%;
      display: flex;
      max-height: 100%;
      position: relative;
      height: auto;
      transition: all 0.3s ease-in-out;

      .mobile-menu__section {
        padding: 32px 16px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: stretch;

        display: none;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        &.active {
          display: flex;
          width: 100%;
        }
        &.visible {
          opacity: 1;
        }
        .mobile-menu__back {
          display: flex;
          align-items: center;
          justify-content: flex-start;
          margin-bottom: 24px;
          svg {
            width: 20px;
            margin-right: 8px;
          }
        }
        .mobile-menu__headline {
          margin-bottom: 12px;
        }
        .mobile-menu__link {
          cursor: pointer;
        }
        ul {
          width: 100%;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: stretch;
          padding: 0;
          margin: 0;
          li {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin-bottom: 24px;
            &.collections-view-all {
              margin-top: 24px;
              a {
                text-transform: none;
                svg {
                  margin-left: 6px;
                }
              }
            }
            &.collection {
              margin-bottom: 4px;
              height: 34px;
              a {
                height: 34px;
                text-transform: none;
              }
              .collection__name {
                margin-left: 12px;
              }
              .collection__icon {
                width: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                object-fit: contain;
              }
            }
            a {
              text-transform: uppercase;
              display: flex;
              align-items: center;
              justify-content: flex-start;
              text-decoration: none;
            }
            &:last-of-type {
              margin-bottom: 0;
            }
          }
        }
        .mobile-menu__custom {
          display: grid;
          grid-template-columns: 1fr 1fr;
          grid-gap: 16px;
          a {
            text-decoration: none;
            .custom-link__text {
              margin-top: 12px;
              display: inline-flex;
            }
          }
        }
        .mobile-menu__footer {
          display: flex;
          flex-direction: row;
          align-items: flex-start;
          justify-content: flex-start;
          margin-top: 56px;
          padding-top: 24px;
          border-top: 1px solid var(--hp-color-light);
          width: 100%;

          .mobile-menu__icons {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            .icon {
              width: 20px;
              height: 20px;
              margin-right: 12px;
            }
          }
        }
      }
    }
  }
}
