.basket-header, .basket-header-container {
  display: none;
}

.basket {
  max-width: 1100px;
  margin: 6rem auto 12rem auto;
}

.basket-headers {
  padding-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.grid-product {
  grid-column: 2/4;
}

.basket-headers > * {
  font-size: 2.5rem;
  text-align: center;
  font-weight: bold;
  padding: 1rem 0;
  background-color: #e9d1d2;
}

.basket-item {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 1rem;
}

.basket-item > div{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: normal;
}

.basket-item-image {
  width: 60%;
}

.basket-item-title-container {
  flex-direction: column;
  padding-top: 2rem;
}

.basket-item-title {
  font-size: 2rem;
  font-weight: normal;
}

.basket-item-remove-btn {
  font-size: 1.5rem;
  color: #e46c6c;
  cursor: pointer;
  transition: ease 0.3s;
  -moz-transition: ease 0.3s;
	-ms-transition: ease 0.3s;
	-o-transition: ease 0.3s;
	transition: ease 0.3s;
}

.basket-item-remove-btn:hover {
  transform: scale(1.2);
  transition: ease 0.3s;
  -moz-transition: ease 0.3s;
	-ms-transition: ease 0.3s;
	-o-transition: ease 0.3s;
	transition: ease 0.3s;
}

.basket-item-qty > i {
  font-size: 2.5rem;
  cursor: pointer;
}

.basket-item-qty > i:active {
  transform: scale(1.1);
  color: #e46c6c;
}

.item-qty {
  margin: 0 2rem;
  min-width: 20px;
}

.basket-item-size, .basket-item-price, .item-qty, .basket-item-subtotal {
  font-size: 1.9rem;
  font-weight: normal;
}

.basket-subtotal-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-right: 3.5rem;
  margin-top: 5rem;
  row-gap: 5px;
}

.basket-subtotal-container > * {
  font-size: 2.2rem;
  height: 50px;
  margin-top: auto;
  margin-bottom: auto;
}

.basket-order-total, 
.basket-delivery, 
.basket-subtotal, 
.basket-giftwrapping, 
.basket-discount {
  grid-column: 3/4;
  padding-left: 1rem;
  padding-top: 13px;
}

.basket-delivery, 
.basket-delivery-value, 
.basket-discount, 
.basket-discount-value {
  border-bottom: 2px solid #e9d1d2;
  width: 100%;
}

.basket-order-total-value, 
.basket-delivery-value, 
.basket-subtotal-value, 
.basket-giftwrapping-value, 
.basket-discount-value {
  grid-column: 4/5;
  justify-self: end;
  text-align: end;
  padding-right: 1rem;
  padding-top: 12px;
}

.basket-order-total, 
.basket-order-total-value, 
.basket-subtotal, 
.basket-subtotal-value {
  width: 100%;
  font-size: 2.5rem;
  background-color: #e9d1d2;
}

.basket-giftwrapping-value {
  display: flex;
  align-items: center;
  padding: 0;
}

.basket-discount {
  font-size: 1.7rem;
  padding-top: 2px;
}

.basket-discount-value {
  color: #e46c6c;
}

.gift-wrapping-selected {
  color: #e46c6c;
  border-radius: 50%;
  border: 1px solid #e9d1d2;
}

.basket-giftwrapping-value * {
  cursor: pointer;
  padding: 0.7rem;
}

.empty-basket {
  text-align: center;
  font-size: 4.5rem;
  margin: 7rem 0 12rem 0;
}

/* media queries */
@media only screen and (max-width: 965px) {
  .basket-item-image {
    width: 90%;
  }

  .basket-item-title {
    font-size: 1.8rem;
  }

  .basket-order-total, 
  .basket-delivery, 
  .basket-subtotal, 
  .basket-giftwrapping, 
  .basket-discount {
    grid-column: 2/4;
  }

  .basket-discount {
    font-size: 1.7rem;
    padding-top: 12px;
  }
}

@media only screen and (max-width: 865px) {
  .basket-headers > * {
    font-size: 2.2rem;
  }

  .basket-item {
    column-gap: 1rem;
  }

  .item-qty {
    margin: 0 0.9rem;
  }

  .basket-subtotal-container {
    width: 70%;
    grid-template-columns: repeat(3, 1fr);
    margin: 7rem auto 0 auto;
  }

  .basket-order-total-value, 
  .basket-delivery-value, 
  .basket-subtotal-value, 
  .basket-giftwrapping-value, 
  .basket-discount-value {
    grid-column: 3/4;
  }

  .basket-order-total, 
  .basket-delivery, 
  .basket-subtotal, 
  .basket-giftwrapping, 
  .basket-discount {
    grid-column: 1/3;
  }
}

@media only screen and (max-width: 675px) {
  .basket-item-image {
    width: 100%;
    margin-left: 1rem;
  }

  .basket-headers > * {
    font-size: 2.1rem;
    font-weight: normal;
  }

  .basket-item-title {
    font-size: 1.6rem;
  }

  .basket-item-size, 
  .basket-item-price, 
  .item-qty, 
  .basket-item-subtotal {
    font-size: 1.7rem;
  }

  .item-qty {
    margin: 0 0.2rem;
  }
}

