$order-product-vertical-padding: 5px;
$order-product-image-width: 84px;

@import "@css[shared]/page/order/_order-products";

.order-products {
   padding-bottom: 20px;

   .title {
      margin-left: 20px;
   }

   .variation {
      font-size: $font-size-smaller;
   }

   .availability {
      width: auto;
   }

   .buy_count {
      width: 50px;
   }

   .delete-product {
      font-size: 18px;
   }

   .pieces {
      input {
         border-radius: $border-radius-base;
      }
   }

   .cart-product-charges {
      padding-left: 0;


      .charge-item {
         border: 0;
         border-bottom: 1px solid $border-color;
      }
   }

   .pieces {
      position: relative;
      width: 78px;

      .form-control {
         min-height: 50px;
         padding-right: 30px;
         width: 100%;
         border-radius: $border-radius-base;
      }

      .buy_count {
         position: absolute;
         right: 0;
         top: 0;
         bottom: 0;
         width: 30px;
         padding: 5px 0;
      }

      button {
         font-size: 10px;
         padding: 5px;
      }
   }
}

@media screen and (min-width: $lg) and (max-width: $xl - 1), screen and (max-width: $md) {
   .order-products:not(.order-products-summary) {
      .product {
         flex-wrap: wrap;
         align-items: flex-start;
         justify-content: flex-start;
         position: relative;
         padding-left: 84px;
      }

      .image {
         position: absolute;
         top: 5px;
         left: 0;
      }

      .title {
         margin-bottom: 10px;
         width: 100%;
      }

      .availability {
         display: none;
      }

      .availability-resp {
         display: block;
         font-size: $font-size-smaller;
      }

      .pieces {
         margin-left: 20px;
         margin-right: 10px;
      }

      .price-total {
         position: absolute;
         right: 0;
         bottom: 15px;
      }

      .delete-product {
         align-self: flex-end;
         margin-bottom: 13px;
         margin-left: 0;
         order: 1;
      }
   }
}

@media screen and (min-width: $md) and (max-width: $lg - 1) {
   .order-products {
      .availability {
         display: block;
      }

      .availability-resp {
         display: none;
      }
   }
}

@media screen and (max-width: $md - 1) {
   .order-products {
      .pieces {
         left: 0;
         bottom: 0;
      }
   }
}

@media screen and (max-width: $xs - 1) {
   .order-products:not(.order-products-summary) {
      .title,
      .pieces {
         margin-left: 7px;
      }
   }
}
