/* Price Compliance public catalogue ([wplp_catalogue]) and its admin preview. Deliberately neutral: fonts and colours
   come from the theme (or wp-admin); only layout, spacing and a few muted tones are set here. Loaded only where the
   catalogue renders. Selectors are scoped under .wplp-pc with the element name, so typical theme or admin content
   rules (.entry-content ul, .wrap h2, p margins) do not indent the list or open gaps between the price lines.
   Logical properties keep right-to-left sites mirrored.

   Layout follows the catalogue's own width (container queries), not the device: an item puts its price beside
   its details while there is room, two-column catalogues fall back to one column when the columns would get
   narrow. Media queries repeat the narrowest step for browsers without container queries. */
.wplp-pc{margin:0 0 1.5em;container:wplp-pc / inline-size}
.wplp-pc section.wplp-pc-section{margin:0 0 2em}
.wplp-pc h2.wplp-pc-section-title{margin:0 0 .25em;padding:0}
.wplp-pc p.wplp-pc-section-subtitle{margin:0 0 .75em;opacity:.75}
.wplp-pc ul.wplp-pc-items{list-style:none;margin:0;padding:0}
.wplp-pc li.wplp-pc-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:.5em 2em;min-width:0;margin:0;padding:1em 0;border-top:1px solid rgba(0,0,0,.12);overflow-wrap:anywhere}
.wplp-pc li.wplp-pc-item:last-child{border-bottom:1px solid rgba(0,0,0,.12)}
.wplp-pc div.wplp-pc-item-main{min-width:0}
.wplp-pc h3.wplp-pc-name{margin:0;padding:0;font-size:1.1em}
.wplp-pc p.wplp-pc-subtitle,.wplp-pc p.wplp-pc-description{margin:.25em 0 0}
.wplp-pc p.wplp-pc-subtitle{opacity:.75}
.wplp-pc dl.wplp-pc-details{display:flex;flex-wrap:wrap;gap:.15em 1.25em;margin:.4em 0 0;font-size:.875em}
.wplp-pc div.wplp-pc-detail{display:flex;flex-wrap:wrap;gap:0 .35em;min-width:0;margin:0}
.wplp-pc .wplp-pc-details dt{margin:0;font-weight:400;opacity:.75}
.wplp-pc .wplp-pc-details dt::after{content:":"}
.wplp-pc .wplp-pc-details dd{margin:0}
.wplp-pc div.wplp-pc-item-price{text-align:end;min-width:9em}
.wplp-pc p.wplp-pc-price{margin:0;font-size:1.15em;font-weight:700;white-space:nowrap}
.wplp-pc .wplp-pc-price del{margin-inline-end:.4em;font-weight:400;opacity:.65}
.wplp-pc .wplp-pc-price ins{text-decoration:none;background:none}
.wplp-pc span.wplp-pc-per{font-weight:400}
.wplp-pc p.wplp-pc-extra,.wplp-pc p.wplp-pc-availability{margin:.25em 0 0;font-size:.875em}
.wplp-pc span.wplp-pc-label{opacity:.75}
.wplp-pc p.wplp-pc-availability--unavailable{font-weight:600}
.wplp-pc p.wplp-pc-empty{margin:0}
.wplp-pc nav.wplp-pc-pager{display:flex;flex-wrap:wrap;align-items:center;gap:.5em 1em;margin:1em 0 0}
.wplp-pc .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Two columns: items of one category side by side, row by row in catalogue order (1 2 / 3 4 / 5). Categories stay
   stacked: every category has its own grid. Each row keeps one divider line; the list closes with one. */
.wplp-pc--cols-2 ul.wplp-pc-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:2.5em;border-bottom:1px solid rgba(0,0,0,.12)}
.wplp-pc--cols-2 li.wplp-pc-item:last-child{border-bottom:0}

/* Two-column cells are half as wide: below this width their price goes under the details. */
@container wplp-pc (max-width:60em){
	.wplp-pc--cols-2 li.wplp-pc-item{grid-template-columns:minmax(0,1fr)}
	.wplp-pc--cols-2 div.wplp-pc-item-price{text-align:start;min-width:0}
	.wplp-pc--cols-2 p.wplp-pc-price{white-space:normal}
}
/* Too narrow for two useful columns: one column. */
@container wplp-pc (max-width:40em){
	.wplp-pc--cols-2 ul.wplp-pc-items{grid-template-columns:minmax(0,1fr);border-bottom:0}
	.wplp-pc--cols-2 li.wplp-pc-item:last-child{border-bottom:1px solid rgba(0,0,0,.12)}
}
/* Narrow catalogue: the price goes under the details. */
@container wplp-pc (max-width:32em){
	.wplp-pc li.wplp-pc-item{grid-template-columns:minmax(0,1fr)}
	.wplp-pc div.wplp-pc-item-price{text-align:start;min-width:0}
	.wplp-pc p.wplp-pc-price{white-space:normal}
}
@media (max-width:600px){
	.wplp-pc--cols-2 ul.wplp-pc-items{grid-template-columns:minmax(0,1fr);border-bottom:0}
	.wplp-pc--cols-2 li.wplp-pc-item:last-child{border-bottom:1px solid rgba(0,0,0,.12)}
	.wplp-pc li.wplp-pc-item{grid-template-columns:minmax(0,1fr)}
	.wplp-pc div.wplp-pc-item-price{text-align:start;min-width:0}
	.wplp-pc p.wplp-pc-price{white-space:normal}
}
