.sidebar-preview {
  background-color: var(--c-secondary);
  padding: 1.6rem;
  width: 100%;
}

@media screen and (min-width:992px) {
  .sidebar-preview {
    padding: 4rem .8rem;
    max-width: 18.5rem;
    min-width: 18.5rem;
  }
}

.sidebar-preview__title {
  font-size: 1.8rem;
  font-weight: var(--fw-sembibold);
  line-height: 2rem;
  color: var(--c-white);
  padding-left: 1.6rem;
  margin-bottom: 2.4rem;
}

@media screen and (max-width:991px) {
  .sidebar-preview__title {
    margin-bottom: 1.6rem;
  }
}

@media screen and (max-width:991px) {
  .sidebar-preview__list-wrapper {
    height: 4.2rem;
    position: relative;
  }

  .sidebar-preview__list-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.8rem;
    transform: translateY(-50%);
    background-image: url(../../assets/icons/arrow-down.svg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat; 
    height: 1.6rem;
    width: 1.6rem;
    z-index: 99;
    pointer-events: none;
  }

  .sidebar-preview__list-wrapper--open.sidebar-preview__list-wrapper::after {
    transform: translateY(-50%) rotate(180deg);
  }
}

.sidebar-preview__list {
  display: flex;
  flex-direction: column;
  border: 0;
}

@media screen and (max-width:991px) {
  .sidebar-preview__list {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    overflow: hidden;
    border-radius: 4px;
  }

  .sidebar-preview__list-wrapper--open .sidebar-preview__list {
    height: auto;
  }
}

.sidebar-preview__element {
  display: flex;
  width: 100%;
}

@media screen and (max-width:991px) {
  .sidebar-preview__element {
    order: 2;
  }
}

.sidebar-preview__link {
  display: inline-flex;
  width: 100%;
  line-height: 1.8rem;
  padding: 1.2rem 1.6rem;
  border-radius: 4px;
  color: var(--c-grey);
}

@media screen and (max-width:991px) {
  .sidebar-preview__link {
    border-radius: 0px;
    background-color: #585a5a;
  }
}

.sidebar-preview__link:hover, .sidebar-preview__link:focus {
  color: var(--c-white);
}

.sidebar-preview__element--active:not(.sidebar-preview__element--has-children) .sidebar-preview__link {
  color: var(--c-white);
  font-weight: var(--fw-medium);
  background-color: var(--c-light-grey-hover);
}

@media screen and (max-width:991px) {
  .sidebar-preview__element--active {
    order: 1;
  }

  .sidebar-preview__list-wrapper--open .sidebar-preview__element--active {
    border-bottom: 1px solid var(--c-grey);
  }
}