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

.cart-container {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px #dce2e9;
  height: calc(100% - 45px);

  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 100%;
}

.cart-container-empty {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px #dce2e9;
  height: calc(100% - 45px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  .header-empty {
    margin-top: 10px;
    span {
      font-size: 26px;
      font-weight: bold;
      color: #000000;
    }
  }

  .content-empty span {
    font-size: 22px;
    color: #000000;
  }

  .image-empty {
    background-color: #557596;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    img {
      width: 17px;
      height: 16px;
      margin-left: 6px;
      margin-top: 7px;
    }
  }

  .btn-empty {
    margin-top: 40px;
  }
}

.header {
  height: 130px;
  position: absolute;
  z-index: 20;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 19px 25px -8px #fff;
}

.cart-title {
  font-weight: bold;
  font-size: 26px;
  text-align: center;
}

.print {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 15px 15px 0 0;
}

.cart-description {
  font-size: 22px;
  text-align: center;
}

.cart-content {
  padding-top: 160px;
  overflow-y: scroll;
  scroll-behavior: smooth;

  .cart-list {
    border-radius: 5px;
    width: 100%;
    height: 93%;
    background-color: #fff;

    .row-content {
      margin-bottom: 20px;
      margin-top: 5px;
    }
  }

  .input {
    font-family: 'Open Sans';
    width: 75%;
    border: none;
    font-size: 16px;
    color: #000000;
    opacity: 1;
    text-align: left;
    line-height: 21px;
    margin-left: 47px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    caret-color: #f70400;
    font-weight: bold;
  }

  input::placeholder {
    color: #557596;
    font-weight: normal;
    font-size: 16px;
    line-height: 21px;
  }

  .invalid-feedback {
    position: relative;
    text-align: right;
    animation: shake 0.3s cubic-bezier(0.7, 0.07, 0.19, 0.97) both;
    transform: translate3d(0, 0, 0);
    font-size: 14px;
    font-weight: bold;
    color: #f70400;
    width: 55%;
  }

  .error-visible {
    width: 20%;
  }

  input:focus {
    outline: none;
    border: none;
  }

  input:disabled {
    background-color: transparent;
  }

  label {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    line-height: 21px;
    padding-left: 20px;
    white-space: nowrap;
  }

  .option-title {
    padding: 25px 15px 10px 20px;
    text-align: left;
    display: flex;
    align-items: center;

    h2 {
      font-size: 20px;
      font-weight: bold;
      color: #000000;
      text-align: center;
      line-height: 21px;
    }

    img {
      display: block;
      padding-right: 15px;

      &.truck {
        height: 17px;
        width: 27px;
      }

      &.bag {
        height: 24px;
        width: 19px;
      }

      &.package {
        height: 22px;
        width: 21px;
      }
    }
  }
}

.row-content {
  margin-top: 5px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  flex-flow: wrap;
}

.cart-footer {
  background-color: #ffffff;
  border-radius: 5px;
  box-shadow: 0px -2px 24px 0px #dce2e9;
  height: 108px;
  display: flex;
  justify-content: center;
  align-items: center;

  .overview-container {
    display: flex;
    justify-content: space-between;
    justify-items: center;
    width: 95%;

    .items {
      font-size: 16px;
      font-weight: bold;
      color: #557596;
      text-align: left;
    }

    .overview {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .overview-price-container {
      display: flex;
      justify-content: flex-start;
      justify-items: center;
      flex-direction: column;

      .overview-price {
        font-size: 18px;
        font-weight: bold;
        text-align: left;
      }

      .overview-tax {
        font-size: 14px;
        text-align: right;
      }
    }
  }
}

.quantity-error {
  width: 100%;
  margin-right: 25px;

  span {
    font-family: 'Open Sans';
    font-size: 14px;
    font-weight: bold;
    color: rgba(247, 4, 0, 1);
    text-align: right;
  }
}

@keyframes shake {
  10% {
    transform: translate3d(-1px, 0, 0);
  }

  50% {
    transform: translate3d(2px, 0, 0);
  }

  70% {
    transform: translate3d(-3px, 0, 0);
  }

  90% {
    transform: translate3d(3px, 0, 0);
  }
}

/* 
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .display-data-info-short {
    width: 355px;
  }

  .overview {
    width: 46%;
  }

  .cart-footer,
  .header {
    width: 916px;
  }
}

/* 
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .display-data-info-short {
    width: 355px;
  }

  .overview {
    width: 46%;
  }

  .cart-footer,
  .header {
    width: 916px;
  }
}

/* 
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .overview {
    width: 58%;
  }

  .cart-footer,
  .header {
    width: 737px;
  }
}

/* 
  ##Device = Low Resolution Tablets, Mobiles (Landscape)
*/
@media (min-width: 481px) and (max-width: 767px) {
  .overview {
    width: 58%;
  }

  .cart-footer,
  .header {
    width: 94%;
  }
}

/* 
  ##Device = Most of the Smartphones Mobiles (Portrait)
*/
@media (min-width: 320px) and (max-width: 480px) {
  .overview {
    width: 58%;
  }

  .cart-footer,
  .header {
    width: 94%;
  }
}
