/**
 * Butterfields – Price List page (shortcode [bf_price_list]).
 *
 * The page itself is styled by legal.css (see butterfields_is_legal_page());
 * this sheet covers the viewer: a bar with the download button, then the
 * PDF's pages stacked on a soft tint with a hairline shadow.
 */

.bf-pricelist {
	--bf-pl-ink: #34403c;
	--bf-pl-muted: #65706c;
	--bf-pl-rule: #e4e3da;
	--bf-pl-tint: #f1f0e8;
}

.bf-pricelist__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.bf-pricelist__updated {
	margin: 0;
	font-size: 15px;
	color: var(--bf-pl-muted);
}

/* Matches the site's standard pill button. */
body #content .bf-pricelist a.bf-pricelist__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 50px;
	padding: 10px 28px;
	margin-left: auto;
	border-radius: 40px;
	background: var(--bf-primary, #b1ba22);
	color: #34403c;
	font-family: var(--bf-font-primary);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.03em;
	line-height: 1.25;
	text-transform: uppercase;
	text-decoration: none;
}

body #content .bf-pricelist a.bf-pricelist__download:hover,
body #content .bf-pricelist a.bf-pricelist__download:active,
body #content .bf-pricelist a.bf-pricelist__download:focus-visible {
	background: #5e6712;
	color: #fff;
	text-decoration: none;
}

.bf-pricelist__pages {
	display: grid;
	gap: 16px;
	padding: clamp(10px, 2vw, 24px);
	background: var(--bf-pl-tint);
	border-radius: 6px;
}

.bf-pricelist__page {
	width: 100%;
	max-width: 980px;
	margin-inline: auto;
	background: #fff;
	box-shadow: 0 1px 4px rgba(52, 64, 60, 0.18);
}

.bf-pricelist__page canvas {
	display: block;
}

.bf-pricelist__loading,
.bf-pricelist__empty {
	margin: 0;
	padding: 24px 0;
	text-align: center;
	color: var(--bf-pl-muted);
}

@media (max-width: 575px) {
	body #content .bf-pricelist a.bf-pricelist__download {
		width: 100%;
		margin-left: 0;
	}

	.bf-pricelist__pages {
		padding: 8px;
		margin-inline: calc(var(--bf-gutter, 20px) * -0.5);
	}
}
