*{
    box-sizing: border-box;
}

body {
  padding: 2rem;
  background-color: rgb(240, 231, 218);
}

.checkout-logotype-main-header {
  font-family: 'Instrument Serif', sans-serif;
  font-size: 7rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.checkout-logotype-header {
  font-family: 'Instrument Serif', sans-serif;
  font-size: 4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.checkout-logotype-subheader {
  font-family: 'Instrument Serif', sans-serif;
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.checkout-logotype-body{
  font-family: 'Manrope Regular', sans-serif;
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  max-width: 60rem;
  min-width: 10rem;
}

.grid{
  display: grid;
}

.container-input {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
}

.element{
  display: grid;
  gap: 0.2rem;
  margin-top: 3rem;
}

.order-items {
  display: grid;
  gap: 1rem;
}

.order-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background-color: #D2C7B7;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #8b7355;
}

.item-image {
  width: 5rem;
  height: 5rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.item-name {
  font-family: 'Manrope Regular';
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.item-quantity {
  font-family: 'Manrope Regular';
  font-size: 1rem;
  color: #666;
  min-width: 3rem;
  text-align: right;
}

.item-price {
  font-family: 'Manrope Regular';
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  min-width: 5rem;
  text-align: right;
}

.order-summary {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.subtotal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0 1rem;
}

.subtotal-label {
  font-family: 'Manrope Regular';
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}

.subtotal-price {
  font-family: 'Manrope Regular';
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}


label,
input,
textarea,
select,
button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Manrope Regular';
  font-size: 1rem;
  line-height: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input {
  border: 1px solid #8b7355;
  background-color: #e4d9d9;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 100%;
  height: 3rem;
  padding: 0 1rem;
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 0.5rem;
}

.input-group input {
  width: 100%;
}

.orderbutton {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  color: white;
  background-color: #EC6C61;
  border: none;
  border-radius: 2rem;
  font-family: 'Manrope Regular';
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.5s ease-out;
  text-decoration: none;
  text-align: center;
  line-height: 3rem;
}

.orderbutton:hover{
    background-color: #ac4238;
}

.orderbutton:hover{
    background-color: #ac4238;
}

.orderbutton:hover{
    background-color: #ac4238;
}

@media (width < 40rem) {
  .payment-row {
    grid-template-columns: 1fr;
  }
    .order-item {
      grid-template-columns: 4rem 1fr;
      gap: 0.75rem;
  }
    
  .item-image {
      width: 4rem;
      height: 4rem;
  }
    
  .item-quantity,
  .item-price {
      grid-column: 2;
      text-align: left;
  }
}


