.csm-unit-wrap {
	box-sizing: border-box;
	clear: both;
	width: 100%;
	margin: 1rem 0;
	padding: 2rem 0;
	background: #f0f0f0;
	border-top: 1px solid #d5d5d5;
	border-bottom: 1px solid #d5d5d5;
	text-align: center;
	overflow: hidden;
}

.csm-unit-label {
	display: block;
	margin: 0 0 0.5rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.6875rem;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #666;
}

.csm-unit-wrap [data-zone] {
	max-width: 100%;
	margin: 0 auto;
}

.csm-unit-wrap:has([data-zone]:empty:not([data-width]):not([data-height])) {
	display: none;
}
/* Zones may serve several units: stack them with even spacing. */
.csm-unit-wrap .csm-zone-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.csm-unit-wrap .csm-zone-item {
	max-width: 100%;
	margin: 0;
}

.csm-unit-wrap .csm-zone-link {
	display: block;
	line-height: 0;
}

.csm-unit-wrap .csm-zone-item img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}
.csm-unit-label.csm-unit-label-bottom {
	margin: 0.5rem 0 0;
}
.csm-unit-wrap.csm-unit-plain {
	background: none;
	border-top-color: transparent;
	border-bottom-color: transparent;
}
