@import "../../../assets/scss/variables";

.sidebar {
  &-button {
    img {
      filter: $svg-default;
    }

    svg {
      filter: $svg-default;
    }
  }

  &-backdrop {
    position: fixed;
    cursor: default !important;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: $overlay-bg; // fully transparent, but clickable
    z-index: 9999; // lower than sidebar, higher than everything else
    transition: opacity 0.3s ease;
    opacity: 0;

    &.open {
      opacity: 1;
    }
  }

  &-overlay {

    position: fixed;
    overflow-y: scroll;
    bottom: 0;
    right: -400px;
    width: 35vw;
    height: 100vh;
    background: $form-background;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;

    &.open {
      transform: translateX(0);
    }

    &.closed {
      transform: translateX(100%);
    }

    z-index: 100000; // above backdrop

    &.open {
      right: 0;
      padding-top: 70px;
      padding-left: 35px;
      padding-right: 35px;
    }

    @media (max-width: 1400px) {
      width: 80vw;
    }

    @media (max-width: 991px) {
      width: 100vw;
      z-index: 9999;
    }
  }

  &-header {
    margin-bottom: 40px;

    &-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 11px;
      margin-top: 30px;


      img {
        width: 53px;
        height: 42px;
        filter: $svg-default;
      }

      h3 {
        font-size: 1.6rem;
        font-weight: bold;
      }
    }
  }

  &-content {
    // height:1000px;
    //padding: 0px 55px;
    height: calc(100% - 80px);
#childrens{
  height:100%;
}
    img {
      filter: $svg-default;
    }
  }
}
