#cart-anchor {
  margin: 0 auto min(50px, 2vw);
  padding-bottom: 50px;
  max-width: 1200px;
  display: block;
}

#cart-anchor a:not(.cart-item-title),
#cart-anchor a span {
  background-color: #363636;
  color: white;
  border-radius: 3px;
  padding: 13px;
  font-size: 14px;
}

#cart-anchor a:not(.cart-item-title):hover,
#cart-anchor a span:hover {
  cursor: pointer;
  background-color: #444444;
}

#checkout-footer {
  text-align: right;
}

.cart-item-title h6 {
  line-height: 1rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.cart-item-title:hover {
  color: #444444;
}

.cart-sub-item-title {
  line-height: 1em;
}

#cart-item-list {
  width: 90%;
  max-width: 1500px;
  height: auto;
  min-height: 400px;
  display: block;
  margin: 0 auto;
  background-color: white;
  padding: 0 20px 20px;
  overflow: hidden;
  border-radius: 8px;
}

#cart-item-anchor {
  width: 100%;
  margin: 0;
  display: block;
  padding: 2.5%;
}

#cart-item-list h1 {
  text-align: left;
  margin: 0 0 10px;
}

#cart-item-list hr {
  height: 4px;
  background-color: black;
  margin: 0 auto 40px;
  border: none;
  border-radius: 4px;
}

.cart-item {
  width: 100%;
  min-height: 90px;
  margin-bottom: 10px;
  padding: 5px;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item table {
  border-collapse: collapse;
}

.product-qty-div * {
  display: inline-block;
  font-size: 12px;
}

.cart-item img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  border-radius: 8px;
}

#cart-subtotal::before,
.cart-item-price::before {
  content: "$";
}

.cart-item-price.discounted {
  text-decoration: line-through;
}

.cart-item-sub-price {
  font-size: 14px;
}

.cart-item-sub-price::before {
  content: "$";
}

.cart-table-img {
  width: 10%;
  min-width: 100px;
}

.item-qty * {
  font-size: 14px;
}

.item-qty {
  margin-right: 20px;
}

.item-qty:first-of-type::before {
  content: "Qty: ";
  font-weight: bold;
}

.cart-table-img img {
  border-radius: 8px;
  min-width: 90px;
  min-height: 90px;
}

.cart-table-product {
  text-align: left;
  width: 80%;
  padding-left: 10px;
}

.cart-table-product p {
  line-height: 1.2em;
}

.cart-table-qty {
  padding: 0 20px;
  text-align: center;
}

.cart-table-price {
  width: 10%;
  text-align: right;
}

.update-item span {
  background-color: #363636;
  border-radius: 3px;
  padding: 2px 5px;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.update-item span:hover {
  cursor: pointer;
}

.product-qty-input {
  width: 5%;
  text-align: center;
  border-radius: 5px;
  padding: 2px;
  font-size: 14px;
}

.cart-item table p {
  font-size: 14px;
}

#checkout-footer button {
  font-size: 16px;
  border: none;
  border-radius: 3px;
  font-weight: 300;
  padding: 5px 10px;
}


@media screen and (max-width: 1000px) {
  #cart-item-list {
    padding: 0;
    margin: 0 auto;
    width: 95%;
    min-width: 0;
  }

  #cart-item-anchor {
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .cart-item {
    padding: 2px;
    width: calc(100% - 4px);
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
  }

  .clear-cart {
    font-size: 10px !important;
    display: block;
  }

  .edit-item {
    margin-left: 5px;
  }

  .cart-item-title h6 {
    font-size: 14px;
  }

  #cart-anchor {
    width: 98%;
  }
}

@media screen and (max-width: 700px){
  #cart-item-list {
    width: 100%;
  }

  #cart-item-list h6 {
    font-size: 16px;
  }

  #cart-item-list h1 {
    margin-left: 20px;
  }

  .cart-item tr td:first-of-type {
    display: none;
  }

}

@media screen and (max-width: 400px) {
  #cart-item-anchor {
    width: 100%;
  }

  .cart-sub-tr td:nth-child(2) {
    border-left: solid 1px #cccccc;
  }


}
