/* Price hierarchy shared by homepage cards, the catalogue and product summaries. */
body .md-main ul.products li.product .price,
body.single-product .md-shop-main div.product .summary > .price {
  font-size: 20px !important;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

body .md-main .price .md-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  letter-spacing: 0;
  white-space: normal;
}

body .md-main .price .md-price-breakdown .md-preorder-card-balance {
  display: block;
  margin: 0;
  color: #f5f3ed;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.5;
}

body .md-main .price .md-price-breakdown .md-card-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

body .md-main .price .md-price-breakdown .md-card-total .md-price-label {
  font-size: 16px;
  font-weight: 500;
}

body .md-main .price .md-price-breakdown .md-card-total .amount {
  font-size: 20px;
  font-weight: 650;
}

body .md-main .price .md-price-breakdown .md-preorder-card-price,
body .md-main .price .md-price-breakdown .md-preorder-card-price > .amount {
  display: block;
  margin: 0;
  color: #e5e4dc;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

body .md-main .price .md-price-breakdown .md-preorder-card-price > .amount {
  display: inline;
  margin-right: 0;
}

body .md-main .price .md-price-breakdown .md-card-remaining {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin: 0;
  color: #c7c9c1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

body .md-main .price .md-price-breakdown .amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* The loop PHP now requests the full attachment; contain shows all of that source. */
.md-products ul.products li.product a img.md-catalog-image,
.md-shop-main ul.products li.product a img.md-catalog-image {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #f1eee6;
}
