.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 4rem;
  margin: 0 auto;
}

/* Left column */
.header-container-section {
  font-size: 1.25rem;
  font-weight: bold;
  color: #111;
  margin: 1rem 0 .5rem;
}

.information-catagory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-layout input {
  display: block;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #000;
  border-radius: 6px;
}

.checkout-layout input::placeholder {
  color: #777;
  font-style: italic;
}

.checkout-button {
  padding: 1rem 1.25rem;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  margin-top: .5rem;
}
.checkout-button:hover { background-color: #1a5b7e; }

/* Invalid form fields */
.invalid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231,76,60,.15);
}

/* Right column: order summary */
.order-summary {
  display: flex;
  flex-direction: column;
  background-color: #f8f8f8;
  padding: 1rem 2rem 2rem;
  border-radius: 8px;
  border: 7px solid var(--main-color);
  min-height: 28rem;
  height: auto;
  letter-spacing: 0.5px;
  font-size: 1.05rem;
}

.checkout-hr {
  border: none;
  border-top: 2px solid #ccc;
  margin: .75rem 0 1rem;
}

.heading-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.heading-summary h3 { margin: 0; }
.heading-summary .edit-button {
  all: unset;
  font-family: inherit;
  font-size: 1rem;
  color: var(--main-color);
  cursor: pointer;
}
.heading-summary .edit-button:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.order-information {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.order-information img {
  width: 100%;
  height: auto;
  max-width: 220px;
  border-radius: 6px;
}

.order-summary-info h4 { margin: .25rem 0; }

.summary-text-price h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .order-information {
    flex-direction: column;
  }
}