@media only screen and (max-width: 615px) {
  .basket-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .basket-header {
    display: block;
    border-radius: 100vmax;
    text-align: center;
    margin-top: 2rem;
    font-size: 2.3rem;
    width: 60%;
    background-color: #e9d1d2;
    padding: 0.9rem;
  }

  .basket {
    margin-top: 2rem;
  }

  .basket-item {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: 1rem;
    border-bottom: 4px dotted #e9d1d2;
  }

  .grid-image {
    grid-column: 1/3;
    grid-row: 1/4;
  }

  .basket-item-title-container {
    grid-column: 3/6;
    grid-row: 1/2;
    align-self: flex-start;
  }

  .basket-item-size-container {
    grid-column: 3/5;
    grid-row: 2/3;
    justify-self: flex-start;
    margin-left: 1rem;
  }

  .basket-item-size::before {
    content: "Size: ";
  }

  .basket-item-price-container {
    grid-column: 3/5;
    grid-row: 3/4;
    justify-self: flex-start;
    margin-left: 1rem;
  }

  .basket-item-price::before {
    content: "Price: $";
  }

  .basket-item-qty {
    grid-column: 5/6;
    grid-row: 3/4;
  }

  .basket-item-subtotal-container {
    grid-column: 5/6;
    grid-row: 2/3;
  }

  .basket-headers {
    display: none;
  }

  .basket-item-title {
    font-size: 2.3rem;
  }

  .basket-item-remove-btn {
    margin-top: 1rem;
    font-size: 1.7rem;
  }

  .basket-item-size {
    font-size: 2rem;
  }

  .basket-item-subtotal {
    font-size: 2.5rem;
  }

  .basket-subtotal-container {
    width: 90%;
  }

  .basket-order-total, 
  .basket-order-total-value, 
  .basket-subtotal, 
  .basket-subtotal-value {
    font-size: 2.2rem;
    padding-top: 13px;
  }
}

@media only screen and (max-width: 535px) {
  .basket-item {
    gap: 0px;
  }

  .basket-item-title {
    font-size: 2rem;
  }

  .basket-item-size {
    font-size: 1.8rem;
  }

  .basket-item-subtotal {
    font-size: 2.2rem;
  }

  .basket-delivery, 
  .basket-delivery-value, 
  .basket-discount, 
  .basket-giftwrapping, 
  .basket-giftwrapping-value {
    font-size: 1.6rem;
  }

  .basket-delivery-value, 
  .basket-discount, 
  .basket-giftwrapping {
    padding-top: 14px;
  }

}

@media only screen and (max-width: 455px) {
  .basket-item-title {
    font-size: 1.8rem;
    margin-top: -1rem;
  }

  .basket-item-size, .basket-item-price {
    font-size: 1.6rem;
  }

  .basket-item-subtotal {
    font-size: 2rem;
  }

  .basket-item-subtotal-container {
    margin-right: 1.5rem;
  }

  .basket-item-qty {
    margin-right: 1.5rem;
  }

  .basket-delivery, 
  .basket-delivery-value, 
  .basket-giftwrapping, 
  .basket-giftwrapping-value {
    font-size: 1.8rem;
  }

  .basket-subtotal-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .basket-order-total-value, 
  .basket-delivery-value, 
  .basket-subtotal-value, 
  .basket-giftwrapping-value, 
  .basket-discount-value {
    grid-column: 4/5;
  }

  .basket-order-total, 
  .basket-delivery, 
  .basket-subtotal, 
  .basket-giftwrapping, 
  .basket-discount {
    grid-column: 1/4;
  }
}

@media only screen and (max-width: 400px) {
  .basket-header {
    font-size: 2rem;
  }

  .basket-header-container {
    margin-bottom: 3rem;
  }

  .grid-image {
    width: 90%;
    height: 90%;
    padding-top: 10%;
  }

  .basket-item-title-container {
    margin-left: -2rem;
  }

  .basket-item-size-container, 
  .basket-item-price-container {
    margin-left: 0;
  }

  .basket-discount {
    padding-top: 7px;
  }
}

@media only screen and (max-width: 355px) {
  .basket-item-size, .basket-item-price {
    font-size: 1.4rem;
  }

  .basket-item-image {
    margin-left: 0.5rem;
  }

  .basket-item-title-container {
    margin-left: -1.5rem;
  }

  .basket-item-title {
    font-size: 1.7rem;
  }

  .basket-item-subtotal-container, 
  .basket-item-qty {
    margin-right: 1rem;
  }

  .basket-item-subtotal {
    font-size: 1.8rem;
  }

  .basket-item-remove-btn {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 355px) {
  .basket-item-title {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 320px) {
  .basket-item-size {
    font-size: 1.3rem;
  }

  .basket-item-subtotal-container {
    margin-right: 0;
  }

  .basket-item-subtotal {
    font-size: 1.6rem;
  }

  .basket-item-qty {
    margin-right: 0.5rem;
  }

  .basket-delivery {
    font-size: 1.6rem;
    padding-top: 14px;
  }
}

.hide {
  display: none;
}

@media only screen and (max-width: 310px) {
  .basket-item-title {
    font-size: 1.55rem;
  }
}

@media only screen and (max-width: 287px) {
  .basket-delivery {
    padding-top: 9px;
  }
}
