/*
 * Credential list shortcode styles.
 *
 * Layout: horizontal row per credential — logo (left) · name+subtitle (middle)
 * · optional status pill (right).
 *
 * !important on logo sizing defeats `.elementor img { max-width: 100%; height: auto }`.
 */

.bl-cred-lists {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0;
}

.bl-cred-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bl-cred-list__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.bl-cred-list__item:last-child {
	border-bottom: 0;
}

/* Logo */
.bl-cred-list .bl-cred-list__logo {
	width: 65px !important;
	height: 45px !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0;
	min-height: 0;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

/* Placeholder shown when no badge image is configured. */
.bl-cred-list .bl-cred-list__placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #f3f4f6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #9ca3af;
	flex-shrink: 0;
	text-transform: uppercase;
}

/* Text block: name + subtitle + optional meta */
.bl-cred-list__text {
	flex: 1;
	min-width: 0;
}

.bl-cred-list__name {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.3;
	color: inherit;
}

.bl-cred-list__sub {
	display: block;
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: 2px;
	line-height: 1.35;
}

/* Meta lines (cooperative contract detail) — stacked column instead of
 * `display: inline`, so each line renders on its own row with consistent
 * spacing regardless of markup whitespace. */
.bl-cred-list__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	list-style: none;
	padding: 0;
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: #9ca3af;
	line-height: 1.4;
}

.bl-cred-list__meta li {
	margin: 0;
	padding: 0;
	background: none;
}

.bl-cred-list__meta li::marker {
	content: none;
}

/* Green "Active" pill — diversity certifications only */
.bl-cred-list__status {
	flex-shrink: 0;
	align-self: center;
	padding: 2px 10px;
	border-radius: 999px;
	background: #dcfce7;
	color: #166534;
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Compact layout on narrow viewports */
@media (max-width: 480px) {
	.bl-cred-list .bl-cred-list__logo {
		width: 36px !important;
		height: 36px !important;
	}

	.bl-cred-list .bl-cred-list__placeholder {
		width: 36px;
		height: 36px;
	}

	.bl-cred-list__name {
		font-size: 0.875rem;
	}

	.bl-cred-list__sub,
	.bl-cred-list__meta {
		font-size: 0.75rem;
	}

	.bl-cred-list__item {
		gap: 10px;
		padding: 0.625rem 0;
	}
}

/* Section grouping — used by [user_service_area] */
.bl-cred-list-group + .bl-cred-list-group {
	margin-top: 1.25rem;
}

.bl-cred-list-group__title {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #9ca3af;
	margin-bottom: 0.5rem;
}

/* Fallback message — shown when a shortcode has no data */
.bl-list-empty {
	font-size: 0.875rem;
	color: #9ca3af;
	margin: 0;
	padding: 0.5rem 0;
	font-style: italic;
}
