#main-section {
    padding: 2% 8%;
    box-sizing: border-box;
}

#main-heading {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    margin-bottom: 48px;
}

#content-wrapper {
    display: flex;
    justify-content: start;
}

#content-wrapper > div:first-of-type {
    width: 50%;
}

#content-wrapper > div:last-of-type {
    width: 50%;
    height: fit-content;
    margin-top: 48px;
    margin-left: 3%;

    box-sizing: border-box;
    box-shadow: 0 2px 5px #ccc;
    border-radius: 5px;
    padding: 16px;
}

.checkout-card {
    display: flex;
    box-sizing: border-box;
    box-shadow: 0 2px 5px #ccc;
    border-radius: 5px;
    background-color: white;
    max-width: 600px;
    padding: 16px;
    margin-bottom: 16px;
}

.checkout-product-img {
    width: 80px;
    min-width: 80px;
    border-radius: 5px;
    margin-right: 16px;
}

.checkout-card h4 {
    font-weight: 600;
    margin: 0;
    margin-bottom: 4px;
    font-size: 18px;
}

.checkout-card p {
    margin: 0;
    margin-top: 4px;
    margin-bottom: 4px;
}

.section-heading {
    font-size: 24px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: 400;
    margin: 0;
    margin-bottom: 16px;
}

#total-amount {
    color: black;
    opacity: 0.8;
    font-size: 24px;
    font-weight: 800;
    margin-left: 4px;
}

#btn-place-order{ 
    background-color: #009688;
    font-size: 18px;
    border: 0;
    cursor: pointer;
    outline: none;
    padding: 18px 36px;
    border-radius: 6px;
    margin-top: 36px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* For screens smaller than 768px */
@media (max-width: 767px) {
  #main-section {
    padding: 5%;
  }
  
  #main-heading {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  #content-wrapper {
    flex-direction: column;
  }
  
  #content-wrapper > div:first-of-type,
  #content-wrapper > div:last-of-type {
    width: 100%;
    margin-left: 0;
    margin-top: 24px;
  }
  
  .checkout-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .checkout-product-img {
    margin-right: 0;
    margin-bottom: 16px;
  }
  
  #btn-place-order {
    padding: 12px 24px;
    margin-top: 24px;
  }
}

/* For screens between 768px and 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  #main-section {
    padding: 3% 5%;
  }
  
  #main-heading {
    font-size: 30px;
    margin-bottom: 36px;
  }
  
  #content-wrapper {
    flex-wrap: wrap;
  }
  
  #content-wrapper > div:first-of-type {
    width: 100%;
    margin-bottom: 24px;
  }
  
  #content-wrapper > div:last-of-type {
    width: calc(50% - 16px);
    margin-left: 0;
    margin-top: 24px;
  }
  
  .checkout-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  
  .checkout-product-img {
    margin-right: 24px;
    margin-bottom: 0;
  }
  
  #btn-place-order {
    padding: 18px 30px;
    margin-top: 24px;
  }
}
