.csl-row {
	--csl-btn-bg: #1d1d1f;
	--csl-btn-text: #ffffff;
	--csl-btn-hover-bg: #333336;
	--csl-gap: clamp(6px, 1.5vw, 10px);
	--csl-padding-x: clamp(10px, 3vw, 16px);
	--csl-padding-y: clamp(8px, 2vw, 12px);
	--csl-font-size: clamp(12px, 3.2vw, 14px);
	--csl-icon-size: clamp(14px, 3.5vw, 16px);

	display: flex;
	align-items: center;
	gap: 10px;
	margin: 24px 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f7f7f9;
	border: 1px solid #ececef;
	width: 100%;
	box-sizing: border-box;
}

.csl-heading {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	color: #6b6b70;
	white-space: nowrap;
}

.csl-buttons {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: var(--csl-gap);
	min-width: 0; /* required for children to shrink instead of forcing wrap */
}

.csl-btn {
	flex: 1 1 0;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: var(--csl-padding-y) var(--csl-padding-x);
	border-radius: 8px;
	background: var(--csl-btn-bg);
	color: var(--csl-btn-text) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: var(--csl-font-size);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.csl-btn:hover,
.csl-btn:focus {
	background: var(--csl-btn-hover-bg);
	color: var(--csl-btn-text) !important;
	transform: translateY(-1px);
}

.csl-btn-text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.csl-icon {
	flex-shrink: 0;
	width: var(--csl-icon-size);
	height: var(--csl-icon-size);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--csl-icon-size);
	line-height: 1;
}

.csl-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.csl-icon svg {
	width: 100%;
	height: 100%;
}

/* Auto Fit mode (default): shrink gap/padding/font/icon fluidly via clamp() above,
   and let long button labels truncate rather than wrap or overflow. */
.csl-mode-autofit .csl-buttons {
	flex-wrap: nowrap;
}

/* Horizontal Scroll fallback mode: never wraps, scrolls sideways instead
   when there are too many platforms to fit even at minimum sizes. */
.csl-mode-scroll .csl-buttons {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.csl-mode-scroll .csl-btn {
	flex: 0 0 auto;
}

/* Fixed Compact mode: force smaller fixed sizing at the mobile breakpoint
   regardless of how much room is available. */
@media (max-width: 480px) {
	.csl-mode-compact {
		--csl-gap: 6px;
		--csl-padding-x: 10px;
		--csl-padding-y: 8px;
		--csl-font-size: 12px;
		--csl-icon-size: 14px;
	}
	.csl-row {
		flex-wrap: wrap;
	}
	.csl-heading {
		flex-basis: 100%;
	}
}
