.cart-header {
  height: 60px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: white;

  display: flex;
  justify-content: center;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.header-cart-container {
  width: 100%;
  max-width: 1100px;

  display: flex;
  align-items: center;
}
.logo-wrap {
  width: 150px;
}
.amazon-logo-img {
  width: 100px;
  margin-top: 12px;
}
.amazon-mobile-img {
  display: none;
}

.header-text-checkout {
  flex: 1;
  flex-shrink: 0;
  text-align: center;

  font-size: 25px;
  font-weight: 500;

  display: flex;
  justify-content: center;
}
.return-home-link {
  color: rgb(0, 113, 133);
  font-size: 23px;
  text-decoration: none;
  cursor: pointer;
}

.lock-wrap {
  text-align: right;
  width: 150px;
}

@media (max-width: 575px) {
  .logo-wrap {
    width: auto;
  }

  .amazon-logo-img {
    display: none;
  }

  .amazon-mobile-img {
    display: inline-block;
    height: 35px;
    margin-top: 5px;
  }
  .header-text-checkout {
    margin-right: 5px;
    font-size: 20px;
  }
  .return-home-link {
    font-size: 18px;
  }
  .lock-wrap {
    width: auto;
  }
}

/* ------main-------- */

.main-container {
  padding-left: 30px;
  padding-right: 30px;
}
.cart-container {
  max-width: 1100px;

  margin: 140px auto 100px auto;
}
.page-title {
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 18px;
}
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  column-gap: 12px;
  align-items: start;
}
.item-wrapper {
  border: 1px solid rgb(222, 222, 222);
  border-radius: 4px;
  padding: 18px;
  margin-bottom: 12px;
}
.delivery-date-title {
  color: rgb(0, 118, 0);
  font-weight: 700;
  font-size: 19px;
  margin-top: 5px;
  margin-bottom: 22px;
}
.item-details-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  column-gap: 25px;
}
.product-img {
  max-width: 100%;
  max-height: 120px;
  margin: 0 auto;
}
.product-name {
  font-weight: 700;
  margin-bottom: 8px;
}
.product-price {
  color: rgb(177, 39, 4);
  font-weight: 700;
  margin-bottom: 5px;
}
.upd-quantity-link {
  margin-left: 3px;
  color: #017cb6;
  cursor: pointer;
}

.quatity-input {
  font-family: Roboto, Arial;
  font-size: 16px;
  width: 50px;
  display: none;
}
.quatity-input:is(:hover, :focus) {
  outline: 2px solid rgb(255, 153, 0);
}

.save-quantity-link {
  margin-left: 3px;
  color: #017cb6;
  cursor: pointer;
  display: none;
}
.delete-quantity-link {
  margin-left: 3px;
  color: #017cb6;
  cursor: pointer;
}
.upd-quantity-link:is(:hover, :focus),
.save-quantity-link:is(:hover, :focus),
.delete-quantity-link:is(:hover, :focus) {
  color: rgb(196, 80, 0);
}

.is-upd-quantity .save-quantity-link {
  display: initial;
}
.is-upd-quantity .quatity-input {
  display: initial;
}
.is-upd-quantity .quantity-counter {
  display: none;
}
.is-upd-quantity .upd-quantity-link {
  display: none;
}

.delivery-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.delivery-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  margin-bottom: 12px;
  cursor: pointer;
}
.delivery-input {
  margin-left: 0px;
  margin-right: 5px;
  cursor: pointer;
}
.delivery-date {
  color: rgb(0, 118, 0);
  font-weight: 500;
  margin-bottom: 3px;
}
.delivery-price {
  color: rgb(120, 120, 120);
  font-size: 15px;
}

.payment-summary-wrapper {
  border: 1px solid rgb(222, 222, 222);
  border-radius: 4px;
  padding: 18px;
}
.payment-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.payment-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 15px;
  margin-bottom: 9px;
}
.payment-summary-money {
  text-align: right;
}
.subtotal-row .payment-summary-money {
  border-top: 1px solid rgb(222, 222, 222);
}
.subtotal-row div {
  padding-top: 9px;
}
.total-row {
  color: rgb(177, 39, 4);
  font-weight: 700;
  font-size: 18px;

  border-top: 1px solid rgb(222, 222, 222);
  padding-top: 18px;
}
.place-order-btn {
  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 8px;
  color: rgb(33, 33, 33);
  background-color: rgb(255, 216, 20);
  border: 1px solid rgb(252, 210, 0);
  box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}
.place-order-btn:is(:focus, :hover) {
  background-color: rgb(247, 202, 0);
  border: 1px solid rgb(242, 194, 0);
}

@media (max-width: 1000px) {
  .cart-container {
    max-width: 500px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .payment-summary {
    grid-row: 1;
    margin-bottom: 12px;
  }
  .item-details-grid {
    grid-template-columns: 100px 1fr;
    row-gap: 30px;
  }
  .delivery-option {
    grid-column: 1 / span 2;
  }
}
