/* Price list: name, (dots), price on one line; the description below in muted colour. */
.px-page .px-pricelist { display: grid; gap: var(--px-space-m); margin-top: 0; margin-inline: 0; padding: 0; list-style: none; text-align: start; }
.px-page .px-pricelist__item { min-width: 0; margin: 0; padding: 0; }
.px-page .px-pricelist__head { display: flex; align-items: baseline; gap: var(--px-space-xs); }
.px-page .px-pricelist__name {
	min-width: 0;
	color: var(--px-color-heading);
	font-family: var(--px-font-heading);
	font-size: var(--px-text-h4);
	font-weight: var(--px-weight-heading);
	line-height: var(--px-leading-tight);
	overflow-wrap: anywhere;
}
.px-page .px-pricelist__tag {
	flex: none;
	padding: 0 var(--px-space-xs);
	background: var(--px-color-primary-soft);
	color: var(--px-color-primary-text);
	border-radius: 999px;
	font-size: var(--px-text-small);
	font-weight: 600;
	line-height: 1.6;
}
.px-page .px-pricelist__dots { flex: 1 1 1rem; min-width: 1rem; }
.px-page .px-pricelist__price { flex: none; color: var(--px-color-primary-text); font-size: var(--px-text-h4); font-weight: 400; white-space: nowrap; }
.px-page .px-pricelist__desc { margin: var(--px-space-xs) 0 0; color: var(--px-color-muted); font-size: var(--px-text-body); line-height: var(--px-leading-body); overflow-wrap: anywhere; }

.px-page .px-pricelist--leader .px-pricelist__dots { align-self: end; margin-bottom: .35em; border-bottom: 2px dotted var(--px-color-muted); }
/* Bug fix: a name that wraps no longer squeezes the leader to a stub with the price stuck to the first line: the price sits on the
   baseline of the name's last line and the dots keep a usable width. Names that fit one line look as before. */
.px-page .px-pricelist--leader .px-pricelist__head { align-items: baseline; align-items: last baseline; }
.px-page .px-pricelist--leader .px-pricelist__dots { flex-basis: 2rem; min-width: 2rem; }
.px-page .px-pricelist--card .px-pricelist__item {
	padding: var(--px-space-m);
	background: var(--px-color-surface);
	border: 1px solid var(--px-color-border);
	border-radius: var(--px-radius);
	box-shadow: var(--px-shadow);
}

/* compact (advanced): body-size name and price, a 1px rule between rows. */
.px-page .px-pricelist--compact { gap: 0; }
.px-page .px-pricelist--compact .px-pricelist__item { padding-block: var(--px-space-s); }
.px-page .px-pricelist--compact .px-pricelist__item + .px-pricelist__item { border-top: 1px solid var(--px-color-border); }
.px-page .px-pricelist--compact :is(.px-pricelist__name, .px-pricelist__price) { font-size: var(--px-text-body); }
/* The price may wrap onto a second line (never cut off) and is bold. */
.px-page .px-pricelist--compact .px-pricelist__price { color: var(--px-color-heading); flex: 0 1 auto; max-width: 60%; min-width: 0; font-weight: 600; text-align: end; white-space: normal; overflow-wrap: anywhere; }

/* Two columns once the column is 640px wide, one below. */
@container (min-width: 640px) {
	.px-page .px-pricelist--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--px-space-xl); }
}

/* nameStyle caps (advanced): heading font, capitals, wide tracking. */
.px-page .px-pricelist--name-caps .px-pricelist__name { font-family: var(--px-font-heading); text-transform: uppercase; letter-spacing: .12em; }

/* nameStyle muted (advanced): body-size regular name in the muted colour. */
.px-page .px-pricelist--name-muted .px-pricelist__name { color: var(--px-color-muted); font-family: inherit; font-size: var(--px-text-body); font-weight: 400; }
