#checkout-columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

#checkout-summary,
#checkout-form {
  flex: 1 1 0;
  min-width: 0;
  max-width: 33.33%;
  box-sizing: border-box;
}

#checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

#checkout-image {
  width: 100%;
  /* aspect-ratio: 1/1; */ /* not good when no image */
  max-height: 30vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#checkout-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

#checkout-text {
  width: 100%;
}

@media (max-width: 900px) {
  #checkout-columns {
    flex-direction: column;
    gap: 2rem;
  }
  #checkout-summary,
  #checkout-form {
    max-width: 100%;
  }
  #checkout-image {
    max-width: 100%;
    margin-bottom: 1rem;
    max-height: 60vw;
  }
}