/*  imported from index.less  */

@import "./../../../styles";

.src-layout-cart-styles-index__root {
  position: fixed;
  top: 0px;
  left: 0px;
  display: flex;
  width: calc(100vw + 560px);
  height: 100%;
  animation: src-layout-cart-styles-index__x 0.3s ease-in-out;
  overflow: hidden;
  z-index: 991;
  @media @PHONE_MEDIA {
    width: 200vw;
  }

  &.src-layout-cart-styles-index__show {
    @keyframes src-layout-cart-styles-index__root-show-animation {
      from {
        transform: translateX(0px);
        background: rgba(0, 0, 0, 0);
      }
      to {
        transform: translateX(-560px);
        background: rgba(0, 0, 0, 0.2);
      }
    }

    transform: translateX(-560px);
    background: rgba(0, 0, 0, 0.2);
    animation-name: src-layout-cart-styles-index__root-show-animation;
    @media @PHONE_MEDIA {
      @keyframes src-layout-cart-styles-index__root-phone-show-animation {
        from {
          transform: translateX(0px);
          background: rgba(0, 0, 0, 0);
        }
        to {
          transform: translateX(-100vw);
          background: rgba(0, 0, 0, 0.2);
        }
      }

      transform: translateX(-100vw);
      background: rgba(0, 0, 0, 0.2);
      animation-name: src-layout-cart-styles-index__root-phone-show-animation;
    }
  }

  &.src-layout-cart-styles-index__hide {
    @keyframes src-layout-cart-styles-index__root-hide-animation {
      from {
        transform: translateX(-560px);
        background: rgba(0, 0, 0, 0.2);
      }
      to {
        transform: translateX(0px);
        background: rgba(0, 0, 0, 0);
      }
    }

    transform: translateX(0px);
    background: rgba(0, 0, 0, 0);
    animation-name: src-layout-cart-styles-index__root-hide-animation;
    @media @PHONE_MEDIA {
      @keyframes src-layout-cart-styles-index__root-phone-hide-animation {
        from {
          transform: translateX(-100vw);
          background: rgba(0, 0, 0, 0.2);
        }
        to {
          transform: translateX(0px);
          background: rgba(0, 0, 0, 0);
        }
      }

      transform: translateX(0px);
      background: rgba(0, 0, 0, 0);
      animation-name: src-layout-cart-styles-index__root-phone-hide-animation;
    }
  }
}

.src-layout-cart-styles-index__background {
  position: relative;
  flex-grow: 1;
  cursor: pointer;
}

.src-layout-cart-styles-index__angleRightIcon {
  position: absolute;
  top: calc(50% - 35px);
  right: 0px;
  padding: 0px 0px 0px 10px;
  width: 35px;
  height: 70px;
  border-radius: 70px 0 0 70px;
  cursor: pointer;
}

.src-layout-cart-styles-index__sidebar {
  width: 560px;
  height: 100%;
  box-shadow: 0px 0px 8px 0px rgba(100, 100, 100, 0.5);
  cursor: initial;
  overflow-y: scroll;
  @media @PHONE_MEDIA {
    width: 100vw;
  }
}

.src-layout-cart-styles-index__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;

  &.src-layout-cart-styles-index__hasMinHeight {
    min-height: 600px;
  }
}

.src-layout-cart-styles-index__header {
  display: flex;
  justify-content: space-between;
  margin: 0px 25px;
  padding: 20px 0px;
  @media @PHONE_MEDIA {
    margin: 0px;
    padding: 20px 10px;
  }
}

.src-layout-cart-styles-index__icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.src-layout-cart-styles-index__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
