.custom-menu-drawer {
  ul {
    list-style: none;
    padding-left: 0;

    li {
      padding: 0 16px;
    }
  }

  a {
    text-decoration: none;
    font-size: 0.9285714286em;
  }

  .menu-drawer__navigation {
    padding: 0;
    max-width: 100vw;

    .menu-drawer__menu > li {
      border-top: solid 1px rgba(53, 53, 52, 0.2);
      margin-bottom: 0;

      &:last-child {
        border-bottom: solid 1px rgba(53, 53, 52, 0.2);
      }
    }
  }

  .menu-item-link,
  .menu-item-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-item-submenu-header {
    color: var(--text-text-primary, #252525);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 19.5px */
    letter-spacing: -0.3px;
    padding: 16px 0;
  }

  .menu-item-link {
    padding: 16px 0;
    > a {
      color: var(--text-text-primary, #252525);
      font-size: 18px;
      font-style: normal;
      font-weight: 400;
      line-height: 120%; /* 21.6px */
    }

    .btn-collapse {
      background-color: #f0e9db;
    }
  }

  /* improve this animation */
  .menu-item-submenu,
  .menu-item-submenu-links {
    transform-origin: top;
    transition:
      max-height 0.3s ease-in-out,
      padding 0.3s ease-in-out;
    will-change: max-height, padding;
    max-height: 4320px;
    overflow: hidden;

    &:not(.collapse--active) {
      max-height: 0;
      padding: 0 !important;
      visibility: hidden;
    }
  }

  .menu-item-submenu {
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;

    .menu-item-submenu-list {
      border-radius: 8px;
      background-color: #f0e9db;
      transition: background-color 0.3s;

      a {
        font-size: 1.5rem;
        line-height: 130%;
      }

      img {
        object-fit: cover;
        width: 100%;
        height: 100%;
      }

      &:not(:last-child) {
        margin-bottom: 4px;
      }

      &:not(.collapse--active) {
        background-color: #f7f3e9;
      }
    }

    .menu-item-submenu-links {
      > li {
        padding: 16px 0;
      }

      > li:last-child {
        padding-bottom: 32px;
      }

      .menu-item-submenu-links-header {
        color: #666;
        font-size: 10px;
        letter-spacing: 0.4px;
        line-height: 120%;
        text-transform: uppercase;
      }

      .menu-item-submenu-links-list {
        border-left: solid 1px rgba(53, 53, 52, 0.2);
        margin-top: 16px;
        padding: 4px 0 4px 16px;
        li {
          margin-bottom: 8px;
          padding: 0;
          &:last-child {
            margin-bottom: 0;
          }
        }
        a {
          letter-spacing: -0.3px;
        }
      }
    }
    @media screen and (min-width: 768px) {
      &.menu-with-images {
        flex-direction: row;
        .menu-item-submenu-nav:only-child {
          grid-template-columns: 1fr 1fr 1fr 1fr;
        }
      }
    }
  }

  .menu-item-submenu[aria-hidden="true"] .btn-collapse {
    visibility: hidden;
  }

  .btn-collapse {
    border: 0;
    padding: 10px;
    background-color: transparent;
    border-radius: 8px;
    line-height: 0;
    color: #000;

    svg:first-child,
    &.btn-collapse--active svg:last-child {
      display: block;
    }

    svg:last-child,
    &.btn-collapse--active svg:first-child {
      display: none;
    }
  }

  /* Menu - Explore & Learn */
  .menu-with-images {
    .menu-item-submenu-nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-auto-rows: 1fr;
      gap: 16px 16px;

      .menu-item-submenu-list {
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 0 !important;
        padding: 0;
        background-color: #f7f3e9;

        > a {
          display: flex;
          flex-direction: column;
          height: 100%;

          .menu-item-submenu-list-title {
            min-height: 58px;
            flex-shrink: 0;
            padding: 8px;
            font-size: 15px;
            letter-spacing: -0.3px;
          }
        }
      }
    }
    &#learn {
      .megamenu-card-button-image {
        display: none;
      }
    }
    @media screen and (min-width: 768px) {
      .menu-item-submenu-nav {
        flex: 100%;
        .menu-item-submenu-list {
          > a {
            .menu-item-submenu-list-title {
              font-size: 16px;
              letter-spacing: -0.16px;
            }
          }
        }
        &.menu-items-1 {
          grid-template-columns: 1fr;
        }
        &.menu-items-2 {
          .menu-item-submenu-list {
            max-height: calc(50% - 8px);
          }
        }
      }
    }
  }
  /* End Menu - Explore & Learn */

  /* Post Menu */
  .post-menu-links {
    margin: 24px 0;

    a {
      font-size: 1.5rem;
      line-height: 130%;
    }

    li + li {
      margin-top: 16px;
    }
  }
  /* End - Post Menu */

  /* Utility Links */
  .menu-drawer__utility-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px 64px;

    a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0;
      font-size: 1.5rem;
      line-height: 130%;

      .icon-account {
        width: 24px;
        margin-right: 0;
      }
    }
  }
  /* End - Utility Links */
}
